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: A headless Synergy server setup for niche use cases

https://github.com/hishamk/headlesssynergysetup
1•hishamk•2m ago•0 comments

How the Hell Did an Island Suddenly Appear, Then Vanish?

https://www.404media.co/how-the-hell-did-an-island-suddenly-appear-then-vanish/
2•Brajeshwar•3m ago•1 comments

Reinforcement Learning or Active Inference (2009)

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0006421
2•teleforce•5m ago•0 comments

Mom Gets 6-Mo Suspended Sentence for Letting 5-Year-Old Walk to the Pond

https://reason.com/2026/09/02/virginia-mom-gets-6-month-suspended-jail-sentence-for-letting-5-yea...
8•softwaredoug•6m ago•1 comments

Building an Invisible Smart Home

https://nealshyam.com/writing/invisible-smart-home/
2•nealrs•7m ago•0 comments

Show HN: Instantly get the transcript from the agent that wrote any line of code

https://github.com/ctxrs/ctx/blob/main/README.md
2•luca-ctx•8m ago•0 comments

Industrial AI Founders Keep Solving the Wrong Problem

https://deploy95.substack.com/p/the-gtm-problems-that-arent-what
2•dddddaviddddd•10m ago•0 comments

Show HN: Keydris - Check what an agent is allowed to do before it runs

https://keydris.com
2•ahmed89•10m ago•0 comments

Cratering oil use in China shows the death spiral that could end oil

https://electrek.co/2026/09/03/cratering-oil-use-in-china-shows-the-death-spiral-that-could-end-oil/
3•Klaster_1•10m ago•0 comments

Python sets and dictionaries can have quadratic-time performance

https://lemire.me/blog/2026/09/03/python-sets-and-dictionaries-can-have-quadratic-time-performance/
2•usdogu•11m ago•0 comments

How AI can put out its PR dumpster fire

https://www.ft.com/content/115c886f-23e4-4a8d-9656-5d7fc9480803
2•bossyTeacher•14m ago•1 comments

Scientific Agent Skills: A Library of Procedural Knowledge for Research Agents

https://arxiv.org/abs/2609.00065
2•gmays•14m ago•0 comments

Show HN: VT Code – My attempt at building a coding-agent harness

https://github.com/vinhnx/VTCode
3•vinhnx•15m ago•1 comments

Claude's new system prompt doesn't want to reproduce song lyrics

https://simonwillison.net/2026/Sep/2/claudes-new-system-prompt/
2•torutofu•15m ago•0 comments

RepoPolicyScore – check if a GitHub repo is ready for AI contributors

https://repopolicyscore.com
2•filippofascetta•16m ago•0 comments

Firefox url bars gone after update, how to restore

https://www.reddit.com/r/firefox/comments/1w5y6h1/url_bars_gone_after_fde_156_b2_update_aboutconfig/
3•sandinmyjoints•17m ago•0 comments

Show HN: A benchmark for flight search intent

https://fjmatrix.github.io/flight-search-intent-eval/
3•rabbit_1•19m ago•0 comments

Body Has a 'Second Heart', and It's Crucial You Keep It Pumping

https://www.sciencealert.com/your-body-has-a-second-heart-and-its-crucial-you-keep-it-pumping
3•sleepyguy•20m ago•0 comments

Show HN: Triplox, a distributed Datalog engine with incremental queries

https://github.com/fiV0/triplox
2•fiv0•20m ago•0 comments

Tencent Cloud Code Analysisis: comprehensive code analysis and issue tracking

https://github.com/Tencent/CodeAnalysis
2•Bluestein•20m ago•0 comments

QNX-style ("Qnet") networking is available in QSOE 0.2

https://qsoe.net/qsoe_0.2.html
2•ymz5•22m ago•0 comments

Semantic Browsing History Retrieval

1•bookmarksaviour•22m ago•0 comments

Show HN: 1994.fm – virtual car radio time machine (Apple music only)

https://1994.fm
1•cannoneyed•23m ago•0 comments

40 Years Ago, Oceanographers Found the Wreckage of the RMS Titanic

https://nautil.us/40-years-ago-oceanographers-found-the-wreckage-of-the-rms-titanic-1284740
1•Brajeshwar•24m ago•0 comments

Why Short AI Coding Prompts Can Cost You More Time

https://deanhume.com/why-short-ai-coding-prompts-can-cost-you-more-time/
2•speckx•24m ago•0 comments

Io_uring I/O Can Outlive a Reaped Process

https://blog.ydb.tech/is-there-i-o-after-death-what-happens-to-io-uring-when-a-process-dies-92c65...
1•eivanov89•25m ago•1 comments

Show HN: A website anyone can edit through auto-merged GitHub PRs

https://pushthis.github.io/buildmysite/
1•terpinedream•26m ago•0 comments

New York Times and The Athletic workers demand company scrap Kalshi deal

https://newsguild.org/new-york-times-and-the-athletic-workers-demand-company-scrap-kalshi-deal/
2•ChrisArchitect•27m ago•0 comments

A Transformer Plays Tic-Tac-Toe

https://sbondaryev.dev/articles/transformer
1•vismit2000•28m ago•0 comments

Justifying text by hand, now at 35 columns

https://en.andros.dev/blog/079a7eaa/justifying-text-by-hand-now-at-35-columns/
1•andros•28m ago•0 comments