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.

Tell HN: An inside view of Montana's new biotech law

1•niklas_anzinger•20s ago•0 comments

Coldwire – Offline Caching for Rails, Hotwire, and Hotwire Native

https://github.com/noreastergroup/coldwire-rails
2•hubert_magni•4m ago•0 comments

Claude Code files HR complaints about you while you work

https://github.com/lasagnapizza/claude-hr
1•kinduff•4m ago•0 comments

Rypipe – Format- and source-agnostic ingestion framework

https://github.com/emiliano-go/rypipe
1•emi_gandini•5m ago•0 comments

Anyhropic Launches Google Docs Alternative: Claude Docs

https://www.theverge.com/ai-artificial-intelligence/996234/anthropic-one-claude-cowork-docs-slides
1•lewisjoe•5m ago•0 comments

Show HN: Blast Arena – Quake 3-style deathmatch in the browser (WebRTC P2P)

https://kosmi.io/blast-arena/
1•hauxir•8m ago•0 comments

Will Taiwan Just Give Up?

https://www.theatlantic.com/magazine/2026/10/trump-taiwan-sovereignty-china/688356/
1•JumpCrisscross•8m ago•1 comments

Show HN: Deiko – point at your screen, talk, and hand the brief to your agent

https://deiko.app/
1•maddy30445r•9m ago•0 comments

MSI Titan 18 HX Dragon Edition Norse Myth AI: Can It Run AI Workloads Locally?

https://techstackups.com/articles/msi-titan-18-hx-dragon-edition-norse-myth-ai-review/
1•sixhobbits•9m ago•0 comments

AirPods 5 with Wireless Charging Case Works with MagSafe, but Not Magnetically

https://daringfireball.net/linked/2026/09/16/airpods-5-magsafe
1•aleshh•11m ago•1 comments

Meat Yield Calculators

https://meatprocessingplant.com/tools/meat-yield-calculator
1•g_langenderfer•11m ago•1 comments

We've created the first vectorized Quicksort

https://opensource.googleblog.com/2022/06/Vectorized%20and%20performance%20portable%20Quicksort.html
3•mococa•12m ago•0 comments

9-year-old Minecraft YouTuber ran up a $118,000 ad bill using dad's company card

https://www.videogameschronicle.com/news/im-definitely-cooked-a-9-year-old-minecraft-youtuber-ran...
2•speckx•14m ago•1 comments

Ask HN: What is the best local model that runs on your Mac at decent speed?

1•carloslfu•19m ago•0 comments

UK mathematician debunks myth around Parthenon's optical illusions

https://www.theguardian.com/science/2026/sep/16/uk-mathematician-debunks-myth-parthenon-optical-i...
2•pseudolus•19m ago•0 comments

A masterfully architected application for solving ANYTHING

https://the-analog-method--sophiasbookofl2.replit.app/
1•Harperissharper•19m ago•0 comments

Artificial Analysis: What Is the Intelligence Index Measuring?

https://itsmonkey.business/blogposts/01-On_Artificial_Analysis.html
1•baddash•20m ago•0 comments

GoBench: Evaluating LLMs on 9×9 Go using KataGo opponents as Elo anchors

https://rolandgao.com/blog/gobench/
1•GodelNumbering•20m ago•1 comments

Pull the best espresso shot with derivative-free optimization

https://humpday.microprediction.org/applications/espresso.html
1•timkpaine•22m ago•0 comments

An agent fleet needs a new kind of OS, not a bigger harness

https://pentad.ai/blog/fleet-needs-an-os/
3•kgcgfva•22m ago•1 comments

Iran improved targeting of US assets. How Russian satellites likely have helped

https://www.cnn.com/2026/09/16/world/video/russia-spy-satellites-iran-intelligence-strikes-us-ass...
2•giuliomagnifico•28m ago•0 comments

Fed approves interest rate hike, signals one more to come this year

https://www.cnbc.com/2026/09/16/fed-rate-decision-september-2026.html
9•rawgabbit•29m ago•0 comments

Is GitHub a social network that endangers children? Australia wants to know

https://www.theregister.com/offbeat/2025/09/25/australia-asks-github-if-its-a-dangerous-social-ne...
2•docflabby•30m ago•0 comments

Jotter – A local recording and transcription tool written in Rust

https://github.com/nfishel48/Jotter
1•movingmovie•32m ago•1 comments

NASA spacecraft discovers a new crater on the moon

https://apnews.com/article/moon-lunar-crater-space-nasa-80eea242ad275fda1f7a88587cdccd2f
1•dwringer•32m ago•0 comments

Feds Want California to Give Up 14 Years of Broadband Protections. It Should Sue

https://cyberlaw.stanford.edu/blog/2026/09/california-is-being-asked-to-give-up-14-years-of-broad...
1•rsingel•34m ago•0 comments

Who is vertigoruntime and how do they have 3 posts on the front page rn?

https://news.ycombinator.com/user?id=vertigoruntime
1•johnnyApplePRNG•35m ago•1 comments

GDScript: The Good, Bad, and Ugly Parts

https://azhdarchid.com/gdscript-good-bad-ugly/
3•birdculture•36m ago•0 comments

Fed Raises Rates as Warsh Bucks Trump to Contain Inflation

https://www.bloomberg.com/news/articles/2026-09-16/fed-raises-rates-as-warsh-bucks-trump-to-conta...
13•toomuchtodo•38m ago•6 comments

Show HN: Real-Time Chess Assistant (C++ DirectX, OpenCV, ImGui and Stockfish)

https://github.com/rccmb/oracle
2•baptistarodrigo•38m ago•1 comments