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: VulnCast – open-source e-paper dashboard for live CVE/exploit Intel

https://github.com/vulnersCom/VulnCast
1•isox•5m ago•0 comments

We need to talk about the Bun Rust rewrite [video]

https://www.youtube.com/watch?v=kAjNWanR3n8
1•baranul•6m ago•0 comments

At last, a good reason to buy an AI PC: Reining in runaway token bills

https://www.theregister.com/personal-tech/2026/07/15/at-last-a-good-reason-to-buy-an-ai-pc-reinin...
1•raybb•7m ago•0 comments

PDF Batch Translator

https://github.com/markmatsu/pdf-batch-translator
1•markmatsushima•7m ago•0 comments

Show HN: A free tool that turns any AI topic into an interactive, cited lesson

https://prathibhax.com/
1•anandp1989•7m ago•0 comments

IBM loses quarter of its value as tech giant's shares plunge and profits falter

https://www.theguardian.com/technology/2026/jul/14/ibm-shares-profit-drop-value
2•ndsipa_pomu•8m ago•0 comments

Australia to establish government AI office, curb data centres' water use

https://www.reuters.com/world/asia-pacific/australia-establish-government-ai-office-coordinate-re...
1•1vuio0pswjnm7•10m ago•0 comments

Ask HN: Insightful research or longreads on core teams in IT?

1•sam_lowry_•12m ago•0 comments

Buffett severs donations to Gates Foundation following Epstein revelations

https://www.abc.net.au/news/2026-07-15/warren-buffett-stops-donations-to-gates-foundation/106915922
1•1vuio0pswjnm7•12m ago•0 comments

Fitting a Game onto a Floppy Disk: '1.44MB Game Development Contest' Announced

https://www.invenglobal.com/articles/23705/fitting-a-game-onto-a-single-floppy-disk-144mb-game-de...
2•rguiscard•13m ago•0 comments

Show HN: Spill It A local voice dictation app

https://tryspillit.com
1•mohavinash•13m ago•0 comments

Show HN: Lean64 – doom64 style FPS on Lean 4

https://github.com/aouxwoux/lean64
1•threepts•16m ago•0 comments

Emily Wilson: Scholia

https://www.emilyrcwilson.com/emilyrcwilson-scholia
1•wise_blood•18m ago•0 comments

Show HN: TUI wrapper for cargo-nextest, Clap-powered xtasks, and more

https://github.com/romansky/nextdeck
1•leroman•18m ago•0 comments

UK teens report sleep, wellbeing gains under social media restrictions, study

https://www.reuters.com/legal/litigation/uk-teens-report-sleep-wellbeing-gains-under-social-media...
2•1vuio0pswjnm7•19m ago•0 comments

PsiQuantum has a plan to make a quantum computer out of light

https://www.technologyreview.com/2026/07/14/1140356/psiquantum-plan-massive-quantum-computer-out-...
1•joozio•19m ago•0 comments

Ask HN: Do y'all sit here just looking at each url pop up to engage?

2•vanessa1211•20m ago•2 comments

Australia proposes AI rules for data centres and rejects copyright carve-out

https://www.abc.net.au/news/2026-07-15/labor-to-set-standards-for-ai-data-centres-and-copyright/1...
1•tylrbrkr•22m ago•0 comments

Ask HN: Anyone Else Burnt Out?

1•lmpdev•22m ago•0 comments

Show HN: Multi-player poker on SSH – ssh cli.poker

https://www.cli.poker/
2•animeshjain•23m ago•0 comments

Releasing Execution Contexts [Crystal]

https://crystal-lang.org/2026/07/12/releasing-execution-contexts/
2•yxhuvud•23m ago•0 comments

Simulating everything, sort of: The promise and limits of world models

https://arstechnica.com/ai/2026/07/simulating-everything-sort-of-the-promise-and-limits-of-world-...
2•rbanffy•25m ago•0 comments

Billionaires Punched in the Nose over Paramount-Warner

https://www.thebignewsletter.com/p/boom-billionaires-punched-in-the
1•chmaynard•27m ago•0 comments

Has Anyone Tried Bittensor?

https://www.bittensor.com/docs
1•anoop_kumar•29m ago•0 comments

Milepost – plain-Markdown long-term memory for Claude Code

https://github.com/sashamitrovich/milepost
1•sashamitrovich•29m ago•0 comments

Probe into explosive diarrheal cases points to Taco Bell and bad lettuce

https://arstechnica.com/health/2026/07/taco-bell-eyed-in-explosive-diarrheal-outbreak-leafy-green...
3•rbanffy•29m ago•0 comments

Show HN: TormentNexus – Open-source AI control plane with 26K+ MCP tools

https://github.com/MDMAtk/TormentNexus
2•RobertPelloni•29m ago•0 comments

How to Stay in the Coding Flow Using LLMs

https://jamesoclaire.com/2026/07/15/how-to-stay-in-the-coding-flow-using-llms/
2•ddxv•31m ago•1 comments

Nobody knows what a used GPU cluster is worth

https://ciphertalk.substack.com/p/nobody-knows-what-a-used-gpu-cluster
2•rbanffy•31m ago•0 comments

How to Connect ChatGPT to Stock Data

https://financialdata.net/chatgpt-stock-data
1•_FDN_•34m ago•0 comments