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.

Future Regret in Artichoke's State Refactor

https://github.com/lopopolo/harness-engineering/blob/v1.0.0/evals/artichoke-state-modeling.md
1•Bluestein•7m ago•0 comments

My Journey Towards Coding Agents: Building Sera

https://timdettmers.com/2026/01/27/building-open-coding-agent-sera/
1•vismit2000•12m ago•0 comments

MCP Server for reduce use of Token

https://github.com/dangranaz/nxm-memory
1•dangranaz•14m ago•1 comments

Show HN: STXT, indentation-based format with schemas and no escape characters

https://stxt.dev/
1•mombiela•14m ago•0 comments

Ten years of AI reporting ("60 Minutes" Marathon) [video]

https://www.youtube.com/watch?v=QdK-j7SYh4A
1•mdp2021•14m ago•1 comments

AI Ethics or Dog Whistling?

https://buttondown.com/usaa.ma/archive/ai-ethics-or-dog-whistling/
1•usamasulaiman•16m ago•0 comments

9/11 survivors are being diagnosed with cancer 25 years after the attacks [video]

https://www.youtube.com/watch?v=gKEly6Vs3MU
2•mgh2•18m ago•0 comments

Lawyer used fake AI cases to defend himself at tribunal and it didn't end well

https://www.legalcheek.com/2026/09/lawyer-used-fake-ai-cases-to-defend-himself-at-disciplinary-tr...
1•ColinWright•18m ago•0 comments

AIs as Modern Genies

https://www.schneier.com/blog/archives/2026/09/ais-as-modern-genies.html
1•Bluestein•22m ago•0 comments

Standupd, a Letterboxd for stand-up comedy

https://standupd.com/
1•alpkorpe•23m ago•0 comments

Norton Neo Browser

https://neobrowser.ai/
2•phantomathkg•26m ago•0 comments

Musk's secretive backer builds $40B SpaceX stake

https://www.ft.com/content/c765f312-e698-4d31-bf71-f64a656ad6f4
4•sbulaev•26m ago•1 comments

GP data added to Palantir's NHS data platform

https://www.ft.com/content/5d15de64-49cc-4b6a-a2ea-51061f1cddc7
3•sbulaev•27m ago•0 comments

Show HN: Nearby places ranked by quality score, not ads

https://realnear.app/
1•stdcall83•27m ago•0 comments

Shared Code: Democratizing AI Companies

https://www.cip.org/blog/shared-code
1•erlend_sh•32m ago•0 comments

Show HN: ProofOfDonation, replace CAPTCHAs with charity donations

https://github.com/mgriley/proof-of-donation/
1•mgriley•33m ago•0 comments

Show HN: PDF Pocket Tools – offline PDF toolkit as a single 200KB HTML file

https://pdfpockettools.itch.io/pdf-pocket-tools
1•pdfpockettools•35m ago•0 comments

Sam Altman addresses AI doomsday fears in new interview

https://fortune.com/2026/09/12/sam-altman-interview-ai-doomsday-safety-models-control-ipo-2027/
1•JeremyTheo•39m ago•1 comments

How supermarkets are using AI to watch you in the aisles

https://www.rte.ie/brainstorm/2026/0911/1590631-retail-surveillance-ai-technology/
3•austinallegro•44m ago•0 comments

Ryanair CEO compares rival airlines to 'rapists'

https://www.brusselstimes.com/2312302/ryanair-ceo-compares-rival-airlines-to-rapists
2•Daniyal45•48m ago•0 comments

Marriott Guest Says Hotel Insisted a Rubbermaid Laundry Cart Was a Baby Crib

https://www.fashiontimes.co.uk/marriott-guest-rubbermaid-cart-instead-crib-1763854
1•extasetoi12•50m ago•0 comments

Homebrew 7.0.0

https://brew.sh/2026/09/13/homebrew-7.0.0/
10•mikemcquaid•52m ago•3 comments

Man arrested after allegedly sexually abusing koi fish in Bangkok

https://www.khaosodenglish.com/featured/2026/09/11/man-arrested-after-allegedly-sexually-abusing-...
1•face2sunny•54m ago•0 comments

Robots protest in Poland over AI regulation concerns

https://www.aljazeera.com/video/newsfeed/2026/9/7/robots-protest-in-poland-over-ai-regulation-con...
1•dinesshsaini21•56m ago•0 comments

Toposes are NOT scary – Urs Schreiber [video]

https://www.youtube.com/watch?v=_3TslhCBQ1E
1•hackandthink•57m ago•0 comments

Download More RAM – Nvidia CMP 170HX Cmpunlocker

https://www.lttlabs.com/articles/2026/09/12/cmp-170hx-cmpunlocker
2•willx86•1h ago•0 comments

In Clover: What does McKinsey do? (2022)

https://www.lrb.co.uk/the-paper/v44/n24/laleh-khalili/in-clover
1•Tomte•1h ago•0 comments

Show HN: Run coding agents on your own machine, steer them from anywhere

https://github.com/phyra-research/roamux
2•mwiki•1h ago•0 comments

Diablo 5 Announced

https://sea.ign.com/diablo-iv/248747/diablo-5-announced
2•nsoonhui•1h ago•0 comments

Ask HN: Should we start airgapping our personal devices?

2•emerongi•1h ago•1 comments