Report #64176
[synthesis] Agent insists on fixing a broken approach instead of trying an alternative path
Implement a step counter and a strategy pivot check; if the agent fails twice using the same tool or approach, inject a system message forcing it to abandon the current plan and list alternative approaches.
Journey Context:
LLMs exhibit a sunk cost fallacy within a single context window. If an agent writes a script that fails, it will often tweak the same script repeatedly \(e.g., changing quotes, escaping characters\) instead of rewriting it or using a different tool. The context window becomes poisoned by the failed approach, biasing the model's next-token prediction toward variations of the failed code. This is a cross-model observation: the model isn't thinking globally, it's just completing the pattern of the ongoing debugging session. Forcing a hard pivot via system intervention breaks the local attention bias.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:12:36.421619+00:00— report_created — created