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

Tech Firms Aren't Just Encouraging Their Workers to Use AI. They're Enforcing It

https://www.wsj.com/tech/ai/tech-firms-arent-just-encouraging-their-workers-to-use-ai-theyre-enfo...
4•1vuio0pswjnm7•4m ago•0 comments

Show HN: A free tool to turn your boring screenshots brutalist in seconds

https://neo.retroui.dev
2•devarifhossain•9m ago•0 comments

Monty's Gauntlet

https://tinkerdeck.com/projects/monty_hall_quiz
1•pcooper•12m ago•0 comments

How to give your AI real personality

https://medium.com/@empadev64/building-your-first-ai-persona-with-pythons-personaut-pdk-76ea45c04004
1•sarahoates•18m ago•0 comments

DeepSeek-v3.2 on GB300: Performance Breakthrough

https://blog.vllm.ai/2026/02/13/gb300-deepseek.html
1•roody_wurlitzer•19m ago•0 comments

Faaaah on Fail – VSCode Extension to Play "Faaaah" Sound on Test Failure

https://marketplace.visualstudio.com/items?itemName=Mastersam.faaaah-on-fail
1•vednig•19m ago•1 comments

Quotes from Moral Mazes (2019)

https://thezvi.wordpress.com/2019/05/30/quotes-from-moral-mazes/
1•Tomte•23m ago•0 comments

A Guide to Baker's Dozenal

https://tangerines.neocities.org/bakersdozenal
1•dmbche•24m ago•0 comments

GPT-5.3-Codex

https://openai.com/index/introducing-gpt-5-3-codex/?1
1•roody_wurlitzer•24m ago•0 comments

Oxfmt Beta

https://oxc.rs/blog/2026-02-24-oxfmt-beta
1•freddydumont•24m ago•0 comments

Anthropic Adds Caveat to AI Safety Policy in Race Against Rivals

https://www.bloomberg.com/news/articles/2026-02-25/anthropic-adds-caveat-to-ai-safety-policy-in-r...
2•KerrickStaley•33m ago•1 comments

BAFTAs Incident

https://en.wikipedia.org/wiki/John_Davidson_(activist)
1•andsoitis•34m ago•0 comments

A CLI tool to manage the browser history

https://github.com/odysa/histctl
2•agentforce•36m ago•0 comments

Show HN: A non-programmer built a blockchain ecosystem using only AI

1•BizinikiwiBrain•36m ago•0 comments

Witches, Nazi collaborators, banned books: International Booker prize 2026 list

https://www.theguardian.com/books/2026/feb/24/ravn-kehlmann-genberg-enard-and-cabezon-camara-long...
3•andsoitis•41m ago•0 comments

Show HN: Parallel AI agents that research a stock simultaneously

https://dapto.ai
1•sharmasachin98•43m ago•0 comments

Amazon AI lab chief to depart amid leadership shake-up

https://www.ft.com/content/d72bde2b-4f1a-4f0a-a747-03244c4d06ac
3•petethomas•44m ago•0 comments

How Many Crimes Are There, and Why Does It Matter?

https://broodingomnipresence.substack.com/p/how-many-crimes-are-there-and-why
1•Ariarule•46m ago•0 comments

Show HN: I built a hitman for rogue agents: dead man's switch and spend controls

https://twitter.com/JackDavis720/status/2026304535686222093
1•JackDavis720•46m ago•0 comments

Most teens believe their peers are using AI to cheat in school

https://www.washingtonpost.com/technology/2026/02/24/pew-teens-ai-cheating-school/
2•1vuio0pswjnm7•47m ago•0 comments

Show HN: I Made Siri for LeetCode

https://leetduck.com/
1•collinboler2•48m ago•0 comments

Memrail launches decision infrastructure, introduces decision plane

https://www.thefloridatribune.com/article/895167532-cadenzai-launches-memrail-decision-infrastruc...
1•amatlas•49m ago•0 comments

vLLM (high-throughput LLM serving engine)

https://github.com/vllm-project/vllm
1•roody_wurlitzer•50m ago•0 comments

Show HN: Open-source self-hostable backend – try to break my live instance (48h)

1•ravikantsaini•54m ago•3 comments

Aitracker – Track Claude, Codex, Gemini usage and costs from your terminal

https://github.com/j0nl1/aitracker
1•j0nl1•55m ago•1 comments

Double-buffering for LLM context windows: seamless handoff at zero extra cost

https://marklubin.me/posts/hopping-context-windows/
1•mlubin01•55m ago•1 comments

Use a SaaS Boilerplate to Ship Faster

https://launchsaas.org/blog/why-use-saas-boilerplate-ship-faster
1•victorymakes•57m ago•2 comments

Tuna: A new, modern, modal launcher for macOS

https://tunaformac.com
3•inatreecrown2•59m ago•2 comments

Ask HN: Share your productive usage of OpenClaw

2•aavci•59m ago•0 comments

Show HN: Shed – Run commands over HTTPS instead of SSH (lambdas / containers)

https://github.com/Oranda-IO/Shed
1•orandaio•59m ago•0 comments