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.

PHP in 2026

https://stitcher.io/blog/php-2026
1•brentroose•1m ago•0 comments

Incus 6.20

https://discuss.linuxcontainers.org/t/incus-6-20-has-been-released/25635
1•indigodaddy•2m ago•0 comments

Hippocratic AI Acquires Grove AI

https://www.fiercehealthcare.com/ai-and-machine-learning/jpm26-hippocratic-ai-acquires-grove-ai-t...
1•doppp•7m ago•0 comments

Meta plans to lay off Metaverse employees this week

https://www.theverge.com/news/860984/meta-reality-labs-layoffs-metaverse
1•NBJack•7m ago•0 comments

OpenAI Acquires Torch

https://twitter.com/OpenAI/status/2010813780671021106
1•doppp•8m ago•0 comments

Text-Based Web Browsers

https://cssence.com/2026/text-based-web-browsers/
2•pabs3•10m ago•0 comments

Ask HN: How can we make use of AI agents with existing GitLab CI/CD pipelines?

1•tbharath•13m ago•0 comments

Rebly – A secure, ad-free Bitly alternative for 2026

https://rebly.co
1•skar8147•13m ago•1 comments

Day Fifteen of Iran's Nationwide Protests: Sharp Rise in Human Casualties

https://www.en-hrana.org/day-fifteen-of-irans-nationwide-protests-sharp-rise-in-human-casualties/
1•pabs3•13m ago•0 comments

Germany Considers Broader Legal Authority; Internet Surveillance, State Hacking

https://reclaimthenet.org/germany-bnd-surveillance-law-expansion-de-cix-data-retention-hacking
1•pabs3•14m ago•0 comments

Show HN: Drizzle ORM schema to DBML/Markdown/Mermaid documentation generator

https://github.com/rikeda71/drizzle-docs-generator
1•rikeda71•15m ago•0 comments

Show HN: SlopScore – Contributor Reputation for GitHub PRs

https://github.com/hanzili/slopscore
2•hanzili•16m ago•0 comments

Iran Is Hunting Down Starlink Users to Stop Protest Videos from Going Global

https://www.wsj.com/world/middle-east/iran-is-hunting-down-starlink-users-to-stop-protest-videos-...
4•Agreed3750•22m ago•3 comments

CLI's completion should know what options you've typed

https://hackers.pub/@hongminhee/2026/optique-context-aware-cli-completion
2•dahlia•22m ago•0 comments

D2TS – Differential Dataflow in TypeScript (Used by TanStack DB and ElectricSQL)

https://github.com/electric-sql/d2ts
1•jpereira•25m ago•0 comments

House GOP unveils new legislation on stock trading ban

https://thehill.com/homenews/house/5684843-house-gop-stock-trading-ban/
5•1659447091•33m ago•1 comments

Uber faces bellwether assault trial in federal court in Arizona

https://www.reuters.com/sustainability/society-equity/uber-faces-sexual-assault-trial-arizona-tha...
1•1vuio0pswjnm7•36m ago•1 comments

Agent Safety is a [bounded] Box

https://brooker.co.za/blog/2026/01/12/agent-box.html
1•honorable_coder•36m ago•1 comments

F-22 Raptor Is Getting So Many Upgrades It Will Fly Until 2060

https://www.19fortyfive.com/2026/01/the-f-22-raptor-stealth-fighter-is-getting-so-many-upgrades-i...
3•Gaishan•39m ago•0 comments

Ask HN: AGI Suicide?

2•mudil•42m ago•1 comments

Meta unveils 'Meta Compute' initiative to build AI infrastructure

https://www.reuters.com/technology/meta-build-gigawatt-scale-computing-capacity-under-meta-comput...
1•haberdasher•42m ago•0 comments

Anthropic Shipped Cowork in 10 Days Using Its Own AI

https://karozieminski.substack.com/p/claude-cowork-anthropic-product-deep-dive
4•zenonBz•51m ago•0 comments

Powell vows to stand firm against 'unprecedented' administration threats

https://www.pbs.org/newshour/politics/watch-powell-vows-to-stand-firm-against-unprecedented-trump...
17•JumpCrisscross•52m ago•0 comments

Database Development with AI in 2026

https://www.brentozar.com/archive/2026/01/database-development-with-ai-in-2026/
3•gmays•56m ago•0 comments

Show HN: A custom little core CPU architecture with a unique pipeline design

https://github.com/futureisAJASU/Architecture
2•AJASU•57m ago•0 comments

Show HN: ToolsAid – A privacy-first developer utilities hub built with Golang

https://toolsaid.com/
2•raihaninfo•1h ago•0 comments

Eureka launches two robotic vacuum cleaners and a floor-steamer stick vacuum

https://www.notebookcheck.net/Eureka-launches-two-robotic-vacuum-cleaners-and-a-floor-steamer-sti...
1•akg130522•1h ago•0 comments

Show HN: I built an image-to-3D tool optimized for 3D printing and game asset

https://www.imgto3d.ai
2•stewardyunn•1h ago•2 comments

Seeing Geologic Time: Exponential Browser Testing

https://tjid3.org/paper/time
1•TimothyMJones•1h ago•3 comments

What I'd do if I was 18 again

https://www.aadillpickle.com/blog/18-again
1•aadillpickle•1h ago•0 comments