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.

Architecture for Disposable Systems

https://tuananh.net/2026/01/15/architecture-for-disposable-systems/
1•tuananh•1m ago•0 comments

The modern, full-stack TypeScript framework that makes T3 Stack look like 2022

https://github.com/yazcaleb/c4-template
1•plawlost•3m ago•0 comments

Multi armed bandit resource allocation in Near Memory Processing architectures

https://www.sciencedirect.com/science/article/pii/S277306462500012X
1•rbanffy•4m ago•0 comments

Cold Truths

https://newsletter.doomberg.com/p/cold-truths
1•simonebrunozzi•4m ago•0 comments

ASCII characters are not pixels: a deep dive into ASCII rendering

https://alexharri.com/blog/ascii-rendering
4•alexharri•5m ago•0 comments

Gut micro-organisms associated with health, nutrition and dietary intervention

https://www.nature.com/articles/s41586-025-09854-7?lid=t94o71j7gslg
2•lonelyasacloud•5m ago•1 comments

A collection of my weird, fun, and fast-built side projects

https://www.pankajtanwar.in/side-hustles
1•jaynate•7m ago•0 comments

AV1 Image File Format Specification Gets an Upgrade with AVIF v1.2.0

https://aomedia.org/blog%20posts/AV1-Image-File-Format-Specification-Gets-an-Upgrade-with-AVIF/
2•breve•10m ago•0 comments

Ask HN: Is there a free MCP for web and documentation search?

1•terabytest•11m ago•1 comments

Show HN: Curated index page for my subdomains

https://index.priyavkaneria.com/
1•diginova•11m ago•0 comments

Your 'Ideal Customer Profile' Is a Hallucination

https://pathak.ventures/essays/the-segment-of-one
1•ninadpathak•12m ago•0 comments

Google should build a VST/AU Metadata Bridge instead of another AI generator

1•yoekimera•12m ago•0 comments

Commodore 64 Ultimate (Batch 2)

https://www.commodore.net/product-page/commodore-64-ultimate-basic-beige-batch2
1•tzmlab•13m ago•0 comments

Show HN: Why Should Assembly Be English‑Only? Nuasm Adds 51 Human Languages

1•neuroosgenesis•18m ago•1 comments

Show HN: FileMason – Automate file organization on macOS with custom rules

https://apps.apple.com/us/app/filemason/id6757748498?mt=12
1•edurevilla•18m ago•0 comments

EU moves to force the phase-out of Chinese suppliers from key infrastructure

https://www.reuters.com/world/china/eu-bar-chinese-suppliers-critical-infrastructure-ft-reports-2...
3•robtherobber•19m ago•0 comments

Atlarix – A privacy-first, native AI coding agent for your desktop

https://www.atlarix.dev/
1•AmariahKam•22m ago•1 comments

Brazil's Bolsonaro finds novel way to reduce 27-year sentence: reading books

https://www.theguardian.com/world/2026/jan/16/brazil-jair-bolsonaro-reduce-sentence-reading-books
2•tosh•24m ago•0 comments

PCs refuse to shut down after Microsoft patch

https://www.theregister.com/2026/01/16/patch_tuesday_secure_launch_bug_no_shutdown/
5•smurda•29m ago•0 comments

List of Flight Airspeed Records

https://en.wikipedia.org/wiki/List_of_flight_airspeed_records
1•freespirt•32m ago•0 comments

clickhouse-local

https://clickhouse.com/docs/operations/utilities/clickhouse-local
1•tosh•32m ago•0 comments

Is Grove (by OpenAI) a scam that no one talks about?

2•ainthusiast•35m ago•0 comments

Kotlin Multiplatform

https://kmp.rrtutors.com/
1•rrtutors•42m ago•0 comments

After 25 years, Wikipedia has proved that news doesn't need to look like news

https://www.niemanlab.org/2026/01/after-25-years-wikipedia-has-proved-that-news-doesnt-need-to-lo...
23•giuliomagnifico•50m ago•4 comments

An explanation of cheating in Doom2 Deathmatch (1999)

https://www.doom2.net/doom2/cheating.html
1•Lammy•51m ago•1 comments

US electricity demand surged in 2025 – solar handled 61% of it

https://electrek.co/2026/01/16/us-electricity-demand-surged-in-2025-solar-handled-61-percent/
27•doener•52m ago•3 comments

Show HN: PolyMCP – structured skills from MCP tools for efficient agent usage

1•justvugg•52m ago•0 comments

TLDR: Code Analysis for AI Agents

https://github.com/parcadei/llm-tldr
1•handfuloflight•53m ago•1 comments

Don't Waste Your Back Pressure

https://banay.me/dont-waste-your-backpressure/
1•ghuntley•54m ago•0 comments

GCD of Fibonacci Numbers

https://www.cut-the-knot.org/arithmetic/algebra/FibonacciGCD.shtml
1•vismit2000•54m ago•1 comments