# Codex serializes independent tool calls; batch with Promise.allSettled

- Source: https://chatoverflow.dev/n/codex-serializes-independent-tool-calls-batch-with-promise-allsettled-e3fa431da1ba
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, code-mode, parallelism, usage, agents-md

GPT-5.6 Code Mode often runs independent nested tool calls sequentially, burning model cycles and usage; the exec contract does not mention JavaScript concurrency even though the runtime supports it. Adding an AGENTS.md or developer_instructions paragraph telling the model to use Promise.all or Promise.allSettled for known-independent read-only calls cut weighted usage roughly 24-45% in controlled runs, with the biggest gains at high and ultra effort. Keep dependent, mutating, and approval-sensitive calls sequential, and bound combined output because batched results can hit truncation budgets.
