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.

Graphviz MCP Provider

https://graphviz-provider.rodmena.app/
1•rodmena•5m ago•0 comments

Show HN: DELN – An interactive atlas of AI training datasets

https://deln.ai/atlas
1•yshunnar•8m ago•0 comments

AI is changing biological and nuclear risks; governance must change accordingly

https://thebulletin.org/2026/06/ai-is-changing-biological-and-nuclear-risks-governance-must-chang...
1•pseudolus•10m ago•0 comments

The future of oil prices may depend on China

https://www.cnn.com/2026/06/22/energy/oil-price-china-dependence-iran-war-intl-hnk
1•toomuchtodo•13m ago•1 comments

California police are using drones to disarm people, make arrests

https://www.sfgate.com/bayarea/article/california-police-drone-responders-22315437.php
2•pseudolus•16m ago•0 comments

We built the fastest API for GLM-5.2 (280 TPS)

https://www.baseten.co/blog/how-we-built-the-worlds-fastest-api-for-glm-52/
3•philipkiely•18m ago•0 comments

Why Are LLMs Smart?

https://kevinkelly.substack.com/p/why-are-llms-smart
1•sgallant•20m ago•0 comments

Vietnam plans to discontinue IPv4 by 2030

https://vietnamnet.vn/en/vietnam-launches-ipv6-only-roadmap-to-power-next-digital-era-2527244.html
1•ivlad•22m ago•1 comments

A hedged NSA briefing line became "Mythos hacked the NSA"

https://old.reddit.com/r/AICognitiveWatch/
1•GlyphWeaver_a•22m ago•0 comments

How transparent is DiffusionGemma (and why it matters)

https://www.lesswrong.com/posts/zoYXpdaMgFT43Wc24/how-transparent-is-diffusiongemma-and-why-it-ma...
1•gmays•23m ago•0 comments

Show HN: The Only Prediction Market That Helps You Make Educated Bets

8•realJared54•31m ago•0 comments

Fable 5 wrote a Windows kernel in 38 minutes

https://tolmo.com/blog/when-the-model-writes-the-kernel/
2•ecares•35m ago•0 comments

Porting Moebius 0.2B image inpainting model to run in browser with Claude Code

https://simonwillison.net/2026/Jun/22/porting-moebius/
2•lumpa•36m ago•0 comments

Music retailer sues Fender over C&Ds in Stratocaster copyright dispute

https://www.guitarworld.com/gear/electric-guitars/thomann-is-suing-fender
3•ilamont•38m ago•0 comments

The Complete Kubrick

https://www.criterion.com/boxsets/9000-the-complete-kubrick
2•pentagrama•42m ago•1 comments

SpaceX turns to bond market to raise capital, reports $100.8B cash

https://www.reuters.com/business/media-telecom/spacex-launches-notes-offering-discloses-1008-bill...
5•voxadam•43m ago•2 comments

Heritage sites are at risk in a warming world – and how to save them

https://www.nature.com/articles/d41586-026-01956-0
1•gnabgib•45m ago•0 comments

Show HN: Nts – NTS Radio in your terminal

https://github.com/r-ohan/nts-radio-cli
2•rohan_•46m ago•0 comments

What it takes to get high Text-to-SQL accuracy in production

https://www.wisdom.ai/blog/how-wisdom-gets-text-to-sql-right
2•sharva•47m ago•0 comments

The Adobe Semaphore puzzle had been solved

https://www.nbcbayarea.com/news/local/san-jose-adobes-third-semaphore-puzzle-solved/4102715/
2•thatxliner•47m ago•0 comments

Fatal Tesla Crash into Texas Home Now Under Federal Safety Investigation

https://www.wsj.com/business/autos/fatal-tesla-crash-into-texas-home-now-under-federal-safety-inv...
3•JumpCrisscross•49m ago•0 comments

The annotated PyTorch training loop

https://idlemachines.co.uk/essays/pytorch-training-loop
4•smaddrellmander•51m ago•0 comments

Sakana Fugu multi-agent system delivered as one model

https://github.com/SakanaAI/fugu
2•882542F3884314B•51m ago•0 comments

At least 18 dead in France, including two children in hot car, as Europe bakes

https://www.reuters.com/business/environment/temperatures-exceed-40c-european-heatwave-three-die-...
2•rawgabbit•56m ago•0 comments

The Technium: Why Are LLMs Smart?

https://kk.org/thetechnium/why-are-llms-smart/
2•tortilla•58m ago•0 comments

PostmarketOS v26.06 (Alpen Avocado) released

https://postmarketos.org/blog/2026/06/21/v26.06-release/
2•birdculture•58m ago•0 comments

We are witnessing the slow death of the prestige career

https://www.theguardian.com/commentisfree/2026/jun/22/consulting-ai-prestige-careers
2•bookofjoe•1h ago•1 comments

"ChatGPT is I presume broken"

https://old.reddit.com/r/ChatGPT/comments/1ucs6ni/chatgpt_is_i_presume_broken/
3•beatthatflight•1h ago•2 comments

Humanoid Robot Begs for Electricity Money on China Streets with QR Code

https://yipzap.com/humanoid-robot-begs-for-electricity-money-on-china-streets-with-qr-code-the-vi...
4•noida•1h ago•0 comments

GLM-5.2 is above GPT-5.5 in new agentic knowledge work eval

https://artificialanalysis.ai/articles/aa-briefcase
4•declanjackson•1h ago•0 comments