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.

You Can't Vibecode Trust [audio]

https://open.spotify.com/episode/3B5e5s3u3vPjsGPAjgCht9
1•mooreds•3m ago•0 comments

Claude Code plugin for LLM research with typed claims and conflict detection

https://github.com/grainulation/grainulator
2•volatilityfund•4m ago•0 comments

Rift – Deterministic Concurrency for Go

https://github.com/damienos61/rift
1•DamienOS•5m ago•0 comments

Harness engineering for coding agent users

https://martinfowler.com/articles/harness-engineering.html
2•mooreds•9m ago•0 comments

Global Cultural Change and Anxiety in Children and Adolescents

https://onlinelibrary.wiley.com/doi/10.1111/desc.70157
1•PaulHoule•9m ago•0 comments

Show HN: Preview.thedrive.ai – instant thumbnails for any document URL

https://preview.thedrive.ai
1•sftechdude•11m ago•0 comments

AI Is Weird

https://www.wheresyoured.at/ai-is-really-weird/
1•weakfish•16m ago•0 comments

Show HN: Feature release system with MCP agent controls

https://featureflare.com/
2•jsonstcyr•21m ago•0 comments

The Whitelist Won: How Anthropic Turned a Pentagon Blacklist into a Consortium

https://liminaldr.substack.com/p/the-whitelist-won
1•BlendedPanda•21m ago•0 comments

A Visual Guide to Gemma 4

https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-gemma-4
2•vismit2000•22m ago•0 comments

Show HN: An agent-friendly image CDN built on Cloudflare Workers

https://img.pro
2•cr1st1an•23m ago•0 comments

Show HN: 2500 vision benchmarks / evals for Vision Language Models

https://github.com/Overshoot-ai/vlm-benchmarks
1•zakariaelhjouji•24m ago•0 comments

Demystifying Open Silicon – Matt Venn Is Democratizing Chip Design

https://www.siliconimist.com/p/tiny-tapeout-matt-venn
1•johncole•26m ago•0 comments

Show HN: Public Domain Audiobooks with AI (Azalea Audio)

https://apps.apple.com/us/app/azalea-audio/id6761150322
1•nbaronia•29m ago•1 comments

Show HN: Pasteur, a Milkdrop Visualization Exporter

https://pasteur.cc/
1•markneub•31m ago•0 comments

Starfling: A one-tap endless orbital slingshot game in a single HTML file

https://playstarfling.com
2•iceberger2001•32m ago•0 comments

Show HN: Side-by-side comparison tools for US LLC formation,banking and payments

https://www.globalsolo.global/tools/compare
1•jettfu•32m ago•0 comments

Darknet Diaries: SuperBox

https://darknetdiaries.com/episode/172/
1•leonim•34m ago•0 comments

WireGuard developer can't ship software updates after Microsoft locks account

https://techcrunch.com/2026/04/08/wireguard-vpn-developer-cant-ship-software-updates-after-micros...
1•wglb•34m ago•1 comments

Exploring the Far Side of the Moon: A Visual History

https://invertingvision.com/2026/04/06/exploring-the-far-side-of-the-moon-a-visual-history/
1•bookofjoe•37m ago•0 comments

Eavesdropping on Satellite Internet: Trying the "Dontlookup" Code

https://www.youtube.com/watch?v=VE7S1nk4F04
2•emsign•40m ago•0 comments

Anomalisa: Zero config anomaly detection with Welford's algorithm and a KV store

https://anomalisa.uriva.deno.net/
1•uriva•44m ago•0 comments

Release Management in the Agentic Era

https://medium.com/@taleodor/release-management-in-the-agentic-era-3e9eba4c0323
2•taleodor•45m ago•0 comments

How to Do an AX Audit

https://techstackups.com/articles/how-to-do-an-ax-audit/
2•mooreds•52m ago•0 comments

Company Orchestrator: The Last Job

https://sintem.co/essays/1/
1•sintem•55m ago•0 comments

AI and the Human Voice

https://gilest.org/notes/2026/human-ai/
2•avernet•1h ago•0 comments

Edalex Celebrates Double Recognition at 2026 EdTech Cool Tool Awards

https://www.edalex.com/news/edalex-rich-skill-descriptor-rsd-library-openrsd-integrated-new-muzzy...
1•edalex•1h ago•1 comments

Codex overtakes Claude Code to become #1 AI coding tool (April 2026)

https://ai-coding.info/en
4•kotauchisunsun•1h ago•0 comments

I wrote a WebAssembly plugin system for my Wayland compositor

https://www.youtube.com/watch?v=Kohl9wy3S7g
2•matthewkosarek•1h ago•0 comments

0x021 – Durable Workflows

https://unzip.dev/0x021-durable-workflows/
1•vismit2000•1h ago•0 comments