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.

Systemd Portable Services Are Pretty Good

https://rukulkarni.com/blog/systemd-portable-services/
1•blixtra•41s ago•0 comments

Show HN: A pet link saver OSS project that keeps growing

https://linkversity.lol/
1•osdotsystem•2m ago•0 comments

Show HN: VS-1: an audio sample tournament sorter

https://github.com/alexfedosov/vs-1
2•alex_x•4m ago•0 comments

China Signals It Won't Give an Inch to the U.S. in Latin America

https://www.wsj.com/world/americas/china-signals-it-wont-give-an-inch-to-the-u-s-in-latin-america...
2•JumpCrisscross•4m ago•0 comments

Expanding in Three Dimensions [video]

https://www.youtube.com/watch?v=NEJZlGuWGV8
1•ColinWright•4m ago•0 comments

Chemicals found in English soil, including long-banned medical substances

https://www.theguardian.com/environment/2025/dec/03/chemicals-found-english-soil-toxins-medical-s...
1•PaulHoule•6m ago•0 comments

Russia Asks United States to Stop Pursuit of Fleeing Oil Tanker

https://www.nytimes.com/2026/01/01/us/politics/russia-oil-tanker-venezuela-us-pursuit.html
3•JumpCrisscross•6m ago•1 comments

Repeat Moviegoers Help Hollywood Eke Out a Slightly Better 2025

https://www.nytimes.com/2026/01/01/business/cinema-hollywood-2025-ticket-sales.html
1•JumpCrisscross•6m ago•0 comments

Language Server Protocol server for System/360 COBOL F (1968) and PL/I F (1965)

https://marketplace.visualstudio.com/items?itemName=ZaneHambly.ibm-system360-languages
2•rbanffy•10m ago•0 comments

We built LAN Orangutan, a lightweight network scanner

https://github.com/291-Group/LAN-Orangutan
1•291Group•11m ago•1 comments

The Heartbreak Machine: Nazis in the Echo Chamber [video]

https://media.ccc.de/v/39c3-the-heartbreak-machine-nazis-in-the-echo-chamber
1•Fnoord•12m ago•0 comments

Recursive Language Models: the paradigm of 2026

https://www.primeintellect.ai/blog/rlm
1•skhameneh•12m ago•0 comments

Sundas

https://sundaskhalid.substack.com/subscribe
1•Cat27groenland•12m ago•0 comments

Testing Frontier LLMs on Space Rangers 2 Text Quests

https://nikitakutz.substack.com/p/why-llms-fail-on-quest-games-any
1•chaoz_•14m ago•1 comments

Stonebraker: One size fits none: everything you learned in your DBMS class is wr

https://slideshot.epfl.ch/play/suri_stonebraker
1•fanf2•16m ago•0 comments

Can Bundler Be as Fast as Uv?

https://tenderlovemaking.com/2025/12/29/can-bundler-be-as-fast-as-uv/
2•ibobev•21m ago•0 comments

Parkinson's Law (1955) [pdf]

https://doc.cat-v.org/economics/parkinsons-law/the-economist-article.pdf
1•rrjjww•21m ago•0 comments

The Package Merge Algorithm

https://aniruddhadeb.com/cs/algorithms/package-merge
1•hairband_dude•21m ago•0 comments

A Path to Platform Engineering – Beginners Guide

https://www.zeitgeistofbytes.com/p/a-path-to-platform-engineering-beginners
2•paniq1991•22m ago•0 comments

Computer Science from Scratch: Interpreters, Art, Emulators, and ML in Python

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

God Mode UX: Why AI Agent Interfaces Will Look More Like StarCraft Than Slack

https://medium.com/sadasant/god-mode-ux-why-your-next-interface-will-look-more-like-starcraft-tha...
1•walterbell•27m ago•1 comments

Some Audiobooks Outselling Hardcovers

https://www.wsj.com/tech/personal-tech/listen-to-this-some-audiobooks-are-outselling-hardcovers-1...
2•bookofjoe•30m ago•1 comments

A silly diffuse shading model

https://lisyarus.github.io/blog/posts/a-silly-diffuse-shading-model.html
2•ibobev•31m ago•0 comments

Intelligence is not just about task completion

https://www.marble.onl/posts/intelligence_tasks.html
1•amarble•31m ago•0 comments

Straussian Memes: A Lens on Techniques for Mass Persuasion

https://www.lesswrong.com/posts/CAwnnKoFdcQucq4hG/straussian-memes-a-lens-on-techniques-for-mass-...
3•kp1197•33m ago•1 comments

PNGine: A WebGPU shader portability engine

https://hugodaniel.com/posts/introducing-pngine/
1•ibobev•33m ago•0 comments

What I Read in 2025

https://srajagopalan.substack.com/p/what-i-read-in-2025
1•neehao•34m ago•0 comments

Cognitive Diagnosis Framework for Evaluating Financial Large Language Models

https://arxiv.org/abs/2508.13491
2•gmays•34m ago•0 comments

Show HN: I'm student building best AI slide designer

https://smallailab.vercel.app/
2•ihsanf•34m ago•0 comments

How Rick Rubin taught me to be a better engineer

https://bytesizedchunks.net/blog/20260101/
1•mrdosija•35m ago•0 comments