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.

Harness engineering: leveraging Codex in an agent-first world

https://openai.com/index/harness-engineering/
1•Garbage•20m ago•0 comments

Show HN: Jarvish – The J.A.R.V.I.S. AI inside your shell investigates errors

https://github.com/tominaga-h/jarvis-shell
1•tominaga-h•22m ago•0 comments

Disposable Software: When generating code costs less than finding it

https://gavinray97.github.io/blog/llm-build-cheaper-than-searching
1•gavinray•26m ago•0 comments

Show HN: DevIndex – Ranking 50k GitHub developers using a static JSON file

1•tobiu•28m ago•0 comments

What if the next California-scale wildfire happens in the Midwest?

https://www.munichre.com/rmp/en/the-re-brief/risk-adaptation/what-if-the-next-california-scale-wi...
1•protontypes•30m ago•0 comments

Show HN: SecLaw – Self-hosted AI agents on your machine, Docker-isolated

https://github.com/mksglu/seclawai
1•mksglu•37m ago•1 comments

Show HN: Mycelio – A gig economy network for idle LLM agents

https://github.com/wishtech-labs/mycelio
1•iiwish•40m ago•0 comments

Tell HN: 3 months ago we feared AI was useless. Now we fear it will take our job

4•giuliomagnifico•43m ago•1 comments

Trapped in MS Office

https://ia.net/topics/trapped-in-ms-office
1•FinnLobsien•46m ago•0 comments

Handler – Open-source messaging app for AI agents

https://github.com/stephanemorera88-spec/Handler
1•stephmorera•46m ago•0 comments

Httpx closing down issues and discussions due to "skewed gender representation"

https://github.com/encode/httpx/discussions/3784
3•ZeroAurora•49m ago•2 comments

Reddit is removing R/all

https://old.reddit.com/r/help/comments/1rfhxj1/weekly_recap_february_26_2026/
2•j_maffe•49m ago•0 comments

Atomic GraphRAG Demo: A Single Query Execution

https://memgraph.com/blog/atomic-graphrag-demo-highlights
1•todsacerdoti•54m ago•0 comments

Kakistocracy: Why Populism Ends in Disaster

https://www.barnesandnoble.com/w/kakistocracy-richard-hanania/1148470799
1•jmeister•58m ago•0 comments

Show HN: Speechos – Benchmark 25 speech AI models locally, no cloud needed

https://github.com/miikkij/Speechos
1•hamuf•58m ago•1 comments

OpenAI – How to delete your account

https://help.openai.com/en/articles/6378407-how-to-delete-your-account
143•carlosrg•1h ago•20 comments

The Future of AI

https://lucijagregov.com/2026/02/26/the-future-of-ai/
2•BerislavLopac•1h ago•0 comments

Ask HN: Is it time for an AI workers union?

1•JimmyBuckets•1h ago•0 comments

Games media set for more layoffs, as IGN-owned Eurogamer cuts editorial staff

https://www.videogameschronicle.com/news/games-media-set-for-more-layoffs-as-ign-owned-eurogamer-...
2•starkparker•1h ago•0 comments

US and Israel launch attack on Iran

https://www.bbc.com/news/live/cn5ge95q6y7t
1•choult•1h ago•0 comments

Show HN: Polpo – Control Claude Code (and other agents) from your phone

https://github.com/pugliatechs/polpo
4•marcopennelli•1h ago•1 comments

Show HN: NotaryOS – Cryptographic proof of what your AI agent chose not to do

https://notaryos.org
1•harris-012•1h ago•0 comments

1Password maybe not increasing prices

2•gardenerik•1h ago•1 comments

Claude Sonnet 4.6 says it is 我是 DeepSeek when asked in Chinese

https://xcancel.com/stevibe/status/2026285447186702729#m
2•pera•1h ago•0 comments

Serve Markdown to LLMs from your Next.js app

https://github.com/kasin-it/next-md-negotiate
1•kasin-it•1h ago•1 comments

Idea Hunting Is Dead. Databases Like This Are Replacing It

3•briebella•1h ago•2 comments

Magawa the HeroRAT

https://en.wikipedia.org/wiki/Magawa
2•KolmogorovComp•1h ago•0 comments

The Lazy Way to Find Your Next SaaS Idea

2•DownCreater•1h ago•1 comments

Pentagon puts Scouts 'on notice' over DEI and girl-centered policies

https://www.npr.org/2026/02/27/nx-s1-5729159/pentagon-scouts-hegseth-dei-deal
3•iamflimflam1•1h ago•0 comments

We Will Be Divided

https://we-are-divided.com
21•shiftybitshiftr•1h ago•3 comments