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.

Scaling Laws, Honestly

https://www.completeskeptic.com/p/scaling-laws-honestly
1•dreamingincode•1m ago•0 comments

Show HN: Osint tool that finds exposed files on domains

https://search.cerast-intelligence.com/
1•PatchRequest•8m ago•0 comments

Zero-copy in Go: sendfile, splice, and the cost of io.Copy

https://segflow.github.io/post/zero-copy-sendfile-splice/
1•mrngm•8m ago•0 comments

Show HN: Open-source guided code reviews

https://twitter.com/plannotator/status/2073845811847512372
2•ramoz•10m ago•0 comments

ARRR: Pirate MMO vibecoded by its players

https://www.arrr.fun
2•m0dE•10m ago•0 comments

RePost API Tester Extension

https://chromewebstore.google.com/detail/repost-api-tester/eipmeckflplenlbnlhbpmjojahephhkp
1•info-chirila•11m ago•0 comments

3D-print your own modular eyeglasses frames

https://eiga.works/design/hitomi-frames/
2•thinkalone•13m ago•0 comments

Fugu – A multi-agent LLM orchestrator delivered as a single API

https://github.com/SakanaAI/fugu
3•terminalchai•20m ago•0 comments

Vibe-coding platform Base44 launches own model as AI startups seek defensibility

https://techcrunch.com/2026/06/29/vibe-coding-platform-base44-launches-own-model-as-ai-startups-s...
3•gmays•20m ago•0 comments

Tripadvisor AI summaries give glowing reviews to dangerous hotels

https://www.euronews.com/travel/2026/07/03/tripadvisor-ai-summaries-give-glowing-reviews-to-dange...
6•jethronethro•23m ago•0 comments

Immich v3.0.0 Released

https://immich.app/blog/v3.0.0-release
3•birdculture•27m ago•1 comments

Show HN: Social and context-aware AI platform to do math

https://www.prooftree.ai
2•lemma1729•27m ago•0 comments

Trouble Transitioning (2025)

https://www.lrb.co.uk/the-paper/v47/n01/adam-tooze/trouble-transitioning
2•measurablefunc•28m ago•0 comments

Speech and Noise Corpora for Pitch Estimation of Human Speech

https://zenodo.org/records/3920591
3•q7m•32m ago•0 comments

Cursed circuits #5: capacitance multiplier

https://lcamtuf.substack.com/p/cursed-circuits-capacitance-multiplier
7•surprisetalk•32m ago•0 comments

Understanding B-Tree Indexes in PostgreSQL: A Comprehensive Guide– Part 1

https://medium.com/@devli0/b-tree-indexes-in-postgresql-part-1-theory-eb2668c52520
2•corvus-cornix•37m ago•0 comments

How to Get a Healthy, Shiny Coat on Your Dog: The Ultimate Guide

https://pawcaremedia.com/how-to-get-a-healthy-shiny-coat-on-your-dog-the-ultimate-guide/
2•Han25•39m ago•0 comments

New contributors to GNU Emacs over time

https://old.reddit.com/r/emacs/comments/1uo4t5e/new_contributors_to_gnu_emacs_over_time/
5•srijan4•39m ago•0 comments

WebGlean – API that turns any site into clean Markdown for LLMs

https://www.webglean.com
3•qubomax•40m ago•0 comments

Slow Tuesday Night (1965)

https://www.baen.com/Chapters/9781618249203/9781618249203___2.htm
2•et1337•43m ago•0 comments

The Strange Locomotion of Spirocuta

https://chriskiehl.com/article/euglenid-motion-in-flagellates
3•goostavos•46m ago•0 comments

Show HN: 3·6·9 COMMANDER, a turn-based strategy card game

https://forgottenmachine.itch.io/369-commander
3•forgatmachine•46m ago•0 comments

The Mental Models I Use to Work with AI

https://metedata.substack.com/p/015-the-mental-models-i-use-to-work
4•young_mete•48m ago•0 comments

State Sponsored Media? No Thanks [video]

https://www.youtube.com/watch?v=sFgSzsusIwQ
4•dp-hackernews•50m ago•0 comments

View from the Shifting Mound

https://thesolarprincess.github.io/blog/en/shiftingmound.html
2•paulpauper•51m ago•0 comments

Contributor Visualization for Superset: top contributors own 90% of lines

https://twitter.com/Principal_ADE/status/2073853855545143427
5•fernando-ram•52m ago•0 comments

Social media management for AI Agents

https://schedpilot.com/
2•schedpilot•53m ago•0 comments

Eclipse Enclave

https://projects.eclipse.org/projects/ecd.enclave
4•Tomte•53m ago•0 comments

A 3D-printed Raman spectrometer

https://hackaday.com/2026/07/05/2026-frikkin-lasers-challenge-a-3d-printed-raman-spectrometer/
4•ikbdsk•55m ago•0 comments

CommaAgents V2 Sharable Agent Orchestrator Release Candidate

https://github.com/CloAI/CommaAgents
2•NateAGeek•58m ago•1 comments