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•11mo 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•11mo 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•11mo 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.

Harnessing Hype to Teach Empirical Thinking with AI

https://arxiv.org/abs/2604.01110
2•azhenley•2m ago•0 comments

A truck driver spent 20 years making a scale model of every building in NYC

https://www.smithsonianmag.com/smart-news/a-truck-drive-spent-20-years-making-this-astonishing-sc...
2•1659447091•2m ago•0 comments

VPN ban 'on the table' as Online Safety Act could be expanded

https://www.express.co.uk/news/uk/2127999/vpn-ban-on-table-online
1•rvnx•7m ago•0 comments

Grokking wavefunction collapse in actual quantum systems

https://www.asiae.co.kr/article/2026032509340425584
1•vi_sextus_vi•15m ago•0 comments

Show HN: We built a camera only robot vacuum for less than 300$ (Well almost)

https://indraneelpatil.github.io/blog/2026/robot-vacuum/
1•indraneelpatil•16m ago•0 comments

Scientists found a protein that drives brain aging – and how to stop it

https://www.sciencedaily.com/releases/2026/04/260405065236.htm
1•mikhael•17m ago•0 comments

Anthropic Removed MagicDocs from Claude Code

https://translunar.io/blog/2026/04/05/magicdocs-removed/
2•translunar•25m ago•1 comments

Show HN: REST API for Gymnasium (fka OpenAI Gym) reinforcement learning library

https://github.com/cloudkj/gymnasium-http-api
1•cloudkj•25m ago•0 comments

Mark Andreessen: "AGI is here"

https://twitter.com/i/status/2040922415551959338
1•SergeAx•28m ago•0 comments

Can your AI rewrite your code in assembly?

https://lemire.me/blog/2026/04/05/can-your-ai-rewrite-your-code-in-assembly/
2•sysoleg•36m ago•0 comments

Wizards of Leroy (and Wrico) Lettering

https://kleinletters.com/Blog/wizards-of-leroy-and-wrico-lettering/
1•rgovostes•37m ago•0 comments

More teens are getting hooked on gambling, often going undetected

https://text.npr.org/nx-s1-5762276
2•1659447091•40m ago•0 comments

NativeRest – Native REST API Client

https://nativesoft.com/
1•KomoD•49m ago•0 comments

RSA WARNING

https://zenodo.org/records/19435034
2•sunbagger•50m ago•0 comments

NSA and IETF, Part 7

https://blog.cr.yp.to/20260405-votes.html
2•Tomte•50m ago•0 comments

The Extinction of the Junior Engineer

https://michaelnovati.substack.com/p/the-extinction-of-the-junior-engineer
1•michaelnovati•50m ago•1 comments

An Inside Look at OpenAI and Anthropic's Finances Ahead of Their IPOs

https://www.wsj.com/tech/ai/openai-anthropic-ipo-finances-04b3cfb9
3•1vuio0pswjnm7•50m ago•1 comments

Realtime monitor of count of animals slaughtered in the US this year

https://animalclock.org/
2•chirau•51m ago•1 comments

Bump Mesh: A vibe-coded, open-source tool for texturing 3D prints

https://www.youtube.com/watch?v=rTBkjR7JvzI
1•kmmbvnr_•54m ago•0 comments

Drop, formerly Massdrop, ends most collaborations and rebrands under Corsair

https://drop.com/
1•stevebmark•1h ago•0 comments

TSMC plans 12 fabs in Arizona as supply chain shifts from passive to active

https://www.digitimes.com/news/a20260402PD213/tsmc-arizona-fab-expansion-supply-chain-usa.html
2•alephnerd•1h ago•0 comments

Stop Pushing AI Generated Code to Git

https://blog.tombert.com/Posts/Technical/2026/04-April/Stop-Pushing-AI-Generated-Code-to-Git
4•tombert•1h ago•0 comments

Eight years of wanting, three months of building with AI

https://simonwillison.net/2026/Apr/5/building-with-ai/
1•doppp•1h ago•1 comments

The Reason VO₂ Max Declines with Age

https://www.gethealthspan.com/research/article/why-vo2-max-declines-with-age
13•dtawfik1•1h ago•0 comments

Hierarchical-Context-Compressor

https://github.com/reyavir/hierarchical-context-compressor
1•handfuloflight•1h ago•0 comments

Hacker News Rank – Chrome Web Store

https://chromewebstore.google.com/detail/hacker-news-rank/hidhfijjhnnajlkikijcnmpgamfjocdh
2•shanyat•1h ago•0 comments

GK4I: Guidance Key for Insights(Beta)

https://www.gk4i.com/
1•nashwar•1h ago•0 comments

Why do so many digital transformations fail?

https://www.sciencedirect.com/science/article/pii/S0148296324000328
1•teleforce•1h ago•1 comments

Show HN: HTML to Markdown with CSS selector & XPath annotations for LLM Scraper

https://github.com/lightfeed/scrapedown
2•andrew_zhong•1h ago•0 comments

Docracy: A Bureaucracy for Agentic Frameworks

https://github.com/torrinworx/docracy
2•torrinleonard•1h ago•0 comments