frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Liquid: Back to the Future

https://twitter.com/i/status/2079633466581258469
2•graemebenzie•5m ago•1 comments

Headroom - compress AI agent input for reduced token usage w/out harming output

https://github.com/headroomlabs-ai/headroom
1•andsoitis•5m ago•0 comments

It's a shame what's happened to radio

https://blog.jimgrey.net/2026/07/21/its-a-shame-whats-happened-to-radio-3/
1•sonicrocketman•8m ago•0 comments

Lanyard SSH Agent Switchboard

https://jwilger.github.io/lanyard-ssh-agent/
1•jwilger•8m ago•0 comments

Ask HN: GitHub CVE Delays?

1•ioseph•10m ago•0 comments

Circuit board quilts by Wally Dion

https://www.wallydion.com/circuitboard-quilts
1•banrafflemoth•12m ago•0 comments

EC: 'Guidance to Google for AI Interoperability on Android'

https://daringfireball.net/2026/07/ec_google_guidance_android_ai_and_search_sharing
1•heironimus•14m ago•0 comments

The truth nobody wants to admit: Chinese or not, open models are competitive now

https://www.theregister.com/ai-and-ml/2026/07/22/the-truth-nobody-wants-to-admit-chinese-or-not-o...
3•joebuckwilliams•14m ago•1 comments

Semantic Search, in the Browser, in a Day

https://cadocary.com/highlighter/
1•forgetbook•16m ago•1 comments

JetBrains Context: Repository Intelligence for Coding Agents

https://blog.jetbrains.com/ai/2026/07/introducing-jetbrains-context-repository-intelligence-for-c...
1•monkey_monkey•23m ago•0 comments

Scaleway: [fr-par-1] – Issue with Compute Instances

https://status.scaleway.com/incidents/bsp2y5fysy9w
1•sscaryterry•27m ago•0 comments

Jimothy? He has an 8-bit Retro Video Game (in a single HTML file)

https://arcade.pirillo.com/jimothy.html
2•ChrisPirillo•34m ago•0 comments

OpenAI Says Its A.I. Models Went Rogue and Attacked a Digital Library

https://www.nytimes.com/2026/07/21/technology/openai-attack-hugging-face.html
7•sbulaev•34m ago•0 comments

Flexport is hiring software engineers in Amsterdam

https://www.flexport.com/careers/jobs/
3•thedogeye•37m ago•0 comments

Show HN: Pure PHP server, has 10x throughput of NGINX+FPM, now support socket.io

https://github.com/Qbix/webserver
2•EGreg•38m ago•0 comments

You best start believing in ghost stories

https://www.alreadyhappened.xyz/p/you-best-start-believing-in-ghost
3•pressentiment•39m ago•0 comments

Cancer testing company raises $300M as it goes public

https://www.bizjournals.com/sanfrancisco/news/2026/07/21/cancer-testing-crc-freenome-public-spac-...
2•brandonb•39m ago•0 comments

Show HN: An interactive game of British Columbia

https://bigfootsbc.ca/
2•halshin_dev•41m ago•0 comments

Show HN: Superserve – Firecracker microVM sandboxes for long-running AI agents

https://www.superserve.ai/
3•pavitrabhalla•42m ago•0 comments

Postal IRCs Are Almost a Thing of the Past

https://hackaday.com/2026/07/21/postal-ircs-are-almost-a-thing-of-the-past/
2•jnord•44m ago•0 comments

Retaining Authorship for Critical Code: An Agentic Buddy System

https://smorsic.io/blog/buddy-system
3•smorsic•45m ago•0 comments

BioChain: A Layer-1 blockchain signed with ML-DSA-44 (post-quantum) url

https://github.com/biochain-code/biochain
2•biochain•46m ago•0 comments

InfoDiet, Chrome extension that tracks information quality, not just screen time

https://www.getinfodiet.app/
3•Nahom_a•46m ago•0 comments

OE3GBB

https://www.qsl.net/oe3gbb/
3•tehsauce•48m ago•0 comments

NetBSD GSoC 2026 Reports: Testing Compat Linux: Syscall Testing

https://blog.netbsd.org/tnf/entry/gsoc2026_testing_compat_linux
4•jaypatelani•48m ago•0 comments

Cisco releases Antares: open weight AI for vulnerability research

https://blogs.cisco.com/ai/introducing-antares-the-most-efficient-open-weight-ai-models-for-vulne...
2•handfuloflight•48m ago•0 comments

Show HN: Sorted Receipts - clients dump receipts in one link, LLM sorts them

https://upload.sortedreceipts.com/demo
1•jahnoikka•50m ago•0 comments

Can You 'Catch' Dementia from Your Spouse? By StudyFinds Analysis •

https://studyfinds.com/can-you-catch-dementia-from-your-spouse-what-a-new-study-found/
2•joe_the_user•52m ago•0 comments

Almost Went Back: One Month on NixOS

https://nezutero.dev/almost-went-back-one-month-on-nixos/
4•grigio•52m ago•1 comments

Pocketpy: Portable Python 3.x interpreter written in C11

https://github.com/pocketpy/pocketpy
2•klaussilveira•53m ago•0 comments