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: Shoaku – Your Coding Navigator

https://github.com/seachicken/intellij-shoaku
1•seachicken•20s ago•0 comments

Companies Are Making Claude, Codex Talk Like Cavemen to Stop AIs Soaring Costs

https://www.404media.co/companies-are-making-claude-and-codex-talk-like-cavemen-to-stop-ais-soari...
1•beardyw•2m ago•0 comments

The AI Model Accessibility Checker

https://aimac.ai/
1•MavisBacon•3m ago•0 comments

Memray: a Memory Profiler for Python

https://github.com/bloomberg/memray
1•tosh•3m ago•0 comments

Show HN: Second opinion – A skill to query different models

https://github.com/kmcheung12/second-opinion
3•a_c•4m ago•0 comments

You're Weirder Than You Think

https://www.atvbt.com/youre-weirder-than-you-think/
1•momentmaker•5m ago•0 comments

Cursor now has a mobile app for guiding your coding agent on the go

https://techcrunch.com/2026/06/29/cursor-now-has-a-mobile-app-for-guiding-your-coding-agent-on-th...
3•sambcui•6m ago•0 comments

It's like a web view, but native

https://probablymarcus.com/blocks/2026/05/10/like-a-web-view-but-native.html
2•amatheus•7m ago•0 comments

Words Are a Byproduct of Consciousness. For LLMs, It's Backwards

https://ranpara.net/posts/words-are-a-byproduct-of-consciousness/
4•DevarshRanpara•7m ago•4 comments

SpaceX IPO Left Mirae with No Shares on Misunderstanding

https://www.bloomberg.com/news/articles/2026-06-30/spacex-ipo-left-korea-broker-with-no-shares-on...
2•cwwc•8m ago•0 comments

Have You Restarted Your Computer This Week?

https://taonaw.com/2026/06/27/have-you-restarted-your-computer.html
6•surprisetalk•9m ago•1 comments

U.S. declaration to exit USMCA to start a decade-long countdown for the pact

https://uk.finance.yahoo.com/news/u-declaration-exit-usmca-start-100703179.html
4•iamspoilt•10m ago•0 comments

Looking Ahead to Postgres 19

https://www.snowflake.com/en/blog/engineering/postgresql-19-features-beta/
3•thinkingemote•10m ago•0 comments

Chinese tycoon Guo Wengui sentenced to 30 years in US prison for fraud

https://www.theguardian.com/world/2026/jun/30/guo-wengui-chinese-tycoon-sentenced-us-prison-fraud
3•atombender•10m ago•0 comments

Show HN: Gödelify – Encode any file or text as a prime number

https://godelify.animeshchouhan.com
2•animeshchouhan•10m ago•0 comments

When Amiga computers ruled the Techno and Hardcore dancefloors around Europe

https://old.reddit.com/r/amiga/comments/1ujlaso/16_bit_were_enough_when_commodore_amiga_computers/
3•doener•11m ago•0 comments

Filter Hugging Face Models Page by Hardware

https://huggingface.co/changelog/filter-models-by-hardware
3•theanonymousone•12m ago•0 comments

Show HN: ServerKit – A mobile UI for server management

https://play.google.com/store/apps/details?id=com.iishanto.servermanager&hl=en_US
3•iishanto•12m ago•0 comments

Stop asking writers about "AI"

https://benjaminhollon.com/musings/stop-asking-writers-about-ai/
4•platzhirsch•13m ago•1 comments

Earnings Forecasts Are on Steroids

https://www.wsj.com/finance/stocks/earnings-forecasts-are-on-steroids-c6c2e4e0
3•mooreds•13m ago•1 comments

The reason for migration in early human: malaria

https://peterfrankopan.substack.com/p/the-reason-for-migration-in-early
3•mooreds•13m ago•0 comments

Native American Tribes Secured Their Rights to Colorado River Water

https://www.propublica.org/article/colorado-river-basin-water-arizona-native-tribes
4•mooreds•13m ago•1 comments

Show HN: Kinetk – Watch agent build a launch and growth plan for your product

https://growth-demo.kinetk.ai
3•thinkmariale•14m ago•0 comments

EdgeSync-LLM – KV cache fragment engine for on-device LLM inference (Go/Android)

https://github.com/bossandboss/EdgeSync-LLM
2•bossandboss•14m ago•0 comments

China Prepares Its First Asteroid Landing on Earth's Quasi-Moon

https://gizmodo.com/china-prepares-its-first-asteroid-landing-on-earths-quasi-moon-2000779044
2•jamdesk•16m ago•0 comments

The Web Is Being Made Accessible for AI, Not People

https://www.techpolicy.press/the-web-is-being-made-accessible-for-ai-not-people/
3•cdrnsf•17m ago•0 comments

Show HN: C++, Java and C# Light-Weight-Logger

https://github.com/PenguineDavid/light-weight-logger
2•PenguineDavid•17m ago•0 comments

Benchmarking Hardwood 1.0 on a Threadripper 9980X

https://jack-vanlightly.com/blog/2026/6/30/benchmarking-hardwood-10-on-a-threadripper-9980x
2•rmoff•17m ago•0 comments

Microconference for Software Engineers in Healthcare

https://www.outofpocket.health/ship-it
2•imtavi•17m ago•1 comments

Ireland is big tech's lapdog – and that compromises its EU presidency

https://www.theguardian.com/commentisfree/2026/jun/30/ireland-big-tech-lapdog-eu-presidency-digit...
2•theanonymousone•18m ago•0 comments