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.

Content-defined chunking in Go: 3.7 GB/s and a third less memory

https://www.plakar.io/posts/2026-06-14/go-cdc-chunkers-v1.1.0-faster-leaner-and-provably-correct/
1•vcoisne•37s ago•0 comments

Too Many Islands, Too Few Bridges: Notes from the Event Modeling Conference 2026

https://docs.eventsourcingdb.io/blog/2026/06/29/too-many-islands-too-few-bridges-notes-from-the-e...
1•goloroden•55s ago•0 comments

Show HN: Selixes - Self-hosted LLM failover gateway, budget caps and PII

1•selixes•2m ago•0 comments

Making POSIX filesystems replicated and highly available

https://www.zerofs.net/blog/highly-available-posix-on-s3
1•Eikon•3m ago•0 comments

Self-Destructing Graphics Cards

https://www.tomshardware.com/pc-components/gpus/melting-power-connectors-and-how-to-safeguard-aga...
1•TEHERET•6m ago•0 comments

Using Home Assistant in a botanical garden

https://vooijs.eu/posts/why-is-there-smoke-from-the-boiler-room/
1•wildekek•7m ago•0 comments

Ha-Joon Chang on the Future of India's Industrialization

https://frontline.thehindu.com/interviews/india-industrialisation-ha-joon-chang-interview/article...
1•pessimizer•11m ago•0 comments

Reading Is the Ultimate Cognitive Enhancer

https://neurosciencenews.com/literacy-reshapes-cognition-30955/
3•bookofjoe•12m ago•1 comments

Uyuni Joins OpenSUSE Project Ahead of Annual Conference

https://news.opensuse.org/2026/06/22/uyuni-joins-opensuse/
2•ferryth•12m ago•0 comments

The 'Two Ships' Theory of American History

https://www.theatlantic.com/magazine/2026/08/the-slave-ship-and-the-mayflower/687628/
1•paulpauper•13m ago•0 comments

New Manager Guide Series

https://yusufaytas.com/series/new-manager-guide
7•yusufaytas•15m ago•1 comments

Living Codegraph

https://rlmlocal.com
2•fortsignal•15m ago•0 comments

I Added TurboQuant to Pgvector

https://github.com/pgvector/pgvector/pull/989
1•mxfeinberg•16m ago•0 comments

Show HN: I built a "living proof-of-work" for builders (Show HN that persists)

https://kritive.com
1•sonOfHades•16m ago•0 comments

Give AI-built websites a real design with DESIGN.md

https://getdesign.md/
1•spking•16m ago•0 comments

Unfathomable bugs #10: The Broken Windows Build

https://algassert.com/post/2603
1•fanf2•17m ago•0 comments

Free and Private Bookmarking Tool / Browser Start Page

https://vectorization.eu/start-page/
1•alsusart•18m ago•1 comments

30-Year Sentence for Transporting Zines Is a Five-Alarm Fire for Free Speech

https://theintercept.com/2026/06/26/daniel-sanchez-estrada-zines-prairieland-free-speech/
1•xrd•20m ago•0 comments

New mathematical operator just dropped – reality's kernel just got an upgrade

https://zenodo.org/records/20976243
2•CarloLoopTheory•25m ago•1 comments

Code responsibly, don't drink and vibecode

https://usama.leaflet.pub/3mpdjez6cz22g
2•iarchetype•25m ago•0 comments

Show HN: Rendering Markdown with LaTeX in the Terminal

https://mil.ad/blog/2026/latex-in-markdown.html
2•playnext•33m ago•1 comments

Show HN: Looped Whisper (FOSS) – Voice transcription menubar app for macOS

https://github.com/loopedautomation/whisper
1•RatulMaharaj•34m ago•0 comments

Build System Improvements, Centralized Overview, etc.

https://gist.github.com/rcalixte/0afb119cbcc130c21063839f65b53ab7
2•rcalixte•39m ago•0 comments

How information theory saved my word game

https://motplot.app/helloworld
1•jamwise•39m ago•2 comments

Show HN: Adipoli: a hand-wired keyboard for opposable thumbs

https://codeberg.org/sudobangbang/adipoli
2•sudo_bangbang•47m ago•0 comments

Jimmy is a tool to convert your notes from different formats to Markdown

https://marph91.github.io/jimmy/
3•CTOSian•53m ago•0 comments

Microsoft Bought a Nuclear Plant

https://moai.studio/blog/posts/microsoft-bought-a-nuke-plant.html
2•ionwake•55m ago•2 comments

France Is Too Hot for Shutters and Ceiling Fans

https://www.theatlantic.com/ideas/2026/06/france-air-conditioning-failure/687723/
4•paulpauper•56m ago•1 comments

Higher Ed Is Sorry

https://www.theatlantic.com/ideas/2026/06/higher-education-universities-public-trust/687714/
2•paulpauper•56m ago•0 comments

Show HN: Drift, write LLM agents in English and transpile to async Python

https://github.com/rileyq7/drift
2•rileyq12•58m ago•0 comments