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.

Big Tech's Capex Is Half of Wall Street's Profit Growth

https://inlevel9.com/en/issues/half-the-growth-was-capex
1•speckx•29s ago•0 comments

Effect 4.0

https://effect.website/blog/releases/effect/40
1•stevefan1999•2m ago•1 comments

Claude Code Mods: plugins may now modify deeper behavior

https://code.claude.com/docs/en/plugins/mods/overview
1•rtuin•3m ago•0 comments

A Tale of Two Cultures: Can Agentic Coding Close the Gap? [video]

https://www.youtube.com/watch?v=7HWIUTcGFQ4
1•gmays•3m ago•0 comments

Nvidia launches Open Agent Safety Platform to restrain rogue AI agents

https://www.tomshardware.com/tech-industry/artificial-intelligence/nvidia-launches-open-agent-saf...
1•sbulaev•5m ago•0 comments

I'm leaving Reddit because of RSS

https://lapcatsoftware.com/articles/2026/10/1.html
3•speckx•5m ago•0 comments

My personal AI financial advisor

https://genaipod.substack.com/p/personal-finance
2•shashu10•5m ago•1 comments

Open-Source Next.js 14 Boilerplate with Binance Pay (0% Crypto Gateway Fees)

https://github.com/Shokun123/binance-pay-saas-starter
1•shokun123•6m ago•0 comments

Empire State Building Airship Dock: The Mooring Mast Story

https://funfactz.com/places/empire-state-building-airship-mooring-mast-gangplank
1•thunderbong•6m ago•0 comments

I Went from Lipid Denialist to Lipid-Lowering Advocate

https://www.irondpc.com/post/how-i-went-from-lipid-denialist-to-lipid-lowering-advocate-how-conse...
1•brandonb•6m ago•0 comments

Google Cloud SDK for Server-Side Swift (Linux) Reaches GA

https://github.com/googleapis/google-cloud-swift
1•dcgudeman•8m ago•0 comments

Oxygen-deprived underwater zones may not be "dead zones" but clue to early life

https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2026AV002570
2•gumby•8m ago•0 comments

Show HN: PBI Guard – Stop people from messing up your Power BI (you included)

https://patens-dev.github.io/pbi-guard/
1•randomlyGenerat•9m ago•0 comments

Strands Decider Decision Model

https://strandsagents.com/blog/introducing-strands-decider/
1•xendo•14m ago•0 comments

Decode-Latency Feedback Prefill: A Model-Free Controller

https://arxiv.org/abs/2609.38386
1•gauravapiscean•15m ago•1 comments

Giving friends custom text buzzes based on Morse code

https://liquidbrain.net/blog/giving-friends-custom-text-buzzes-based-on-morse-code/
1•evakhoury•15m ago•0 comments

Sources: US tells France, Germany to release diesel stocks or face US export ban

https://www.reuters.com/business/energy/us-tells-france-germany-release-diesel-stocks-or-face-us-...
2•mikhael•17m ago•1 comments

OpenAI Elevated Issues – ChatGPT Down

https://status.openai.com
2•robeym•18m ago•0 comments

US judge dismisses Chegg, Penske antitrust suits over Google AI Overviews

https://reuters.com/legal/litigation/google-wins-dismissal-chegg-penske-media-lawsuits-over-ai-ov...
3•utiiiD•18m ago•0 comments

Anatomy of a Lean Proof for Software Engineers

https://agostbiro.net/posts/2026-10-anatomy-of-a-lean-proof/
1•abiro•19m ago•0 comments

Ovarian Biology: Revisiting the rete ovarii (2025)

https://elifesciences.org/articles/106648
1•Tomte•20m ago•0 comments

Show HN: D-Engine – deterministic LLM code edits, 42× fewer tokens than an agent

https://github.com/corruchaga/D-Engine
1•sergiocorruchag•20m ago•0 comments

Star Hop: Endless Galaxy

https://www.star-hop.app/
1•dschnelly•22m ago•0 comments

MTV Didn't Die of Bad Taste: It Died the Day the Doors Multiplied

https://comuniq.xyz/Music/post?t=1716
1•01-_-•22m ago•1 comments

First enhanced geothermal power plant completed in just 23 months

https://techcrunch.com/2026/10/01/worlds-first-enhanced-geothermal-power-plant-completed-in-just-...
2•speckx•22m ago•0 comments

I rebuilt Claude Code's terminal UI in Rust. Then I deleted 12,000 lines of it

https://medium.com/@simonrothgang/i-rebuilt-claude-codes-terminal-ui-in-rust-then-i-deleted-12-00...
1•srothgan•24m ago•0 comments

An in-the-wild iOS bug with a possible WhatsApp zero-click path

https://calif.io/research/the-great-glyph-grift
1•metrofun•25m ago•0 comments

Tell HN: Get the app to keep using Reddit

4•sippingabonedry•25m ago•1 comments

Postgres DELETE can actually scale

https://www.dbos.dev/blog/scaling-deletions-in-postgres
1•KraftyOne•30m ago•0 comments

The Programming Language That Referees Mathematics – Leo de Moura [video]

https://www.youtube.com/watch?v=ZpQFebTK75A
1•digital55•30m ago•0 comments