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.

Gemini 3.1 Flash TTS – with directed prompts

https://simonwillison.net/2026/Apr/15/gemini-31-flash-tts/
1•aanet•1m ago•1 comments

Agents Can Act.Only You Should Authorize

https://github.com/nametaginc/nametag-a2h
1•manish198903•1m ago•0 comments

What it's like to house-hunt in Silicon Valley (2015)

https://www.washingtonpost.com/business/economy/what-its-like-to-house-hunt-in-silicon-valley-the...
1•downbad_•2m ago•1 comments

Attention IS NOT all u need

https://github.com/Elgoghel/hwta-circuits/blob/main/README.md
1•Elgoghel•2m ago•0 comments

Show HN: Hatch: customise agents once, generate all the files

https://github.com/matryer/hatch
1•matryer•2m ago•0 comments

Google Broke Its Promise to Me. Now ICE Has My Data

https://www.eff.org/deeplinks/2026/04/google-broke-its-promise-me-now-ice-has-my-data
2•Brajeshwar•4m ago•0 comments

Spotted a bear lately? You're not alone–why sightings are on the rise

https://cssh.northeastern.edu/spotted-a-bear-lately-youre-not-alone-why-sightings-are-on-the-rise/
1•PaulHoule•4m ago•0 comments

Show HN Deskdrop: An Android Keyboard with Local AI Support (Ollama, LM Studio)

https://github.com/SvReenen/Deskdrop
1•SvReenen•4m ago•0 comments

Snap Is Laying Off 16% of Full-Time Staff as It Embraces A.I

https://www.nytimes.com/2026/04/15/business/snap-layoffs-snapchat.html
3•xnx•5m ago•0 comments

Lyra 2.0: Explorable Generative 3D Worlds

https://arxiv.org/abs/2604.13036
1•aanet•6m ago•1 comments

The Security Decisions Claude Code and Codex Make

https://amplifying.ai/research/ai-security-decisions
1•edwin•7m ago•0 comments

Introducing Cloudflare Mesh

https://developers.cloudflare.com/changelog/post/2026-04-14-cloudflare-mesh/
2•ransom_rs•9m ago•1 comments

Moss-TTS-Nano: Real-Time Voice AI on CPU (Open-Source TTS Stack)

https://firethering.com/moss-tts-nano-open-source-tts/
1•steveharing1•10m ago•0 comments

Ask HN : Vibe coders: does AI keep breaking your auth and webhooks?

https://www.indiehackers.com/post/vibe-coders-does-ai-keep-breaking-your-auth-and-webhooks-b9e869...
2•siddhant-jain•10m ago•1 comments

Watching TV with the Second-Party: A First Look at ACR Tracking in Smart TVs (2024)

https://arxiv.org/abs/2409.06203
2•redbell•11m ago•0 comments

Show HN: Slack killed their OpenAPI spec, so we reverse engineered it

https://github.com/connectstrata/slack-openapi-generator
1•jmclai•11m ago•0 comments

Ask HN: What do founders want from a one person dev studio?

1•Punyakrit•13m ago•1 comments

Ask HN: What's your favourite business oriented movie?

3•wasimsk•14m ago•2 comments

BBC to cut up to 2k jobs in biggest downsize in 15 years

https://www.theguardian.com/media/2026/apr/15/bbc-cut-jobs-downsize-matt-brittin-tim-davie
1•mellosouls•18m ago•0 comments

Trump Killed the One Thing That Made Filing Taxes Easier

https://www.nytimes.com/2026/04/04/opinion/taxes-trump-direct-file-tax-day-april.html
5•mitchbob•18m ago•1 comments

Trust and the Death of the Handshake Deal

https://nickchirls.com/2026/04/15/trust-and-the-death-of-the-handshake-deal/
2•rafaelc•19m ago•0 comments

Close the Book. Recall. Write It Down. (2009)

https://www.chronicle.com/article/close-the-book-recall-write-it-down/
1•downbad_•20m ago•1 comments

Jensen Huang – How Nvidia locked up the semiconductor supply chain [video]

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

Dino from Scratch

https://github.com/aldipiroli/dino_from_scratch
1•tgnk2341•21m ago•0 comments

Show HN: Tier – Adaptive tool routing that makes small LLMs 10pt more accurate

https://github.com/yantrikos/tier
2•pranabsarkar•21m ago•0 comments

Bot-AGI-1 – a robotics benchmark for VLMs

https://bot-agi.org/
1•chronolitus•22m ago•0 comments

Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts

https://machinelearning.apple.com/research/cram-less
1•gmays•22m ago•0 comments

The Gemini app is now on Mac

https://blog.google/innovation-and-ai/products/gemini-app/gemini-app-now-on-mac-os/
3•thm•22m ago•0 comments

Python Type Checker Comparison: Speed and Memory Usage

https://pyrefly.org/blog/speed-and-memory-comparison/
1•ocamoss•22m ago•0 comments

Show HN: Agentfab – A Distributed Agentic Platform

https://github.com/RazvanMaftei9/agentfab
1•razvan_maftei•24m ago•0 comments