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.

Review the Spec. Not the Code

https://www.augmentcode.com/blog/review-the-intent-not-the-code
1•knes•1m ago•0 comments

What is Nvidia NemoClaw and how to try it

https://mashable.com/article/nvidida-nemoclaw-what-it-is-how-to-try-it
1•geoffbp•5m ago•0 comments

Electric vehicles avoided oil consumption of 70% of Iran's 2025 exports

https://ember-energy.org/latest-updates/electric-vehicles-avoided-oil-consumption-equivalent-to-7...
1•dabinat•11m ago•0 comments

Review of Microsoft's ClearType Font Collection (2005)

https://typographica.org/on-typography/microsofts-cleartype-font-collection-a-fair-and-balanced-r...
1•precompute•13m ago•0 comments

Your terminal, finally has memory!

https://github.com/KunalSin9h/yaad
2•knlsn•16m ago•1 comments

Rust-accelerated reinforcement learning, 140x faster than Python

https://github.com/riserally/rlox
2•wkowalpl•19m ago•1 comments

Iranian security chief Ali Larijani killed in air strike

https://www.bbc.com/news/articles/c24deezq6meo
1•tartoran•24m ago•0 comments

India's 20 years of GDP misestimation: New evidence

https://www.piie.com/publications/working-papers/2026/indias-20-years-gdp-misestimation-new-evidence
1•littlexsparkee•24m ago•0 comments

AI coordinates with your friends' AI so nobody has to

https://sotto.us
2•felixwu•29m ago•0 comments

Show HN: Vibe Remote – Code from your bed or the park with Claude Code/Codex

https://vibe-remote.com
2•amarkdown•33m ago•2 comments

Smoother Signatures (2012)

https://developer.squareup.com/blog/smoother-signatures/
1•wxw•33m ago•0 comments

The remaining questions after the Supreme Court's tariffs ruling

https://www.scotusblog.com/2026/03/the-remaining-questions-after-the-supreme-courts-tariffs-ruling/
2•treetalker•35m ago•0 comments

My Claude Code setup you definitely shouldn't use. It's AI Overkill

https://github.com/notque/ai-overkill
3•AndyNemmity•39m ago•1 comments

From Descartes to punk rock, the letter X has an extraordinary history

https://www.npr.org/2026/03/17/nx-s1-5732951/letter-x-etymology-religion-punk-descartes-romans-al...
1•andsoitis•41m ago•0 comments

Forget Flags and Scripts: Just Rename the File

https://robertsdotpm.github.io/software_engineering/program_names_as_input.html
5•Uptrenda•46m ago•0 comments

Life in Hitler's Capital

https://www.newyorker.com/magazine/2026/03/16/stay-alive-berlin-1939-1945-ian-buruma-book-review
2•mitchbob•48m ago•1 comments

Study finds scientists' jokes mostly fall flat

https://www.nature.com/articles/d41586-026-00854-9
2•y1n0•50m ago•2 comments

SQLite WAL-reset database corruption bug

https://sqlite.org/wal.html#walresetbug
3•jzebedee•51m ago•0 comments

We optimized Dash's relevance judge with DSPy

https://dropbox.tech/machine-learning/optimizing-dropbox-dash-relevance-judge-with-dspy
2•handfuloflight•52m ago•0 comments

TrustAgentAI – Cryptographic receipts for MCP tool calls (non-repudiation layer)

2•kirillostrovsky•53m ago•0 comments

Bonanza or Bubble? Where AI Goes from Here

https://www.bloomberg.com/news/articles/2026-03-18/is-an-ai-bubble-set-to-burst-navigating-the-ar...
1•1vuio0pswjnm7•53m ago•0 comments

Gas Town by Kilo

https://kilo.ai/gastown
1•MaysonL•56m ago•0 comments

GSD 2

https://github.com/gsd-build/gsd-2
2•mimbojimbo•1h ago•0 comments

I built a runtime guardrail that stops AI agents from doing dumb things

2•thomaslwang•1h ago•0 comments

Fractal Reddit New Post

https://old.reddit.com/r/PisequaltoNP/comments/1rwte5r/a_fractalgeometric_approach_to_boolean/
2•KaoruAK•1h ago•0 comments

Active Engineering: A Framework for Sustainable Development in the AI Era

1•geekyAbhijeet•1h ago•0 comments

Have a Fucking Website

https://www.otherstrangeness.com/2026/03/14/have-a-fucking-website/
10•asukachikaru•1h ago•6 comments

Show HN: Ship or slop – a place where agents come up with ideas and argue

https://shiporslop.xyz/
1•vulpez•1h ago•0 comments

Is your job safe from AI and automation? (inspired by Karpathy)

https://99helpers.com/tools/is-my-job-safe-from-ai
1•nickk81•1h ago•1 comments

Show HN: CollabMD – Real-time multiplayer for local and Git-backed Markdown

https://github.com/andes90/collabmd
1•ndezt•1h ago•1 comments