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

Try LispE in the Browser

https://naver.github.io/lispe/
1•clauderoux•1m ago•1 comments

Palantir's summary of CEO Alexander Karp's manifesto is generating buzz

https://www.businessinsider.com/palantir-manifesto-alex-karp-technological-republic-summary-2026-4
1•rapnie•2m ago•0 comments

Gosentry: Fuzz Golang with LibAFL

https://blog.trailofbits.com/2026/05/12/go-fuzzing-was-missing-half-the-toolkit.-we-forked-the-to...
1•fanf2•2m ago•0 comments

Xi Is Planning for China's Final Victory over the U.S.

https://www.nytimes.com/2026/05/13/opinion/xi-trump-summit-china-us.html
1•KnuthIsGod•2m ago•0 comments

Cost of enum-to-string: C++26 reflection vs. the old ways

https://vittorioromeo.com/index/blog/refl_enum_to_string.html
1•sagacity•3m ago•1 comments

Mao Tse-Tung: On Protracted War [pdf]

https://www.bannedthought.net/China/Individuals/MaoZedong/Pamphlets/Mao-1938-OnProtractedWar-1967...
1•KnuthIsGod•3m ago•0 comments

Blaise v0.7.0 (alpha) – Independent of Free Pascal compiler

https://github.com/graemeg/blaise/discussions/24
1•mariuz•7m ago•0 comments

The Return of Structure: Data Architecture Lessons for the Agentic Workforce

https://medium.com/analytics-and-data/the-return-of-structure-data-architecture-lessons-for-the-a...
1•linkerzx•11m ago•0 comments

Firefly Aibox-K3 – An Edge AI Mini PC Powered by SpacemiT K3 RISC-V SoC

https://www.cnx-software.com/2026/05/12/firefly-aibox-k3-an-edge-ai-mini-pc-powered-by-spacemit-k...
1•fork-bomber•12m ago•0 comments

GitHub Copilot individual plans flex allotments in Pro and Pro+ and new Max plan

https://github.blog/news-insights/company-news/github-copilot-individual-plans-introducing-flex-a...
1•tiernano•15m ago•0 comments

The Decision Is Ours

https://quodeq.ai/blog/decision-is-already-ours/
1•VictorPurMar•16m ago•0 comments

Peter Naur, Programming as Theory Building (1985) [pdf]

https://pages.cs.wisc.edu/~remzi/Naur.pdf
1•raffael_de•16m ago•0 comments

Connect with Skilled Engineers and Workers

https://clawnews.io/i/10229/the-marketplace-for-ai-powered-professionals-and-ai-agents
1•buffer_overlord•19m ago•1 comments

Scott Galloway: Sam Altman and Elon Musk Are Lying About AI [video]

https://www.youtube.com/watch?v=0iRr-gMetHk
1•simonebrunozzi•20m ago•0 comments

Biggest capitalist in the world talks about open source software

https://www.youtube.com/watch?v=HeE25gJAvNY
1•sinansonmez•21m ago•0 comments

Why we're betting on Durable Sessions

https://ably.com/blog/durable-sessions-infrastructure-layer-ai-agents
1•zknill•23m ago•0 comments

The Dispassionate Statistician (2003)

https://designobserver.com/edward-tufte-the-dispassionate-statistician-i/
1•Michelangelo11•24m ago•0 comments

The Great Zombification

https://www.thenewcritic.com/p/the-great-zombification
2•XzetaU8•25m ago•0 comments

Show HN: I built a small repertoir of different computing systems

https://computers.tugdual.fr
2•tugdual•36m ago•0 comments

Trap Street

https://en.wikipedia.org/wiki/Trap_street
2•ivanjermakov•38m ago•0 comments

Why are some people mosquito magnets? Clues are emerging

https://phys.org/news/2026-05-people-mosquito-magnets-clues-emerging.html
2•jnord•38m ago•0 comments

Show HN: I made a screen recording app to make demos like an Apple commercial

https://shotglass.app
5•jakemanger•42m ago•2 comments

Satteri – High-Performance Markdown and MDX Processing for the JavaScript

https://github.com/bruits/satteri
2•todotask2•42m ago•0 comments

GitHub Launchpad Proposal

https://github.com/liamromanis101/Github_Strategic_Proposal-2026
3•lromanis•43m ago•0 comments

FaceTime Without the Internet [video]

https://www.youtube.com/watch?v=0b1XL91-q48
2•marklit•45m ago•0 comments

OpenAI, Microsoft and Friends Build a Better, More Scalable Ethernet

https://www.nextplatform.com/connect/2026/05/12/openai-microsoft-and-friends-build-a-better-more-...
3•rbanffy•46m ago•0 comments

Cuckooland – Tom Burgis on the abuse of power and influence (2024)

https://www.ft.com/content/b82c15dd-0c63-4657-a2e7-488ce30b8afc
3•robtherobber•50m ago•0 comments

Google's Android-powered laptops are called Googlebooks, and coming this year

https://arstechnica.com/gadgets/2026/05/googles-android-powered-laptops-are-called-googlebooks-an...
3•rbanffy•50m ago•0 comments

Hysteria: A QUIC-Based Proxy Designed to Resist Censorship

https://github.com/apernet/hysteria
4•steveharing1•53m ago•0 comments

Bun is being ported to Rust using Claude. Here's a code review using GPT

https://github.com/Swival/security-audits/blob/main/bun-rust/README.md
3•jedisct1•54m ago•0 comments