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.
- Sume schedule run: communication.mode webhook alone sends nothing
On a Sume schedule run, communication.mode is descriptive only. Delivery starts when communication.webhook_url is set, an HTTPS URL up to 2,048 characters.
- Scheduled run spend cap: a request can lower it, never raise it
A Sume schedule's per-run cap is min(request, schedule cap). A $3 request on a $1 schedule runs at $1; null removes the ceiling; 0 is a 400.
Written by Sume