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.

Evolving Typst

https://laurmaedje.github.io/posts/evolving-typst/
1•birdculture•4m ago•0 comments

Jane Colden: Naming the Living World

https://worldsensorium.com/jane-colden/
1•dnetesn•5m ago•0 comments

Object-Oriented Programming: Themes and Variations

https://ojs.aaai.org/aimagazine/index.php/aimagazine/article/download/508/444
1•todsacerdoti•7m ago•0 comments

I found a legit uncensored Sora/Runway alternative for AI video (unbound.video)

https://unbound.video
1•gabrieln•8m ago•1 comments

Show HN: We built a zero-webhook Merchant of Record for SaaS

https://www.kelviq.com/
1•alokdubey007•8m ago•0 comments

Cross-Lingual News Dedup at $100/Month – Embeddings, Pgvector, and UnionFind

https://yingjiezhao.com/en/articles/Cross-Lingual-News-Dedup-at-100-Dollar-a-Month/
1•ethan_zhao•9m ago•1 comments

Show HN: Chase – Automated invoice follow-up emails for freelancers

https://chase.allonys.com
1•Cvexperts•12m ago•0 comments

Show HN: SynthesisOS – A local-first, agentic desktop layer built in Rust

https://github.com/GastonGelhorn/synthesis-os
1•synthesis_dev•14m ago•1 comments

Introducing: Build Awesome

https://blogfontawesome.wpcomstaging.com/introducing-build-awesome-static-site-platform-kickstarter/
1•bovermyer•16m ago•0 comments

Ascensions

https://www.jmduke.com/posts/ascensions.html
1•montyanderson•16m ago•0 comments

Pg_QoS v1.0.0 stable release is out

https://www.postgresql.org/about/news/pg_qos-v100-stable-release-is-out-3251/
1•aamederen•17m ago•0 comments

YggTorrent Shuts Down After Hack, Leak and Stolen Crypto

https://torrentfreak.com/yggtorrent-shuts-down-after-hack-leak-and-stolen-crypto/
2•teroshan•22m ago•1 comments

Published a fitness app to connect trainers and clients

https://apps.apple.com/us/app/flexor-fitness-companion/id6758482608
1•maradlo•26m ago•1 comments

Show HN: ÆTHERYA Core – deterministic policy engine for governing LLM actions

https://github.com/nayfly/aetherya-core
1•RobertMihai•26m ago•0 comments

Git-oops – undo any Git mistake with one command

https://github.com/hxmanss/git-oops
2•Hxmanss•27m ago•0 comments

Any Resolution Any Geometry: From Multi-View to Multi-Patch

https://dreamaker-mrc.github.io/Any-Resolution-Any-Geometry/
1•smusamashah•27m ago•0 comments

Whuppity Scoorie: the Scottish spring ritual bringing a town together

https://www.theguardian.com/uk-news/2026/mar/04/whuppity-scoorie-scotland-spring-ritual-lanark-cross
1•samizdis•28m ago•0 comments

Show HN: A .NET Web Framework on the Base .NET Core SDK

https://github.com/WispFramework/Wisp
2•utf_8x•28m ago•0 comments

European Central Bank: AI may be creating instead of destroying jobs for now

https://www.reuters.com/business/ai-may-be-creating-instead-destroying-jobs-now-ecb-blog-argues-2...
4•giuliomagnifico•30m ago•1 comments

Marc Benioff Praises Grok

https://twitter.com/cb_doge/status/2028936688689352818
1•sourcegrift•32m ago•0 comments

Show HN: Glyph, a local-first Markdown notes app for macOS built with Rust

https://glyphformac.com/
3•skarat•33m ago•1 comments

A Shared Kernel Is a Shared Trust Domain

https://cdelmonte.dev/posts/shared-kernel-shared-trust-domain/
1•cdelmonte•37m ago•0 comments

2025 State of Rust Survey Results

https://blog.rust-lang.org/2026/03/02/2025-State-Of-Rust-Survey-results/
1•pjmlp•38m ago•0 comments

Man Cereal

https://joshcollinsworth.com/blog/man-cereal
2•jannesan•39m ago•0 comments

IANA tz (and POSIX) cannot add British Columbia's new Pacific Time (PT) timezone

https://github.com/eggert/tz/commit/8b46071fd85a7a9434d63894bac64d30362cc16d
2•kelseydh•39m ago•0 comments

Show HN: Most Based

https://www.mostbased.space/
1•aloscorisreal•39m ago•0 comments

Show HN: Read it later" links only (iOs app)

https://apps.apple.com/gb/app/space4links/id6758895070
1•skyfantom•40m ago•0 comments

Show HN: We build a Graph of public Skills

https://skillinsight.io
7•mapleeman•46m ago•4 comments

Show HN: Elm Social Route – Geofenced chat, event, and route

https://play.google.com/store/apps/details?id=com.hujan2labs.elmsocialroute&hl=en_US
1•red26•47m ago•0 comments

Lockbox: Constrain Your Bots to Set Them Free

https://www.chrismdp.com/lockbox-constrain-your-bots-to-set-them-free/
1•refset•47m ago•0 comments