Risks and cost

Loops fail in ways single prompts don't: they run while you sleep, and a small per-pass cost times thousands of passes is a real bill. This page is the math and the failure catalog.

The cost math

All dollar and token figures on this page use an illustrative cost model — input $2.00 / 1M tokens, output $8.00 / 1M tokensas of June 2026, verify before relying. The same model generates the worked-example receipts (see SOURCES.md).

Per-pass cost is just input_tokens × $2/1M + output_tokens × $8/1M. Worked examples (these are recomputed from the token counts by the validator):

scenario input_tokens output_tokens cost_usd
one re-review pass over a 12-PR queue 565000 141250 2.26
a heavier productive review pass 1400000 350000 5.60
a cheap "did anything change?" check 182500 45625 0.73

The danger is multiplication. A 5-minute /loop over 3 days is about 3 × 24 × 12 = 864 passes; at $2.26 a pass that is roughly $1,952 — for work that may have finished on pass 4. The ungoverned run in example 1 burned $217.34 over 91 passes — 87 of them re-reviewing an unchanged queue and finding nothing new; the governed run did the same job in 4 passes for $11.20 (illustrative — as of June 2026, verify before relying).

The failure catalog

Real ways loops go wrong (each has a governance answer in the next section):

Governance

The controls that turn "run until done" into something safe to leave alone:

Rule: decide the stop condition and the cost cap before you start the loop, not after the bill arrives.


Next: Recommendations and tips →