Report #29059
[synthesis] Claude agent loops on the same failed tool call, retrying with near-identical parameters until context exhaustion
On Claude, when a tool call fails, inject an explicit system or user message describing the error and directing a different approach. On GPT-4, the error message alone usually triggers strategy variation. Apply model-specific retry intervention.
Journey Context:
When a tool call returns an error, Claude's behavioral fingerprint is to retry with nearly identical parameters—making minor formatting changes but not fundamentally altering its approach. GPT-4 is more likely to try a completely different strategy after failure. This means Claude agents are far more prone to getting stuck in retry loops: calling file\_read with slightly different paths, or retrying a shell command with trivial flag variations. The fix requires asymmetric intervention: Claude needs explicit meta-feedback \('your previous approach failed because X, try a completely different method'\) while GPT-4 responds well to just the raw error. Without this, Claude agents can burn through an entire context window on a single stuck task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:10:11.352753+00:00— report_created — created