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.

Claude Code Compaction Viewer

https://github.com/swyxio/claude-compaction-viewer/
1•handfuloflight•59s ago•0 comments

Modular Diffusers – Composable Building Blocks for Diffusion Pipelines

https://huggingface.co/blog/modular-diffusers
1•nathanmarz•1m ago•0 comments

Ask HN: Do you have a good solution for isolated workspaces per project?

1•straydusk•7m ago•0 comments

TeX Live 2026 is available for download now

https://www.tug.org/texlive/acquire.html
3•jithinraj•20m ago•0 comments

Show HN: Triplecheck – Review your code free with local LLMs

https://github.com/raullenchai/triplecheck
1•raullen•36m ago•0 comments

Gemini-flash-latest silently broke Search grounding for 1 month

2•takibboinz•36m ago•0 comments

Show HN: AI Benchy – AI benchmarks and comparisons

https://aibenchy.com/
1•XCSme•38m ago•0 comments

Did anyone try this Docker desktop alternative?

https://www.empiricapps.com/zenithal/download
1•mburlac•38m ago•0 comments

Caroline affair – eventually influencing the development of international law

https://en.wikipedia.org/wiki/Caroline_affair
1•vinnyglennon•48m ago•0 comments

Show HN: WingNews – Htmx Hacker News Reader

https://news.wingman.actor/
1•ChaseRensberger•48m ago•0 comments

AI Doesn't Remember Yesterday. How to Design Team Memory for AI Workflows

https://github.com/htuzel/flalingo-mem-bridge
1•htuzel•48m ago•0 comments

Ask HN: Wish Linux tmpfs support compression option

2•gry_gh•49m ago•0 comments

Howard Abrams' Literate Programming with Org Mode [video]

https://www.youtube.com/watch?v=OUuz9-CtCwY
2•todsacerdoti•53m ago•0 comments

My SoC Analyst Writeup – Support by star, thanks guys

https://github.com/ogtamimi/SOC-Analyst-WriteUp-LetsDefend.io
2•ogtamimi•54m ago•0 comments

Create PDF Resume

https://createpdfresume.com/
1•tahirasadov•57m ago•0 comments

All of you doubted me, and said I was hallucinating on AI

https://ryanshamim.substack.com/p/the-inference-efficiency-paradox
1•anima-core•57m ago•1 comments

Tech titans vow to 'take back' California

https://nypost.com/2026/03/05/us-news/tech-titans-vow-to-take-back-california-from-lefties-call-o...
4•mudil•1h ago•0 comments

First Aptera Solar EV Rolls Off Validation Assembly Line

https://aptera.us/first-vehicle-off-validation-line/
1•TeaVMFan•1h ago•0 comments

Show HN: Yappy – A Python TUI to automate LinkedIn yapping

https://github.com/JienWeng/yappy
2•jienweng•1h ago•0 comments

Shut Up and Take My Money

https://lorendb.dev/posts/shut-up-and-take-my-money/
4•LorenDB•1h ago•0 comments

Spell UI

https://spell.sh/
2•handfuloflight•1h ago•0 comments

Show HN: Swarm – Program a colony of 200 ants using a custom assembly language

https://dev.moment.com/
17•armandhammer10•1h ago•8 comments

Show HN: Custom Search Engine on Safari and Spotlight (macOS)

https://knhash.in/custom-search-engine-on-safari-and-spotlight-macos/
3•knhash•1h ago•0 comments

Show HN: SafeAgent – exactly-once execution guard for AI agents

2•Lions2026•1h ago•1 comments

Enhanced brain cells clear away dementia-related proteins

https://medicalxpress.com/news/2026-03-brain-cells-dementia-proteins.html
8•WaitWaitWha•1h ago•0 comments

Google Patent: Sending Searchers to AI-Generated Pages over Your Site

https://www.seroundtable.com/google-patent-ai-generated-pages-search-41010.html
3•frays•1h ago•0 comments

System76 on Age Verification Laws

https://blog.system76.com/post/system76-on-age-verification/
24•LorenDB•1h ago•7 comments

A Technology for a Low-Trust Society

https://www.theatlantic.com/technology/2026/03/central-lie-prediction-markets/686250/
7•CaptainZapp•1h ago•0 comments

Tollund Man

https://en.wikipedia.org/wiki/Tollund_Man
2•thunderbong•1h ago•0 comments

Show HN: Steadwing – Your Autonomous On-Call Engineer

https://www.steadwing.com/
5•abejith•1h ago•0 comments