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: 1 in 7 MCP server source repos have vanished (open dataset)

https://mcpindex.ai/research/source-liveness
1•gatuamgb•29s ago•0 comments

Could China and Russia Destroy Starlink?

https://arstechnica.com/space/2026/07/could-china-and-russia-really-destroy-starlink-only-with-a-...
1•gumby•1m ago•0 comments

Data centers barely use any water or land, and they lower electric bills

https://twitter.com/cremieuxrecueil/status/2078258808225214619
1•MrBuddyCasino•1m ago•0 comments

Shayan Oveis Gharan Wins 2026 IMU Abacus Medal

https://www.quantamagazine.org/shayan-oveis-gharan-wins-2026-imu-abacus-medal-20260723/
1•MaysonL•2m ago•0 comments

LLMs break down in funny ways when told the Jacobian Conjecture counterargument

https://minimaxir.com/2026/07/jacobian-conjecture/
1•minimaxir•3m ago•0 comments

Getting Started with Loops

https://twitter.com/ClaudeDevs/status/2074208949205881033
1•gmays•5m ago•0 comments

GitHub Increased Instant Navigation 5.5x by Rethinking Client Side Architecture

https://www.infoq.com/news/2026/07/github-issues-navigation/
1•theanonymousone•5m ago•0 comments

Why Linus Is Right and AI Is Wrong

https://raymyers.org/post/why-linus-is-right-and-ai-is-wrong/
1•mender-ai•6m ago•1 comments

When a Passing Test Suite Hides a Broken Model

https://medium.com/@alanscottencinas/the-green-test-suite-that-hid-a-broken-model-f3ea908a57cd
1•encinas88•7m ago•0 comments

Half-Life 2 / Valve Source Shading [pdf]

http://www.decew.net/OSS/References/D3DTutorial10_Half-Life2_Shading.pdf
1•klaussilveira•7m ago•0 comments

Down with the Gradient Reinventing Logistic Regression

https://martimchaves.com/#/blog/logistic-regression
1•martimchaves•8m ago•0 comments

Albert Einstein's Real Interview on War, Nationalism, and Democracy (1940)

https://www.youtube.com/watch?v=2WpkQCNMT2s
2•theanonymousone•8m ago•0 comments

We Stopped Going to the Movies

https://www.statsignificant.com/p/why-we-stopped-going-to-the-movies
1•speckx•10m ago•0 comments

Deep Learning: Searching for a Function

https://fazamhd.com/mental-models/deep-learning/
1•faza•11m ago•0 comments

Dassault Systemes to Buy ArisGlobal for Up to $2B

https://www.wsj.com/health/dassault-systemes-to-buy-arisglobal-for-up-to-2-billion-82aecb9a
1•N_A_T_E•11m ago•0 comments

Show HN: ZeroGate – Fast, account-free visual CSV matching without AI

https://zerogate.cloud
1•ngarner•12m ago•0 comments

Kitty – Terminal Graphics Protocol

https://sw.kovidgoyal.net/kitty/graphics-protocol/
1•peter_d_sherman•13m ago•0 comments

The Avocados That May Save Us from a Guacamole Apocalypse

https://nautil.us/the-avocados-that-may-save-us-from-a-guacamole-apocalypse-1282897
1•Brajeshwar•13m ago•0 comments

Stop Prompting, Start Looping

https://lanes.sh/blog/loop-engineering-with-lanes
3•s-xyz•14m ago•0 comments

Show HN: Triton-blackhole – debug Triton FP drift without device_print

https://github.com/brian-mwirigi/triton-blackhole
1•nesh23•16m ago•0 comments

How I Made Servers Invincible to Hangs

https://blog.nassella.org/how-i-made-servers-invincible-to-hangs/
1•thecombjelly•19m ago•0 comments

Show HN: Static libvips builds, pick only the formats you need

https://github.com/libstatic/libvips
1•u84u•20m ago•0 comments

Is open-weight AI banned yet?

https://isopenweightaibannedyet.com/
4•mihau•20m ago•0 comments

Show HN: HimitsuShell – DRM for Shell Scripts with Obfuscation

https://github.com/HimitsuShell/Himitsu
2•mushstory•21m ago•0 comments

JEP 540: Simple JSON API (Now in Incubator)

https://openjdk.org/jeps/540
4•theanonymousone•21m ago•0 comments

If Anyone Builds It, Everyone Dies

https://en.wikipedia.org/wiki/If_Anyone_Builds_It,_Everyone_Dies
2•artembugara•21m ago•0 comments

Four Young Mathematicians Receive Prestigious Fields Medals

https://www.nytimes.com/2026/07/23/science/fields-medals-pardon-deng-wang-tsimerman.html
2•sonabinu•24m ago•0 comments

The Lakehouse Format Is an Engine Contract

https://lakesail.com/blog/lakehouse-engine-contract/
1•eveerett•25m ago•0 comments

Show HN: Convert GLB, OBJ, and STL Models to SVG In-Browser

https://greglinscheid.com/tools/3d-to-svg/
1•vilos1611•27m ago•1 comments

Ayghri/I-have-ADHD: skill for coding agent to stop it from burying the answer

https://github.com/ayghri/i-have-adhd
2•ulrischa•27m ago•0 comments