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.

AWS Large Payment Verification Amount

https://www.reddit.com/r/aws/comments/1wzh3yp/large_payment_verification_amount/
1•ericdiao•16s ago•0 comments

Calling It Quits on ServerFault

https://sysadmin1138.net/mt/blog/2026/10/calling-it-quits-on-serverfault.shtml
1•zdw•41s ago•0 comments

Guide to Using Generative AI in Programming – Textbook by Antti Laaksonen

https://link.springer.com/book/10.1007/978-3-032-07453-9
1•vismit2000•8m ago•0 comments

Ask HN: Does AI do better with CSS or Tailwind?

1•pupppet•13m ago•0 comments

Backdooring Sparse Autoencoders

https://arxiv.org/abs/2610.06049
2•sbulaev•15m ago•0 comments

Claude subscription plan provides more value than OpenAI's, study says

https://www.theregister.com/ai-and-ml/2026/10/06/anthropic-claude-subscription-plan-provides-more...
1•galaxyLogic•15m ago•0 comments

The Eternal Complement

https://openai.com/index/the-eternal-complement/
1•gmays•18m ago•0 comments

Local AI is real now. And it's blowing my mind

https://hive.technology/lab-notes/local-ai-is-real/
1•tylermhall•20m ago•1 comments

Show HN: Git extension for controlling Git worktree mess

https://getzit.org/
2•ironfootnz•20m ago•0 comments

Claude Isn't Allowed to Write Me Prose

https://blog.kvit.app/posts/agent-not-allowed-to-write-prose/
4•skolos•37m ago•0 comments

The art of defusing a second world war bomb

https://www.theguardian.com/news/ng-interactive/2026/oct/06/it-could-knock-a-whole-street-down-th...
3•sandebert•39m ago•0 comments

Ichneumon eumerus

https://en.wikipedia.org/wiki/Ichneumon_eumerus
2•GaryBluto•42m ago•0 comments

Show HN: A browser-only checker for text hiding under PDF black boxes

https://camlabs.ai/redaction-checker/
1•camlabsai•42m ago•0 comments

Revisiting Soundness for Occurrence Typing, Semantically

https://arxiv.org/abs/2609.16299
2•azhenley•43m ago•0 comments

Show HN: EasyToSTL – Convert 2D images and text to watertight, print-ready STLs

https://easytostl.com/
1•dawn3727•46m ago•0 comments

Show HN: ImgKit – 62 image tools that run in the browser

https://imgkit.xyz
3•jaydippatel83•48m ago•0 comments

Jev isn't a better judge than Claude

https://deeplearningguy.github.io/blog/jev-vs-claude-judge/
2•deepbuilder•50m ago•0 comments

Show HN: NanoMuse – An open-source AI agent for your phone and computer

https://github.com/nano-muse/nanoMuse
2•ilreb•52m ago•0 comments

Show HN: Vim-like, hyper-efficient, LLM power tool – 20-80k tokens not 350k+

https://easiest.ai/
1•skhameneh•53m ago•0 comments

Multiplayer AI coding workspace for teams and agents

https://www.tryfridaywork.com
1•arunjdass•53m ago•0 comments

Biology, Buddhism and AI: the Platonic space model and the rogue agent swarm

https://okossa.com/biology-buddhism-and-ai-ff213a852eb4
1•okwe•56m ago•0 comments

An Open Challenge to GitHub Users: Test Das Architecture with Meta Muse Sentinel

https://zenodo.org/records/23201404
1•sangamdas•58m ago•0 comments

Can VLMs recognize famous videos from just their colors?

https://loganbolton.github.io/blog/videocolorbench/
1•septisum•59m ago•0 comments

OpenWAM: An Open Framework for Composable World-Action Models

https://openwam.stanford.edu/
2•ilreb•1h ago•0 comments

La Cueva BBS in Mexico in 1993 (session replay)

https://nanochess.org/la_cueva_bbs.html
11•nanochess•1h ago•1 comments

How do you handle client feedback and revisions on website projects?

1•tweakpage•1h ago•0 comments

Agentty is still the best way to manage agentic sessions

https://github.com/agentty-xyz/agentty
2•minev-dev•1h ago•0 comments

A missing filter looks exactly like a correct query

https://read.mir0n.pro/missing-filter/
1•mir0n•1h ago•0 comments

Building Rome from a Single Image

https://build-rome.github.io/
2•ilreb•1h ago•0 comments

Olmo-core 3: Open, scalable training infrastructure for large MoEs

https://allenai.org/blog/olmocore3
2•gmays•1h ago•0 comments