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.

Why Do So Many Everyday Systems Feel Harder to Use Now?

https://therealitydrift.substack.com/p/reality-drift-in-everyday-life
2•realitydrift•3m ago•1 comments

Show HN: Claude Code for talking to potential customers

https://trydatapoint.com
1•yoloakki•4m ago•0 comments

The AI slop refactor wave is coming

https://old.reddit.com/r/SaaS/comments/1u6f84g/the_ai_slop_refactor_wave_is_coming_and_i_havent/
1•root-parent•4m ago•0 comments

Bcachefs exits experimental status in new 'performance release'

https://www.theregister.com/software/2026/06/19/bcachefs-exits-experimental-status-in-new-perform...
1•ofrzeta•6m ago•0 comments

DirectX Dump Files Preview Now Available

https://devblogs.microsoft.com/directx/dx-dump-files-preview/
1•ibobev•7m ago•0 comments

Blaise v0.11.0 Is Here

https://github.com/graemeg/blaise/discussions/126
1•mariuz•9m ago•0 comments

Measuring AI productivity yourself with gh, jq, and Git

https://getunblocked.com/blog/measuring-ai-productivity/
1•dennispi•10m ago•0 comments

The Accidental Framework

https://blog.tacoda.dev/the-accidental-framework-934babb6bfde
1•tacoda•10m ago•0 comments

JEP: Embed Python in Java, the Polished Way

https://github.com/ninia/JEP
1•theanonymousone•12m ago•0 comments

The Bottleneck in AI Was Never Intelligence

https://www.gailweiner.com/post/the-bottleneck-in-ai-was-never-intelligence
1•speckx•13m ago•0 comments

FlashAttention-4: Algorithm and Kernel Pipelining Co-Design

https://research.colfax-intl.com/flashattention-4-algorithm-and-kernel-pipelining-co-design-for-a...
1•skidrow•13m ago•0 comments

APTA Feature on Cellular in Transit Systems

https://aptapassengertransport.com/when-cellular-becomes-transit-infrastructure/
1•takko_the_boss•13m ago•0 comments

Why doesn't Get­Last­Input­Info() return info for the user I'm impersonating?

https://devblogs.microsoft.com/oldnewthing/20260618-00/?p=112444
1•ibobev•14m ago•0 comments

Ghost Boxes: Reusing Abandoned Big-Box Superstores (2016)

https://99percentinvisible.org/article/ghost-boxes-reusing-abandoned-big-box-superstores-across-a...
1•dredmorbius•14m ago•1 comments

Factorio: More Planet Deliveries

https://factorio.com/blog/post/fff-443
1•ibobev•14m ago•0 comments

Cutlass Tutorial: Efficient GEMM Kernel Designs with Pipelining

https://research.colfax-intl.com/cutlass-tutorial-design-of-a-gemm-kernel/
1•skidrow•15m ago•0 comments

Extend Claude limits by offloading AI tasks to Neo

https://heyneo.com/claude-code
1•gauravvij137•16m ago•1 comments

P-Tau217 as a Reliable Blood-Based Marker of Alzheimer's Disease

https://pmc.ncbi.nlm.nih.gov/articles/PMC11351463/
1•brandonb•16m ago•0 comments

I restarted a 10 year old Xeon 174 times to delete 12 flags and gain 4 tps

https://point.free/blog/delete-12-flags/
3•zdw•17m ago•0 comments

Italy's Meloni says Trump 'made up' story that she 'begged' him for photo at G7

https://www.bbc.com/news/articles/c20y1ygn707o
13•root-parent•17m ago•0 comments

An agile retrospective skill for your Claude collaboration sessions

https://github.com/cometogather/retro-bot
1•mooreds•19m ago•0 comments

Ask HN: How do you measure whether your coding agent follows its rules?

2•Tigerless_ailab•20m ago•0 comments

Toward Better Hip Kernel Generation for AMD GPUs

https://scalingintelligence.stanford.edu/blogs/hipkernels/
2•skidrow•20m ago•0 comments

Moving to Portugal: Complete Guide for Americans

https://www.relocora.com/blog/moving-to-portugal-guide-for-americans-2026
2•mooreds•20m ago•0 comments

CEO-Bench: Can AI run a simulated startup for 500 days?

https://ceobench.com/
3•tonychenxyz•20m ago•1 comments

Frank Land obituary: programmer of the first business computer

https://www.thetimes.com/uk/obituaries/article/frank-land-obituary-programmer-of-the-first-busine...
1•timthorn•22m ago•0 comments

Show HN: Captorify – A Better Chrome Screenshot Extension

https://captorify.com/
1•fredrikaurdal•22m ago•1 comments

Open Source vs. the Invisible Hand

https://nesbitt.io/2026/06/18/open-source-vs-the-invisible-hand.html
1•zdw•22m ago•0 comments

Wordle's Hard Mode Is Easier, 730M Games Show

https://www.nytimes.com/2026/06/18/upshot/wordle-hard-mode.html
1•cainxinth•22m ago•0 comments

How the FAA is using AI to prevent close calls on runways

https://www.politico.com/news/2026/06/19/faa-ai-close-calls-00963264
1•CharlesW•23m ago•0 comments