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

Saturn's Rings Came from a Two-Moon Collision About 100M Years Ago

https://gizmodo.com/saturns-rings-came-from-a-two-moon-collision-about-100-million-years-ago-stud...
3•mooreds•10m ago•0 comments

A man who triggered the AI explosion(2020) – Alex Krizhevsky [video]

https://www.youtube.com/watch?v=gwzwkv2hO5k
1•o4c•11m ago•0 comments

How to Use Goosetown for Parallel Agentic Engineering

https://block.github.io/goose/blog/2026/02/19/gastown-explained-goosetown/
1•mooreds•11m ago•0 comments

Checkset – a Ruby gem for repeatable verifications using Playwright

https://afomera.dev/posts/2026-02-20-checkset-introduction
1•mooreds•12m ago•0 comments

Understanding LLM from scratch Using middle school math

https://medium.com/data-science/understanding-llms-from-scratch-using-middle-school-math-e602d27e...
1•ilokeshpawar•13m ago•0 comments

Process Isolation on NetBSD with Chroot(2)

https://overeducated-redneck.net/blurgh/netbsd-chroot-isolation.html
1•jaypatelani•14m ago•0 comments

Hardware LLM at 16K Tokens/s

https://taalas.com/products/
1•gcollard-•20m ago•1 comments

With Nvidia's GB10 Superchip, I'm Running Serious AI Models in My Living Room

https://www.pcmag.com/news/nvidia-gb10-superchip-running-ai-models-in-my-living-room
3•the_arun•30m ago•0 comments

Former Debian Project Leader Cautions Against Cover-Up and Censorship in Debian

https://techrights.org/n/2026/02/20/Former_Debian_Project_Leader_Branden_Robinson_Cautions_Agains...
1•amcclure•36m ago•0 comments

TabType – Universal text expansion for macOS for your context

https://tabtype.app
1•enixam•37m ago•1 comments

Show HN: Git uncommit – reset unpushed, committed changes

https://github.com/below43/git-uncommit
1•below43•44m ago•1 comments

The New Digg.com Is Slop

https://techrights.org/n/2026/01/24/Digg_com_Digg_is_a_Censorship_Platform_Just_Another_Social_Co...
5•amcclure•45m ago•0 comments

Show HN: JVBar CIS Benchmark scanner and remediation script generator

https://www.jvbar.com
1•sandadze•47m ago•0 comments

Designing a Document Management System from Scraps

https://www.theolouvel.com/fieldnotes/Small+Stabs/2026-02-20+-+Designing+a+Document+Management+Sy...
1•theolouvel•47m ago•0 comments

OpenAI Employees Raised Alarms About Canada Shooting Suspect Months Ago

https://www.wsj.com/us-news/law/openai-employees-raised-alarms-about-canada-shooting-suspect-mont...
7•caminante•48m ago•3 comments

Show HN: Polya's urn – essays on complexity and emergence

https://www.polyasurn.com/
1•pcarolan•50m ago•0 comments

Open Letter to Tech Companies: Protect Your Users from Lawless DHS Subpoenas

https://www.techdirt.com/2026/02/20/open-letter-to-tech-companies-protect-your-users-from-lawless...
1•cdrnsf•53m ago•0 comments

MCP Servers Reaches 79K GitHub Stars

https://theagenttimes.com/articles/mcp-servers-79017-stars
1•Ross00781•57m ago•0 comments

I made a local AI creature that runs on integers

https://double-star-games.itch.io/feryl/devlog/1393626/introducing-feryl-a-local-desktop-ai-creature
1•pmeade-ds•58m ago•1 comments

Freshwater Fish Recipes for Anglers

https://www.hookandskillet.com/recipes.html
2•HNFINDS•1h ago•0 comments

Phil Spencer Retires from Microsoft and Xbox

https://twitter.com/i/status/2024951211129254314
2•stevefan1999•1h ago•0 comments

Show HN: Assay – Found 250 bugs in LiteLLM, LobeChat via AI code verification

https://github.com/gtsbahamas/hallucination-reversing-system
2•tywellshn•1h ago•1 comments

Chris Lattner evaluates the Claude C Compiler

https://www.modular.com/blog/the-claude-c-compiler-what-it-reveals-about-the-future-of-software
4•adas0693•1h ago•1 comments

FB – Clean My Feeds

https://greasyfork.org/en/scripts/431970-fb-clean-my-feeds-5-02
1•gslin•1h ago•0 comments

OpenAI had banned account of Tumbler Ridge, B.C., shooter; reached out to RCMP

https://www.cbc.ca/lite/story/9.7100497
3•colinprince•1h ago•0 comments

The RL Architecture Behind Minimax M2.5

https://twitter.com/neural_avb/status/2022715561390776524
1•gmays•1h ago•0 comments

Go devs: What should we do with CLs generated by AI?

https://groups.google.com/g/golang-dev/c/4Li4Ovd_ehE/m/8L9s_jq4BAAJ
2•nnx•1h ago•0 comments

GenAI for Systems: Recurring Challenges&Design Principles from SW to Silicon

https://arxiv.org/abs/2602.15241
1•matt_d•1h ago•0 comments

Excessive token usage in Claude Code

https://github.com/anthropics/claude-code/issues/16856
15•behnamoh•1h ago•3 comments

ThresholdIQ-Alert Simulator

https://thresholdiq.app/
1•vigneshj•1h ago•1 comments