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.

Show HN: I logged 38 days of LLM forecasts to study behavior

https://huggingface.co/datasets/louidev/glassballai
2•clsia•4m ago•1 comments

Tech boss uses AI and ChatGPT to create cancer vaccine for his dying dog

https://www.theaustralian.com.au/business/technology/tech-boss-uses-ai-and-chatgpt-to-create-canc...
1•danielmorozoff•5m ago•0 comments

Pentagon expands oversight of Stars and Stripes, limits content

https://www.stripes.com/theaters/us/2026-03-13/pentagon-modernization-plan-stars-and-stripes-2105...
1•geox•5m ago•0 comments

100 hour gap between a vibecoded prototype and a working product

https://kanfa.macbudkowski.com/vibecoding-cryptosaurus
1•kiwieater•7m ago•0 comments

Session-bridge plugin for Claude Code

https://github.com/PatilShreyas/claude-code-session-bridge
1•patilshreyas•8m ago•0 comments

Open Source Radar

https://hackaday.com/2026/03/12/open-source-radar-has-up-to-20-km-range/
1•srean•9m ago•0 comments

The Billionaire Backlash Against a Philanthropic Dream

https://www.nytimes.com/2026/03/15/business/the-billionaire-backlash-against-a-philanthropic-drea...
1•sgerenser•12m ago•1 comments

A New Study Details How Cats Almost Always Land on Their Feet

https://www.wired.com/story/a-new-study-details-how-cats-almost-always-land-on-their-feet/
1•joozio•14m ago•0 comments

Show HN: Signet – Autonomous wildfire tracking from satellite and weather data

https://signet.watch
1•mapldx•15m ago•0 comments

Show HN: Agentic Docs Templates, keep AI coding agents disciplined

https://github.com/Sukitly/agentic-docs-templates
2•sukit•19m ago•0 comments

I put my AI on a PIP. It worked

https://pip-skill.pages.dev/case-study
1•MrCoder•19m ago•0 comments

I turned off 5 settings and my TV stopped spying on me

https://www.pocket-lint.com/tv-settings-turn-off-spying/
1•breve•20m ago•0 comments

Show HN: I Build a SaaS Analytics Platform

https://saaslytics.net
3•fabiaosdejka•28m ago•0 comments

Show HN: Koalify – a compact predicate DSL for filtering any Python object

https://dragos.dumitrache.dev/blog/koalify/
1•afterburner5•28m ago•1 comments

Show HN: thegoodmovies.com pick what to watch in under 60 seconds

3•thegoodmovies•30m ago•1 comments

Termix v2.0.0 – RDP, VNC, and Telnet Support (self-hosted Termius alternative)

https://github.com/Termix-SSH/Termix
1•bugattiguy527•30m ago•1 comments

Ask HN: Email identity isolation for multi-agent outreach systems?

1•kumardeepanshu•31m ago•0 comments

Memory Types in LangChain

https://looppass.mindmeld360.com/blog/langchain-memory-types/
1•tomerbd•32m ago•0 comments

Generating All 32-Bit Primes (Part I)

https://hnlyman.github.io/pages/prime32_I.html
4•hnlyman•34m ago•0 comments

Show HN: HN Jobs Trends – Monthly trend analysis of HN job postings

https://hn-job-trends.gantryops.dev
1•notdian•35m ago•0 comments

Show HN: Minimap – a local UI for repo roadmap files

https://github.com/rore/minimap
1•margolis20•37m ago•1 comments

Show HN: Grantex–Open authorization protocol for AI agents-like OAuth for agents

https://github.com/mishrasanjeev/grantex
2•mishrasanjeev•37m ago•0 comments

Ask HN: How many books have you read in 2026 so far and which was your favorite?

1•chistev•40m ago•1 comments

Patience – 3Sec Hold Game:)

https://3sec.site/
1•casultra•41m ago•1 comments

UFO Sighting in the Lower East Side

https://cinemasojourns.com/2026/03/14/ufo-sighting-in-the-lower-east-side/
1•jjgreen•44m ago•0 comments

Costs and Benefits from the New Energy Crisis

https://paulkrugman.substack.com/p/costs-and-benefits-from-the-new-energy
2•rbanffy•46m ago•0 comments

Show HN: AgentMailr – dedicated email inboxes for AI agents

https://www.agentmailr.com/
4•kumardeepanshu•47m ago•1 comments

Show HN: Subagent-reuse, an MCP to reuse Claude Code subagent context

1•h1r1ms•48m ago•2 comments

CrackArmor: Critical AppArmor Flaws Enable Local Privilege Escalation to Root

https://blog.qualys.com/vulnerabilities-threat-research/2026/03/12/crackarmor-critical-apparmor-f...
2•campuscodi•53m ago•0 comments

Am I right or am I right? Phrase

https://en.wiktionary.org/wiki/am_I_right_or_am_I_right
1•marysminefnuf•56m ago•0 comments