Report #11127
[gotcha] Infinite reasoning loops from interdependent tool errors
Track tool call sequences in the agent loop; if a sequence of tool calls repeats \(e.g., Tool A fails -> Tool B -> Tool A fails\), break the loop and prompt the LLM to ask the user for help instead of retrying.
Journey Context:
LLMs are notoriously bad at escaping local minima. If Tool A fails due to a missing file, the LLM might call Tool B to create it, but Tool B fails due to permissions, so it tries Tool A again. MCP provides no loop detection. Without an external circuit breaker tracking the call stack, the agent burns tokens indefinitely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:38:15.786702+00:00— report_created — created