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.

Hippo Turns One Master Password into Many Without Storing Any

https://spectrum.ieee.org/storeless-password-manager
1•u1hcw9nx•1m ago•0 comments

Our Longing for Inconvenience

https://www.newyorker.com/culture/essay/our-longing-for-inconvenience
1•cdrnsf•1m ago•0 comments

David Sklansky, the 'First Nerd to Enter Poker,' Dies at 78

https://www.nytimes.com/2026/04/11/us/david-sklansky-dead.html
1•indigodaddy•2m ago•0 comments

Launching Ising, open models to accelerate the path to useful quantum computers

https://nvidianews.nvidia.com/news/nvidia-launches-ising-the-worlds-first-open-ai-models-to-accel...
1•hhs•3m ago•0 comments

What Is Llms.txt and Does Your Business Need One?

https://semarkglobal.com/blog/what-is-llms-txt-does-your-business-need-one
1•alihassaan•5m ago•1 comments

Dad brains: How fatherhood rewires the male mind

https://www.bbc.com/future/article/20260417-fatherhood-how-the-male-brain-and-body-prepare-for-ch...
1•tchalla•9m ago•0 comments

Show HN: AWS's Kiro just got an Open source Codex

https://github.com/thabti/kirodex
1•sovietism•12m ago•0 comments

Pupil dilation suggests people start solving before all numbers are in

https://phys.org/news/2026-04-mental-math-shortcut-pupil-dilation.html
2•y1n0•14m ago•0 comments

Classic Papers: Articles That Have Stood the Test of Time

https://scholar.googleblog.com/2017/06/classic-papers-articles-that-have-stood.html
1•gregsadetsky•15m ago•0 comments

Why Zip drives dominated the 90s, then vanished almost overnight

https://www.xda-developers.com/zip-drives-dominated-90s-vanished-almost-overnight/
2•y1n0•19m ago•1 comments

The man who saw the future: the legacy of cultural theorist Mark Fisher

https://www.theguardian.com/film/2026/apr/17/we-are-making-a-film-about-mark-fisher-capitalist-re...
2•mellosouls•22m ago•0 comments

Robots learn: A brief, contemporary history

https://www.technologyreview.com/2026/04/17/1135416/how-robots-learn-brief-contemporary-history/
3•billybuckwheat•23m ago•0 comments

20000 Gates and 20 MIPS [pdf]

https://bitsavers.org/pdf/amdahl/history/20000_Gates_and_20_MIPS_199011.pdf
2•ingve•25m ago•1 comments

Tiny Go and Rust programs appear to start equally fast (on some machines)

https://utcc.utoronto.ca/~cks/space/blog/programming/GoVsRustStartupDelays
2•ingve•33m ago•1 comments

AI writes code 100x faster – why hasn't productivity?

https://deeptils.github.io/blog/ai-writes-code-100x-faster-productivity-hasnt/
2•deeplstm•35m ago•1 comments

British Empire: How a Small Island Took over the World

https://sheets.works/data-viz/british-empire
2•akashwadhwani35•39m ago•0 comments

Meshcore: Architecture for a Decentralized P2P LLM Inference Network

1•elyawhoo•40m ago•1 comments

My first impressions on ROCm and Strix Halo

https://blog.marcoinacio.com/posts/my-first-impressions-rocm-strix-halo/
2•random_•43m ago•0 comments

Let Sleeping CPUs Lie – S0ix

https://freebsdfoundation.org/our-work/journal/browser-based-edition/laptop-desktop/let-sleeping-...
1•birdculture•43m ago•0 comments

Singapore Tourism Board Launches AI-Powered Robodog Guides at Sentosa

https://www.stb.gov.sg/about-stb/media-publications/media-centre/singapore-tourism-board-launches...
1•mmarian•45m ago•0 comments

Code → Eval → HLD → LLD → Code

https://p10q.com/presentations/code_hld_lld/
1•tmsh•46m ago•0 comments

Mistral API is degrading [04/2026]

https://status.mistral.ai/incidents/page/1
1•rawland•52m ago•0 comments

Ask HN: Can you show me some useful AI-written programs?

3•nananana9•53m ago•2 comments

Air Is Full of DNA

https://www.nature.com/articles/d41586-026-01099-2
3•howrude•55m ago•0 comments

Mapping India's homegrown AI ecosystem – 110 apps, 22 languages, 28 sectors

https://github.com/suyash333/india-ai-ecosystem
1•golearnsap•57m ago•1 comments

I found out the hard way that Linux is not a dad-friendly gaming OS

https://www.pcgamer.com/hardware/i-found-out-the-hard-way-that-linux-is-not-a-dad-friendly-gaming...
3•evo_9•1h ago•2 comments

Israel kills two UNICEF water truck drivers in Gaza

https://www.unicef.org/press-releases/statement-unicef-killing-two-water-truck-drivers-gaza-strip-0
8•lr0•1h ago•0 comments

_Generic Printf() in Standard C23

https://codeberg.org/Flying-Toast/gprintf
2•flying-toast•1h ago•0 comments

Kazakhstan still relies on its ageing industrial giants

https://mondediplo.com/2026/04/14kazakhstan
1•JumpCrisscross•1h ago•0 comments

Show HN: How Are You-elderly fall detection app I built solo with AI in 6 months

2•sminchev•1h ago•8 comments