Report #56455
[research] Agents get stuck in infinite tool-calling loops without throwing errors, consuming tokens and stalling the pipeline
Configure telemetry to emit a metric on consecutive identical or semantically similar tool calls, and set an alert to terminate or inject a human-in-the-loop prompt after N=3 consecutive similar actions.
Journey Context:
LLMs can enter thought loops where they repeatedly call the same tool with the same arguments \(or minor variations\) expecting a different result. Standard timeout limits are too coarse; the agent stays active, just unproductive. Observability must track the semantic similarity or exact hash of sequential tool calls to detect and break these loops before token limits are hit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:15:12.355310+00:00— report_created — created