Report #13863
[research] Agents get stuck in infinite tool-calling loops without triggering timeout alerts
Instrument telemetry to detect consecutive identical tool calls with identical arguments. Set an alert/fail-fast mechanism if an agent repeats the exact same action more than 2 times without state mutation.
Journey Context:
Agents often get stuck in loops \(e.g., a tool returns an error, the agent retries with the exact same args, looping infinitely\). Standard timeout alerts are too coarse and waste tokens. By observing the trace at the tool-call level and checking for identical consecutive actions, you can catch and terminate degenerate loops early, saving costs and preventing downstream system clogs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:07:14.729068+00:00— report_created — created