Spawn claude, codex, or gemini CLI workers in tmux panes for parallel task execution
72
66%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/omc-teams/SKILL.mdSpawn N CLI worker processes in tmux panes to execute tasks in parallel. Supports claude, codex, and gemini agent types.
/omc-teams is a legacy compatibility skill for the CLI-first runtime: use omc team ... commands (not deprecated MCP runtime tools).
/oh-my-claudecode:omc-teams N:claude "task description"
/oh-my-claudecode:omc-teams N:codex "task description"
/oh-my-claudecode:omc-teams N:gemini "task description"claude (Claude CLI), codex (OpenAI Codex CLI), or gemini (Google Gemini CLI)/omc-teams 2:claude "implement auth module with tests"
/omc-teams 2:codex "review the auth module for security issues"
/omc-teams 3:gemini "redesign UI components for accessibility"command -v tmux)$TMUX set). Inside cmux or a plain terminal, omc team falls back to a detached tmux session instead of splitting the current surface.npm install -g @anthropic-ai/claude-codenpm install -g @openai/codexnpm install -g @google/gemini-cliCheck tmux explicitly before claiming it is missing:
command -v tmux >/dev/null 2>&1$TMUX is set, omc team can reuse the current tmux window/panes directly.$TMUX is empty but CMUX_SURFACE_ID is set, report that the user is running inside cmux. Do not say tmux is missing or that they are "not inside tmux"; omc team will launch a detached tmux session for workers instead of splitting the cmux surface.$TMUX nor CMUX_SURFACE_ID is set, report that the user is in a plain terminal. omc team can still launch a detached tmux session, but if they specifically want in-place pane/window topology they should start from a classic tmux session first.tmux display-message -p '#S'Extract:
N — worker count (1–10)agent-type — claude|codex|geminitask — task descriptionValidate before decomposing or running anything:
/omc-teams only supports claude, codex, and gemini.expert, explain that /omc-teams launches external CLI workers only./oh-my-claudecode:team instead.Break work into N independent subtasks (file- or concern-scoped) to avoid write conflicts.
Activate mode state (recommended):
state_write(mode="team", current_phase="team-exec", active=true)Start workers via CLI:
omc team <N>:<claude|codex|gemini> "<task>"Team name defaults to a slug from the task text (example: review-auth-flow).
After launch, verify the command actually executed instead of assuming Enter fired. Check pane output and confirm the command or worker bootstrap text appears in pane history:
tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{pane_id} #{pane_current_command}'
tmux capture-pane -pt <pane-id> -S -20Do not claim the team started successfully unless pane output shows the command was submitted.
omc team status <team-name>
omc team api list-tasks --input '{"team_name":"<team-name>"}' --jsonUse omc team api ... for task claiming, task transitions, mailbox delivery, and worker state updates.
omc team shutdown <team-name>
omc team shutdown <team-name> --forceUse shutdown for intentional cancellation or stale-state cleanup. Prefer non-force shutdown first.
Report task results with completion/failure summary and any remaining risks.
state_write(mode="team", current_phase="complete", active=false)Legacy MCP runtime tools are deprecated for execution:
omc_run_team_startomc_run_team_statusomc_run_team_waitomc_run_team_cleanupIf encountered, switch to omc team ... CLI commands.
| Error | Cause | Fix |
|---|---|---|
not inside tmux | Requested in-place pane topology from a non-tmux surface | Start tmux and rerun, or let omc team use its detached-session fallback |
cmux surface detected | Running inside cmux without $TMUX | Use the normal omc team ... flow; OMC will launch a detached tmux session |
Unsupported agent type | Requested agent is not claude/codex/gemini | Use claude, codex, or gemini; for native Claude Code agents use /oh-my-claudecode:team |
codex: command not found | Codex CLI not installed | npm install -g @openai/codex |
gemini: command not found | Gemini CLI not installed | npm install -g @google/gemini-cli |
Team <name> is not running | stale or missing runtime state | omc team status <team-name> then omc team shutdown <team-name> --force if stale |
status: failed | Workers exited with incomplete work | inspect runtime output, narrow scope, rerun |
/team| Aspect | /team | /omc-teams |
|---|---|---|
| Worker type | Claude Code native team agents | claude / codex / gemini CLI processes in tmux |
| Invocation | TeamCreate / Task / SendMessage | omc team [N:agent] + status + shutdown + api |
| Coordination | Native team messaging and staged pipeline | tmux worker runtime + CLI API state files |
| Use when | You want Claude-native team orchestration | You want external CLI worker execution |
48ffaac
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.