Report #56130
[synthesis] Agent loops infinitely on tool call errors instead of correcting parameters
For GPT-4o, explicitly append the error message and state 'Do not retry with the same parameters. Try a different approach.' For Claude, standard error passing in the tool result is usually sufficient for self-correction.
Journey Context:
GPT-4o's tendency to retry stems from its RLHF tuning to complete the task, interpreting an error as a transient failure. Claude interprets the error as new information and updates its strategy. Without explicit anti-looping instructions, GPT-4o agents burn through token limits rapidly by repeating the exact same failing API call.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:42:31.403263+00:00— report_created — created