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.

Musk vs. Altman week 3: Elon Musk and Sam Altman traded blows over each other's

https://www.technologyreview.com/2026/05/15/1137357/musk-v-altman-week-3/
1•joozio•4m ago•0 comments

Palantir's SaaS is dead claim is a warning shot for founders

https://startupfortune.com/palantirs-saas-is-dead-claim-is-a-warning-shot-for-founders/
1•01-_-•7m ago•0 comments

The US Is Using AI to Hunt Down Insider Trading on Polymarket

https://www.wired.com/story/polymarket-insider-trading-cftc-michael-selig-interview/
1•01-_-•8m ago•0 comments

Heroes of Might and Magic: Olden Era

https://store.steampowered.com/app/3105440/Heroes_of_Might_and_Magic_Olden_Era/
3•doener•10m ago•0 comments

Old English Pronunciation: A Comprehensive Reconstruction [video]

https://www.youtube.com/watch?v=WNQo54Ddte8
1•hnlyman•12m ago•0 comments

Team-memory – your team's shared brain, auto-built from Claude Code CLI or UI

https://github.com/AndrewSkea/team-memory
1•aski_dev•17m ago•0 comments

Abseil Common Libraries (C++)

https://github.com/abseil/abseil-cpp
1•tosh•24m ago•0 comments

Gaussian Splatting for Dummies

https://darshanmakwana412.github.io/2026/04/gaussian-splatting/
1•martianvoid•25m ago•0 comments

AI Playground – Let AI agents play safely

https://gitlab.com/cryptomilk/ai-playground
1•cryptomilk•28m ago•1 comments

PyCon US 2026 Packaging Summit Recap

https://discuss.python.org/t/packaging-summit-at-pycon-us-2026/106911
1•gaborbernat•33m ago•1 comments

Show HN: KoalaNews – how big is this story, really?

https://koalanews.app
1•koala-news•37m ago•0 comments

AI-generated code is 'pain waiting to happen'

https://www.theregister.com/ai-ml/2026/05/16/ai-generated-code-is-pain-waiting-to-happen/5241574
4•abdelhousni•38m ago•0 comments

We Are All Rankers Now: Or Why the Internet Has Turned to Shit

https://grumpywelshman.com/we-are-all-rankers-now-or-why-the-internet-has-turned-to-shit/
3•dave-x•41m ago•0 comments

Base64 encoding and decoding at almost the speed of a memory copy

https://arxiv.org/abs/1910.05109
1•tosh•45m ago•0 comments

Voltaire, the Entrepreneur

https://www.linkandth.ink/p/voltaire-the-entrepreneur
2•helsinkiandrew•53m ago•0 comments

Mozilla to UK regulators: VPNs are essential privacy and security tools

https://blog.mozilla.org/netpolicy/2026/05/15/mozilla-to-uk-regulators-vpns-are-essential-privacy...
7•WithinReason•56m ago•0 comments

Killswitch: Add per-function short-circuit mitigation primitive

https://lore.kernel.org/all/20260507070547.2268452-1-sashal@kernel.org/
2•Tomte•1h ago•0 comments

The Applicability of Spaced Repetition

https://borretti.me/article/the-applicability-of-spaced-repetition
4•Tomte•1h ago•0 comments

Linux Latest Vulnerability Allows Reading Root-Owned Files by Unprivileged Users

https://www.phoronix.com/news/Linux-ssh-keysign-pwn
3•tjek•1h ago•0 comments

At Cannes, filmmakers shift toward cautious acceptance of AI

https://www.reuters.com/lifestyle/cannes-filmmakers-shift-towards-cautious-acceptance-ais-inevita...
2•sahar_builds•1h ago•0 comments

CAFleet – open-source Agent Teams reinvented, both for Claude Code and Codex

https://github.com/himkt/cafleet
2•himkt•1h ago•0 comments

The Uncomfortable Truth About AI "Reasoning"

https://www.youtube.com/watch?v=iFYF_e1GSGI
3•tcp_handshaker•1h ago•0 comments

TypedMemory – long-term memory and reflection for AI agents

https://github.com/canis-minor/typedmem
2•ruxiz•1h ago•0 comments

Should you move to Silicon Valley? [video]

https://www.youtube.com/watch?v=QHJkUw31YX8
3•nomilk•1h ago•1 comments

An Introduction to Galois Fields and Reed-Solomon Coding [pdf]

https://people.computing.clemson.edu/~jmarty/papers/IntroToGaloisFieldsAndRSCoding.pdf
3•teleforce•1h ago•0 comments

Show HN: Save Context from MCP Bloat

https://github.com/healqq/mcp-content-guard
2•healqq•1h ago•0 comments

Additive FFT Explained: Fast Fourier Transforms over Binary Fields

https://blog.lambdaclass.com/additive-fft-background/
3•teleforce•1h ago•0 comments

The Streaming Latency Tradeoff: Why Some TTS Models Lose Accuracy in Real Time

https://deepgram.com/learn/streaming-tts-latency-accuracy-tradeoff
2•ChicknNuggt•1h ago•1 comments

The Mythical Agent-Month

https://wesmckinney.com/blog/mythical-agent-month/
4•fagnerbrack•1h ago•1 comments

Programmers Spend Their Time – Probably Dance

https://probablydance.com/2026/02/10/how-programmers-spend-their-time/
3•fagnerbrack•1h ago•0 comments