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.

Agentic test processes, LLM benchmarks, and other notes on agentic coding fr

https://danluu.com/ai-coding/#llm-variance
1•lifeisstillgood•42s ago•0 comments

Companies must address self-driving car interference with emergency vehicles

https://www.reuters.com/world/us/companies-must-address-self-driving-car-interference-with-emerge...
1•EA-3167•4m ago•0 comments

The Myth of the Solo Unicorn

https://stephenforte1.substack.com/p/the-myth-of-the-solo-unicorn
1•Darmani•4m ago•0 comments

Kk

2•jeie•5m ago•0 comments

Gene modification proposed to bring back near extinct American chestnut

https://www.usatoday.com
1•rmason•7m ago•2 comments

Multigres Supports Listen/Notify Across Pooled Connections

https://multigres.com/blog/listen-notify
2•eatonphil•10m ago•0 comments

NYT calls University of California 'test-blind' admissions a 'terrible' mistake

https://www.foxnews.com/media/new-york-times-calls-university-california-test-blind-admissions-po...
1•SilverElfin•12m ago•2 comments

China Is Abusing AI

https://www.theatlantic.com/international/2026/07/xi-jinping-censorship-ai-training/687696/
3•malshe•12m ago•2 comments

Pilot dies after jumping from plane leaving trainee to land it

https://www.dailyrecord.co.uk/news/uk-world-news/pilot-dies-after-jumping-plane-37398564
1•delichon•12m ago•0 comments

Show HN: Onboard-CLI, a LLM powered and AST-based tool to visualize codebase

https://github.com/animesh-94/Onboard-CLI
1•yr_animesh•13m ago•0 comments

Claude, Start My Database

https://docs.eventsourcingdb.io/blog/2026/07/09/claude-start-my-database/
1•goloroden•14m ago•0 comments

Zombie 'who owns Unix?' lawsuit comes alive again

https://www.theregister.com/os-platforms/2026/07/06/zombie-who-owns-unix-lawsuit-comes-alive-agai...
2•ecliptik•14m ago•0 comments

I Built My Son an Over-Engineered Robot [video]

https://www.youtube.com/watch?v=teeNgLN_ZRI
1•skibz•16m ago•0 comments

FAANG Simulator

https://www.abeyk.com/escape-the-rat-race/
3•nerdbiscuits•16m ago•1 comments

Decisions That Doubled Gusto Engineering's Throughput

https://gusto.com/company-news-ai-transformation-engineering
1•wildmaples•17m ago•0 comments

Maybe Anthropic and OpenAI Are Not the Future of Artificial Intelligence

https://www.nytimes.com/2026/07/08/opinion/openai-anthropic-palantir-alex-karp.html
3•littlexsparkee•17m ago•0 comments

Model and effort in Claude Code: knowing more vs. trying harder

https://xcancel.com/i/article/2074900291062034618
1•Topfi•18m ago•0 comments

Show HN: Skill-extractor turns coding agent transcripts into reusable skills

https://github.com/surenode-ai/skill-extractor
1•chand249•19m ago•0 comments

Show HN: Hnwork.app – UI for Who is hiring posts

https://hnwork.app/
5•scottilee•22m ago•0 comments

What's the Point of Sex, Anyway?

https://www.newyorker.com/magazine/2026/06/29/on-the-origin-of-sex-book-review-lixing-sun
2•Tomte•23m ago•0 comments

Interview #21 – Aiden (Rabbit R1)

https://app.notion.com/p/shawwn/Aiden-rabbit-R1-3970c85fad9380aa9b88d44e323f68b6?source=copy_link
1•sillysaurusx•23m ago•1 comments

Dibi8 – Open-source AI tools directory, 4 languages

https://dibi8.com
1•dibi8•24m ago•0 comments

Slughorn, Slug font/glyph render lib for OpenGL/OSG/Vulkan/GPU APIs (MIT lic))

https://alphapixeldev.com/slughorn-mit-licensed-gpu-agnostic-slug-font-glyph-rendering-library-fo...
2•XenonofArcticus•25m ago•1 comments

The Mystery of the Giant Clams of the Red Sea and Indian Ocean (2020)

https://dantheclamman.blog/2020/07/04/the-mystery-of-the-giant-clams-of-the-red-sea-and-indian-oc...
1•downbad_•26m ago•0 comments

PC Market Runs Low on RAM to Grow: Shipments Decline 4.9% as Memory Crunch Bites

https://www.idc.com/resource-center/press-releases/2q26-pc-top5/
1•speckx•28m ago•0 comments

Boston suing Meta and other social media companies over features for students

https://www.boston25news.com/news/local/boston-suing-meta-other-soical-media-companies-over-alleg...
1•1vuio0pswjnm7•29m ago•0 comments

Hyperia 0.16.1 now supports spoken summaries from any coding agent

https://github.com/DeepBlueDynamics/hyperia/releases
1•kordlessagain•29m ago•0 comments

Green River Residents Shut Down License Plate Reader Camera Project

https://cowboystatedaily.com/2026/07/08/green-river-people-shut-down-license-plate-reader-camera-...
4•Bender•30m ago•0 comments

UK guts planning red tape so datacenters can bypass the neighbors faster

https://www.theregister.com/on-prem/2026/07/07/uk-guts-planning-red-tape-so-datacenters-can-bypas...
3•Bender•31m ago•0 comments

React Native 0.86 – Edge-to-Edge and DevTools Improvements, no breaking changes

https://reactnative.dev/blog/2026/06/11/react-native-0.86
1•joeyespo•31m ago•0 comments