frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Government to buy AI chips to stop tech companies fleeing Britain

https://www.telegraph.co.uk/business/2026/06/07/government-buy-ai-chips-stop-tech-companies-fleeing/
1•graemep•18s ago•0 comments

ShowHN: PypoLCA – Latent Class Analysis and Regression in Python

https://github.com/marcandre259/pypolca
1•marcandre259•1m ago•1 comments

Google just made you a search quality rater. You won't get paid

https://mojodojo.io/blog/google-just-made-you-a-search-quality-rater-you-won-t-get-paid
1•zenincognito•3m ago•0 comments

Is grep better than a vector DB?

https://www.zansara.dev/posts/2026-03-15-vector-dbs-vs-grep/
1•shahargl•3m ago•0 comments

Show HN: TeamOlimpo: Handoffs and mandatory SOPs for multi-agent coordination

https://github.com/teamolimpo/TeamOlimpo
1•tensor_mill•6m ago•0 comments

Show HN: Every Claw Deserves a Face

https://nyxclaw.ai/
1•antonios_makro•7m ago•1 comments

Finland Tests Early-Warning System Detecting Threats to Subsea Cables

https://www.bloomberg.com/news/articles/2026-06-05/finland-tests-early-warning-system-detecting-t...
2•giuliomagnifico•7m ago•0 comments

The User Doesn't Care – But you should

https://lewiscampbell.tech/blog/260607.html
1•kugurerdem•11m ago•0 comments

Mru: A Fault-Tolerant Operating System for Thousand-Year Autonomous Operation

https://zenodo.org/records/20579438
1•wbnns•12m ago•0 comments

The best relationships are all-encompassing.

https://andys.blog/the-best-relationships/
1•andytratt•13m ago•0 comments

Reinventing Entropy – Compression and Intelligence Part 1 (3b1B) [video]

https://www.youtube.com/watch?v=l6DKRf-fAAM
1•vismit2000•14m ago•0 comments

Show HN: We built a tool to dub any video in the original voice in 40 languages

https://vaani.media
2•ABSALOMMAXY•17m ago•1 comments

Trump to announce nearly $700M in coal support

https://www.axios.com/2026/06/04/trump-coal-federal-support-announcement
1•doener•17m ago•0 comments

ModPageSpeed 2.0: Lighthouse 56 to 90. On your own servers

https://modpagespeed.com/
2•ksec•19m ago•0 comments

Firefox confirms working on own adblocker [video]

https://www.youtube.com/watch?v=Qd5_5hXa8Zc
1•HelloUsername•21m ago•0 comments

The Grate Cheese Robbery

https://longreads.com/2026/05/28/the-cheese-theft-food-crime/
1•RickJWagner•22m ago•0 comments

Free security agent on GitHub AgentHQ, scans PRs and auto-fixes vulns

https://github.com/marketplace/bright-security-agent
1•bararchy•23m ago•1 comments

Walkthrough at the drone defence company Sensofusion [video]

https://www.youtube.com/watch?v=ZIMVmYzARiE
1•mikkohypponen•23m ago•1 comments

Open Semantic Interchange: The Universal Standard for Semantic Data

http://open-semantic-interchange.org/
1•asplake•24m ago•0 comments

Discover Your Destiny with AI Palm Reading

https://aipalmreading.net/
1•tunzhang•24m ago•0 comments

Stack Overflow didn't just help AI learn to code

https://zozo123.github.io/how-stackoverflow-taught-ai/
1•zozo123-IB•28m ago•0 comments

The brain can unlock true multitasking after intensive training

https://medicalxpress.com/news/2026-06-brain-true-multitasking-intensive.html
2•pseudolus•32m ago•0 comments

Show HN: Version Control for AI Agents

https://cognatoai.com
1•harsh020•36m ago•0 comments

Show HN: PWNC – A dependency-free web platform I've been building for 25 years

https://github.com/heydev-de/pwnc
1•katzito•37m ago•1 comments

AI needs shame, not taste

https://www.jacquescorbytuech.com/writing/ai-needs-shame-not-taste
1•iamacyborg•39m ago•0 comments

Ground Control: A zero-back end admin tool to process 50k records in the browser

https://blog.praveen.science/ground-control-the-admin-dashboard-nobody-sees/
1•praveenscience•41m ago•0 comments

Lexar says that RAM prices are expected to double by the end of the year

https://www.tomshardware.com/pc-components/ram/lexar-regional-manager-says-that-ram-prices-are-ex...
2•dabinat•42m ago•0 comments

The Smallest C++ Binary

https://blog.weineng.me/posts/smallest_c
1•birdculture•42m ago•0 comments

Show HN: Mind the Hive – a daily Schelling-point game (match or dodge the crowd)

https://mindthehive.app/
1•colmanhumphrey•44m ago•0 comments

Jax Back Ends and Devices

https://www.gilesthomas.com/2026/06/jax-backends-and-devices
1•ibobev•47m ago•0 comments