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.

Show HN: What an AI agent sees in an A2A marketplace – full API walkthrough

https://agoragentic.com/demo.html
1•bourbeau•1m ago•1 comments

An AI avatar is running to represent Indigenous voters in Colombia

https://restofworld.org/2026/ai-avatar-colombia-political-candidate/
1•i7l•1m ago•0 comments

Guild Manager 26 – MMO Management/Spreadsheet SIM

https://playgm26.com
1•itshellboy•3m ago•0 comments

Mysterious blue glow traced to Flying Banana

https://www.bbc.co.uk/news/articles/c795e30j2d0o
1•zeristor•4m ago•0 comments

Nbdantic: Peg like parser for Jupyter notebooks

https://github.com/ivanbelenky/nbdantic/
1•ivanbelenky•4m ago•0 comments

Google's Chatbot Told Man to Give It an Android Body Before Encouraging Suicide

https://gizmodo.com/googles-chatbot-told-man-to-give-it-an-android-body-before-encouraging-suicid...
1•medi8r•6m ago•0 comments

Ask HN: Has anyone noticed the fear-driven prompt suggestions that GPT5.3 makes?

1•cedarscarlett•9m ago•0 comments

Show HN: DJ Claude – 6 Claude Codes in a jam band

https://www.loom.com/share/84dbe5de42f745ba98fe9495dc61fa2e
1•p-poss•11m ago•0 comments

Iranian girls killed by 'double-tap' strikes on Minab school

https://www.middleeasteye.net/news/exclusive-iranian-girls-killed-double-tap-strikes-minab-school
2•xvxvx•12m ago•2 comments

AI 2027 Concrete Predictions and dates

https://alexpear.github.io/pages/ai-2027.html
1•hydrolox•13m ago•0 comments

Be the Idiot

https://luminousmen.substack.com/p/be-the-idiot
2•duck•14m ago•0 comments

Northstead – Wholesale Nursery Management System

https://www.northstead.app
1•chris_wray•19m ago•1 comments

Show HN: Stackspend – Spend management for AI startups

https://www.stackspend.app
1•andrewrday•19m ago•0 comments

Show HN: Async Rust and Embassy on nRF52840: RGB LED Cycle (Video and Code)

https://www.youtube.com/watch?v=fJf5XRAliSE
1•sarmadgulzar•21m ago•0 comments

Modern Unix Tools: A Collection of Modern Alternatives to Common Commands

https://github.com/ibraheemdev/modern-unix
2•nix_owl31•25m ago•0 comments

Super interesting Wikipedia on HN. So I made wiki-hn.

https://wiki-hn.com/
2•oatsandsugar•28m ago•0 comments

Teaching LLMs to reason like Bayesians

https://research.google/blog/teaching-llms-to-reason-like-bayesians/
2•tzury•28m ago•0 comments

What's Driving Rising Business Costs?

https://libertystreeteconomics.newyorkfed.org/2026/03/whats-driving-rising-business-costs/
2•jnord•28m ago•0 comments

Google and Epic announce settlement to end app store antitrust case

https://arstechnica.com/gadgets/2026/03/google-and-epic-look-to-bury-the-hatchet-with-new-app-sto...
2•todsacerdoti•30m ago•0 comments

What it was like to send an email back in 1984 (2016)

https://www.businessinsider.com/video-what-early-email-looked-like-2016-3
1•leecoursey•35m ago•1 comments

Show HN: workz – one command to make any Git worktree a full dev environment

1•rohansx•36m ago•0 comments

Dwarkesh Patel Interview with Gwern

https://www.dwarkesh.com/p/gwern-branwen
1•Curiositry•37m ago•0 comments

Big Medicine Can Learn from the Cheesecake Factory (2012)

https://www.newyorker.com/magazine/2012/08/13/big-med
1•ripe•40m ago•0 comments

Full-Stack Dev's Internal Thought Process

https://www.youtube.com/watch?v=xE9W9Ghe4Jk
4•OhMeadhbh•40m ago•1 comments

Online ads just became the internet's biggest malware machine

https://www.businessinsider.com/programmatic-ads-overtake-email-top-malware-vector-the-media-trus...
1•speckx•43m ago•1 comments

Hiring Dread

https://coderjerk.com/blog/hiring-dread
1•ddevine•46m ago•0 comments

Show HN: Treemap Firmware Bloat Visualizer (Rust/WebASM)

https://merck.substack.com/p/elfvis-binary-size-treemap-viewer
1•clbrmbr•48m ago•0 comments

DuckDuckGo is anti-small web (because of Bing)

https://landenlove.com/duckduckgo-is-anti-small-web-because-of-bing/
3•LandenLove•54m ago•1 comments

Software architecture diagramming tool launched on AlternativeTo.net

https://alternativeto.net/software/savnet/about/
2•oscarricardosan•57m ago•1 comments

What air pollution does to the human body

https://www.popsci.com/environment/what-air-pollution-does-to-the-human-body/
2•wjb3•58m ago•1 comments