Codex worktrees run agents in parallel: one Sume queue
Codex CLI 0.162.0 adds managed worktree tools. Parallel agents in worktrees still share one Sume workspace: plan concurrency, queue and 429 queue_full apply.

Codex CLI 0.162.0 (Oct 8) adds managed Git worktree tools, so several agents can work in separate checkouts at once. Sume does not see worktrees. All of them share the workspace behind one API key, one processing-concurrency limit and one queue, so five parallel agents on a Pro plan share four render slots.
What does Sume limit?
Generation concurrency is plan-only, and top-ups do not raise it. Queue capacity defaults to the larger of 3 and five times concurrency.
| Plan | Processing concurrency | Queue capacity | Accepted jobs |
|---|---|---|---|
| Free | 1 | 5 | 6 |
| Pro | 4 | 20 | 24 |
| Startup | 8 | 40 | 48 |
| Scale | 20 | 100 | 120 |
What happens when agents pile up?
Extra valid jobs wait as queued. When the queue is full, a paid submit fails with 429 queue_full. Wait for jobs to finish or cancel queued ones, then retry with the same idempotency key. 402 insufficient_credits is separate: the wallet is short.
How to run parallel Codex agents safely
Treat the Sume workspace as shared state:
- Give each worktree agent its own
idempotency_keynamespace, such as the task id. - Call
generation_admission_previewbefore a burst and readqueue_capacity_remaining. - Use
wave_size_hintonly to size a submission wave. The docs say it is not a concurrency limit. - Use one
jobs_waitcall with up to 20 ids rather than many single waits.
What about the cost?
Each agent still needs its own max_spend_usd. The docs describe no shared cap across sessions, so divide your budget across the agents yourself. See Generation admission.
Sources
Related posts
More in Agents
- Daily Sume schedule: skipped and canceled runs send no webhook
A Sume run webhook fires only on completed or failed. For a daily schedule, a skipped or canceled run is silent, so add a list-runs check each morning.
- Five gates between a Sume MCP write session and your wallet
A hosted Sume MCP write session has five gates before money moves: scope, idempotency_key, dry_run, an optional max_spend_usd, and wallet admission.
- A 5,000-character voiceover costs $0.2375: sizing the run cap
Sume text-to-speech is $0.0475 per 1,000 characters: $0.2375 for 5,000, $0.95 for 20,000. Use the table to set generation_spend_cap_usd on an Agent Completion.
- Hourly Sume schedule worst case: 24 runs a day at the $1 default cap
If a Sume schedule has no spend cap set, each run is capped at $1.00 of generation. Hourly cadence means up to $24 a day and $720 over 30 days. Show the math.
Written by Sume