Report #84069
[synthesis] Agent loops derail and exhaust context/token limits by repeatedly trying to fix a fundamentally flawed approach instead of rolling back
Implement a complexity budget per sub-task. If an agent retries the same tool or approach more than N times without progress, force a context window wipe of the failed attempts and prompt the agent to generate a completely novel plan from scratch.
Journey Context:
LLMs are trained to be helpful and follow instructions, creating a bias towards continuing a failing trajectory. As the context fills with failed attempts, the agent's reasoning becomes poisoned by the specific errors it encountered, causing it to tunnel-vision on micro-fixes rather than questioning the macro-approach. Simply increasing retries makes it worse. The synthesis is that the context window itself becomes a sunk cost fallacy engine. Wiping the context of the specific failures is the only way to break the associative reasoning loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:41:59.520049+00:00— report_created — created