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.

A field guide to rendering: from triangles to Gaussians

https://www.4rknova.com/blog/2026/07/19/a-field-guide-to-rendering#interlude-renderman-which-chan...
1•ibobev•57s ago•0 comments

Bundling Bioweapons with Vite

https://github.com/HughParry/vite-bundle-antillm
1•HughParry•1m ago•0 comments

Secretspec 0.18: Secret Lifecycle, Bitwarden, Keeper, AWS PS, and Swift

https://secretspec.dev/blog/secretspec-0-18-secret-lifecycle-bitwarden-keeper-aws-parameter-store...
1•domenkozar•1m ago•0 comments

Show HN: Jido Assembly; Slack Clone in Pure Elixir with Integrated Agents

https://jido.run/blog/jido-assembly-slack-clone
1•mikehostetler•1m ago•0 comments

Nvidia Alpamayo 2 Super, the Frontier Open Model for Autonomous Vehicles

https://blogs.nvidia.com/blog/alpamayo-2-super-open-model-now-available/
1•malshe•2m ago•1 comments

The AI Demand Bubble

https://www.wheresyoured.at/the-ai-demand-bubble/
2•7777777phil•6m ago•0 comments

Show HN: I redesigned my self-hosted data manager's UI (4k stars, v2

https://github.com/Volmarg/personal-management-system
1•volmarg_reiso•7m ago•0 comments

BasicSwap v0.17.9 released (Atomic Swap)

https://blog.basicswapdex.com/basicswap-release-v017_8-v017_9/
1•dRK-U•7m ago•0 comments

Cloudflare enforces engineering standards using AI

https://blog.cloudflare.com/engineering-standards-enforcement/
1•garyhtou•8m ago•0 comments

Karpenter's consolidation behaviour is counter-intuitive

https://blog.appliedcomputing.io/p/karpenters-consolidation-behaviour-5a6
2•avenger337•8m ago•0 comments

Show HN: Adapt, Automatically Turns Files into REST APIs, Web UI, and MCP

https://github.com/mcindi/adapt
1•ilovetux•8m ago•0 comments

Site Fighter – Arcade-style website speed benchmarking

https://sitefighter.com
1•shroweb•11m ago•0 comments

NPM Packages in the Keyv and Cacheable Namespaces Compromised

https://socket.dev/blog/popular-npm-packages-in-the-keyv-and-cacheable-namespaces-compromised-in-...
1•tilt•11m ago•0 comments

Card reader that lets you WhatsApp/call/email the contact right away

https://techtuate.com/card-reader/
1•techtuate•11m ago•0 comments

DeepSeek V4 Flash 0731 (Q4) 1,328 tok/s prefill 29 tok/s decode one RTX PRO 6000

https://www.reddit.com/r/LocalLLM/comments/1vfds7w/deepseek_v4_flash_0731_q4_now_reaches_1328_toks/
2•brontoguana•11m ago•0 comments

Show HN: Bean Network Tester – open-source bad network simulator

https://github.com/donislawdev/BeanNetworkTester
1•donislawdev•12m ago•0 comments

Show HN: BubbleHub - a local runtime and hosting for LLM agents

https://github.com/bublhub/BubbleHub
1•danielsbubblee•12m ago•0 comments

How I'd Search for a Tech Job Abroad in 2026

https://relocateme.substack.com/p/how-to-search-for-a-tech-job-abroad
2•andrewstetsenko•13m ago•0 comments

Mind the Gaps: Mixture-of-Minds for Human Simulation

https://semilattice.ai/research/anacreon
1•jtewright•14m ago•1 comments

Report on why developers use LLMs to write blog posts

https://twitter.com/c_a_dunlop/status/2084662863071965514
2•cyndunlop•14m ago•0 comments

Show HN: Clai – AI for the command line (stdin → LLM → stdout)

https://github.com/maxrodrigo/clai
1•maxrodrigo•15m ago•0 comments

Technology Freedom Cooperative Offers Civil Society Independence from Big Tech

https://hrdag.org/2026/08/04/the-technology-freedom-cooperative-offers-civil-society-new-independ...
1•hn_acker•15m ago•1 comments

Agent-coordination: hourly routine board

https://github.com/tsz-org/tsz/issues/15994
1•jackothy•16m ago•0 comments

Perspec 1.0

https://adriansieber.com/announcing-perspec-1-0/
1•surprisetalk•17m ago•0 comments

Show HN: Moorage – a better way to mount and view MTP devices in macOS

https://github.com/skuthus/Moorage
2•widowlark•19m ago•0 comments

Show HN: mcpvessel run untrusted MCP servers caged, egress denied by default

https://github.com/okedeji/mcpvessel
2•Toby11•19m ago•0 comments

But we're doing multidisciplinary teams

https://audreefletcher.co.uk/blog/but-were-already-doingmultidisciplinary-teams
1•adrianhoward•19m ago•0 comments

Apple says more ex-employees may have taken confidential data to OpenAI

https://techcrunch.com/2026/08/04/apple-says-more-ex-employees-may-have-taken-confidential-data-t...
4•thewebguyd•20m ago•0 comments

Commodore 64 Multi Floppy Commander with Turbo

https://gitlab.com/retro3872809/commodore-64/mfcwt
3•austinallegro•22m ago•0 comments

Show HN: Clayrune – Run Claude Code agents in parallel without losing context

https://github.com/ronle/clayrune
1•Clayrune•22m ago•0 comments