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

Virtual Math Museum

https://virtualmathmuseum.org/
1•narcraft•2m ago•0 comments

Claude Code Voice Mode

https://support.claude.com/en/articles/11101966-using-voice-mode
2•linolevan•3m ago•0 comments

Killing SaaS. Anatomy of a murder. How I replaced Wisprflow.ai with vibe coding

https://gpt3experiments.substack.com/p/killing-saas-the-anatomy-of-a-murder
1•nutanc•6m ago•0 comments

Ask HN: AI evaluation for an EV charger without additional installation?

1•chrisgd•6m ago•1 comments

Bubble Sorted Amen Break

https://parametricavocado.itch.io/amen-sorting
2•eieio•8m ago•1 comments

Show HN: A test harness that blocks unsafe AI actions before execution

1•celestinestudio•8m ago•0 comments

Grammarly Is Facing a Class Action Lawsuit over Its AI 'Expert Review' Feature

https://www.wired.com/story/grammarly-is-facing-a-class-action-lawsuit-over-its-ai-expert-review-...
1•laurex•9m ago•0 comments

If a web server runs websites then a corporation server? (2025)

https://interconnected.org/home/2025/03/13/homeostasis
2•alcazar•10m ago•0 comments

Linux Page Faults, MMAP, and userfaultfd for fast sandbox boot times

https://www.shayon.dev/post/2026/65/linux-page-faults-mmap-and-userfaultfd/
2•shayonj•11m ago•0 comments

Show HN: Cloud to Desktop in the Fastest Way

https://nativedesktop.com/
2•lasgawe•11m ago•0 comments

Software Maturity Wall

https://www.apolloacademy.com/software-maturity-wall/
1•akyuu•11m ago•0 comments

Fast and free coding agent written with Go

https://github.com/cheikh2shift/godex
1•cheikhshift•12m ago•0 comments

Show HN: PipeStep – Step-through debugger for GitHub Actions workflows

https://github.com/Photobombastic/pipestep
4•photobombastic•13m ago•2 comments

Apple's MacBook Neo makes repairs easier and cheaper than other MacBooks

https://arstechnica.com/gadgets/2026/03/more-modular-design-makes-macbook-neo-easier-to-fix-than-...
6•GeekyBear•14m ago•2 comments

An agentic workflow, March 2026 edition

https://twolongos.com/3/12/an-agentic-workflow-march-2026-edition/
2•suzzer99•14m ago•1 comments

Is your vet owned by private equity?

https://privateequityvet.org/vet-list/
3•hampelm•15m ago•0 comments

Show HN: LogClaw – Open-source AI SRE that auto-creates tickets from logs

https://logclaw.ai
5•Robelkidin•15m ago•0 comments

WikiCity – Where every building is a Wikipedia article

https://wikicity.app/
2•leononame•15m ago•1 comments

Harness Engineering

https://openai.com/index/harness-engineering/
4•jlas•16m ago•0 comments

A Day in the Life of an Enshittificator [video]

https://www.youtube.com/watch?v=T4Upf_B9RLQ
2•KindAndFriendly•17m ago•0 comments

Show HN: Understudy – Teach a desktop agent by demonstrating a task once

https://github.com/understudy-ai/understudy
3•bayes-song•17m ago•0 comments

Inboxscan – find every subscription hiding in your email (runs locally)

https://github.com/LakshmiSravyaVedantham/inboxscan
2•sravyavedantham•17m ago•1 comments

Ask HN: In 2026, how do you share a list of URLs to the public (or friends)?

2•wenbin•20m ago•1 comments

Work_mem: It's a Trap

https://mydbanotebook.org/posts/work_mem-its-a-trap/
2•giulianopz•20m ago•0 comments

Show HN: Fixing Agent / LLM Context Decay in VS Code with Git Worktrees

https://www.appsoftware.com/blog/fixing-agent-llm-context-decay-in-vs-code-with-git-worktrees
4•gbro3n•22m ago•0 comments

Design Tip: Enforcing Constraints Leads to Simpler, More Powerful Systems

https://www.rodriguez.today/articles/emergent-event-driven-workflows
2•birdculture•22m ago•0 comments

Show HN: I lost billable hours forgetting timers. I turned my calendar into a DB

https://www.timescanner.io/
2•sergentrif•23m ago•2 comments

Anthropic's Claude AI can respond with charts, diagrams, and other visuals now

https://www.theverge.com/ai-artificial-intelligence/893625/anthropic-claude-ai-charts-diagrams
2•newusertoday•23m ago•0 comments

Show HN: Verge Browser a self-hosted isolated browser sandbox for AI agents

https://github.com/zzzgydi/verge-browser
2•zzzgydi•24m ago•0 comments

Ask HN: How are you using personal AI assistants with local coding agents?

2•everfly•24m ago•0 comments