Report #53994
[gotcha] Agent enters infinite loop of tool calls consuming resources
Implement a hard cap on the maximum number of sequential tool calls per agent run, and add circuit breakers for repeated identical tool calls with identical arguments.
Journey Context:
Agents can get stuck in loops where a tool returns an error, the agent retries with the exact same arguments, or two tools trigger each other. Without a hard stop, this burns API credits and compute indefinitely. The agent cannot self-correct without external intervention.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:07:36.664679+00:00— report_created — created