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.

Dht-spy – BitTorrent DHT telemetry

https://dhtspy.net/
1•ogurechny•2m ago•0 comments

Show HN: Desktui – a remote desktop client for your terminal

https://github.com/mishushakov/desktui
1•ushakov•5m ago•0 comments

DeepSeek pause fundraise after comments on compute gap to US leaked (transcript) [pdf]

https://github.com/demo-zexuan/liang-wenfeng-investor-meeting-2026-7-22/blob/master/%E6%A2%81%E6%...
3•oliculipolicula•5m ago•0 comments

Htmx 4: The Game

https://swag.htmx.org/products/htmx-4-the-game
2•geophph•19m ago•0 comments

Show HN: Routeveil – Shared-element and page transitions engine for React Router

https://www.routeveil.dev/lab/shared-elements
2•milkeviich•25m ago•0 comments

The Assumption of Maria (near future sci-fi)

https://www.lightspeedmagazine.com/fiction/the-assumption-of-maria/
5•swernli•26m ago•0 comments

The Dundee Time Capsule

https://www.greatwardundee.com/the-home-front/the-dundee-time-capsule/
1•xg15•27m ago•0 comments

"Loneliness influencers" are all the rage, but everyone is wrong about them

https://preta6.substack.com/p/loneliness-influencers-are-all-the
1•ropili•30m ago•0 comments

For coding agents, real-time collaboration beats the "wisdom of the crowd"

https://ykdojo.github.io/antigravity-cloud-run/experiments/collaboration-vs-wisdom-of-the-crowd/
2•ykev•30m ago•0 comments

Quantum internet leaves the lab

https://news.northwestern.edu/stories/2026/07/quantum-internet-leaves-the-lab
4•hhs•31m ago•0 comments

Algorithm-designed photonic circuits beyond human intuition

https://seas.harvard.edu/news/algorithm-designed-photonic-circuits-beyond-human-intuition-0
2•hhs•38m ago•0 comments

Where Your Mind Goes When You Stop

https://lanternhours.substack.com/p/where-your-mind-goes-when-you-stop
1•cuongvtran•40m ago•0 comments

Why Losing an Argument Feels Like Losing Yourself

https://lanternhours.substack.com/p/why-losing-an-argument-feels-like
2•cuongvtran•40m ago•0 comments

Clinical Failure Rates over the Decades: Yikes

https://www.science.org/content/blog-post/clinical-failure-rates-over-decades-yikes
8•EA-3167•41m ago•4 comments

As Supreme Court decisions grow sharper, study examines justices’ concessions

https://www.umass.edu/news/article/supreme-court-decisions-grow-sharper-study-examines-justices-c...
4•hhs•41m ago•0 comments

Trump's Push to Build Data Centers for the US Military

https://www.motherjones.com/politics/2026/07/data-centers-us-military-bases-public-lands/
2•cdrnsf•41m ago•0 comments

Ubuntu Pro auth service down?

https://ubuntu.com/login?next=/pro/attach?
1•spl757•42m ago•1 comments

Pangrandomonium: Rhizome Function Anagram Random Generator

https://zenodo.org/records/21551292
1•OCTADE•43m ago•1 comments

Wreckage of 1952 Pan Am plane crash found near Puerto Rico

https://www.theguardian.com/world/2026/jul/22/wreckage-found-1952-pan-am-plane-crash-air-safety-p...
2•firasd•43m ago•0 comments

Show HN: Cross-Platform Flutter and React-Native Plugin – FFmpeg-Kit-Extended

1•akashskypatel•46m ago•0 comments

What is happening to jobs? Separating AI hype from reality

https://siepr.stanford.edu/publications/policy-brief/what-really-happening-jobs-separating-ai-hyp...
3•pod_krad•47m ago•0 comments

Cloudflare's new AI traffic options for customers

https://blog.cloudflare.com/content-independence-day-ai-options/
2•alphabetatango•47m ago•0 comments

Show HN: Hubo – two agents that implement and review code until they agree

https://github.com/h0ngcha0/hubo
1•hongchao•48m ago•0 comments

Littleman Programming

https://icfpcontest2026.com/textbook#little%20men
2•irs•53m ago•0 comments

Nvprobe – Open-source, zero-setup CLI for CUDA benchmarks

https://github.com/SergioZ3R0/nvprobe
1•SergioZ3R0•54m ago•0 comments

Waymo's driverless cars involved in 68% fewer crashes than human drivers

https://www.cbc.ca/news/world/waymo-driverless-car-safety-study-9.7282895
4•uladzislau•55m ago•0 comments

Happy2 vs. Buzz

https://happy.engineering/happy2/docs/comparisons/buzz/
2•hmokiguess•57m ago•0 comments

Kenmore Air crash: How civilians 'saved the day'

https://www.seattletimes.com/seattle-news/how-recreational-boaters-saved-the-day-after-kenmore-ai...
4•ynac•58m ago•0 comments

Best and Worst Habits for Your Liver

https://www.nytimes.com/2026/07/23/well/liver-health-tips.html
1•brandonb•58m ago•1 comments

Memory-level parallelism: AMD is the king

https://lemire.me/blog/2026/07/25/memory-level-parallelism-amd-is-the-king/
2•mfiguiere•59m ago•0 comments