frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Agent-email-guard – agent tried to send 400 receipts, stopped at 5

https://github.com/agentisend/agent-email-guard
1•Iammnhamza•11m ago

Comments

Iammnhamza•10m ago
Hi HN. I run AgentiSend, an email API for applications and AI agents. This is the part we pulled out and open-sourced (MIT).

The failure it's for: an agent's send tool times out, the model retries, and each retry changes a word, so idempotency keys never match. In the demo, 400 attempts to send one customer the same receipt: 5 go out, 395 are refused. (The demo raises the threshold so you can see it; the default refuses the 4th.)

It's blast-radius control, not a filter. Whatever the model decides: at most N emails per hour/day/month, M per minute, no near-repeats to the same inbox, a kill switch, and a hold for recipients you mark (e.g. anyone the agent hasn't emailed before) until a person approves.

Three forms, strongest first:

- a Claude Code PreToolUse hook (npx agent-email-guard hook install) that checks every email-sending tool call, whichever MCP server it goes to

- an MCP proxy (npx agent-email-guard mcp --wrap ...) for Cursor, Codex, Claude Desktop

- a library for Node, Python, PHP and Go that wraps nodemailer, SES, Resend, Postmark or SMTP

The four libraries are one spec plus 49 shared test vectors, so they print the same decisions. npx agent-email-guard test runs 12 runaway scenarios (a prompt-injected forward, the 400-receipt loop, a recipient sweep, a reply-all storm) against a reference policy and shows what got through.

Limits, stated up front: the library runs in the agent's process, so an agent that edits its own tools can route around it. The hook and proxy sit outside the agent's code but guard one machine. None of them stops someone who holds your provider API key from calling the provider directly. Our paid API enforces the same policy server-side, which is the only place that last gap closes. That's the line between free and paid.

I'd like to hear about loops it misses and sends it blocks that it shouldn't.

The Average Is Free. Difference Is Not

https://piszczek.pl/blog/the-average-is-free
1•ladronevincet•57s ago•0 comments

Simple Claude Account Manager for Windows

https://github.com/LemongrassSteak/claude-accounts
1•EliotHerbst•1m ago•1 comments

Show HN: Bottled Reset Rune – auto-use spare Codex resets before they expire

https://github.com/sufferfml/reset-rune
1•morrowf•3m ago•1 comments

Fable 5.2 is a jump in TakingYourJobBench

https://twitter.com/AdamHoltererer/status/2119907855067414632
1•bigwheels•4m ago•0 comments

Anthropic Prepares to Push Ahead with IPO Despite Market Jitters

https://www.wsj.com/finance/stocks/anthropic-prepares-to-push-ahead-with-ipo-despite-market-jitte...
1•steventruong•7m ago•0 comments

USB: A trust layer for AI skills and MCP servers

https://github.com/PeepSick/usbplus
1•peepsick•7m ago•1 comments

Why all these fridges and other machinery control systems are online

https://tisiphone.net/2026/11/08/lets-talk-about-why-all-this-ot-stuff-is-connected/
1•fanf2•8m ago•0 comments

How well do current Claude/GPT models play multiplayer Magic the Gathering?

https://twitter.com/duskqho/status/2119890372663153140
1•mochidusk•9m ago•1 comments

Ergodic Literature

https://en.wikipedia.org/wiki/Ergodic_literature
1•aragonite•9m ago•0 comments

Show HN: Agent-email-guard – agent tried to send 400 receipts, stopped at 5

https://github.com/agentisend/agent-email-guard
1•Iammnhamza•11m ago•1 comments

Courses built from Hacker News posts

https://hackertutorials.com/
2•nedsma•12m ago•0 comments

Quantum Gravity Unites Relativity and Quantum Physics

https://hexagonmath.org/2611.00174v1
1•bigwheels•12m ago•0 comments

Show HN: Emma, a real-time AI video persona from Nuance Labs

https://app.nuancelabs.ai/try
2•cvanea•12m ago•0 comments

M4 Pro vs. M5 Pro (24GB): Qwen 3.8 Flash Next at 374 Tok/S Prefill with MoEShift

https://github.com/davide-troiani/moeshift
2•davidetroiani•12m ago•1 comments

Why Meal Kits Fell Out of Flavour

https://thewalrus.ca/meal-kits/
1•pseudolus•15m ago•0 comments

How octopuses squeeze through tiny spaces

https://www.washingtonpost.com/climate-environment/2026/11/05/see-how-octopuses-squeeze-through-t...
1•gmays•15m ago•0 comments

I built a Linux desktop. Then I forgot I was using it

https://velade.org/blog/daily-driver/
1•BrandoDev_it•15m ago•1 comments

Indie Game Development with AI

https://www.sandromaglione.com/articles/indie-game-development-with-ai
2•sandromaglione•16m ago•0 comments

AI chip financing hits a wall

https://www.semafor.com/article/11/09/2026/ai-chip-financing-hits-a-wall
3•nobody9999•16m ago•1 comments

EnterpriseDB Acquires Altinity

https://www.techtarget.com/news/enterprisedb-acquires-altinity-to-unify-open-source-database-engi...
2•kermatt•20m ago•0 comments

The most valuable nomination of all time?

https://www.natesilver.net/p/the-most-valuable-nomination-of-all
1•7777777phil•21m ago•0 comments

What is PIX? Free, instant and straight from your bank

https://whatispix.com/
1•rib3ye•22m ago•0 comments

Articles of Impeachment against Pete Hegseth [pdf]

https://massie.house.gov/uploadedfiles/hegseth_articles_of_impeachment.pdf
5•jacquesm•23m ago•0 comments

Fireworks AI Hacked

https://www.bloomberg.com/news/articles/2026-11-09/nvidia-backed-fireworks-ai-notifies-customers-...
4•aeetes•24m ago•1 comments

Tell HN: Some of My Recent Ideas

1•onaclov2000•24m ago•0 comments

Software squeezes more data out of Webb Telescope for imaging exoplanets

https://arstechnica.com/science/2026/11/getting-software-to-help-block-out-a-star-so-we-can-see-e...
2•rbanffy•26m ago•0 comments

A proof of the Aaronson-Ambainis conjecture

https://psi.inc/research/aaronson-ambainis/
1•gmays•31m ago•0 comments

Counterpointle

https://counterpointle.vercel.app
1•thatxliner•32m ago•0 comments

Lorem ipsum's fake history is one Latin professor's honest mistake [video]

https://www.youtube.com/watch?v=kL1PDqzqhM4
2•nordara•32m ago•0 comments

Exact: A new agent-native app framework written in Rust, from Expo team

https://twitter.com/ccheever/status/2119764253242695754
2•wahnfrieden•32m ago•0 comments