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•11mo 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•11mo 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•11mo 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.

Parfit – a codebase-aware comment reflow tool written in Rust

https://github.com/caldempsey/parfit
1•caldempsey•43s ago•1 comments

Food for Agile Thought #541: GPT-5.5, Product Managers&Trouble, Product on Speed

https://age-of-product.com/food-agile-thought-541-gpt-55/
1•swolpers•1m ago•0 comments

Why Meta is laying off 10% of its workforce

https://www.latimes.com/business/story/2026-04-23/why-meta-is-laying-off-10-of-its-workforce
3•1vuio0pswjnm7•3m ago•0 comments

Ask HN: How are you using AI code assistants on large messy legacy code bases?

1•thinkingtoilet•3m ago•0 comments

What is a passkey, how does it work and why is it better than a password?

https://www.theguardian.com/technology/2026/apr/24/what-is-a-passkey-how-does-it-work-and-why-is-...
1•charlieirish•4m ago•0 comments

Meta to ax 8k jobs as Zuckerberg doubles down on AI

https://nypost.com/2026/04/23/business/meta-to-ax-8000-jobs-as-zuckerberg-doubles-down-on-ai-and-...
2•1vuio0pswjnm7•8m ago•1 comments

Does Mythos mean you need to shut down your Open Source repositories?

https://shkspr.mobi/blog/2026/04/does-mythos-mean-you-need-to-shut-down-your-open-source-repos/
1•Brajeshwar•8m ago•0 comments

What's a "lost" website from the early 2000s that you still think about today?

https://old.reddit.com/r/AskReddit/comments/1stdtnv/whats_a_lost_website_from_the_early_2000s_that/
1•hackerbeat•8m ago•0 comments

UbuWeb

https://www.ubu.com/resources/about.html
1•pentagrama•8m ago•0 comments

Ask HN: What's your current go-to LLM for "thinking-partner"?

1•dennismcwong•9m ago•0 comments

Show HN: Headless terminal for agents to run any TUI built on libghostty

https://github.com/montanaflynn/headless-terminal
1•anonfunction•9m ago•1 comments

Illegal gold mining is rampant on Nicaragua-Costa Rica border

https://english.elpais.com/economy-and-business/2026-03-18/illegal-gold-mining-is-rampant-on-nica...
1•PaulHoule•11m ago•0 comments

Meta will cut 10% of workforce as company pushes deeper into AI

https://www.cnbc.com/2026/04/23/meta-will-cut-10percent-of-workforce-as-it-pushes-more-into-ai.html
3•1vuio0pswjnm7•12m ago•1 comments

The Therac-25 Radiation Disaster

https://onlytech.boo/incident/silent-killers-the-therac-25-radiation-disaster-mnmzzd8e
2•vednig•15m ago•1 comments

Constitutional AI is not a constitution

https://hadleylab.org/blogs/2026-04-03-constitutional-ai-vs-canonic/
1•idrdex•16m ago•1 comments

Extract PDF text in the browser with LiteParse for the web

https://simonwillison.net/2026/Apr/23/liteparse-for-the-web/
1•pierre•16m ago•0 comments

Why it's hard to go to the market with a non-technical cofounder in 2026

https://www.youtube.com/watch?v=2L-MhcL96OY
3•vorniches•16m ago•0 comments

Charts of the Week: Software Ate the World

https://www.a16z.news/p/charts-of-the-week-software-ate-the
2•7777777phil•17m ago•0 comments

CuRast: CUDA-Based Software Rasterization for Billions of Triangles

https://arxiv.org/abs/2604.21749
2•rbanffy•18m ago•0 comments

Framework Wireless Touchpad Keyboard

https://frame.work/products/framework-wireless-touchpad-keyboard
2•Wingy•19m ago•0 comments

Finishing Things

https://ratfactor.com/finishing-things
2•ibobev•19m ago•0 comments

Cloud Computers for Agents: Exe.dev vs. Sprites vs. Shellbox vs. E2B vs. Blaxel

https://techstackups.com/comparisons/cloud-computers-for-ai-agents/
1•sixhobbits•22m ago•0 comments

Surprising origin of 4 features that superglue kids – and adults – to screens

https://www.npr.org/2026/04/21/nx-s1-5776665/surprising-origin-features-superglue-kids-adults-to-...
1•microflash•25m ago•0 comments

Community Votes to Deny Water to Nuclear Weapons Data Center

https://www.404media.co/community-votes-to-deny-water-to-nuclear-weapons-data-center/
1•Brajeshwar•25m ago•0 comments

Machine Learning Reveals Unknown Transient Phenomena in Historic Images

https://arxiv.org/abs/2604.18799
2•solarist•26m ago•0 comments

FCC alters the Wi-Fi router ban to include hotspots

https://www.androidauthority.com/router-ban-expands-to-hotspots-3660505/
2•kotaKat•26m ago•0 comments

Basins with Tentacles

https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.127.194101
2•wslh•27m ago•0 comments

AI data center backlash threatens Pennsylvania GOP incumbents in 2026 election

https://www.cnbc.com/2026/04/24/ai-data-centers-pennsylvania-republicans-2026-election.html
3•bachmeier•27m ago•0 comments

A small economic forecaster trained from raw Fed PDFs beat GPT-5

https://blog.lightningrod.ai/p/turning-fed-beige-book-pdfs-into-a-calibrated-ai-economic-forecaster
4•bturtel•27m ago•0 comments

Show HN: The why and how of TurboPentest for the Agentic Era

https://integsec.com/blog/the-genesis-of-turbopentest.com-bridging-the-gap-in-an-ai-code-explosio...
1•integsec•29m ago•0 comments