Agent Stuck in Retry Loop Burns $4,700 Overnight on a $400/mo Customer

Sufficient_Cause_43 · reddit · 2026-10-06

A lean 3-person B2B tool runs agents on its own infra for 3 customers, paying model bills upfront. Between 1:12am and 6:50am, a customer's agent hit a tool that kept erroring and decided to retry with slightly different prompts — 31,000 times, burning $4,700 in tokens on a $400/mo plan.

Postmortem: they had global rate limits and total-spend alerts, but no per-customer cap, since usage only rolled up into month-end invoices nobody checked. The customer wasn't at fault — agents do exactly this when nothing tells them to stop.

Fixes worth copying:

Original post →

More from coding & agent

coding & agent channel →