frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo 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•8mo 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•8mo 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.

Prep for the SAT with practice tests in Gemini

https://blog.google/products-and-platforms/products/education/practice-sat-gemini/
1•jprezant•51s ago•0 comments

The Foundation Sprint: From the Creators of the Design Sprint

https://www.lennysnewsletter.com/p/introducing-the-foundation-sprint
1•mooreds•5m ago•0 comments

Show HN: Ekctl CLI for Managing Calendars and Reminders on macOS

https://schappi.com/blog/meet-ekctl-a-command-line-interface-for-managing-calendars-and-reminders...
1•schappim•6m ago•0 comments

Best Practices for Ownership in GLib

https://blog.sebastianwick.net/posts/glib-ownership-best-practices/
1•JNRowe•6m ago•0 comments

Claudeception

https://github.com/blader/Claudeception
1•mooreds•6m ago•0 comments

Don't Trip[Wire] Yourself: Testing Error Recovery in Zig

https://mitchellh.com/writing/tripwire
1•todsacerdoti•8m ago•0 comments

Ask HN: How did Gemini go from being awful to INCREDIBLE back to utterly awful?

1•wewewedxfgdf•9m ago•1 comments

Realistic Designs N-Q – Atomic Rockets

https://www.projectrho.com/public_html/rocket/realdesigns2.php
1•thunderbong•12m ago•0 comments

TinyMMO Jam

https://itch.io/jam/tinymmo-jam
2•raytopia•14m ago•0 comments

An election booth inside a forest in India – for just one voter

https://www.aljazeera.com/gallery/2024/5/8/an-election-booth-inside-a-forest-in-india-for-just-on...
1•KnuthIsGod•14m ago•0 comments

A Reminder Why Digitising Old Printed Material Is Important (2025)

https://blog.decryption.net.au/posts/digitise_reminder.html
1•walterbell•16m ago•0 comments

ANN v3: 200ms p99 query latency over 100B vectors

https://turbopuffer.com/blog/ann-v3
1•tanelpoder•17m ago•0 comments

Protect the Dolls

https://naomicunningham.substack.com/p/protect-the-dolls
1•yes_you•28m ago•0 comments

Unpleasant Design and Hostile Urban Architecture (2016)

https://99percentinvisible.org/episode/unpleasant-design-hostile-urban-architecture/
2•jacobedawson•30m ago•0 comments

Against Generative AI: Is Art the Last Refuge of Our Humanity?

https://lithub.com/against-generative-ai-is-art-the-last-refuge-of-our-humanity/
1•FigurativeVoid•32m ago•0 comments

African trade has been vastly underestimated

https://www.economist.com/middle-east-and-africa/2026/01/18/african-trade-has-been-vastly-underes...
2•petethomas•34m ago•0 comments

Results from the 2025 Go Developer Survey

https://go.dev/blog/survey2025
1•prattmic•36m ago•0 comments

A zero-overhead bridge between C++23 std:mdspan and CUTLASS cute layouts

https://github.com/weyl-ai/mdspan-cute
1•benreesman•40m ago•1 comments

SUPERMAN Written by James Gunn [pdf]

https://www.superman.com/script/supermanscript.pdf
1•hbcondo714•40m ago•0 comments

Sine – The ultimate theme manager for Firefox-based browsers

https://github.com/CosmoCreeper/Sine
1•modinfo•41m ago•0 comments

Show HN: Roo Code Slack: end to end agentic workflow in Slack

https://www.youtube.com/watch?v=dJM_8HHGe1E
1•hrudolph•47m ago•0 comments

Ask HN: CVAT users, how do you QA labels?

1•Abderrahman54•47m ago•1 comments

2025 AI Wrapped: What I've Shipped with 100% AI-generated code

https://www.jsrowe.com/ai-wrapped-evolution-of-using-ai-every-day/
3•jsr6720•49m ago•0 comments

Best Practices for Claude Code

https://code.claude.com/docs/en/best-practices
2•mfiguiere•49m ago•0 comments

Show HN: Markdown TOC generator for JavaScript builds.Works recursively for repo

1•datalackey•49m ago•0 comments

Delta single handle ball faucets (1963)

https://archive.org/details/DeltaSingleHandleBallFaucets
2•userbinator•50m ago•0 comments

Meta Pays $3B for Manus: Its Fastest Path to AI Agent Dominance

https://gilpignol.substack.com/p/meta-pays-3-billion-for-manus-its
2•light_triad•50m ago•0 comments

Show HN: Wisp: Stateful Claude Code Management

https://github.com/canaanmckenzie/Wisp
3•prince_nez•52m ago•0 comments

ClearFlow Keyboard

https://clearflowkeyboard.github.io/
2•_thisdot•55m ago•0 comments

SlimEdge: Lightweight Distributed DNN Deployment on Constrained Hardware

https://arxiv.org/abs/2512.22136
1•PaulHoule•59m ago•0 comments