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

Poll: Should Hacker News implement ActivityPub and federate?

https://cosocial.ca/@evan/116186269769918819
1•elfstudent•1m ago•0 comments

Why Not Boost?

https://twitter.com/XCSme/status/2030276189089103930
1•XCSme•2m ago•0 comments

Show HN: Free AI tools comparison engine with 300 side-by-side reviews

https://aitoolvs.com/
1•arenas2026•4m ago•0 comments

How to stop fighting with coherence and start writing context-generic trait imp

https://contextgeneric.dev/blog/rustlab-2025-coherence/
2•todsacerdoti•4m ago•0 comments

I rewatched Silicon Valley. Now it's not a comedy, it's a manual

1•Andronovman•4m ago•0 comments

The One-Person Stack

https://www.ivan.codes/blog/the-one-person-stack
3•andout_•6m ago•0 comments

Anthropic and The Pentagon

https://www.schneier.com/blog/archives/2026/03/anthropic-and-the-pentagon.html
3•aduffy•6m ago•1 comments

Gitzy is now on TestFlight A modern, native iOS Git client

https://testflight.apple.com/join/SB16NCfr
1•marc0janssen•7m ago•1 comments

My dad made the biggest jewelled egg in the world

https://www.theguardian.com/books/2026/mar/07/paul-kutchinsky-egg-obsession-destroy-marriage-fami...
1•n1b0m•8m ago•0 comments

Palantir and Anthropic AI helped the US hit 1k Iran targets in 24 hours

https://www.moneycontrol.com/europe/?url=https://www.moneycontrol.com/world/how-palantir-and-anth...
2•rainhacker•10m ago•1 comments

Show HN: OSle now has a C API and still fits in 510 bytes

https://github.com/shikaan/osle/releases/tag/16800a5
1•shikaan•10m ago•0 comments

'Mainly, you fast fooded': Monzo UK bank under fire over 'shaming' year reviews

https://www.theguardian.com/money/2026/mar/07/monzo-customer-language-year-in-monzo-review
2•lonelyasacloud•12m ago•1 comments

Tell HN: If your idea is worth stealing, AI makes it easy. NDA or not

3•NatalijaAAD•13m ago•1 comments

Show HN: I gave Claude a Stripe account and said make $1M. Day 1

https://dashboard-mocha-delta-98.vercel.app
1•Auto_Claude•14m ago•0 comments

Show HN: Torrent Preview – macOS QuickLook extension for .torrent files

https://github.com/sveinbjornpalsson/TorrentPreview
1•sveinbjornp•14m ago•0 comments

Claude Code deletes developers' production setup, including database

https://www.tomshardware.com/tech-industry/artificial-intelligence/claude-code-deletes-developers...
3•vanburen•15m ago•0 comments

Paperclip – Open-source orchestration for zero-human companies

https://paperclip.ing/
3•microsoftedging•16m ago•0 comments

Show HN: Turn ordinary selfies into high-quality dating photos

https://www.aidatepics.com/
1•mohitvaswani•16m ago•0 comments

Dropcomments for your static site generator blog

https://dropcomments.net/
2•shozzipen•19m ago•0 comments

No you can't build it in a day

https://blog.alaindichiappari.dev/p/no-you-cant-build-it-in-a-day
1•alainrk•20m ago•0 comments

Show HN: Smelt – Extract structured data from PDFs and HTML using LLM

https://github.com/akdavidsson/smelt
2•smeltcli•21m ago•0 comments

Claude built a system in 3 rounds, latent bugs from round 1 exploded in round 3

https://github.com/mycelium-clj/mycelium/blob/main/benchmarks/SCALING.md
3•yogthos•25m ago•0 comments

The Case of the Disappearing Secretary

https://rowlandmanthorpe.substack.com/p/the-case-of-the-disappearing-secretary
2•rwmj•25m ago•0 comments

Show HN: Recruiter Analytics for Developer Portfolios

https://portlumeai.com/blog/recruiter-analytics-developer-portfolio-tracking
4•portlumeai•25m ago•0 comments

The yoghurt delivery women combatting loneliness in Japan

https://www.bbc.com/travel/article/20260302-the-yoghurt-delivery-women-combatting-loneliness-in-j...
3•ranit•26m ago•0 comments

Show HN: I built an API that adds auth, OAuth and billing to apps

https://www.syntro.fun/
2•vivuusik•26m ago•0 comments

Impending kOS (2014)

https://vector.org.uk/impending-kos/
2•tosh•29m ago•0 comments

Global Warming Has Accelerated Significantly

https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2025GL118804
2•Noaidi•29m ago•1 comments

Show HN: Implica – The news app that connects the dots for you

https://implica.app
2•balazsvincze_•32m ago•0 comments

Iran's Guards challenges Trump to have US Navy escort oil tankers

https://www.reuters.com/world/middle-east/irans-guards-challenges-trump-have-us-navy-escort-oil-t...
3•geox•33m ago•0 comments