frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•9mo ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•9mo ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•9mo ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

Amazon's AI bots have been behind multiple AWS outages

https://sherwood.news/tech/report-amazons-ai-bots-have-been-behind-multiple-aws-outages/
1•speckx•7s ago•0 comments

Flathub is experiencing signing outage; new builds cannot be published

https://status.flathub.org/issues/2026-02-17-publish/
1•exploraz•45s ago•0 comments

Software Collaboration in the AI Age

https://spiess.dev/blog/software-collaboration-in-the-ai-age
1•tosh•54s ago•0 comments

The Return of the Data Scientists

https://www.goodeyelabs.com/insights/the-return-of-the-data-scientists
1•egealtan•2m ago•0 comments

Show HN: Value of the Day – Rate your day with stars and reviews

https://value-of-the-day.vercel.app
1•Kanta_K•2m ago•0 comments

Local iOS voice to text app (alternative to Wispr Flow)

1•kcordoc•2m ago•0 comments

Show HN: NotesGutter – Clean Code Notes with Markdown and Drawings

https://marketplace.visualstudio.com/items?itemName=ParasKoundal.notesgutter
1•alohaTool•3m ago•0 comments

Fourth-quarter U.S. GDP up just 1.4%, badly missing estimate; inflation at 3%

https://www.cnbc.com/2026/02/20/pce-inflation-december-2025.html
1•mraniki•4m ago•0 comments

Creatine: The Longevity Supplement Hiding in Plain Sight

https://twitter.com/robertlufkinmd/status/2024835466269470791
1•bilsbie•4m ago•1 comments

You May Be Canadian

https://www.jefftk.com/p/you-may-already-be-canadian
1•speckx•5m ago•0 comments

The Race to Give Every Child a Toy

https://www.newyorker.com/magazine/2026/02/16/playmakers-the-jewish-entrepreneurs-who-created-the...
1•fortran77•6m ago•1 comments

Defense Dept. and Anthropic Square Off in Dispute over A.I. Safety

https://www.nytimes.com/2026/02/18/technology/defense-department-anthropic-ai-safety.html
1•medbar•6m ago•0 comments

Show HN: A TUI text editor built by FTXUI

https://github.com/Cyxuan0311/PNANA
1•Frameser•7m ago•1 comments

Everything you never wanted to know about visually-hidden

https://dbushell.com/2026/02/20/visually-hidden/
1•todsacerdoti•7m ago•0 comments

A History of Erlang (2007) [pdf]

https://lfe.io/papers/%5B2007%5D%20Armstrong%20-%20HOPL%20III%20A%20History%20of%20Erlang.pdf
1•tosh•8m ago•0 comments

Leverage Coding Agents as a Builder/Engineer [video]

https://www.youtube.com/watch?v=wSPOP2lNmzI
1•brainless•10m ago•0 comments

Ask HN: How did you get your drive back?

1•truthbe•10m ago•0 comments

Shading Languages Symposium 2026 content now available

https://www.khronos.org/events/shading-languages-symposium-2026
2•pjmlp•12m ago•0 comments

eBPF the Hard Way

https://feyor.sh/blog/ebpf-the-hard-way/
2•todsacerdoti•14m ago•0 comments

I found a useful Git one liner buried in leaked CIA developer docs

https://spencer.wtf/2026/02/20/cleaning-up-merged-git-branches-a-one-liner-from-the-cias-leaked-d...
17•spencerldixon•17m ago•1 comments

The sale of xAI comes with tax, financial and legal benefits for investors

https://www.reuters.com/business/finance/sale-xai-comes-with-tax-financial-legal-benefits-xai-spa...
2•Zigurd•18m ago•2 comments

Show HN: A native macOS client for Hacker News, built with SwiftUI

https://github.com/IronsideXXVI/Hacker-News
7•IronsideXXVI•18m ago•0 comments

Show HN: LexPrep – Open-source toolkit for linguistic stimulus preparation

https://github.com/sajjad-mazaheri/lexprep
1•Sajjad_m•18m ago•0 comments

Federated Identity vs. Single Sign-On: Key Differences

https://auth0.com/blog/federated-identity-vs-single-sign-on-key-differences/
1•andychiare•20m ago•0 comments

Show HN: Export and resume Claude Code sessions

https://github.com/wunderlabs-dev/claudebin.com
2•vtemian•21m ago•0 comments

ggml.ai joins Hugging Face

https://twitter.com/ggerganov/status/2024839991482777976
1•tosh•22m ago•0 comments

Show HN: Open-source MCP servers making every country's law searchable by AI

https://ansvar.eu/open-law
1•Aesir89•23m ago•0 comments

Why too much phosphorus in America's farmland is polluting the country's water

https://theconversation.com/why-too-much-phosphorus-in-americas-farmland-is-polluting-the-country...
3•PaulHoule•24m ago•0 comments

At protocol has a new website

https://atproto.com/
1•articsputnik•24m ago•1 comments

Code Reviews in the Age of AI

https://senkorasic.com/articles/rethinking-code-reviews
1•senko•24m ago•0 comments