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

When two years of academic work vanished with a single click

https://www.nature.com/articles/d41586-025-04064-7
1•wawayanda•4m ago•0 comments

Munros, Corbetts, Grahams and Donalds: What's the Difference?

https://www.thehighlandmountaincompany.co.uk/post/munros-corbetts-grahams-and-donalds-what-s-the-...
1•RicoElectrico•4m ago•0 comments

A high-performance, minimalist visual board for spatial thinkers

https://vb.lokryn.com
1•jen_lokryn•7m ago•1 comments

A Codebase by an Agent for an Agent

https://ampcode.com/by-an-agent-for-an-agent
1•pbshgthm•10m ago•0 comments

Show HN: Ghostree is a Ghostty fork with worktree management built in

https://github.com/sidequery/ghostree
1•nicoritschel•10m ago•0 comments

Python 3.14 Remote Debugging and Claude Code = Pwnage

https://github.com/promptromp/python-remote-debug-skill
2•adamhadani•10m ago•1 comments

Show HN: Computer Chronicles

https://computerchronicles.tv
1•LeoPanthera•13m ago•0 comments

LED lighting undermines visual performance unless supplemented by wider spectra

https://www.nature.com/articles/s41598-026-35389-6
6•bookofjoe•14m ago•0 comments

What the world can learn from Paris's cycling revolution

https://momentummag.com/what-the-world-can-learn-from-pariss-cycling-revolution/
1•fanf2•16m ago•0 comments

Spreadsheets and Vi and JSON

https://awalgarg.me/untitled_project
2•todsacerdoti•16m ago•0 comments

Sagas (2012)

https://vasters.com/archive/Sagas.html
1•locknitpicker•16m ago•0 comments

Cori – Give agents safe DB write access without raw SQL (open source in Rust)

https://github.com/cori-do/cori-kernel
2•bringitup•17m ago•1 comments

UK to reimburse visa fees for AI and quantum researchers

https://www.timeshighereducation.com/news/uk-reimburse-visa-fees-ai-and-quantum-researchers
1•rbanffy•18m ago•0 comments

House of Lords votes for under-16s social media ban

https://www.computing.co.uk/news/2026/legislation-regulation/peers-vote-for-under-16-social-media...
2•rbanffy•18m ago•2 comments

Hand-Crafting Domain-Specific Compression with an LLM

https://engineering.nanit.com/hand-crafting-domain-specific-compression-with-an-llm-3c42f5c2b070
1•miedwar•21m ago•0 comments

RAG for Legacy Systems: 7,432 Pages to 3s Answers

https://clouatre.ca/posts/rag-legacy-systems/
3•french_exec•26m ago•0 comments

WorldChaosMap: A live map of global instability

https://www.worldchaosmap.app/
2•shawsuraj•27m ago•1 comments

VPN Comparison Spreadsheet

https://old.reddit.com/r/rateVPNs/comments/1gw58mk/the_ultimate_vpn_comparison_spreadsheet/
1•scapecast•29m ago•0 comments

Show HN: A lightweight, native macOS menubar app for monitoring with mini graphs

https://github.com/bluewave-labs/systempulse
1•gorkemcetin•30m ago•0 comments

Software Design Principles That Matter

https://newsletter.francofernando.com/p/software-design-principles-that-matter
2•rmason•30m ago•1 comments

The '3.5% rule': How a small minority can change the world

https://www.bbc.com/future/article/20190513-it-only-takes-35-of-people-to-change-the-world
3•choult•31m ago•0 comments

Watch This Futuristic Windshield Melt Ice Almost Instantly

https://www.thedrive.com/news/watch-this-futuristic-windshield-melt-ice-almost-instantly
2•PaulHoule•31m ago•0 comments

Gemba

https://en.wikipedia.org/wiki/Gemba
1•wjb3•33m ago•0 comments

PickYourVC: Find the right VC for your next round

https://pickyourvc.com/
1•panrobo•33m ago•1 comments

Semantic Attacks: Exploiting What Agents See

https://niyikiza.substack.com/p/semantic-attacks-exploiting-what
1•niyikiza•33m ago•1 comments

Guinness Adverts Project on Irish Film Institute's Archive Player

https://www.irishcentral.com/culture/guinness-adverts-project-irish-film-institute
1•gnabgib•34m ago•0 comments

We've given up on keeping our initial arch docs/specs up to date.Should I worry?

1•yutea_dem24•34m ago•0 comments

Stackmaxxing for a recursion world record [video]

https://www.youtube.com/watch?v=WQKSyPYF0-Y
1•btdmaster•34m ago•0 comments

Turn Your Android into a Dumb-Phone

https://rasmuskirk.com/articles/2026-01-16_turn-your-android-into-a-dumbphone/
2•bitterblotter•34m ago•0 comments

Show HN: Promo/offer code sharing and discovery for apps

https://proffer.codes/
1•indest•36m ago•0 comments