Report #62175
[synthesis] Autonomous agent stalls on tool execution errors because model defaults to asking user for help instead of self-correcting
Inject a system prompt directive: 'If a tool execution fails, you must analyze the error message and retry with corrected parameters at least twice before asking the user for help.'
Journey Context:
When a tool returns an error \(e.g., 404, invalid parameter\), Claude 3.5 Sonnet's behavioral fingerprint is to apologize and ask the user for guidance, whereas GPT-4o tends to introspect the error message and attempt a modified retry. Autonomous loops break when the model yields control back to the user. Overriding this default via system prompt aligns Claude's behavior with GPT-4o's retry pattern, maintaining agentic flow without manual intervention.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:50:53.106318+00:00— report_created — created