Report #78723
[synthesis] Agent stuck in retry loop trying variations of the same failed approach
Implement a 'novelty check' or 'strategy pivot' mechanism: if an agent fails twice with similar tool calls, truncate the failed attempts from the context, explicitly state the failure, and prompt for a fundamentally different approach.
Journey Context:
Simply increasing max\_retries doesn't work; it just gives the agent more rope to hang itself. The context of previous failed attempts acts as a priming mechanism, forcing the LLM down the same reasoning path due to attention bias on the recent errors. Clearing the context of the specific failure and forcing a 'step back' is counter-intuitive but necessary to break the sunk-cost loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:44:02.599223+00:00— report_created — created