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•8mo 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•8mo 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•8mo 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: Native-devtools-MCP – MCP server for native desktop app interaction

https://github.com/sh3ll3x3c/native-devtools-mcp
1•sh3ll3x3c•2m ago•0 comments

AI Prompt to Create the Ultimate Reverse Prompt Engineering System

https://tools.eq4c.com/ai-prompts/chatgpt-prompt-to-create-the-ultimate-reverse-prompt-engineerin...
1•eq4c•2m ago•0 comments

The Physics of Ideas: Reality as a Coordination Problem

https://bpe.xyz
2•shoes_for_thee•4m ago•0 comments

The engineering behind GitHub Copilot CLI's animated ASCII banner

https://github.blog/engineering/from-pixels-to-characters-the-engineering-behind-github-copilot-c...
1•sebg•5m ago•0 comments

Poll: Meaningless Work or Boring Colleagues?

1•sam_lowry_•6m ago•2 comments

Compressed Air Gramophone

https://en.wikipedia.org/wiki/Compressed_air_gramophone
1•v9v•7m ago•0 comments

Show HN: 静阅 means "quiet reading" – a calm reading app for bedtime

https://apps.apple.com/us/app/%E9%9D%99%E9%98%85/id6758232981
1•jackhyyy•9m ago•0 comments

Ubiquiti sells its products to Russia despite bans [video]

https://www.youtube.com/watch?v=s6i4uffZvhc
1•ruvie8812•9m ago•0 comments

Compressed Agents.md > Agent Skills

https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals
1•maximedupre•10m ago•0 comments

Penn researchers are helping address group violence in Baltimore (2024)

https://penntoday.upenn.edu/news/criminology-crime-and-justice-policy-lab-baltimore-gvrs
1•orwin•10m ago•0 comments

Potentially habitable planet discovered 146 light-years away, may be -70C

https://www.theguardian.com/science/2026/jan/29/a-potentially-habitable-new-planet-has-been-disco...
2•tosh•11m ago•0 comments

Hard-stopping AI agent pipelines with prompt-level kill switches

https://blog.lukaszolejnik.com/hard-stopping-ai-agent-pipelines-with-prompt-level-kill-switches/
1•speckx•11m ago•0 comments

Angry Norfolk residents lose lawsuit to stop Flock license plate scanners

https://arstechnica.com/tech-policy/2026/01/angry-norfolk-residents-lose-lawsuit-to-stop-flock-li...
2•627467•12m ago•0 comments

Nathan Barry Grew ConvertKit to $43M by Ignoring Traditional SaaS Marketing

https://marketingcrafted.com/case-studies/convertkit
1•mellisacodes•12m ago•0 comments

Show HN: 静阅" means 安静阅读 – a quiet reading app designed for bedtime

https://apps.apple.com/us/app/transdo/id6746675000
1•jackhyyy•13m ago•0 comments

Show HN: Telegram-Archive – Own your chat history

https://github.com/GeiserX/Telegram-Archive
1•geiser•13m ago•0 comments

Scientists achieve pancreatic tumour regression in breakthrough study

https://www.euronews.com/health/2026/01/28/scientists-achieve-pancreatic-tumour-regression-in-bre...
1•akyuu•14m ago•0 comments

YC Startup school credits pack

1•shafimaahe•14m ago•0 comments

Show HN: SoundLocate – Find your city match based on music taste

https://soundlocate.com
1•akhow•15m ago•0 comments

Should You Resign?

https://marginalrevolution.com/marginalrevolution/2026/01/should-you-resign.html
2•speckx•17m ago•1 comments

Meta guides FY26 capex to $115-135B, up from $72B in FY25

https://www.marvin-labs.com/blog/meta-ai-strategy-infrastructure-investment-analysis/
1•alexdoesstuff•17m ago•1 comments

Tesla lurches into the Musk robotics era

https://www.ft.com/content/6a6cfa00-6f51-4abc-bd68-1738580bd2c5
1•nutjob2•20m ago•0 comments

Tesla scraps models in pivot to AI

https://www.ft.com/content/78d53ce6-a731-496c-8d8b-e53bc35f49a8
1•nutjob2•21m ago•0 comments

Why Linux wound up with system package managers

https://utcc.utoronto.ca/~cks/space/blog/linux/WhySystemPackageManagers
1•bariumbitmap•21m ago•0 comments

Tempura – A Weather Forecast TUI

https://github.com/1a/tempura
1•CaptainV•22m ago•1 comments

Valve Developer Improves Aging AMD APUs on Linux with VRR, DP/HDMI Audio, HDR

https://www.phoronix.com/news/AMDGPU-DC-Improved-GCN-1.1-APUs
1•speckx•22m ago•0 comments

How I would hack Clawdbot users (from the pov of a UX designer)

https://teddessert.substack.com/p/how-i-would-hack-clawdbot-users-if
1•donji•22m ago•0 comments

'We have been able to restore memories that were thought to be lost'

https://english.elpais.com/science-tech/2026-01-13/steve-ramirez-neuroscientist-we-have-been-able...
1•PaulHoule•24m ago•0 comments

Show HN: I made a new compression algorithm

https://github.com/BrowserBox/LZW-X
2•keepamovin•24m ago•2 comments

Shrinking a language detection model to under 10 KB

https://david-gilbertson.medium.com/shrinking-a-language-detection-model-to-under-10-kb-b729bc25fd28
1•gkbrk•25m ago•0 comments