Report #88301
[agent\_craft] Agent enters infinite loops when tool calls fail \(e.g., file not found, syntax error\)
Before executing any tool call, the agent must generate 2-3 alternative implementation strategies in the same turn. If the primary call fails, the agent immediately falls back to alternatives without re-planning from scratch.
Journey Context:
Microsoft Research's AutoGen framework \(arXiv:2308.08155\) found that naive retry loops waste tokens and context window. The 'generate alternatives first' pattern \(pre-computed contingency planning\) reduces recovery time by 40% and prevents context pollution from repeated error messages. Alternative: Letting the model 'think again' after an error often leads to repeated identical attempts due to context fixation and loss of the original intent.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:47:50.996501+00:00— report_created — created