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: Imagent – agentic image/video/speech generation

https://github.com/unliftedq/imagent
1•unliftedq•1m ago•0 comments

Spotify deletes streams of chart-topping song after suspicious Kalshi bets

https://www.ft.com/content/2e10851c-9f47-410d-b46e-2a617118b05a
1•thm•4m ago•0 comments

Qwicut – A Desktop App to Turn Any Selection into Intelligence

https://www.qwicut.com
1•yukidkwlbn•9m ago•0 comments

Reducing AI costs with smart pricing

1•millereffect•14m ago•0 comments

AI coding is a nightmare. Am I the only one experiencing this?

1•sollawen•15m ago•0 comments

Four graphs to visualize the unprecedented scale of France's June 2026 heatwave

https://www.lemonde.fr/en/les-decodeurs/article/2026/07/03/four-graphs-to-visualize-the-unprecede...
2•pier25•18m ago•0 comments

Stop Asking "Saga or 2PC." Start Asking What Each Operation Needs

https://medium.com/@pivotfakie/stop-asking-saga-or-2pc-start-asking-what-each-operation-needs-78c...
2•feeblefakie•18m ago•0 comments

Mr. Baby Paint and accidentally discovering a new cellular automata

https://tekstien-marginaalien-keskus.aalto.fi/residenssi/heikki/blog/004-december-2/
3•jfil•19m ago•0 comments

Micro Instrumentation and Telemetry Systems

https://www.abortretry.fail/p/micro-instrumentation-and-telemetry
2•BirAdam•22m ago•0 comments

California votes to ruin 3D printing right after voting to keep killing games [video]

https://www.youtube.com/watch?v=_GIigWnNRVg
5•givemeethekeys•29m ago•0 comments

Proving Claude Knows You by Your Code Style: Author2Vec

https://author2vec.com/
4•tristenharr•30m ago•1 comments

Ask HN: Is this type of writing is compelling, or over rated

3•Daniel-Pan•33m ago•2 comments

Fire and Coast Fire Tracker · Streamlit

3•Rossklot•34m ago•0 comments

U.S. Department of Energy Delivers Third Advanced Reactor Criticality

https://www.energy.gov/articles/us-department-energy-meets-president-trumps-goal-delivers-third-a...
4•simonpure•40m ago•0 comments

Moneyball for Physical AI

https://praxiscurrents.substack.com/p/moneyball-for-physical-ai
3•gmays•41m ago•0 comments

OpenUI: Open Standard for Generative UI

https://www.openui.com
2•handfuloflight•44m ago•0 comments

The delicious irony of Anthropic bemoaning distillation

https://twitter.com/ejzim/status/2072692694036660517
3•MrBuddyCasino•49m ago•0 comments

Lotus: Optimized Agentic and LLM Bulk Processing

https://github.com/lotus-data/lotus
2•handfuloflight•58m ago•0 comments

The end of paper retirement processing at the Office of Personnel Management

https://twitter.com/spikebrehm/status/2072422555101561154
4•MrBuddyCasino•1h ago•0 comments

Hackers On Planet Earth is back in Manhattan next month

https://www.hope.net/
3•fashiontechguru•1h ago•2 comments

GPT-5.5-Cyber built a zlib fuzzing lab in a day

https://blog.trailofbits.com/2026/07/02/field-reports-from-patch-the-planet/
2•wslh•1h ago•0 comments

Don't Train the Model, Evolve the Harness

https://huggingface.co/spaces/joelniklaus/harness-optimization
3•emersonmacro•1h ago•0 comments

Automated Accounting, Financial Reporting and Tax Management

https://maxint.com/blog/maxint-2-24-release
2•pcvetkovski•1h ago•0 comments

Trump's Windfall Has Few Known Global Precedents

https://www.nytimes.com/2026/07/02/world/europe/trump-world-leaders-corruption-wealth.html
3•Alien1Being•1h ago•0 comments

Ask HN: Once you make your money from vibe coding innumerable products, then?

2•keepamovin•1h ago•0 comments

Private Credit Keeps $14B Trapped in Bid to Outlast Storm

https://www.bloomberg.com/news/articles/2026-07-02/private-credit-keeps-14-billion-trapped-in-bid...
2•petethomas•1h ago•0 comments

Ask HN: How do you get your open-source product good traction?

2•akarshhegde18•1h ago•2 comments

Blue Owl hit by $4.7B of redemption requests as investor exodus persists

https://www.ft.com/content/b302a86d-f6eb-4d47-b90b-523c1c19b3fa
3•petethomas•1h ago•0 comments

'Humanity is a privilege': Umar Khalid on his six years in a jail without trial

https://www.theguardian.com/world/2026/jun/30/umar-khalid-interview-six-years-indian-jail-without...
3•thunderbong•1h ago•1 comments

Using precision editing to study human embryo development shows master gene

https://www.cam.ac.uk/research/news/first-use-of-precision-editing-to-study-human-embryo-developm...
3•gmays•1h ago•0 comments