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.

Show HN: Stop Destructive Agent Commands Before They Happen

https://github.com/christopherkarani/Orca
1•karc14•49s ago•0 comments

Show HN: Crew – Let Claude Code agents talk to each other

https://github.com/0xmmo/crew
1•mmoustafa•2m ago•0 comments

Linux Looking to Retire a Number of Old ARM Platforms in Early 2027

https://www.phoronix.com/news/Linux-Drop-Old-ARM-2027
1•maxloh•2m ago•0 comments

I am dreading our LLM-written incident report future

https://surfingcomplexity.blog/2026/06/19/i-am-dreading-our-llm-written-incident-report-future/
1•baxtr•3m ago•0 comments

Space startup Katalyst launches orbital rescue for aging NASA observatory

https://www.reuters.com/business/aerospace-defense/space-startup-katalyst-launches-orbital-rescue...
2•JumpCrisscross•10m ago•0 comments

NERM – a tamper-evident audit log that proves itself. Run it yourself

https://github.com/metacentric-tech/nerm-core
1•META-TECH•30m ago•0 comments

What a 1976 Washington Post prediction said about 2026

https://www.washingtonpost.com/history/2026/07/03/what-1976-washington-post-prediction-said-about...
2•reaperducer•31m ago•0 comments

The Age of Decision

https://www.threerulescompany.com/the-age-of-decision
1•dtedesco1•31m ago•0 comments

How Memgraph 3.11 Simplifies Multi-Tenancy for Cross-Database Graph Workloads

https://memgraph.com/blog/memgraph-3-11-multi-tenant-graph-workloads
1•taubek•37m ago•0 comments

Agentic coding notes from Galapogos Island

https://danluu.com/ai-coding/#appendix-agentic-loops-and-writing-this-post
23•gm678•37m ago•3 comments

Redundancy and Bloat Seen in AAA Game Engines

https://zero-irp.github.io/Redundancy-seen-in-AAA-game-engines/
1•davikr•52m ago•0 comments

What the AirCon Debate Says About Britain's Climate Insanity [video]

https://www.youtube.com/watch?v=HwS3l5uP168
1•Bender•54m ago•0 comments

Why A.I. Won't Steal All Our Jobs

https://www.nytimes.com/2026/06/30/opinion/ai-agents-steal-jobs-employment.html
1•reaperducer•55m ago•1 comments

FEOM – Windows GUI automation at 8ms, no GPU needed

https://github.com/a92070888-dev/mcp-os-native-automation
1•a92070888•59m ago•0 comments

PangolinMatrix – write down encoded passwords, not real ones

https://pangolinmatrix.com
2•corvina•1h ago•0 comments

Google reCAPTCHA Reverse Engineered

https://github.com/elyelysiox/recaptcha
3•Pelada•1h ago•0 comments

Where can I find or get in contact with farmers specifically in the US?

2•strapchay•1h ago•2 comments

We Heart It is back

https://weheartit.net/
1•djxjxjcjcjc•1h ago•0 comments

Dory: Docker and Linux containers, native to your Mac

https://augani.github.io/dory/
1•xyzzy_plugh•1h ago•0 comments

Reconstructing SQLite's float-to-text without reading the source

https://github.com/lucasolopes/haruspex
1•byolopes•1h ago•1 comments

EPA approves pesticides that may be considered forever chemicals

https://thehill.com/policy/energy-environment/5950487-epa-pesticides-forever-chemicals-pfas/
3•OutOfHere•1h ago•0 comments

Show HN: Void test: 6 frontier LLMs go silent on "Be silence." Live proof

https://getswiftapi.com/void-test
1•rayanpal_•1h ago•0 comments

Show HN: SmolSignal – signal copilot for Flipper Zero files

https://github.com/SmolNero/SmolSignal
2•edgar_ortega•1h ago•1 comments

Show HN: I replaced my $500/mo legal SaaS with an AI-generated toolkit

https://maxiporonga.gumroad.com/l/ytruk
1•promptalex53•1h ago•0 comments

Show HN: Earshot, a homebrew Claude Tag

https://github.com/Octember/earshot
1•octember•1h ago•1 comments

Maybe you should learn something

https://www.marginalia.nu/log/a_135_learn/
10•tylerdane•1h ago•2 comments

FemiCore Review 2026 – 7-Second Bladder Reset Method Explained

https://gamma.app/embed/FemiCore-Review-2026-7-Second-Bladder-Reset-Method-Explained-9yahcz6mepth...
1•wildriverreview•1h ago•0 comments

Show HN: Local privacy-first Microsoft Recall alternative with Gemma 4

https://github.com/ayushh0110/ScreenMind/blob/main/README.md
2•skye0110•1h ago•0 comments

MagicBookShelf – A modern reader for classic novels – Crime and Punishment

https://magicbookshelf.org/read/crime-and-punishment/
1•philipfweiss•1h ago•0 comments

Four-Byte Burger [video]

https://www.youtube.com/watch?v=i4EFkspO5p4
1•CharlesW•1h ago•0 comments