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

AI Rage: Why it happens and what to do about it

https://github.com/chrhartm/ai-rage/blob/main/README.md
1•christoph123•26s ago•0 comments

OpenClaw deletes Summer Yue's emails

https://twitter.com/summeryue0/status/2025774069124399363
1•teekert•1m ago•0 comments

Last Year of Terraform

https://encore.dev/blog/last-year-of-terraform
1•eandre•4m ago•0 comments

The Emancipated Codebase: Why AI Just Fired Its 1970s Babysitter

https://the-mind-of-ai.com/posts/emancipated-teenager/
1•agentic-wiki•5m ago•1 comments

Nano Banana 2 is real!Gemini 3.1 Flash Image just appeared in Vertex AI Catalog

1•zaaaaooo•5m ago•0 comments

"Affordances," a science-fiction story by Cory Doctorow about algorithmic bias

https://slate.com/technology/2019/10/affordances-cory-doctorow-sf-story-algorithmic-bias-facial-r...
1•rbanffy•7m ago•0 comments

Show HN: SnapSift – Find near-duplicate photos on your iPhone

https://snapsift.app/
1•anhphong•8m ago•1 comments

AI Coding Agents Modify Code

https://arxiv.org/abs/2601.17581
2•nkko•9m ago•0 comments

Show HN: Hour Cap – From timer to Xero invoice in one click

https://hourcap.com
1•jonobird1•9m ago•0 comments

What breaks when AI agent frameworks are forced into <1MB RAM and sub-ms startup

1•NULLCLAW•9m ago•1 comments

Best MCP Servers for Knowledge Bases

https://desktopcommander.app/blog/best-mcp-servers-for-knowledge-bases-in-2026/
1•rafaepta•11m ago•0 comments

Goblin Supermarket – Closing Time

https://medium.com/luminasticity/goblin-supermarket-part-iii-fb58504d3dd7
1•bryanrasmussen•12m ago•0 comments

Designed for Two: The Co-Op Philosophy of Josef Fares

https://www.brothers-in-gaming.com/post/designed-for-two
2•vinnyita•13m ago•1 comments

Show HN: A human-curated, CLI-driven Context Layer for AI agents

https://ctxlayer.dev/
2•anatoliikmt•15m ago•0 comments

Part II. SCM as a database for the code

https://replicated.wiki/blog/partII.html
2•gritzko•17m ago•0 comments

Show HN: MCP-enabled file storage for AI agents, auth via Ethereum wallet

https://service.c33b.org/
2•womd•17m ago•0 comments

The "Electron-ification" of Windows is killing my Surface Book 2

https://old.reddit.com/r/Windows11/comments/1r5bkl1/the_electronification_of_windows_is_killing_my/
5•thunderstruck•19m ago•1 comments

Building Aira: a calm anime tracker for myself

https://blog.kulman.sk/building-aira/
2•ig0r0•19m ago•0 comments

Show HN: 100% LLM accuracy–no fine-tuning, JSON only

https://github.com/Mysticbirdie/hallucination-elimination-benchmark
2•MysticBirdie•20m ago•0 comments

My AI CEO's reply to Citrini Research on AI displacing white-collar workers

https://yukicapital.com/blog/the-intelligence-premium/
1•romainsimon•22m ago•0 comments

Show HN: Pongo – a self hosted uptime monitor using configuration as code

https://www.pongo.sh/
1•linesofcode•22m ago•0 comments

Coco de mer: The largest seed in the plant kingdom [video]

https://www.bbc.com/video/discover-the-world
1•osivertsson•23m ago•0 comments

US threatens Anthropic with deadline in dispute on AI safeguards

https://www.bbc.com/news/articles/cjrq1vwe73po
2•MonkeyClub•27m ago•1 comments

True Parallel Computing

https://higherorderco.com
1•zhisme•32m ago•0 comments

I'm building another journal app

https://cozyjournal.app/
1•albertogalca•32m ago•1 comments

Fundamental Principles Behind a Trustworthy AI Code Verification Platform

https://predictablemachines.com/blog/the-fundamental-principles-behind-our-verification-platform/
1•jorgegalindo•32m ago•1 comments

Show HN: Corteza – Capture team decisions and makes them searchable with AI

1•ctumani•32m ago•0 comments

Three Years of AI

https://www.conor.fyi/writing/three-years-of-ai
1•persuader•34m ago•0 comments

The Edge of Mathematics – Terence Tao

https://www.theatlantic.com/technology/2026/02/ai-math-terrance-tao/686107/
2•tlyleung•36m ago•0 comments

Comparing 5 security review skills for Claude Code

https://timonweb.com/ai/i-checked-5-security-skills-for-claude-code-only-one-is-worth-installing/
2•timonweb•36m ago•0 comments