Report #2356
[research] Agent burns through tokens or API credits by getting stuck in an infinite tool-call loop
Implement observability circuit breakers based on tool-call frequency and token consumption per trace. If an agent calls the same tool with similar arguments > N times, terminate the trace and alert.
Journey Context:
LLMs can get stuck in loops where a tool returns an error, the LLM retries with the exact same args, and loops infinitely. Standard timeout limits don't catch this if each individual call is fast. Observability on repetitive tool signatures is required to break the cycle before costs spiral.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T11:31:28.508978+00:00— report_created — created