omc-teams
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOMC Teams Skill
OMC Teams 技能
Spawn N CLI worker processes in tmux panes to execute tasks in parallel. Supports , , and agent types.
claudecodexgemini/omc-teamsomc team ...在tmux窗格中启动N个CLI工作进程,以并行执行任务。支持、和三种Agent类型。
claudecodexgemini/omc-teamsomc team ...Usage
使用说明
bash
/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"bash
/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"Parameters
参数
- N - Number of CLI workers (1-10)
- agent-type - (Claude CLI),
claude(OpenAI Codex CLI), orcodex(Google Gemini CLI)gemini - task - Task description to distribute across all workers
- N - CLI工作进程的数量(1-10)
- agent-type - (Claude CLI)、
claude(OpenAI Codex CLI)或codex(Google Gemini CLI)gemini - task - 要分发给所有工作进程的任务描述
Examples
示例
bash
/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"bash
/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"Requirements
依赖要求
- tmux must be running (set in the current shell)
$TMUX - claude CLI:
npm install -g @anthropic-ai/claude-code - codex CLI:
npm install -g @openai/codex - gemini CLI:
npm install -g @google/gemini-cli
- 必须正在运行tmux(当前shell中已设置环境变量)
$TMUX - claude CLI:
npm install -g @anthropic-ai/claude-code - codex CLI:
npm install -g @openai/codex - gemini CLI:
npm install -g @google/gemini-cli
Workflow
工作流
Phase 1: Parse input
阶段1:解析输入
Extract:
- — worker count (1–10)
N - —
agent-typeclaude|codex|gemini - — task description
task
提取以下内容:
- — 工作进程数量(1–10)
N - —
agent-typeclaude|codex|gemini - — 任务描述
task
Phase 2: Decompose task
阶段2:拆分任务
Break work into N independent subtasks (file- or concern-scoped) to avoid write conflicts.
将工作拆分为N个独立的子任务(按文件或关注点划分范围),避免写入冲突。
Phase 3: Start CLI team runtime
阶段3:启动CLI团队运行时
Activate mode state (recommended):
text
state_write(mode="team", current_phase="team-exec", active=true)Start workers via CLI:
bash
omc team <N>:<claude|codex|gemini> "<task>"Team name defaults to a slug from the task text (example: ).
review-auth-flow激活模式状态(推荐):
text
state_write(mode="team", current_phase="team-exec", active=true)通过CLI启动工作进程:
bash
omc team <N>:<claude|codex|gemini> "<task>"团队名称默认取自任务文本的slug(例如:)。
review-auth-flowPhase 4: Monitor + lifecycle API
阶段4:监控 + 生命周期API
bash
omc team status <team-name>
omc team api list-tasks --input '{"team_name":"<team-name>"}' --jsonUse for task claiming, task transitions, mailbox delivery, and worker state updates.
omc team api ...bash
omc team status <team-name>
omc team api list-tasks --input '{"team_name":"<team-name>"}' --json使用命令进行任务认领、任务状态流转、消息投递和工作进程状态更新。
omc team api ...Phase 5: Shutdown (only when needed)
阶段5:关闭(仅在需要时执行)
bash
omc team shutdown <team-name>
omc team shutdown <team-name> --forceUse shutdown for intentional cancellation or stale-state cleanup. Prefer non-force shutdown first.
bash
omc team shutdown <team-name>
omc team shutdown <team-name> --force关闭操作用于主动取消任务或清理过时状态。优先使用非强制关闭。
Phase 6: Report + state close
阶段6:报告 + 关闭状态
Report task results with completion/failure summary and any remaining risks.
text
state_write(mode="team", current_phase="complete", active=false)输出任务结果,包含完成/失败摘要以及剩余风险。
text
state_write(mode="team", current_phase="complete", active=false)Deprecated Runtime Note
运行时弃用说明
Legacy MCP runtime tools are deprecated for execution:
omc_run_team_startomc_run_team_statusomc_run_team_waitomc_run_team_cleanup
If encountered, switch to CLI commands.
omc team ...旧版MCP运行时工具已被弃用,请勿使用:
omc_run_team_startomc_run_team_statusomc_run_team_waitomc_run_team_cleanup
如果遇到上述命令,请切换为系列CLI命令。
omc team ...Error Reference
错误参考
| Error | Cause | Fix |
|---|---|---|
| Shell not running inside tmux | Start tmux and rerun |
| Codex CLI not installed | |
| Gemini CLI not installed | |
| stale or missing runtime state | |
| Workers exited with incomplete work | inspect runtime output, narrow scope, rerun |
| 错误 | 原因 | 修复方案 |
|---|---|---|
| 当前shell未运行在tmux中 | 启动tmux后重新执行命令 |
| 未安装Codex CLI | 执行 |
| 未安装Gemini CLI | 执行 |
| 运行时状态过时或不存在 | 先执行 |
| 工作进程退出,任务未完成 | 检查运行时输出,缩小任务范围后重新执行 |
Relationship to /team
/team与/team
的对比
/team| Aspect | | |
|---|---|---|
| Worker type | Claude Code native team agents | claude / codex / gemini CLI processes in tmux |
| Invocation | | |
| 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 |
| 维度 | | |
|---|---|---|
| 工作进程类型 | Claude Code原生团队Agent | 运行在tmux中的claude / codex / gemini CLI进程 |
| 调用方式 | | |
| 协调方式 | 原生团队消息传递和分阶段流水线 | tmux工作进程运行时 + CLI API状态文件 |
| 适用场景 | 需要使用Claude原生团队编排能力时 | 需要执行外部CLI工作进程时 |