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.

Vibe Analysis

https://newsletter.dancohen.org/archive/vibe-analysis/
1•apollinaire•3m ago•0 comments

I built a tool to control coding agent on my Mac through my phone

https://www.tarsy.dev/
1•leddo•3m ago•0 comments

Miracle – A hackable window manager for Linux

https://github.com/miracle-wm-org/miracle-wm
1•matthewkosarek•4m ago•0 comments

Iran raises suspicion of 'uranium theft' plot after clashes with US forces

https://www.aa.com.tr/en/middle-east/iran-raises-suspicion-of-uranium-theft-plot-after-clashes-wi...
1•bhouston•5m ago•0 comments

SubCat: Stop babysitting your Pull Requests

https://subcat.todaywedream.com/
1•semisse•6m ago•1 comments

NASA's Artemis II Lunar Crater Recognition Flash Cards [pdf]

https://ares.jsc.nasa.gov/course-content/lunar_flashcards/CommonLTPTargets_Flashcards.pdf
1•reaperducer•6m ago•0 comments

Outlook for Public and Private Markets

https://www.apollo.com/wealth/the-daily-spark
1•toomuchtodo•6m ago•1 comments

Show HN: u there? Let Claude Code check if you're at your computer

https://github.com/odfalik/uthere
3•odedfalik•7m ago•0 comments

Stages of Denial

https://nsl.com/papers/denial.html
1•tosh•7m ago•0 comments

US Rescue op in Iran was likely attempt to extract HEU from Isfahan

https://twitter.com/TheNavroopSingh/status/2041081690769305729
1•bhouston•7m ago•1 comments

Processing 3GiB of JSON in the browser in 2 seconds via WebAssembly

https://refi64.dev/posts/discordsona.html
2•tosh•8m ago•0 comments

10 Claude Code Principles

https://jdforsythe.github.io/10-principles/
2•topherjaynes•8m ago•0 comments

Complete biosynthesis of psychedelic tryptamines from three kingdoms in plants

https://www.science.org/doi/10.1126/sciadv.aeb3034
1•Stratoscope•9m ago•0 comments

A Drop in for `anyhow:Context` that reports the failure location

https://gist.github.com/alpaylan/ddac04fe80219fb2f1ba5c46dd5647af
1•alpaylan•10m ago•0 comments

Ask HN: First Step to Utopia – how can we turn normies into AI power users?

1•dl92•10m ago•0 comments

Provider-Dependent Energy Effects of Prompt Compression

https://arxiv.org/abs/2603.23528
1•PaulHoule•14m ago•0 comments

Show HN: Yume, a Desktop GUI for Claude Code (Tauri/React)

https://aofp.github.io/yume/
1•yuruko•14m ago•0 comments

Join HN: The Kernel Dev Community in SF

https://www.thekernel.dev/
1•Exorust•15m ago•0 comments

Agent Reading Test

https://agentreadingtest.com
1•kaycebasques•16m ago•1 comments

BatteryNotifier – Cross-platform app with smart notification escalation

https://github.com/sandip124/batterynotifier
1•sandip124•18m ago•0 comments

Absurd: Simplest durable execution workflow system

https://github.com/earendil-works/absurd
3•nkko•18m ago•0 comments

OpenRockets Foundation Released Magazine V2

https://mag.openrockets.com
2•openrockets•18m ago•0 comments

SOM: A minimal Smalltalk for teaching of and research on Virtual Machines

http://som-st.github.io/
1•tosh•19m ago•0 comments

The Big Bang: A.I. Has Created a Code Overload

https://www.nytimes.com/2026/04/06/technology/ai-code-overload.html
2•donohoe•19m ago•0 comments

Zooming UIs in 2026: Prezi, impress.js, and why I built something different

5•tinchox6•20m ago•0 comments

Why some cities are shutting down Flock cameras amid privacy concerns

https://www.theguardian.com/us-news/ng-interactive/2026/apr/06/flock-cameras-privacy-concerns
6•devonnull•22m ago•0 comments

Tell HN: Reddit Seems to Be Down

5•forlorn•23m ago•2 comments

The Edwardian builder who had changed how we keep time

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

Scientists identify 'neural fingerprint' of psychedelic drugs in the brain

https://www.theguardian.com/science/2026/apr/06/scientists-identify-neural-fingerprint-of-psyched...
2•tmnvix•24m ago•0 comments

Refactoring Untested Code

https://yusufaytas.com/refactoring-untested-code/
10•kakerane•24m ago•0 comments