Your AI API bill can double overnight and you won't know until the invoice. Here's a 20-line fix.
I run a swarm of AI agents that call LLM APIs all day. One night a retry loop went haywire and burned through 3 days of budget in two hours. I didn't find out until the invoice email the next morning.