frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Durable Execution Agents

https://martinfowler.com/articles/durable-execution-agents.html
1•afhammad•1m ago•0 comments

Privacy-Friendly Website Analytics Tools for 2026

https://ajseven.medium.com/7-best-website-analytics-tools-for-2026-open-source-self-hosted-privac...
1•its_ajseven•2m ago•0 comments

The Lasting Influence of John Berger

https://www.newyorker.com/magazine/2026/11/16/john-berger-a-life-tom-overton-book-review
2•prismatic•13m ago•0 comments

Foreign Comiket attendees locked out as Ticketpay geoblocks non-Japanese IPs

https://twitter.com/kotorisenseiba/status/2120374093493248166
1•phantomathkg•14m ago•0 comments

Show HN: Rusty Valve – Chemical plant valve benchmark where ACT scores 0/36

https://github.com/rusty-valve/rusty-valve
1•CrystalDai•18m ago•0 comments

NRC Issues First Construction Permit in Nearly 60 Years for Gas-Cooled Reactor

https://www.nrc.gov/about-nrc/news-releases/2026/26-083
1•geox•20m ago•0 comments

The Forever-Day Problem: Unsupported Software on the Public Internet

https://blog.fortirix.com/blog/forever-day/
1•SecurityNinjaGu•24m ago•0 comments

Ring Robotics

https://ring.com/ring-robotics
2•gregsadetsky•26m ago•0 comments

Show HN: App to help parents find, plan, and review outings with their kids

https://sproutings.app/
1•brendanperry•26m ago•0 comments

Data Centers and Local Labor Markets: Evidence from the Texas Experience

https://jrap.scholasticahq.com/article/172680-data-centers-and-local-labor-markets-evidence-from-...
1•toomuchtodo•27m ago•1 comments

Richard Posner, influential and iconoclastic federal judge, dies at 87

https://www.washingtonpost.com/obituaries/2026/11/11/richard-posner-influential-iconoclastic-fede...
3•pseudolus•30m ago•2 comments

When LIMIT 10 Means 500

https://vito.io/articles/2026-10-25-when-limit-10-means-500
1•ykgoon•35m ago•0 comments

Bad ideas that aren't bad anymore

https://devonestes.com/bad-ideas-that-arent-bad-anymore
1•sevenseacat•39m ago•0 comments

Show HN: Eyes-free spoken N-Back where you choose the words (single HTML file)

https://vernetit.github.io/spoken-n-back/
1•quietcircuit•43m ago•1 comments

Neurons as an Interpretable Basis

https://www.goodfire.com/research/neurons-as-an-interpretable-basis
1•gmays•43m ago•0 comments

Some Memories of Early Anthropic

https://www.lesswrong.com/posts/9PiLfo6iQbbDWFHv7/some-memories-of-early-anthropic
2•wslh•45m ago•0 comments

The Myth of "Neutral Code"

https://foss.life/notes/2026/the-myth-of-neutral-code/
3•tachalorah•47m ago•0 comments

Fortell DSP Pipeline

https://fortell-demo-hoeksema.vercel.app/
1•hoeksema•50m ago•0 comments

Show HN: Paper Radar – daily ArXiv triage, now runs on Claude Haiku too

https://github.com/Eliot5566/JEV-Paper-Radar
1•eliot5566•51m ago•0 comments

Show HN: Four Seasons in Real Time

https://vivaldirt.stream/
1•supernihil•1h ago•0 comments

Show HN: Ramasite, a Self-Contained Laravel/Filament/SQLite CMS

https://github.com/DaleFranks/ramasite
1•DaleFranks•1h ago•1 comments

Show HN: VpsPilot, Manage a Linux VPS from Android, with undo for config changes

https://vpspilot.app/
1•sadawy•1h ago•0 comments

Upcoming meeting could determine if US loses its measles elimination status

https://abcnews.com/Health/upcoming-meeting-determine-us-loses-measles-elimination-status/story?i...
1•gmays•1h ago•0 comments

A look at what building with the Web Models API looks like in JavaScript

https://medium.com/@kenzic/web-models-api-practical-guide-ba23773962a5
1•kenzic•1h ago•0 comments

Show HN: OpenSwells – free, open-source surf forecasts for 5,800 spots

https://openswells.com/
1•etc1212•1h ago•1 comments

Why Do Astra and Opus 5.5 Fail Simple 2D Mazes?

https://www.fig.inc/blog/multinet-v2-preview-astra-opus/
1•pranavguru•1h ago•0 comments

Can't Be Pumped. Can't Be Dumped. Can't Predict It. Can't Manipulate It

https://tokenmobiles.live
2•elykcim•1h ago•0 comments

Lean Grimoire

https://terrytao.wordpress.com/2026/11/11/lean-grimoire/
11•smilelamp•1h ago•1 comments

Social Proof

https://en.wikipedia.org/wiki/Social_proof
2•o4c•1h ago•0 comments

Compromised GitHub accounts push CI secret stealer to 61k repositories

https://www.aikido.dev/blog/compromised-github-accounts-push-ci-secret-stealer-to-tens-of-thousan...
2•acossta•1h ago•0 comments