Report #88747
[agent\_craft] Agent loops infinitely retrying a failed tool call without modifying parameters or switching tools
Implement a '2-strikes' rule with escalation: on first failure, retry with corrected parameters \(if error message suggests fix\); on second failure, switch to an alternative tool or ask the user, never retry a third time with the same parameters.
Journey Context:
ReAct-style agents often hallucinate that retrying the same call will work. Without a circuit breaker, this burns tokens and API rate limits. The pattern is: parse error type \(transient vs. logical\), react accordingly. Transient \(timeout\) -> retry once. Logical \(invalid args\) -> fix args or abort.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:32:58.090888+00:00— report_created — created