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.

Claude Code adds new "concise" output style setting

https://twitter.com/ClaudeDevs/status/2090245922685063634
1•enraged_camel•3m ago•0 comments

Misconfigured Admin System Prompts Can Invert an LLM's Safety Layer

https://medium.com/@aadvait.cr/how-misconfigured-admin-system-prompts-can-invert-every-single-llm...
1•Aadvait•4m ago•0 comments

Did someone wearing Meta Glasses film you today? Are you sure?

https://www.theguardian.com/technology/ng-interactive/2026/aug/19/meta-glasses-privacy-surveillance
1•cdrnsf•6m ago•0 comments

What Is Reasoning

https://lucumr.pocoo.org/2026/8/19/what-is-reasoning/
1•doppp•10m ago•0 comments

Index your images and videos locally

https://github.com/ikouchiha47/cinestar
1•argentum47•11m ago•0 comments

Building Without Predicting

https://sive.rs/fit
1•thm•15m ago•0 comments

Show HN: Lutefish Stream (Play Music over Internet)

https://lutefish.com/
1•mfarstad•16m ago•0 comments

Chinese firms are wrapping their supply chains around the globe

https://www.economist.com/interactive/business/2026/08/19/chinese-firms-are-wrapping-their-supply...
2•petethomas•16m ago•0 comments

Stripe says "the singularity" has begun

https://www.axios.com/2026/08/19/stripe-payments-openrouter-singularity
2•psychanarch•16m ago•0 comments

Why the richest country can't defend vital infrastructure

https://www.economist.com/united-states/2026/08/19/why-the-worlds-richest-country-cant-defend-vit...
1•petethomas•18m ago•1 comments

Show HN: I made a way for event guests to share photos without installing an app

https://lensoraevents.com/
1•aningemma1•19m ago•0 comments

A $21B 'Kids in Chips' Startup Is Scooping Up Nvidia Talent

https://www.wsj.com/tech/ai/a-21-billion-kids-in-chips-startup-is-scooping-up-nvidia-talent-4d099f12
2•gmays•21m ago•0 comments

Turns are Better than Radians

https://www.computerenhance.com/p/turns-are-better-than-radians
1•mayoff•23m ago•1 comments

Credentialism is coming for AI agents

https://betocmn.com/blog/credentialism-is-coming-for-ai-agents/
1•thedreammachine•25m ago•0 comments

Lutefish Stream

https://lutefish.com/pages/our-story
1•mfarstad•26m ago•1 comments

Anti-Flock signs removed as Rolling Meadows, Il debates license plate cameras

https://www.dailyherald.com/20260819/news/anti-flock-signs-removed-as-rolling-meadows-debates-lic...
2•rmnoflock•26m ago•0 comments

Show HN: Mirotalk WebRTC Story

https://docs.mirotalk.com/story/
2•ngup•28m ago•1 comments

The war on data centres is a bit fake

https://www.economist.com/business/2026/08/19/the-war-on-data-centres-is-a-bit-fake
2•andsoitis•29m ago•0 comments

Misse Peace Polymers Atomic Oxygen Erosion Results [pdf]

https://ntrs.nasa.gov/api/citations/20070002707/downloads/20070002707.pdf
1•thunderbong•31m ago•0 comments

Parsing IP addresses in C# at crazy speeds

https://lemire.me/blog/2026/08/19/parsing-ip-addresses-in-c-at-crazy-speeds/
1•mfiguiere•32m ago•0 comments

Blastproof – E2E tests in plain English, no CSS selectors anywhere

https://github.com/hamc/blastproof
1•h_amc•32m ago•1 comments

Death Stalks the Irish Pub

https://www.ft.com/content/0ff3c190-725a-47a5-afcc-e369135c0a60
1•petethomas•32m ago•1 comments

WordPress 7.1

https://wordpress.org/news/2026/08/mary-lou/
1•pentagrama•33m ago•0 comments

How to use AI for your next job interview

https://www.lennysnewsletter.com/p/how-to-use-ai-in-your-next-job-interview
1•luispa•34m ago•0 comments

Neo: A novel-writing tool created by a novelist (Silo's author)

https://github.com/hughhowey/neo
1•soheilpro•36m ago•0 comments

Agentic AI has made CPUs the new performance bottleneck

https://spectrum.ieee.org/ai-cpu-comeback
1•pseudolus•38m ago•0 comments

Taxpayers to fund clear-up of illegal dumps in West Yorkshire, Surrey and Kent

https://www.theguardian.com/environment/2026/aug/19/taxpayers-to-fund-clear-up-of-dumps-in-west-y...
1•stuaxo•39m ago•1 comments

Manticore Search 28.6.6: UUID document IDs, ordered GROUP_CONCAT(), and 16 fixes

https://medium.com/@s_nikolaev/manticore-search-28-6-6-uuid-document-ids-ordered-group-concat-and...
1•snikolaev•40m ago•0 comments

Layered rock in India shows potential signs of microbial life as old as to 3.5

https://phys.org/news/2026-08-layered-india-potential-microbial-life.html
1•wglb•40m ago•0 comments

NASA calls off mission to rescue Swift gamma-ray observatory

https://arstechnica.com/space/2026/08/nasa-calls-off-mission-to-rescue-swift-gamma-ray-observatory/
1•dangle1•44m ago•0 comments