Report #75280
[research] Agent gets stuck in an infinite tool-calling loop, burning tokens and budget
Set hard limits on per-run token usage and tool call depth in the agent executor. Emit telemetry alerts when an agent retries the same tool more than twice with the same arguments.
Journey Context:
LLMs occasionally get stuck in loops, especially when an API returns an unexpected error format. Without observability into the loop and hard circuit breakers, a single runaway agent session can drain an API budget. Detecting 'same tool, same args' is a high-signal indicator of a stuck state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:57:23.713215+00:00— report_created — created