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.

Original Apollo 11 Guidance Computer source code for command and lunar modules

https://github.com/chrislgarry/Apollo-11
1•noteness•51s ago•0 comments

App vs. Website: Why Apps Feel Smoother Than Sites

https://lazerg.uz/en/blog/ilova-va-sayt-tezlik-farqi
1•lazerg•1m ago•0 comments

Human-Centered Change and Innovation

https://bradenkelley.com/2026/06/mechanistic-interpretability-ai-trust/
1•mahirsaid•2m ago•0 comments

News Corp accuses search engine Brave of AI copyright infringement

https://www.semafor.com/article/07/21/2026/newscorp-accuses-search-engine-brave-of-ai-copyright-i...
1•thm•10m ago•0 comments

Study: Digital media may reshape people's willingness to invest cognitive effort

https://cs.ut.ee/en/news/digital-media-may-reshape-peoples-willingness-invest-cognitive-effort
1•giuliomagnifico•18m ago•0 comments

How Anthropic runs large-scale code migrations with Claude Code

https://twitter.com/ClaudeDevs/status/2079654423828304282
2•pretext•18m ago•1 comments

India's Cockroach movement protesters show no sign of backing down

https://www.theguardian.com/world/2026/jul/21/india-cockroach-movement-protesters-delhi
2•akbarnama•22m ago•0 comments

Show HN: Public-safe skin packs for the Codex desktop app

https://codex-theme-gallery.howardhua.chatgpt.site/codex-skin-pack-installer
1•howardV•25m ago•0 comments

LanguageTool Joins Learneo

https://forum.languagetool.org/t/languagetool-joins-learneo/8865
1•Evapont•26m ago•1 comments

Central Valley farmers reluctantly turn to solar as water supplies dry up

https://www.latimes.com/environment/story/2026-07-20/as-water-restrictions-hit-farmers-solar-is-m...
2•littlexsparkee•27m ago•1 comments

Terry Tao's ChatGPT Session about the Jacobian Conjecture

https://chatgpt.com/share/6a5fdc7a-d6f8-83e8-bbea-8deb42cfed56
2•porridgeraisin•29m ago•0 comments

Airglow browser lets users modify YouTube, Gmail and Spotify in real time

https://runtimewire.com/article/airglow-browser-lets-users-modify-youtube-gmail-and-spotify-in-re...
2•ryanmerket•30m ago•0 comments

AppRelay

https://apprelay.io/
1•wrightscs•30m ago•0 comments

State of Software Architecture Survey

https://www.reddit.com/r/softwarearchitecture/s/QBTWdrwmkV
1•asdfdelta•33m ago•0 comments

Show HN: VectorArtGen – Generate editable SVG vector art from text prompts

https://vectorartgen.com/
1•chynnahe•33m ago•0 comments

Video Demo: AI Employee Scheduling

https://www.youtube.com/watch?v=e9KqwB56vBI
1•dethstrobe•42m ago•0 comments

Kimi K3: second only to Fable 5 on AA-Briefcase

https://artificialanalysis.ai/articles/kimi-k3-agentic-knowledge-benchmark
3•wertyk•45m ago•0 comments

DeBasification a Fancy Word for Booting the US Out of the Middle East

https://larrycjohnson.substack.com/p/debasification-a-fancy-word-for-booting
3•hackandthink•46m ago•0 comments

AI's solution to 87-year-old riddle takes mathematicians by surprise

https://www.newscientist.com/article/2580374-ais-solution-to-87-year-old-riddle-takes-mathematici...
2•Pandionic•47m ago•0 comments

Show HN: Spring Boot Inspired Java Selenium Open Source Framework

https://github.com/seleniumboot/selenium-boot
1•mdsddmhossain•48m ago•0 comments

US Study Finds 1/3 Without CHD Miss New Cholesterol Goals, 75% Go Untreated

https://www.massgeneralbrigham.org/en/about/newsroom/press-releases/1-in-3-americans-miss-new-cho...
1•littlexsparkee•48m ago•0 comments

Show HN: MindBase – an LLM that maintains a wiki from your notes and papers

https://github.com/frankchu91/mindbase
1•haobing0304•51m ago•0 comments

Reflecting on a Year of Building Petrichor

https://doublslash.com/blog/2026/07/22/reflecting-on-a-year-of-building-petrichor/
1•kushalpandya•54m ago•1 comments

Show HN: Claude Code desktop alternative for macOS

https://skeezo.dev/
1•ho0die_kid•1h ago•0 comments

News Corp countersues Brave for allegedly 'scraping' articles for AI

https://www.reuters.com/business/media-telecom/news-corp-countersues-brave-allegedly-scraping-art...
1•pinewurst•1h ago•0 comments

Show HN: BlastRadar GitHub Action, automatic production risk scoring on every PR

https://github.com/Blast-radar/blastradar-action
1•M_Carpenter•1h ago•0 comments

Ten ways a check passes while the thing it checks is broken

https://phronesis.world/papers/ways-of-checking/
2•degibug•1h ago•0 comments

Google Was a Lifeline for Publishers. Now Some Are Thinking of Cutting It Off

https://www.wsj.com/business/media/google-search-publishers-ai-content-0fb06e41
3•thm•1h ago•0 comments

How I use LLMs as a staff engineer

https://www.seangoedecke.com/how-i-use-llms/
2•kp25•1h ago•0 comments

Show HN: IMAX Analysis throughout the years (1994 – 2026)

https://github.com/omarirfa/IMAX-Analysis
1•fl4res•1h ago•0 comments