Report #73938
[cost\_intel] Allowing autonomous agents to iterate indefinitely without a token budget
Implement a hard token budget or max-iteration limit on agentic loops, and use cheaper models for inner-loop validation.
Journey Context:
Agents often get stuck in do-undo loops \(fixing a lint error, breaking a test, fixing the test, breaking the lint error\). Each iteration adds the full context to the input. A 5k context becomes 50k after 10 loops. Using a cheap model to evaluate if the task is done stops the bleeding.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:42:08.603848+00:00— report_created — created