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.

Democracy in Music

https://democracyinmusic.com/
1•skoodge•55s ago•0 comments

Slater Gets Graphiti Support

https://github.com/Hikari-Systems/graphiti-slater
1•rickkjp•1m ago•1 comments

Built a clicker game for my classroom – need honest opinions about it

https://www.buttonblam.com/
1•useful-warlock•3m ago•1 comments

RL for LLM Reasoning Is Sparse Policy Selection, Not Capability Learning

https://arxiv.org/abs/2605.06241
1•BlackGlory•5m ago•0 comments

What 50 open source projects taught us about security in the AI era

https://github.blog/open-source/maintainers/what-50-open-source-projects-taught-us-about-security...
2•yruzin•7m ago•1 comments

System design rules I always come back to

https://www.thetrueengineer.com/p/10-system-design-rules-i-always-come
2•adletbalzhanov•10m ago•0 comments

The Seven Weaknesses of AI Today

https://medium.com/tech-ai-chat/the-seven-weaknesses-of-ai-today-eee66aaa9c10
1•elye•15m ago•1 comments

Show HN: A public AI whose memory is shared across all users

https://wildstatic.com/
3•adjohu•16m ago•0 comments

Ranking the Prettiest Birds with Math

https://moultano.wordpress.com/2026/08/14/fairly-ranking-the-most-brilliant-birds/
2•moultano•16m ago•0 comments

Scientists Identify 3-Minute Exercise Better than 90M one

https://www.newsweek.com/scientists-say-this-3-minute-exercise-beats-90-minute-workouts-12322062
3•guytv•18m ago•1 comments

Clues by Sam

https://cluesbysam.com/
2•abelanger•21m ago•1 comments

Our Reality Is Shifting and It's Just the Start

https://guustaaf.substack.com/p/our-reality-is-shifting-and-its-just
2•Guustaaf•23m ago•0 comments

A recipe for drone racing with reinforcement learning

https://mrandri19.github.io/2026/07/19/drone-racing-with-reinforcement-learning.html
2•daww•25m ago•1 comments

How a Sony Veteran Is Overhauling the Company He Grew Up In

https://www.wsj.com/business/media/sony-ceo-hiroki-totoki-efc8923f
3•thm•25m ago•0 comments

The Mystery of Dark Oxygen

https://www.newyorker.com/science/elements/the-mystery-of-dark-oxygen
2•rbanffy•26m ago•0 comments

A U.S. Strategy to Prevent the Creation of Mirror Life

https://www.rand.org/pubs/research_reports/RRA4335-1.html
3•thunderbong•28m ago•0 comments

Woman claims stepfather used Grok to transform childhood photo into CSAM imagery

https://techcrunch.com/2026/08/15/woman-claims-her-stepfather-used-grok-to-transform-childhood-ph...
2•ilamont•32m ago•0 comments

Ranking Kickstarter Games I Backed but Never Finished or Ended Up Playing at All

https://blog.curiousquail.com/ranking-kickstarter-games-i-backed-but-never-finished-or-ended-up-p...
3•ajdude•33m ago•0 comments

A.I. Agents Are Taking Online Courses for Cheating Students

https://www.nytimes.com/2026/08/10/us/ai-cheating-online-degrees.html
3•bookofjoe•34m ago•1 comments

Show HN: 3D Graph of DeepSWE, via Three.js

https://icauro.com/toabundance
3•icauroboros•35m ago•2 comments

AGI will likely be silent

https://www.reddit.com/r/agi/s/sZECbecJVS
3•qikouki•35m ago•0 comments

WTF Are You Loading?

https://x-x.codes/posts/wtf-are-you-loading
2•alex_x•35m ago•0 comments

Comments in source code are inevitable

https://blog.moertel.com/posts/2026-08-14-comments-are-inevitable.html
2•chmaynard•39m ago•0 comments

Firefox for iOS now has a native adblocker

https://support.mozilla.org/en-US/kb/block-ads-firefox-ios
7•pentagrama•39m ago•3 comments

TinyGo in Zed

https://blog.oxplot.com/tinygo-in-zed/
3•oxplot•42m ago•3 comments

Testing Moonshot AI's Kimi K3 Inside Claude Code

https://philippdubach.com/posts/kimi-k3-inside-claude-code/
3•7777777phil•43m ago•0 comments

Show HN: A pre-execution guard that stops AI agents running destructive commands

https://github.com/vandith1/agent-guard
3•andevandith•44m ago•1 comments

Rustwright: Automate browsers with 70% less memory

https://github.com/Skyvern-AI/rustwright
2•suchintan•45m ago•0 comments

Is the industry ready for tokens-constrained work?

https://blog.alaindichiappari.dev/p/what-to-do-when-tokens-run-out
14•fullautomation•46m ago•7 comments

Banned Words List

https://pen.org/banned-words-list/
41•structuredPizza•47m ago•14 comments