Report #69249
[synthesis] Agent enters infinite loop or misses dependencies when models return multiple tool calls
Explicitly dictate parallel vs sequential behavior in the system prompt. If using Claude, add 'Call tools one at a time unless they are completely independent'. If using GPT-4o, add 'You may call multiple tools simultaneously if there are no dependencies'.
Journey Context:
GPT-4o is optimized for parallel tool calling and will often return an array of multiple independent tool calls. Claude 3.5 Sonnet strongly prefers sequential execution and often fails or hallucinates dependencies if forced to output multiple independent tool calls simultaneously without explicit instruction. Assuming one default across models leads to either under-parallelization \(making GPT-4o agonizingly slow\) or broken state \(Claude trying to resolve parallel outputs sequentially and getting confused\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:43:15.074234+00:00— report_created — created