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.

Show HN: Research Wheel – Local-first gesture menu for research and citations

https://github.com/fluryjanis/ResearchWheel
1•Frog1230•6m ago•0 comments

Show HN: Architecture as the source of truth instead of source code

https://sidai.live/blog/dis
1•Sidhant_ch•7m ago•0 comments

Nokia Design Archive

https://nokiadesignarchive.aalto.fi
2•structuredPizza•8m ago•0 comments

The 19th-Century Family Fortunes Funding Degrowth

https://www.effort.news/p4ne
1•barry-cotter•10m ago•0 comments

Rd-Signal-2: Frontier Classification at Production Scale

https://www.raindrop.ai/blog/signals-2-frontier-classification/
1•modo_•10m ago•0 comments

OpenAI launches ChatGPT desktop app for Linux

https://techcrunch.com/2026/08/11/openai-launches-chatgpt-desktop-app-for-linux/
2•ashurandi•11m ago•0 comments

Wisconsin Tracks Man Across State Line with Flock Cameras to Arrest Him for Weed

https://gizmodo.com/wisconsin-cops-tracked-a-man-with-flock-cameras-to-arrest-him-for-weed-200079...
3•CGMthrowaway•16m ago•0 comments

Show HN: Edgepad – tool for configuring edge touchpad gestures on Linux laptops

https://github.com/assembledev/edgepad
2•dev-e•19m ago•0 comments

The 'Furthur' Bus's Long Trip, and Why It's Returning to San Francisco

https://www.nytimes.com/2026/08/09/us/kesey-furthur-bus-san-francisco.html
1•reaperducer•20m ago•0 comments

The Lost Art of Preparing Your Own Meals

https://julienreszka.com/blog/the-lost-art-of-preparing-your-own-meals/
1•julienreszka•22m ago•0 comments

Node.js 26.7.0

https://nodejs.org/en/blog/release/v26.7.0
1•andrewstetsenko•22m ago•0 comments

$1.4B tower build for Atlassian hybrid workforce

https://itbrief.com.au/story/new-hq-for-hybrid-workforce-atlassian-central-hits-milestone
1•joeyhage•22m ago•0 comments

YouTube is on a major decluttering mission

https://www.fastcompany.com/91580299/youtube-is-on-a-major-decluttering-mission
2•andsoitis•23m ago•0 comments

Is Longevity a $1.2 Quadrillion Opportunity?

https://metatrends.substack.com/p/is-longevity-a-12-quadrillion-opportunity
1•chegra•23m ago•0 comments

We're not done with point clouds

https://claytonwramsey.com/blog/mvt/
1•birdculture•23m ago•0 comments

OpenAI COO Resigns

https://xcancel.com/bradlightcap/status/2087211567012032862
2•iamskeole•23m ago•1 comments

Euclidean affine functions and their application to calendar algorithms

https://onlinelibrary.wiley.com/doi/full/10.1002/spe.3172
1•fanf2•24m ago•0 comments

To be a better programmer, write little proofs in your head

https://blog.get-nerve.com/to-be-a-better-programmer-write-little-proofs-in-your-head/
2•orphereus•24m ago•0 comments

Show HN: Get an email when Dario Amodei (or 230 others) gives an interview

https://recordal.app
1•hooda•24m ago•0 comments

Show HN: Cut LLM turns in MCP interactions by 75%+

https://github.com/Tura-AI/tura
8•turaainet•26m ago•0 comments

.com now accounts for less than 48% of YC portfolio company domains

https://www.orangecrumbs.com/stories/yc-domains
3•oyster143•26m ago•0 comments

4,099 Qubits: The Myth and Reality of Breaking RSA-2048 with Quantum Computers

https://postquantum.com/post-quantum/4099-qubits-rsa/
2•Anon84•27m ago•0 comments

Boundaryguard – detect invisible Unicode/Trojan Source attacks in CI

https://github.com/000wq123/boundaryguard
2•davor1023•28m ago•0 comments

Lightweight, zero-build reactivity library build for MPA's

https://github.com/marsbos/flynt.js
2•harrald•28m ago•0 comments

Procedural Pixel-Art Grass in Rust and WebGPU

https://jarl-game.com/blog/2d-gpu-grass-rendering/
4•credo_dev•34m ago•0 comments

DFlash changes what tokens per second means

https://piszczek.pl/blog/dflash-changes-what-tokens-per-second-means
2•pich•37m ago•0 comments

Nix didn't hang it was evaluating the world

https://www.labcraft.dev/blog/nix-didnt-hang-it-was-evaluating-the-world
4•anandsuresh•39m ago•0 comments

CoreWeave edges past quarterly revenue estimates

https://www.reuters.com/technology/coreweave-edges-past-quarterly-revenue-estimates-2026-08-11/
2•ashurandi•40m ago•0 comments

The FastLanes Unified Transport Layout

https://blog.dave.tf/post/fastlanes-utl/
2•raggi•43m ago•0 comments

Google's Gemini app surges to one billion users

https://techcrunch.com/2026/08/11/googles-gemini-app-surges-to-one-billion-users/
3•speckx•43m ago•0 comments