$team
Workflow that spawns multiple Codex or Claude workers in tmux panes to process a shared task queue in parallel
$team opens several worker sessions in parallel tmux panes and keeps them coordinated through a shared state directory. Each worker pulls tasks off the list, commits to its own branch, and reports back by mailbox. A leader watches progress and tears the team down once everything's done. The case for it is simple. When work splits cleanly into lanes, running them at once beats grinding through them one by one.
When to use it
- When there are independently separable lanes like docs, tests, implementation, and review
- When a plan approved by
$ralplanrecommends parallel execution - When durable state that persists beyond a single reasoning burst is needed
- When explicit lifecycle of start → monitor → shutdown → cleanup is required
Trigger keywords: "team", "coordinated workers", "parallel agents", "spawn workers"
How to invoke
codex
> team 3:executor "implement the three modules from the approved plan"omx team 2:executor "add validation and write tests in parallel"To use Claude workers:
OMX_TEAM_WORKER_CLI=claude omx team 2:executor "update docs and report"How it works
A context snapshot at .omx/context/{slug}-{timestamp}.md must be created before workers launch.
The orchestrator parses worker count and role, initializes team state files under .omx/state/team/{team}/, composes worker instructions without mutating AGENTS.md, splits the tmux window, and launches each worker. Each worker runs with independent environment variables pointing to the shared state root.
Workers claim tasks via omx team api claim-task, do their work, commit with git add -A && git commit, and send an ACK to the leader mailbox. The leader monitors progress with omx team status {team} and runs omx team shutdown {team} when pending=0 and in_progress=0.
The pipeline proceeds as team-plan → team-exec → team-verify → team-fix, repeating the fix loop until all lanes are green or a ceiling is reached.
Outputs
- Source code, tests, and docs committed by each worker to their branch
.omx/state/team/{team}/— task state, worker heartbeats, mailbox, manifest.omx/context/{slug}-{timestamp}.md— context snapshot shared by all workersomx team statusevidence confirming task completion before shutdown
Related skills
$ralplan— build a consensus plan with staffing guidance before launching the team$ralph— single-owner persistent loop; use after team for verification follow-up$autopilot— full pipeline that uses team internally for the execution phase$deep-interview— clarify requirements before handing off to team