frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Middleware that catches when LLM conversations slowly drift off-topic

https://github.com/ojki74/hallucinatoff
1•ojki•33s ago•0 comments

Feral cats fail at urban rodent control (2018)

https://wildlife.org/rats-feral-cats-fail-at-urban-rodent-control/
1•vector_spaces•53s ago•0 comments

Now on the American Road: Bulletproof Cars

https://www.nytimes.com/2026/07/20/style/armored-cars-bulletproof-american-drivers.html
1•bookofjoe•1m ago•1 comments

The Visual 6502

http://visual6502.org/JSSim/index.html
1•infiniteregrets•3m ago•0 comments

How working out at the gym replaced the home improvement project

https://www.cnn.com/2026/07/23/business/gyms-millennials-gen-z-equinox
1•mooreds•6m ago•0 comments

China won the car wars with cheap EVs loaded with technology

https://www.rnz.co.nz/news/world/782063/how-china-won-the-car-wars-with-cheap-evs-loaded-with-tec...
5•billybuckwheat•11m ago•0 comments

The Online MBA

https://theonline.mba
2•multiplesauces•11m ago•1 comments

The Elm Architecture, Without Elm

https://bichanna.github.io/posts/tea-time/
2•theanonymousone•11m ago•0 comments

Sherlock Search – find anyone by photo

https://sherlocksearch.net
1•thefirstname322•12m ago•0 comments

AI bet goes awry: Oracle fires 21,000 employees

https://www.jpost.com/business-and-innovation/tech-and-start-ups/article-903442
2•willmarch•13m ago•0 comments

About 1 in 4 workers keep unwanted jobs for health insurance, poll finds

https://www.washingtonpost.com/business/2026/07/24/about-1-4-workers-keep-unwanted-jobs-health-in...
2•bookofjoe•16m ago•1 comments

Show HN: Verified B2B leads with the reason to reach out now

https://madleadz.com/
1•not_wowinter14•16m ago•0 comments

CodeCrafters – Build Your Own <X> repo

https://github.com/codecrafters-io/build-your-own-x
1•matthberg•16m ago•0 comments

Ukraine's Kill Zone

https://www.reuters.com/graphics/UKRAINE-CRISIS/KILL-ZONE/znpnojmknvl/
3•mathgenius•19m ago•0 comments

There isn't a single consumer Wi-Fi router that is 100% American-made

https://www.engadget.com/2218707/no-100-percent-american-made-wifi-router/
1•speckx•20m ago•0 comments

OpenAI's Dean Ball on Chinese Open-Weight Models

https://twitter.com/deanwball/status/2078133895766114412
3•matt_daemon•21m ago•0 comments

India's CJP Protests Meet Internet Shutdowns and Pervasive Surveillance

https://www.techpolicy.press/indias-cjp-protests-meet-internet-shutdowns-and-pervasive-surveillance/
2•sid_talks•23m ago•0 comments

Canva uses S3 for logged-in session management

https://www.canva.dev/blog/engineering/session-revocations-at-scale/
2•birdculture•23m ago•0 comments

Quick Followup on the Truth Social Thing

https://www.businesslawprofessors.com/2026/07/quick-followup-on-the-truth-social-thing/
2•petethomas•24m ago•0 comments

Ask HN: What Linux distro do you daily drive?

5•addajones•24m ago•6 comments

FreeBSD ports frozen after someone commits the 150MB Linux Copilot binary

https://www.osnews.com/story/145593/freebsd-ports-frozen-after-someone-commits-the-entire-150mb-l...
2•iamnothere•25m ago•0 comments

Light Flip Phone

https://www.thelightphone.com/lightflip
3•agilek•27m ago•0 comments

Recent Modeling Systematically Underestimates Warming from IMO2020 Shipping Regs

https://egusphere.copernicus.org/preprints/2026/egusphere-2026-2654/
1•littlexsparkee•27m ago•0 comments

A DEX aggregator whose quotes are computed on-chain (free API, no key)

https://blazephoenix.xyz/
1•mitraxyz•27m ago•1 comments

Show HN: SQL service for tables with billions of rows or up to 1M columns

2•synsqlbythesea•30m ago•0 comments

When AI Attacks AI: Why Every System Needs a Guard

https://medium.com/@alanscottencinas/when-ai-attacks-ai-why-every-system-needs-a-guard-8ba46f904378
1•encinas88•30m ago•0 comments

Four takeaways from our investigation into a hidden gene-editing death

https://www.science.org/content/article/four-takeaways-our-investigation-hidden-gene-editing-death
2•sbulaev•32m ago•0 comments

Patreon Lays Off 20% of Employees as Part of 'Painful' Restructuring

https://variety.com/2026/biz/news/patreon-cuts-20-percent-of-employees-painful-restructuring-1236...
5•adamhowell•33m ago•0 comments

Stripe in talks to buy OpenRouter for about $10B

https://twitter.com/andrewcurran_/status/2080397684134007189
11•julien_c•35m ago•1 comments

Future euro banknote design proposals

https://www.ecb.europa.eu/euro/banknotes/future_banknotes/html/design-proposals.en.html
1•amarcheschi•37m ago•0 comments
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.