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•9mo 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•9mo 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•9mo 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: Obsidian meets Claude Code. A Markdown graph for agents and context

https://github.com/voicetreelab/voicetree
1•manumasson•1m ago•0 comments

A Role Model for How to Die

https://www.nytimes.com/2026/02/03/nyregion/cancer-friend-death-role-model.html
1•anarbadalov•1m ago•0 comments

Show HN: Dynamic Markdown Flashcards without database (Obsidian)

https://twitter.com/AlexWeichart/status/2018812097828962629
1•surrTurr•1m ago•0 comments

Scurl: Agent First Curl Wrapper with Markdown Extraction and Secret Blocking

https://github.com/sibyllinesoft/scurl
1•CuriouslyC•1m ago•1 comments

French headquarters of Elon Musk's X raided by Paris cybercrime unit

https://www.theguardian.com/technology/2026/feb/03/french-headquarters-elon-musk-x-raided-paris-c...
3•billybuckwheat•3m ago•0 comments

Democrats unveil WA income tax on people earning over $1M

https://www.seattletimes.com/seattle-news/politics/democrats-unveil-wa-income-tax-on-people-earni...
2•garbawarb•7m ago•0 comments

A CFO explains the history of EBITDA [video]

https://www.youtube.com/watch?v=JySZv_fSNqs
1•cjgustafson22•8m ago•0 comments

Evaluating Multilingual, Context-Aware Guardrails

https://blog.mozilla.ai/evaluating-multilingual-context-aware-guardrails-evidence-from-a-humanita...
1•benbreen•9m ago•0 comments

Ask HN: How do you detect silent data loss in user-facing systems?

1•Pepp38•9m ago•0 comments

Ask HN: Cheap laptop for Linux without GUI (for writing)

3•locusofself•13m ago•0 comments

Solving the AI Agent Dilemma: "Ask" Redefines Agent Skills Distribution

https://github.com/yeasy/ask
1•yeasy•14m ago•1 comments

Hostile (Corporate) Architecture

https://www.thevinter.com/blog/hostile_corporate_architecture
1•thevinter•14m ago•0 comments

uops-again.info: corner-case behaviours of port assignment on Intel processors

https://uops-again.info/
1•matt_d•15m ago•1 comments

In Depth – Memory Governance: The Achilles' Heel of Enterprise AI

http://yeasy.blogspot.com/2026/01/in-depth-memory-governance-achilles.html
1•yeasy•15m ago•1 comments

The Death of Code and the Rise of Data: The Software Economics Revolution in AI

http://yeasy.blogspot.com/2026/01/the-death-of-code-and-rise-of-data.html
1•yeasy•17m ago•1 comments

Electronicos Fantasticos

https://www.electronicosfantasticos.com/
1•nickt•17m ago•0 comments

Grindr tests new AI subscription called "Edge" that costs up to $6k a year

https://www.dexerto.com/entertainment/grindr-is-testing-a-new-ai-subscription-called-edge-that-co...
1•randycupertino•18m ago•1 comments

Postman March:AI-native capabilities,new API Catalog,updated plans and pricing

https://blog.postman.com/new-capabilities-march-2026/
1•EspadaV9•21m ago•0 comments

Virtualizor Security Update: Regarding a Recent Support Ticket Incident

https://www.virtualizor.com/blog/security-update-transparency-regarding-a-recent-support-ticket-i...
1•MallocVoidstar•21m ago•0 comments

Kindred Raises $125M

https://blog.livekindred.com/the-future-belongs-to-those-who-give-why-we-raised-125m-to-scale-kin...
1•philip1209•22m ago•0 comments

Morton Feldman's Music of Stillness

https://www.newyorker.com/magazine/2026/02/02/morton-feldman-at-100-music-review
1•paulpauper•22m ago•0 comments

Agent Only Data Marketplace

https://www.openclawmind.com
1•pruufsocial•23m ago•1 comments

Do you think .md domains will become popular?

2•hiveindex•26m ago•0 comments

Hans – IP over ICMP

https://code.gerade.org/hans/
2•mmh0000•27m ago•0 comments

Running is my meditation (2024) [pdf]

https://research-repository.rmit.edu.au/articles/thesis/_Running_is_my_meditation_an_investigatio...
2•wslh•30m ago•1 comments

Elon Musk's SpaceX Officially Acquires Elon Musk's xAI

https://techcrunch.com/2026/02/02/elon-musk-spacex-acquires-xai-data-centers-space-merger/
1•rbanffy•30m ago•1 comments

The Digital Bastille: What France's War with X Tells Us About Free Speech

https://www.sebs.website/blog/the-digital-bastille
1•Incerto•31m ago•0 comments

Intel Panther Lake Shows Strong Linux CPU Performance and Power Efficiency

https://www.phoronix.com/review/intel-core-ultra-x7-358h-linux
2•rbanffy•31m ago•0 comments

Complete Guide to Claude Concepts

https://github.com/luongnv89/claude-howto/blob/main/claude_concepts_guide.md
1•rob•31m ago•0 comments

No Such Thing as Speed of Light

http://www.russbishop.net/no-such-thing-as-speed-of-light#61429
1•frizlab•31m ago•0 comments