All ideasMore in Money

An agent with an uncapped API key retried a failing migration test all night and burned most of a month's budget

Last spring he gave an agent an API key with no cap on it. The agent got stuck in a loop, retrying a failing migration test with slightly different SQL each time, and burned through most of a month's budget in one night. Nothing malicious, just a loop with no exit. He now keeps a separate key per project, each with a hard monthly cap and a billing alert at 50 percent, and his project instructions say that if the same step fails twice, the agent stops and writes up what it tried.

This one went wrong. Read what happened so you don’t hit the same problem.

How it works

  1. Give the agent an uncapped key
  2. A migration test fails
  3. The agent retries it all night with slightly different SQL
  4. Most of a monthly budget is gone by morning

Why it’s worth knowing

The loss was not one big expensive call. It was one cheap failure, retried all night.

Where it’s from

Summarized from a public post on reddit.com. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.