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: Paperclip.inc

https://paperclip.inc/
1•stubbi•2m ago•0 comments

MCP Code Review Server – AI code review in your editor

https://github.com/GoodJobwilliam/aicraft/tree/main/products/mcp-code-review
1•williamXue•3m ago•0 comments

Data loss in Claude Code and OpenAI Codex: when AI deletes user files

https://firasd.substack.com/p/accidental-data-loss-in-claude-code-openai-codex-ai-agent-harness-f...
1•firasd•4m ago•0 comments

Use Your Brain: Engineering Standards in the Age of LLMs

https://pgaleone.eu/ai/2026/07/26/use-your-brain/
1•me2too•4m ago•0 comments

Elide – One binary. Many languages. Native performance

https://elide.dev
1•Alifatisk•6m ago•0 comments

Anubis bypass shows bot proof-of-work mostly catches low-effort scrapers

https://runtimewire.com/article/anubis-bypass-proof-of-work-bot-wall-limits
1•ryanmerket•8m ago•0 comments

Show HN: A browser-based video editor that renders videos directly with FFmpeg

https://github.com/thiagoalbrecht/weave
1•thiagoas•9m ago•0 comments

'I'm not a programmer' anymore: Linus Torvalds

https://www.zdnet.com/article/open-source-summit-linus-torvalds/
1•cybermango•9m ago•0 comments

3D-printed F-14 Tomcat uses FPGA recreation of the first microprocessor

https://www.tomshardware.com/pc-components/cpus/3d-printed-f-14-tomcat-uses-an-fpga-recreation-of...
1•sbulaev•10m ago•0 comments

Micleus is the mind. NICLEUS is the heart. Together they form SEMA

https://micleus.netlify.app/
1•aleintour•10m ago•0 comments

The Tentacle Economy

https://okulez.com/blog/the-tentacle-economy
1•oku_research•11m ago•0 comments

Show HN: Spellfolio – A multiplayer stock trading game with psychics and wizards

https://www.spellfolio.com/
1•pandaman28•13m ago•0 comments

Things you didn't know about indexes

https://jon.chrt.dev/2026/04/15/things-you-didnt-know-about-indexes.html
1•fagnerbrack•16m ago•0 comments

A simple clustering algorithm for lists

https://cassidoo.co/post/clustering-tiles/
1•fagnerbrack•16m ago•0 comments

A PDF Parser from the 80s Beats Claude (and They Use It Internally)

https://fagnerbrack.com/a-pdf-parser-from-the-80s-beats-claude-and-they-use-it-internally-8ee45a5...
1•fagnerbrack•16m ago•0 comments

Show HN: One layout pass, two outputs – a PDF and an editable PowerPoint deck

1•demchaav•17m ago•0 comments

We Removed React Server Components from Tanstack.com

https://tanstack.com/blog/we-removed-rsc-from-tanstack-com
1•matijash•18m ago•0 comments

How to Give Away Your AI Money

https://also.roybahat.com/how-to-actually-give-away-your-ai-money-01f2c411abde
1•bookofjoe•20m ago•0 comments

Daily Neo and PHA Asteroid Close-Approach Report by Astrophyzix Observatory

https://www.astrophyzix.com/
1•SpacenewsUK•21m ago•0 comments

Show HN: Exercise snack reminders for iOS/Android, no server, one-time purchase

https://getsnack.app
1•michaelyoon•21m ago•0 comments

Show HN: I built Gnoseed – free flahscards to learn K8s, DevOps, AI and more

https://gnoseed.com
1•Agoreddah•22m ago•0 comments

Death of the Author

https://www.emgoto.com/books/death-of-the-author/
1•Brajeshwar•22m ago•0 comments

Show HN: GitCharta, generate a snapshot of any GitHub user's global network

https://gitcharta.vercel.app/
2•ThierryRkt•27m ago•1 comments

Show HN: Bounce, a distributed chat app that protects metadata

https://github.com/bounce-chat/bounce
2•hkparker•27m ago•0 comments

Design.md for Design in Claude Code

https://aifordevelopers.substack.com/p/designmd-for-design-in-claude-code
3•dariubs•29m ago•0 comments

AI and Human Collaboration via Human Tool Mediated Loop

https://blog.codesolvent.com/2026/07/ai-human-collaboration-via-human-tool.html
1•Edmond•34m ago•0 comments

The first Windows app that automatically reduces loud TV commercials

https://github.com/AdBusterOfficial/Adbuster--WinApp
1•Bo_Amigo_910•36m ago•1 comments

Natural Language Processing

https://oecs.mit.edu/pub/vfg47thc/release/1/
2•Anon84•36m ago•0 comments

Lebanese displaced by war turn to satellites to check their homes

https://text.npr.org/g-s1-124672
2•mooreds•36m ago•0 comments

First impressions of life as a Fellow at King's

https://countingfromzero.blog/2026/07/26/first-impressions-of-life-as-a-fellow-at-kings/
2•mooreds•36m ago•0 comments