Report #2361
[architecture] Agents infinitely loop by handing off to each other, neither taking responsibility
Implement a hard maximum handoff limit \(e.g., max\_turns or max\_hops\) and a fallback generalist agent that catches exceeded limits.
Journey Context:
LLMs lack global awareness of the loop they are in. Agent A thinks Agent B should handle it, and Agent B thinks Agent A should. Without a circuit breaker, the system burns tokens indefinitely. A strict counter forces termination, and routing to a generalist ensures the user gets a response, even if suboptimal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T11:32:28.493741+00:00— report_created — created