frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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: AI System Design Primer

https://github.com/daneb/ai-system-design-primer/
1•danebalia•2m ago•1 comments

Resolving 3-SAT in Linear Time via Macro-Switch Implication Graphs

https://zenodo.org/records/23855969
1•RudraCS•7m ago•0 comments

Future of Software

https://blog.ianhsiao.me/future-of-software-ii
2•_mad_eye_•10m ago•0 comments

Httpd 2.4

https://downloads.apache.org/httpd/CHANGES_2.4
1•lsferreira42•17m ago•0 comments

My first open-source service reached its first 20 stars on GitHub

https://github.com/embedcatalog/embedcatalog
1•aanthonymax•17m ago•1 comments

The Little Book of Semaphores

https://greenteapress.com/wp/semaphores/
2•dboon•25m ago•0 comments

What Does Your Data Reveal About Sports Betting Apps? Help ProPublica Find Out

https://projects.propublica.org/sports-betting-uploader/
2•toomuchtodo•28m ago•0 comments

Midgarth Quest. Browser-Playable Mmorpg Written by AI

https://midgarth.quest/
1•anacrolix•37m ago•1 comments

Show HN: Wikihack – HackerTube, but for Wikipedia articles mentioned on HN

https://wikihack.netlify.app
2•aizk•37m ago•0 comments

Why Don't We Live in an Art Nouveau World?

https://asteriskmag.com/issues/16/why-don-t-we-life-in-an-art-nouveau-world
1•shcallaway•39m ago•0 comments

CEPO: General Framework for Improving Prompt Optimization in Multi-Agent Systems

https://arxiv.org/abs/2610.34722
2•matt_d•45m ago•0 comments

Chambers

https://chambers.gross.is
2•endtwist•45m ago•0 comments

Linux Plumbers Conference

https://lpc.events/
1•gregsadetsky•47m ago•0 comments

GPT-6.1 Terra vs. Claude Opus 5.5: Cheaper and faster in three tests at max

https://thenewstack.io/gpt-6-1-terra-vs-claude-opus-5-5/
1•runwithdata•49m ago•0 comments

Show HN: 13M opinions on 48k products extracted from Reddit and HN

https://www.trustmebro.reviews/r/hackernews
2•davidzweig•51m ago•0 comments

The $3.1T Commercial Real Estate Crisis [video]

https://www.youtube.com/watch?v=dWdhu3_OI2A
2•toomuchtodo•52m ago•1 comments

Asking my AI teacher how to spell seventeen

https://twitter.com/huskirl/status/2116941001335947635
4•xvxvx•53m ago•1 comments

A Brief History of Regulation and Deregulation (2018)

https://regulatorystudies.columbian.gwu.edu/brief-history-regulation-and-deregulation
1•peter_d_sherman•54m ago•0 comments

ASML's CEO is putting his paycheck on the line for employee morale

https://fortune.com/2026/10/31/asml-ceo-christophe-fouquet-executive-pay-employee-satisfaction/
2•osnium123•58m ago•1 comments

HTML Clocks

https://tudza.org/HTML_Clocks.html
1•MitPitt•58m ago•0 comments

Ask HN: Why is AWS such a pain for using Bedrock?

1•runwithdata•1h ago•0 comments

Ask HN: Has anyone vibe coded in Common Lisp? Is it even possible?

1•palad1n•1h ago•2 comments

Open Coaster: an open source web/mobile RollerCoaster Tycoon clone

https://github.com/tilework-tech/opencoaster
4•theahura•1h ago•1 comments

Nine people dead in Learjet crash in South Florida, officials say

https://www.msn.com/en-us/news/news/nine-people-dead-in-learjet-crash-in-south-florida-officials-...
4•measurablefunc•1h ago•0 comments

Tom7/noperts: Reproducible nopert proofs

https://github.com/tom7/noperts/
1•RebelPotato•1h ago•0 comments

Selected Ambient Works X Matrix

https://selectedambientworks.com/
1•bonefishgrill•1h ago•0 comments

Amdahl 470V

https://en.wikipedia.org/wiki/Amdahl_470V
2•kristianp•1h ago•0 comments

How the facial recognition blame game leaves shoppers stranded

https://www.techradar.com/vpn/vpn-privacy-security/shaking-from-head-to-toe-how-the-facial-recogn...
1•rawgabbit•1h ago•0 comments

Japan's Jimi 'Mundane' Halloween Costumes of 2026

https://spoon-tamago.com/japan-jimi-mundane-halloween-costumes-2026/
2•zdw•1h ago•0 comments

What happens when the AI money loop breaks?

https://fvdge.com/AI_Circularity_Stress_Lab.html
1•teja_nemana•1h ago•0 comments