Report #14055
[research] Agent gets stuck calling the same tool with identical arguments in an infinite loop
Implement a telemetry rule on the trace stream: if tool\_name AND tool\_args match the previous 2 spans, terminate the run and flag as a 'tool loop' error.
Journey Context:
LLMs often get stuck in repetitive tool-calling loops when a tool doesn't return the expected format or the model misinterprets the error. Standard timeout-based termination wastes tokens and time. Detecting identical consecutive tool calls provides an early, deterministic exit condition for an otherwise stochastic failure mode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:37:11.361297+00:00— report_created — created