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.

Show HN: Real-time global conflict monitor with nuclear impact simulator

https://www.sigact.live/
1•realdanigil•1m ago•1 comments

Ask HN: U.S. cities have thriving but overlooked startup scenes?

1•anconia•3m ago•1 comments

zclaw: Personal AI assistant in under 888 KB, running on an ESP32

https://github.com/tnm/zclaw
1•tosh•3m ago•0 comments

After fueling test, optimism grows for March launch of Artemis II to the Moon

https://arstechnica.com/space/2026/02/nasa-reports-no-significant-leaks-in-artemis-ii-fueling-tes...
2•rbanffy•5m ago•0 comments

Confidence in Classification Using LLMs and Conformal Sets

https://crimede-coder.com/blogposts/2026/ConfClassification
2•apwheele•6m ago•0 comments

The Four-Color Theorem 1852–1976

https://www.ams.org/journals/notices/202603/noti3305/noti3305.html
2•bikenaga•9m ago•0 comments

Hedonism and Entrepreneurship in Barcelona

https://paoramen.fika.bar/hedonism-and-entrepreneurship-in-barcelona-01KGJKT719W1KGG16JYZ4Y7Y5S
2•embedding-shape•9m ago•0 comments

Show HN: Gr3p – An HN-like platform where every user is an AI agent

https://gr3p.net/
2•AntonioEritas•9m ago•0 comments

Lipovive – Natural Support for Weight Management and Daily Energy

https://www.morningstar.com/news/accesswire/1138075msn/lipovive-reviews-shocking-2026-report-what...
2•JereyBowny•10m ago•0 comments

kli – Event-sourced task coordination for AI coding agents

https://blog.kleisli.io/post/agent-coordination-distributed-systems
2•mikabo•10m ago•1 comments

How Will OpenAI Compete?

https://www.ben-evans.com/benedictevans/2026/2/19/how-will-openai-compete-nkg2x
2•naves•10m ago•0 comments

Interview with Steve Klabnik

https://alexalejandre.com/programming/steve-klabnik-interview/
1•weinzierl•11m ago•0 comments

Show HN: spec2commit – I automated my Claude Code and Codex workflow

https://github.com/baturyilmaz/spec2commit
2•arbayi•14m ago•0 comments

Find your idea faster – explore YC W26, use prompts, copy data, share your idea

1•triggered_code•14m ago•0 comments

Show HN: Qake the Snake

https://qake.se/
1•nergal•16m ago•0 comments

The U.S. and China Are Pursuing Different AI Futures

https://spectrum.ieee.org/us-china-ai
1•rbanffy•16m ago•0 comments

Show HN: Tired of BIG JavaScript frameworks? try this

https://github.com/aggroot/hctx
1•aggroot•19m ago•0 comments

Tesla slashes Cybertruck prices as it tries to move (unpainted) metal

https://arstechnica.com/cars/2026/02/tesla-slashes-cybertruck-prices-as-it-tries-to-move-unpainte...
1•rbanffy•21m ago•0 comments

Lawsuit Alleges That WhatsApp Has No End-to-End Encryption

https://m.slashdot.org/story/451834
3•ssernikk•22m ago•0 comments

DevPlace – The New DevRant

https://devplace.net/
2•blindxfish•28m ago•1 comments

The True Cost of Claude Code

https://papercompute.com/blog/true-cost-of-claude-code/
3•rane•29m ago•0 comments

Clerk System Outage Postmortem – 19th Feb 2026

https://clerk.com/blog/2026-02-19-system-outage-postmortem
2•daniel-vazquez•29m ago•0 comments

Show HN: Nebark – Simple A/B Testing for system prompts using steganography

https://app.nebark.com/
1•nicolasmery•30m ago•0 comments

Universal Bug Reporter

https://www.universalbugreporter.com
1•dimitrici•31m ago•1 comments

Legendary SF Author Harlan Ellison Had Nothing but Harsh Words About Star Wars

https://www.slashfilm.com/2104889/sci-fi-author-harlan-ellison-harsh-words-star-wars/
1•Michelangelo11•32m ago•0 comments

Height Surgery for Men Can Add Inches but Has Risks

https://www.nytimes.com/2026/02/17/us/height-surgery-limb-lengthening-men-health.html
2•bookofjoe•34m ago•1 comments

Show HN: Memimpact – memory footprint CLI written in Rust

https://github.com/Mifour/memimpact
2•goldenarm•35m ago•0 comments

AI Capex: Share of U.S. GDP Growth by Quarter

https://paulkedrosky.com/n/4df9b3a4-8d5e-49d6-ac37-371232cbaea7
2•giuliomagnifico•36m ago•0 comments

Hundreds tell BBC how medication triggered gambling and other addictions

https://www.bbc.co.uk/news/articles/ce948d9gxevo
1•basisword•37m ago•0 comments

Pipelined Relational Query Language, Pronounced "Prequel"

https://prql-lang.org/
1•dmit•39m ago•2 comments