بنقرة واحدة
team
N coordinated agents on shared task list using tmux-based orchestration
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
N coordinated agents on shared task list using tmux-based orchestration
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Prepare or launch a safe artifact-based OMB provider switch from the current interactive session to another provider.
Full autonomous execution from idea to working code
Team worker protocol (ACK, mailbox, task lifecycle) for tmux-based OMB teams
Cancel any active OMB mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline, team)
Stateful validator-gated research loop with native-hook persistence
Setup and configure oh-my-codebuddy using current CLI behavior
| name | team |
| description | N coordinated agents on shared task list using tmux-based orchestration |
$team is the tmux-based parallel execution mode for OMB. It starts real worker Codex and/or Claude CLI sessions in split panes and coordinates them through .omb/state/team/... files plus CLI team interop (omb team api ...) and state files.
This skill is operationally sensitive. Treat it as an operator workflow, not a generic prompt pattern.
omb team when you need durable tmux workers, shared task state, mailbox/dispatch coordination, worktrees, explicit lifecycle control, or long-running parallel execution that must survive beyond one local reasoning burst.When user triggers $team, the agent must:
omb team ...spawn_agent fanoutIf omb team is unavailable, stop with a hard error.
omb team [N:agent-type] "<task description>"
Examples:
omb team 3:executor "analyze feature X and report flaws"
omb team "debug flaky integration tests"
omb team "ship end-to-end fix with verification"
omb team ... is now the canonical launch path for coordinated execution.
Team mode should carry its own parallel delivery + verification lanes without
requiring a separate linked Ralph launch up front.
omb team ... / $team ... for coordinated workers.omb ralph ... / $ralph ... only when a later manual follow-up still needs a persistent single-owner fix/verification loop.omb team ralph ... has been removed. Use plain omb team ... for team execution or run omb ralph ... separately when you explicitly want a later Ralph loop.N:agent-type usually selects the worker role prompt (for example 2:executor).
As a provider-aware shorthand, agent-type may also be a worker CLI provider:
codebuddy, codex, claude, or gemini. Provider shorthands follow the
oh-my-claudecode pattern:
omb team 2:codex "review architecture and report risks"
omb team 2:codebuddy:debugger "debug failing tests"
omb team 1:codex,1:codebuddy "compare implementation approaches"
Use N:provider:role when you need both a worker CLI and a role prompt.
To launch Claude teammates, use the team worker CLI env vars:
# Force all teammates to Claude CLI
OMB_TEAM_WORKER_CLI=claude omb team 2:executor "update docs and report"
# Mixed team (worker 1 = Codex, worker 2 = Claude)
OMB_TEAM_WORKER_CLI_MAP=codex,claude omb team 2:executor "split doc/code tasks"
# Auto mode: Claude is selected when worker launch args/model contains 'claude'
OMB_TEAM_WORKER_CLI=auto OMB_TEAM_WORKER_LAUNCH_ARGS="--model claude-..." omb team 2:executor "run mixed validation"
Before running $team, confirm:
tmux installed (tmux -V)$TMUX is set)omb command resolves to the intended install/build (omb remains the compatibility alias)node bin/omb.js ... (or the legacy node bin/omb.js ... alias), run npm run build after src changeshud --watch panes before splitSuggested preflight:
tmux list-panes -F '#{pane_id}\t#{pane_start_command}' | rg 'hud --watch' || true
If duplicates exist, remove extras before omb team to prevent HUD ending up in worker stack.
Before launching omb team, require a grounded context snapshot:
.omb/context/{slug}-*.md when available..omb/context/{slug}-{timestamp}.md (UTC YYYYMMDDTHHMMSSZ) with:
explore first for brownfield facts, then run $deep-interview --quick <task> before team launch.Do not start worker panes until this gate is satisfied; if forced to proceed quickly, state explicit scope/risk limitations in the launch report.
For simple read-only brownfield lookups during intake, follow active session guidance: when USE_OMB_EXPLORE_CMD is enabled, prefer omb explore with narrow, concrete prompts; otherwise use the richer normal explore path and fall back normally if omb explore is unavailable.
When $team is used as a follow-up mode from ralplan, carry forward the approved plan's explicit available-agent-types roster and convert it into concrete staffing guidance before launch:
omb team N "<task>" / $team N "<task>") for the coordinated team run; mention a later separate Ralph follow-up only when genuinely neededomb team currently performs:
N, agent-type, task).omb/state/team/<team>/config.json.omb/state/team/<team>/manifest.v2.json.omb/state/team/<team>/tasks/task-<id>.json.omb/state/team/<team>/worker-agents.mdAGENTS.md content (if present) + worker overlay, without mutating project AGENTS.md<leader-cwd>/.omb/state)OMB_TEAM_WORKER=<team>/worker-<n>OMB_TEAM_STATE_ROOT=<leader-cwd>/.omb/stateOMB_TEAM_LEADER_CWD=<leader-cwd>OMB_TEAM_WORKER_CLI / OMB_TEAM_WORKER_CLI_MAP (codex or claude)--worktree is usedcapture-pane polling)inbox.md and trigger via tmux send-keysstatus / resume / shutdownImportant:
omb team --worktree[=<name>]) while sharing one team state rootmailbox/leader-fixed.jsonOMB_TEAM_WORKER_CLI_MAP entry for that worker index,OMB_TEAM_WORKER_CLI / auto detection.Tab on busy panes (strategy-dependent).C-m) rounds (never queue-first Tab).Team mode resolves worker model flags from one shared launch-arg set (not per-worker model selection).
Model precedence (highest to lowest):
OMB_TEAM_WORKER_LAUNCH_ARGS--model flagOMB_DEFAULT_SPARK_MODEL (legacy alias: OMB_SPARK_MODEL) when 1+2 are absent and team agentType is low-complexityDefault-model rule:
OMB_DEFAULT_FRONTIER_MODEL for frontier-default guidance.OMB_DEFAULT_SPARK_MODEL for spark/low-complexity worker-default guidance.Thinking-level rule (critical):
model_reasoning_effort from model-name substrings (e.g., spark, high-capability, mini).low, medium, high).OMB_TEAM_WORKER_LAUNCH_ARGS already includes -c model_reasoning_effort=..., that explicit value overrides dynamic allocation for every worker.Normalization requirements:
--model <value> and --model=<value>--model <value>-c model_reasoning_effort="<level>"; otherwise inject the worker role's default reasoning levelFollow this exact lifecycle when running $team:
omb team status <team>, omb team resume <team>, mailbox/state files)pending=0in_progress=0failed=0 (or explicitly acknowledged failure path)omb team shutdown <team>Do not run shutdown while workers are actively writing updates unless user explicitly requested abort/cancel.
Do not treat ad-hoc pane typing as primary control flow when runtime/state evidence is available.
While a team is ON/running, the leader must not go blind. Keep checking live team state until terminal completion.
Minimum acceptable loop:
sleep 30 && omb team status <team-name>
Repeat that check while the team stays active, or use omb team await <team-name> --timeout-ms 30000 --json when event-driven waiting is a better fit.
If the leader gets a stale/team-stalled nudge, immediately run omb team status <team-name> before taking any manual intervention.
To avoid brittle behavior, message/task delivery must not be driven by ad-hoc tmux typing.
Required default path:
omb team ... runtime lifecycle commands for orchestration.omb team api ... --json for mailbox/task mutations.mailbox/*.json, task status, omb team status).Strict rules:
tmux send-keys as the primary mechanism to deliver instructions/messages.dispatch/requests.json, mailbox, inbox).worker_notify_failed:<worker>) or explicit user request (for example “press enter”).omb team status <team-name>
omb team resume <team-name>
omb team shutdown <team-name>
Semantics:
status: reads team snapshot (task counts, dead/non-reporting workers)resume: reconnects to live team session if presentshutdown: graceful shutdown request, then cleanup (deletes .omb/state/team/<team>)OMB_TEAM_WORKER per worker)tmux display-message.omb/state/team/<team>/... files.omb/state/team/<team>/mailbox/leader-fixed.json.omb/state/team/<team>/mailbox/worker-<n>.json.omb/state/team/<team>/dispatch/requests.json (durable dispatch queue; hook-preferred, fallback-aware).omb/state/team/<team>/config.json.omb/state/team/<team>/manifest.v2.json.omb/state/team/<team>/tasks/task-<id>.json.omb/state/team/<team>/workers/worker-<n>/identity.json.omb/state/team/<team>/workers/worker-<n>/inbox.md.omb/state/team/<team>/workers/worker-<n>/heartbeat.json.omb/state/team/<team>/workers/worker-<n>/status.json.omb/state/team-leader-nudge.jsonUse omb team api for machine-readable mutation/reads instead of legacy team_* MCP tools.
omb team api <operation> --input '{"team_name":"my-team",...}' --json
Examples:
omb team api send-message --input '{"team_name":"my-team","from_worker":"worker-1","to_worker":"leader-fixed","body":"ACK"}' --json
omb team api claim-task --input '{"team_name":"my-team","task_id":"1","worker":"worker-1"}' --json
omb team api transition-task-status --input '{"team_name":"my-team","task_id":"1","from":"in_progress","to":"completed","claim_token":"<token>"}' --json
--json responses include stable metadata for automation:
schema_versiontimestampcommandokoperationdata or errorLeader-to-worker:
inbox.mdtmux send-keysWorker-to-leader:
leader-fixed mailbox via omb team api send-message --jsonomb team api <operation> --jsonWorker commit protocol (critical for incremental integration):
git add -A && git commit -m "task: <task-subject>"Task ID rule (critical):
task-<id>.json (example task-1.json)task_id uses bare id (example "1", not "task-1")tasks/{id}.jsonUseful runtime env vars:
OMB_TEAM_READY_TIMEOUT_MS
OMB_TEAM_SKIP_READY_WAIT=1
OMB_TEAM_AUTO_TRUST=0
OMB_TEAM_AUTO_ACCEPT_BYPASS=0
2 + Enter)OMB_TEAM_WORKER_LAUNCH_ARGS
OMB_TEAM_WORKER_CLI
auto|codebuddy|codex|claude|gemini (default: auto)auto chooses claude/gemini when the worker model indicates that provider, otherwise codebuddyclaude mode, workers launch with exactly one --dangerously-skip-permissions
and ignore explicit model/config/effort launch overrides (uses default settings.json)OMB_TEAM_WORKER_CLI_MAP
auto|codebuddy|codex|claude|gemini)1 (broadcast) or exactly the team worker countOMB_TEAM_WORKER_CLI_MAP=codex,codex,claude,claudeOMB_TEAM_WORKER_CLIOMB_TEAM_AUTO_INTERRUPT_RETRY
0 disables adaptive queue->resend escalationOMB_TEAM_LEADER_NUDGE_MS
OMB_TEAM_STRICT_SUBMIT=1
Operator note (important for Claude panes):
tmux send-keys ... C-m) can appear to "do nothing" when a worker is actively processing; Enter may be queued by the pane/task flow.Use only after checking omb team status <team> and mailbox/state evidence:
tmux capture-pane -t %<worker-pane> -p -S -120omb sparkshell --tmux-pane %<worker-pane> --tail-lines 400 before improvising extra tmux commands.C-c or escape flow (CLI-specific) once, then re-check pane capturetmux send-keys -t %<worker-pane> "ack + continue current task; report status" C-mcapture-panemailbox/leader-fixed.json or worker mailbox)omb team status <team>worker_notify_failed:<worker>Meaning:
Checks:
tmux list-panes -F '#{pane_id}\t#{pane_start_command}'tmux capture-pane -t %<worker-pane> -p -S -120npm run build)Checks:
.omb/state/team/<team>/mailbox/leader-fixed.json existsomb team api send-message --json calledomb team api ... ENOENT (or legacy team_send_message ENOENT / team_update_task ENOENT)Meaning:
omb team shutdown <team> (or removed .omb/state/team/<team>) before worker finished.Checks:
omb team status <team> and confirm whether tasks were still in_progress when shutdown occurred.omb/state/team/<team>/ existsrm -rf .omb/state/team/<team>) happened during executionPrevention:
shutdown only for terminal completion or explicit abortCause:
Fix:
Run from leader pane:
# 1) Inspect panes
tmux list-panes -F '#{pane_id}\t#{pane_current_command}\t#{pane_start_command}'
# 2) Kill stale worker panes only (examples)
tmux kill-pane -t %450
tmux kill-pane -t %451
# 3) Remove stale team state (example)
rm -rf .omb/state/team/<team-name>
# 4) Retry
omb team 1:executor "fresh retry"
Guidelines:
omb hud --watch) unless intentionally restarting HUDWhen operating this skill, provide concrete progress evidence:
Team started: <name>)Do not claim success without file/pane evidence.
Do not claim clean completion if shutdown occurred with in_progress>0.
Use omb sparkshell --tmux-pane ... as an explicit opt-in operator aid for pane inspection and summaries; keep raw tmux capture-pane evidence available for manual intervention and proof.
For programmatic or agent-driven team spawning (as opposed to interactive CLI use), OMB exposes four MCP tools via the team-server:
| Tool | Description |
|---|---|
omb_run_team_start | Spawn tmux CLI workers in the background; returns a jobId immediately |
omb_run_team_status | Non-blocking status check for a running job |
omb_run_team_wait | Block until the job completes, with automatic idle-pane nudging |
omb_run_team_cleanup | Kill worker tmux panes for a job (early stop only) |
omb team ... CLI — Primary method for interactive team orchestration. Use this when you are operating inside a live tmux session and want direct pane visibility.omb_run_team_* MCP tools — For programmatic or agent-driven team spawning (analogous to OMC's omc_run_team_* tools). Use these when an agent needs to launch workers, poll status, and collect results without manual intervention.Two cleanup tools exist and must not be confused:
team_cleanup (state-server): Deletes team state files on disk (.omb/state/team/<team>/). Use after a team run is fully complete.omb_run_team_cleanup (team-server): Kills tmux worker panes for a job. Use only when stopping workers early; otherwise omb_run_team_wait handles natural termination.1. omb_run_team_start({
teamName: "fix-bugs",
agentTypes: ["codex"],
tasks: [{ subject: "Fix bug", description: "..." }],
cwd: "/path/to/project"
})
→ Returns { jobId: "omb-abc123" }
2. omb_run_team_wait({ job_id: "omb-abc123", timeout_ms: 300000 })
→ Blocks until done, auto-nudges idle panes
3. omb_run_team_cleanup({ job_id: "omb-abc123" })
→ Only needed if stopping workers early
omb_run_team_status can be called between steps 1 and 2 for a non-blocking poll if you need to interleave other work while workers run.
Good: The user says continue after the workflow already has a clear next step. Continue the current branch of work instead of restarting or re-asking the same question.
Good: The user changes only the output shape or downstream delivery step (for example make a PR). Preserve earlier non-conflicting workflow constraints and apply the update locally.
Bad: The user says continue, and the workflow restarts discovery or stops before the missing verification/evidence is gathered.