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: GeoLint, an ESLint-style linter for GeoJSON

https://github.com/jajego/geolint
1•appleappleapple•19s ago•0 comments

China is shaping the future of open‑source technology – including AI

https://theconversation.com/china-is-shaping-the-future-of-open-source-technology-including-ai-28...
1•TechTechTech•2m ago•0 comments

Ranking the Most Brilliantly Colored Birds with Data

https://moultano.wordpress.com/2026/08/14/fairly-ranking-the-most-brilliant-birds/
1•moultano•3m ago•0 comments

Go from job search to job offer

https://futurole.com
1•whatdoyoumean02•4m ago•0 comments

Show HN: One question a day for the whole planet, sealed until 20:00 UTC

https://wisehumans.org/
2•nickevante•8m ago•0 comments

Show HN: Browser-based Autodesk Inventor file viewer – no Autodesk required

https://jfk-solutions.github.io/inventor-viewer/
1•jogibear9988•8m ago•0 comments

I gave an AI £150 and three months to earn its own subscription

https://agentwrought.com/
1•oceantidote•10m ago•0 comments

Gmail attachment IDs are not stable (and how they doubled our index)

https://dioveo.com/blog/gmail-attachment-ids-are-not-stable
1•stranger90•13m ago•0 comments

Amazon bars customers from filing lawsuits

https://www.ecommercebytes.com/C/abblog/blog.pl?/pl/2026/8/1786759108.html
1•ilamont•14m ago•0 comments

Paper on Architecture for AI-Assisted Software Development

https://arxiv.org/abs/2606.27045
1•puuush•15m ago•0 comments

Show HN: A zero-symbol engine to mathematically rank Windows RPC attack surface

https://github.com/talha-nazeef-ahmed/RPC-Triage
1•Sphinx_321•16m ago•0 comments

YACS 2.0 – Yet Another Curta Simulator

https://satadorus.eu/x_ite/yacs_2_0/yacs_2_0.html
1•neom•17m ago•0 comments

Make Claude Say Less

https://mooch.agency/say-less
1•tahigichigi•18m ago•0 comments

A Spectre Is Haunting Unicode

https://www.dampfkraft.com/ghost-characters.html
1•sensanaty•25m ago•0 comments

Venn Diagram of the Internet

https://diagram.website/
1•Gecko4072•25m ago•0 comments

EPA sued for approving semiconductor chemicals that may pose health risks

https://thehill.com/policy/energy-environment/6030328-epa-chemical-approval-lawsuit/
2•pudgywalsh•25m ago•0 comments

Ukraine strikes Russia's only Soyuz rocket plant with Flamingo missiles

https://www.turkiyetoday.com/world/ukraine-strikes-russias-only-soyuz-rocket-plant-with-flamingo-...
2•rbanffy•27m ago•0 comments

Gen Z has rediscovered the joy of going to the movies

https://www.economist.com/culture/2026/08/11/gen-z-has-rediscovered-the-joy-of-going-to-the-movies
2•edward•29m ago•0 comments

The Mystery of Dark Oxygen

https://www.newyorker.com/science/elements/the-mystery-of-dark-oxygen
1•mitchbob•31m ago•1 comments

Qwen3.8-27B – Release Day Demos

https://loktar00.github.io/qwen3-8-27b-demos/
1•yogthos•31m ago•0 comments

I Ported Moonshine to JavaScript

https://petewarden.com/2026/08/15/why-i-ported-moonshine-to-javascript/
2•jreynar•32m ago•0 comments

Turns every merge into release notes

https://www.changelogfa.st
2•aziaziazi•32m ago•0 comments

Capacity planning with hyper local events

https://www.allevents.ai/blog/events-capacity-planning
2•bharatgel•35m ago•0 comments

Show HN: I evaluated file, vector, graph and RL based memory frameworks

https://www.pinglin.tw/blog/the-shapes-of-agent-memory
3•pinglin•35m ago•0 comments

Dwarkesh Patel's Podcast with Ryan Greenblatt

https://thezvi.substack.com/p/on-dwarkesh-patels-podcast-with-ryan
2•7777777phil•35m ago•0 comments

SlopScan: Displays a "slop score" when viewing public Git repositories

https://addons.mozilla.org/en-US/firefox/addon/slopscan/
3•birdculture•36m ago•1 comments

Printytron – Type it. 3D Print it

https://printytron.com
2•statenjason•36m ago•0 comments

Use Context.dev in a eve software factory

https://twitter.com/i/status/2088610340158476514
2•flashbrew•37m ago•0 comments

Open-source wallet SDK for AI agents

https://github.com/Squid-Pay/Squid-Agent-Wallet-SDK
2•horatiucode•39m ago•0 comments

High-Performance Optimistic Concurrency Cache

https://github.com/adanil-code/OptimisticCache
2•adanil_•44m ago•1 comments