Agentic Waste Calculator

How much are infinite loops costing you?

Agent context grows with every iteration — a stuck loop doesn't cost 4x a normal run, it costs far more. Model your real numbers below.

Control panel

2,500 tok
300 tok
15
4
1,000
4%

Damage report

Expected daily spend

$39.84

96.0% of runs, completing in 4 steps

Wasted daily burn

$8.70

4% of runs, spinning to all 15 steps

17.9% of today's total spend on this agent is pure waste — runs that never finished the task.

Wasted monthly burn

$261.00/mo

Annualized wasted spend

$3.2K

per year, at this rogue rate

$0.217

per rogue run

5.2×

cost of a normal run

Stop $3.2K/yr in rogue spend before it hits the API bill.

Cognocient's Failure Loop Breaker catches an agent repeating the same tool call or hitting a consecutive-error pattern and stops the run — instead of letting it burn all 15 steps every time. Included on Growth ($499/mo) and above.

Intercept stuck loops — start free

Model shown by assumes full conversation history is resent as context on every step, which is how most agent frameworks (LangChain, LangGraph, AutoGen, CrewAI) call the API by default. Estimates only — your actual per-step token shape depends on tool-call and observation size.

Just doing standard token math? Use the basic inference cost calculator.

Why AI agent loops get stuck

An agent loop is any workflow where a model calls itself repeatedly — reasoning, calling a tool, reading the result, and deciding whether to continue — until it either finishes the task or hits a hard-coded iteration ceiling. That ceiling exists precisely because agents get stuck often enough that leaving it unbounded is not an option. Three patterns account for most of it.

Recursive tool-call failures. A tool call returns an error the model doesn't recognize as terminal — a malformed argument, a rate limit, an empty result — and the model retries the same call with a near-identical argument, over and over. Nothing about the retry changes the outcome, but nothing stops it either, so the loop runs until the iteration cap ends it.

Context bloat masking the actual state. As the full conversation history gets resent on every step, the model's useful signal — what has actually been tried — gets diluted by an ever-growing transcript. Past a certain length, the model effectively loses track of what it already attempted and repeats work it already did, which looks identical to a genuine retry loop from the outside.

No valid stop condition for the task as given. Sometimes the loop isn't a bug — the task genuinely can't be completed with the tools and information the agent has, and a model that isn't explicitly instructed to recognize and report failure will keep trying alternate approaches until it runs out of steps rather than stopping early.

Why the cost curve is worse than it looks

Most agent frameworks — LangChain, LangGraph, AutoGen, CrewAI — call the underlying API the same way a chat interface does: every step resends the full conversation so far as input, then generates the next step as output. That means step 1 is billed for the base prompt alone, but step 10 is billed for the base prompt plus everything generated across the previous nine steps. Input tokens accumulate; a loop that runs the full iteration cap instead of stopping early doesn't cost proportionally more, it costs disproportionately more, because the largest, most expensive steps are the ones at the end of a run that should never have gotten that far.

That compounding is exactly what the calculator above models — set your own base context, per-step token size, and iteration cap, and the “wasted daily burn” number reflects the same cumulative-context math your actual API bill runs on, not a flat per-step estimate.