frontpage.
newsnewestaskshowjobs

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.

My package manager have broken and I need help

1•CoolyDucks•42s ago•0 comments

TypeScript 7 RC: the compiler rewritten in Go, around 10x faster

https://jatniel.dev/en/bytes/typescript-7-rc-the-compiler-rewritten-in-go-around-10x-faster
1•jtnl•4m ago•0 comments

A tiny (18KB for rpi zero)easy to read file listing tool. rust no_std and Libc

https://github.com/tracyspacy/fli
2•yulkor•7m ago•0 comments

Show HN: Didon – AI workday reports for productivity analysis

https://www.didon.app/
1•babakzy•10m ago•0 comments

Dialog Society: Ezra Klein Comments

https://twitter.com/ezraklein/status/2068479476309151771
1•u1hcw9nx•12m ago•1 comments

Highly sensitive radio telescope array to be built in Nevada desert

https://www.nbcnews.com/science/space/radio-telescope-array-nevada-desert-rcna350710
1•jonbaer•14m ago•0 comments

Agile Is a Scourge on the Planet

https://unacceptable.nl/posts/on-agile/
1•zwckl•14m ago•0 comments

We Do Not Build for Humans

https://www.agentmail.to/blog/we-do-not-build-for-humans
2•kiyanwang•16m ago•0 comments

KitaabAI AI book and thesis writer with native Urdu support

https://kitaabai.com
1•darweshpk•17m ago•0 comments

Show HN: ReplyVoice <> global floating button for Android voice dictation

https://replyvoice.com
1•kedimuzafer•21m ago•0 comments

Brands using AI-generated influencers to promote products on social media

https://www.theguardian.com/technology/2026/jun/21/brands-using-ai-generated-influencers-to-promo...
2•pseudolus•25m ago•0 comments

Use Faker to improve the quality of your tests

https://howtotestfrontend.com/resources/why-you-should-use-faker
1•howToTestFE•31m ago•0 comments

The Grammar of Coding Agents

https://grammar-of-coding-agents.pages.dev
2•allenb•40m ago•1 comments

The Web Is for People

https://www.torgo.com/blog/2026/06/the-web-is-for-people.html
2•robin_reala•43m ago•0 comments

Dr. Erna Shneider Hoover Revolutionized Telecommunications [pdf]

https://ulopenaccess.com/papers/ULAHU_V03I02/ULAHU20260302_004.pdf
1•Tomte•44m ago•0 comments

China unveils a portable anti-drone laser that can down drones from 1,600ft away

https://www.tomshardware.com/tech-industry/china-shows-off-a-backpack-sized-anti-drone-laser-that...
2•giuliomagnifico•46m ago•0 comments

Kalman Filter

https://en.wikipedia.org/wiki/Kalman_filter
2•1e1a•47m ago•0 comments

MCP server that lets Claude click menus on your Mac and fix its own mistakes

https://github.com/m0rvayne/mcp-osascript
1•m0rvayne•49m ago•0 comments

Softmax-free ~354M: tile-skip kernels for long-context VRAM savings (sparse)

https://huggingface.co/Tripstoph/RRT-Foundation
1•Tripstoph•50m ago•0 comments

The unreasonable effectiveness of LLMs for auditing Rust code

https://shnatsel.medium.com/the-unreasonable-effectiveness-of-llms-for-auditing-rust-code-d4df8bf...
1•heinrich5991•50m ago•0 comments

Bell.com

https://bell.com
1•tentacleuno•59m ago•0 comments

CTOs Agree: Cognitive Debt Is the New Technical Debt

https://shiftmag.dev/ctos-agree-cognitive-debt-is-the-new-technical-debt-10229/
12•sxx0•1h ago•2 comments

Sword Swallowing and Its Side Effects

https://pmc.ncbi.nlm.nih.gov/articles/PMC1761150/
2•nephihaha•1h ago•0 comments

What does it mean for AI to be democratic?

https://blog.andymasley.com/p/what-does-it-mean-for-ai-to-be-democratic
1•jger15•1h ago•0 comments

Hidden Tunnels Dating Back to Henry VIII's Reign Discovered at Boarding School

https://www.smithsonianmag.com/smart-news/hidden-tunnels-dating-back-to-henry-viiis-reign-were-di...
1•bookofjoe•1h ago•0 comments

POSBox – Free Open Source Point of Sale System

https://github.com/train2128/POSBox---Point-of-Sale-System
1•train212•1h ago•0 comments

NSA director: 'Mythos "broke into almost all of our classified systems in hours"

https://www.economist.com/briefing/2026/06/14/donald-trumps-blocking-of-anthropic-is-capricious-a...
15•ricksunny•1h ago•13 comments

Building a Swarm of Telescopes to Find Life

https://www.universetoday.com/articles/astronomers-want-to-build-a-swarm-of-telescopes-to-find-life
1•tcp_handshaker•1h ago•0 comments

What the Wounds Are Telling Us (2025)

https://www.volkskrant.nl/kijkverder/v/2025/gunshot-palestine-children-israel-war~v1819649/
1•tcp_handshaker•1h ago•0 comments

Geo-engineering to protect against solar storms

https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2025SW004846
2•dylancollins•1h ago•1 comments