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.

BMW to Volkswagen: How deep is Germany's auto industry cull?

https://www.dw.com/en/germany-car-industry-job-cuts-bmw-volkswagen-mercedes-audi-porsche-china-ev...
2•root-parent•54s ago•0 comments

Parasite Load

https://www.benlandautaylor.com/p/parasite-load
1•barry-cotter•1m ago•0 comments

Show HN: Kuramoto.dev <> interactive mathematics for chaos and synchronization

https://kuramoto.dev
1•HoneySpoons•1m ago•0 comments

Code of Practice on Transparency of AI-Generated Content

https://digital-strategy.ec.europa.eu/en/policies/code-practice-ai-generated-content
1•Bluestein•1m ago•0 comments

Huawei unveiled supernode clusters, open-sourced its CANN compute architecture

https://www.huawei.com/en/news/2026/3/mwc-superpod-computing
1•yogthos•1m ago•0 comments

Show HN: Hacker News, without the AI stories

https://hcker.news/?view=frontpage&ai=exclude
1•postalcoder•2m ago•0 comments

SpaceX's post-IPO plunge sets tense backdrop for first earnings report

https://www.cnbc.com/2026/08/03/spacexs-post-ipo-plunge-sets-tense-backdrop-for-first-earnings-re...
2•root-parent•2m ago•0 comments

Toxoplasmosis – A Global Threat (2014)

https://pmc.ncbi.nlm.nih.gov/articles/PMC3963851/
1•thinkingemote•5m ago•0 comments

The Mysterious Case of the JetBlue Flight That Went into Free Fall

https://nymag.com/intelligencer/article/mysterious-case-jetblue-1230-airbus-free-fall.html
2•Stratoscope•5m ago•1 comments

Qencode Launches AI Upscaling to Bring Legacy Video Catalogs into the 4K Era

https://news.qencode.com/posts/qencode-launches-ai-upscaling-to-bring-legacy-video-catalogs-into-...
1•QencodeCorp•7m ago•0 comments

The Great Divergence in Software Engineering

https://stack72.dev/the-great-divergence-in-software-engineering/
2•speckx•7m ago•0 comments

Gen Z Can't Afford a First Date

https://www.nytimes.com/2026/08/03/nyregion/gen-z-dating-too-expensive-cost.html
1•root-parent•8m ago•0 comments

Petri Nets as a Music Sequencer

https://blog.stackdump.com/posts/petri-net-sequencer
3•m_kos•8m ago•0 comments

Building Scalable GitHub Runner Infrastructure on Sandboxes

https://www.tensorlake.ai/blog/build-your-own-ci-infrastructure
1•diptanu•10m ago•0 comments

What is "Switch Bounce" & how to implement debounce

https://www.picotech.com/library/articles/blog/what-is-switch-bounce-how-to-implement-debounce
2•peter_d_sherman•10m ago•1 comments

Elastic Curves via Geometric Mechanics

https://arxiv.org/abs/2607.29654
2•E-Reverance•11m ago•0 comments

Human Evidence of Novel Writing as a Service

https://vellumproof.com
2•nate•11m ago•0 comments

I shrank my chess engine 70x by trying to compress it

https://latentheat.dev/blog/chess-small-models-search-deeper
2•oli266•11m ago•0 comments

Readable Code Is Unreadable: Incunabulum, an Implementation of J

https://blog.wilsonb.com/posts/2025-06-06-readable-code-is-unreadable.html
3•lioeters•12m ago•0 comments

An MCP server that lets coding agents query your NestJS API's OpenAPI contract

https://www.nestdocfy.com/
3•MarvinRochaDev•12m ago•0 comments

Show HN: Vinyl – Animated vinyl record wallpaper for Mac, synced to Spotify

https://www.vinylformac.com/
4•sxhivs•12m ago•0 comments

Shell sells Dutch solar farms in retreat from renewables

https://www.dutchnews.nl/2026/08/shell-sells-dutch-solar-farms-in-retreat-from-renewables/
3•TechTechTech•15m ago•0 comments

Leaked Flock Guide Shows How It Teaches Cops to Promote Its Tech

https://www.404media.co/own-the-narrative-leaked-flock-guide-shows-how-it-teaches-cops-to-promote...
3•cdrnsf•15m ago•0 comments

My "4-bit" quant was 6.2 bits per weight

https://koleslaw.ai/blog/the-quantization-that-didnt-fit
3•murphman•20m ago•0 comments

Canva is 1% of the way there

https://mili.dev/writing/canva-is-one-percent-of-the-way-there/
3•jmilinovich•20m ago•0 comments

Anthropic CEO Amodei is concerned new talent join for money rather than mission

https://twitter.com/etnshow/status/2084221242614202704
5•theanonymousone•21m ago•0 comments

Monkey interact with AI touch screens in Costa Rica forest

https://timesofindia.indiatimes.com/science/costa-rica-scientists-placed-an-ai-touchscreen-in-a-w...
3•jmartrican•22m ago•0 comments

Show HN: 11-Node Agentic RAG with MCP and PII Shield Under 512MB RAM

https://agentic-rag-financial-parser.onrender.com/
3•ambujkt•23m ago•0 comments

The Billable Usage API: programmatic cost visibility for Cloudflare

https://blog.cloudflare.com/billable-usage-api/
4•ashleypeacock•24m ago•1 comments

Astrophyzix Digital Observatory Help Combat Fake Science and Promote Education

https://www.astrophyzix.com/p/astroping.html
3•SpacenewsUK•25m ago•0 comments