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

AI contributed "zero" to U.S. economic growth, Goldman Sachs has calculated

https://www.washingtonpost.com/technology/2026/02/23/ai-economic-growth-gdp-mirage/
1•coliveira•2m ago•0 comments

Show HN: Glass box governance for multi-agent AI coding workflows

https://github.com/Vinix24/vnx-orchestration
1•vincentvandeth•4m ago•1 comments

Show HN: Plagiarismremover.ai – A Free AI Plagiarism Remover

https://plagiarismremover.ai/
2•PlagiarismRem•8m ago•0 comments

What I learned building a Multi-Agent System

https://davide.im/posts/multi-agent-system/
2•vector3•8m ago•0 comments

Show HN: Lensboy – Lightweight camera calibration with spline distortion models

https://github.com/Robertleoj/lensboy
1•robertleoj•11m ago•0 comments

Goodbye P < 0.05. P-value is simply one among many to gauge scientific evidence

https://www.sciencedirect.com/science/article/abs/pii/S1878788626000159
1•XzetaU8•12m ago•0 comments

Show HN: Nano Banana 2 Playground – text-to-image and image-to-image demo

https://nanobanana-2.xyz
1•iamouyang•13m ago•0 comments

Show HN: I built a headless bot to automate SaaS directory launches (and AI SEO)

https://signalscan.eu
1•Ben_Tycho•14m ago•0 comments

WatchGuardian: Enabling User-Defined Just-in-Time Intervention on Smartwatch

https://dl.acm.org/doi/10.1145/3788689
1•brandonb•21m ago•0 comments

California Becomes Latest State to Weigh Balcony Solar Legislation

https://www.bloomberg.com/news/newsletters/2026-01-30/california-becomes-latest-state-to-weigh-ba...
1•bilsbie•22m ago•0 comments

Show HN: Audio Toolkit for Agents

https://github.com/shiehn/sas-audio-processor
2•stevehiehn•22m ago•0 comments

Archiving my tweets in my own blog

https://solmaz.io/x/2027708131254387017/
1•hosolmaz•22m ago•0 comments

Show HN: Chromectl – CLI to give an AI agent its own Chrome session

https://github.com/BartlomiejLewandowski/chromectl
1•bartek_gdn•24m ago•0 comments

Cursor built this 5 min 3 round Wordle

https://apps.apple.com/us/app/fastdle/id6739634096
1•triviatroy•25m ago•1 comments

Show HN: SkillMesh (role-based tool routing for Claude/Codex)

https://github.com/varunreddy/SkillMesh
2•VarunReddy023•26m ago•0 comments

Living with Hyperphantasia

https://www.theguardian.com/science/2026/feb/28/living-with-hyperphantasia
1•bookofjoe•26m ago•0 comments

Ask HN: What can humans do that intelligent machines will not be able to do?

1•cs702•27m ago•0 comments

Show HN: Delta – A disk space analyzer that tracks where your disk space went

https://github.com/chuunibian/delta
1•zerfallen•27m ago•0 comments

Think of BigConfig Package as 'Helm for Everything'

https://www.bigconfig.it/use-cases/package/
1•amiorin•29m ago•0 comments

The Epstein Files and the Epstein Class

http://colabopad.blogspot.com/2026/03/the-epstein-files-and-epstein-class.html
4•Edmond•31m ago•0 comments

Background Agents

https://background-agents.com/
2•thebuilderjr•31m ago•0 comments

Show HN: Videolyti – Free video downloader with built-in AI transcription

https://videolyti.com/en
1•coder_decoder•33m ago•0 comments

NIST to introduce restrictions on non-US citizens

https://physicstoday.aip.org/news/nist-to-introduce-restrictions-on-non-us-citizens
2•bikenaga•33m ago•0 comments

Ask HN: Vibecoding feels like playing golf, wdyt?

2•julienreszka•34m ago•0 comments

Is Nvidia's post-Rubin roadmap shifting toward inference-first architectures?

https://www.buysellram.com/blog/nvidia-next-gen-feynman-beyond-training-toward-inference-sovereig...
1•jamesbsr•35m ago•1 comments

My Favorite 39C3 Talks

https://asindu.xyz/my-favorite-39c3-talks/
2•max_•37m ago•0 comments

Bolt.gives Introduces Free, Agentic AI Coding Platform

https://github.com/embire2/bolt.gives
2•embire2•38m ago•0 comments

Bad Thing Insurance – Coverage for alien abduction, rogue black holes, and AGI

https://badthing.xyz/
2•rooster666•39m ago•1 comments

Fast-Servers: An Interesting Pattern?

https://geocar.sdf1.org/fast-servers.html
2•signa11•39m ago•0 comments

Reverse engineering "Hello World" in QuickBasic 3.0

https://marnetto.net/2026/03/01/brun-hello-world
2•alberto-m•40m ago•2 comments