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.

Stackoverflow for Agents Sofa

https://agents.stackoverflow.com/skill.md
1•pow-tac•9m ago•0 comments

Notes from the PipeWire Hackfest 2026

https://arunraghavan.net/2026/06/notes-from-the-pipewire-hackfest-2026-part-1/
1•JNRowe•9m ago•0 comments

Show HN: AgentBridge – translate and govern calls between AI agent protocols

https://github.com/shadowhunter-92/agentbridge
1•Shadowhunter89•16m ago•0 comments

Demystifying Noise Contrastive Estimation

https://jxmo.io/posts/nce
1•jxmorris12•20m ago•0 comments

Apple Foundation Models

https://platform.claude.com/docs/en/cli-sdks-libraries/libraries/apple-foundation-models
2•MehrdadKhnzd•23m ago•0 comments

AI Agents Don't Need SMS APIs. They Need Infrastructure

https://blog.bridgexapi.io/from-rest-apis-to-mcp-making-messaging-infrastructure-ai-native
2•Bridgexapi•30m ago•0 comments

Fugee, an agentic AI assistant for displaced people and asylum seekers [video]

https://www.youtube.com/watch?v=PYGzJZj7LfM
2•helmo•36m ago•0 comments

'Worst Example of Misconduct': Court Affirms Sanctions for Erroneous AI Cites

https://www.law.com/therecorder/2026/06/12/worst-example-of-misconduct-appellate-court-affirms-sa...
1•1vuio0pswjnm7•39m ago•0 comments

'Strains Credulity': Judge Rejects Meta's Attempt to Dismiss Copyright Suit

https://www.law.com/therecorder/2026/06/12/strains-credulity-judge-rejects-metas-attempt-to-dismi...
1•1vuio0pswjnm7•40m ago•0 comments

Who is the Real Dennis Ritchie? (1991) [pdf]

https://dmrthesis.net/wp-content/uploads/2021/08/BLR-Article-UNIXWorld-Jan1991-A.pdf
2•caned•40m ago•0 comments

A brief tour of the PDP-11, the most influential minicomputer of all time (2022)

https://arstechnica.com/gadgets/2022/03/a-brief-tour-of-the-pdp-11-the-most-influential-minicompu...
2•jensgk•40m ago•0 comments

Ask HN: How can we democratize agentic coding

1•omot•41m ago•0 comments

US Lawmakers Pressing DOJ on fraud, bribery case against Indian Billionaire

https://www.law.com/international-edition/2026/06/12/us-lawmakers-are-pressing-the-doj-on-its-dec...
1•1vuio0pswjnm7•42m ago•1 comments

A Galois Field Arithmetic Primer

https://tomverbeure.github.io/2026/06/14/Galois-Field-Arithmetic-Primer.html
3•matt_d•42m ago•0 comments

Quantum Horizon: Quantum Computing as a Threat to Bitcoin and Ethereum

https://arxiv.org/abs/2606.14484
1•OutOfHere•42m ago•0 comments

Show HN: Prela – A Compositional and Controllable Query Language

https://prela-lang.org
1•remywang•46m ago•0 comments

ArkType: The Parse-Don't-Validate Sequel I Didn't Know I Needed

https://cekrem.github.io/posts/arktype-parse-dont-validate-sequel/
2•jcbhmr•49m ago•0 comments

Found this FREE open source APP which is an absolute GEM

https://github.com/Prithvi-Web/Treemap
1•DaGoat487•49m ago•2 comments

I indexed 936 Lex Fridman episodes into a RAG that cites its sources

https://github.com/aranajhonny/omnipod
2•akatsutki•54m ago•0 comments

Bretisilocin

https://en.wikipedia.org/wiki/Bretisilocin
2•isoprophlex•59m ago•0 comments

Ask HN: What does your local LLM setup looks like?

2•the-mitr•1h ago•0 comments

Stripping KiezelPay (and other network calls) from Pebble Watch Faces

http://luke.abq.nm.us/blog/2026-06-14-Pebble-Watchface-Strip-KiezelPay/
1•sleepyink•1h ago•0 comments

Catjam 2026

https://itch.io/jam/catjam-2026
1•pigeons•1h ago•0 comments

The Tragedy of the Commoner

https://hughhowey.com/the-tragedy-of-the-commoner/
2•bjhess•1h ago•0 comments

Ask HN: Data source used for training Anthropic's Mythos?

2•sandeepkd•1h ago•1 comments

Is using AI in school cheating?

https://www.totalnoise.ai/blog/educationandai/
2•hasmatt•1h ago•0 comments

OpenAI under investigation by group of state attorneys general

https://www.reuters.com/business/openai-under-investigation-by-coalition-state-attorneys-general-...
2•Soumya_Max•1h ago•0 comments

Google sues alleged operators of an AI-powered phishing kit

https://www.reuters.com/legal/government/google-targets-ai-powered-phishing-new-york-lawsuit-2026...
1•Soumya_Max•1h ago•0 comments

Building Software vs. Building a House

2•filup•1h ago•0 comments

Domain-Specific AI for Pharma, Biotech and Medical Professionals

https://www.noah.bio/
1•ilreb•1h ago•0 comments