team
它能做什么
这个技能让一小组 AI 工作者同时在同一个项目上工作。适合可以拆分成并行部分的较大任务。
适用场景
- ✓当一项任务可以拆分成多个并行部分,让几个智能体同时处理的时候。
- ✓当你希望工作者共享任务列表并互相发消息的时候。
- ✓当你明确要求启动团队运行的时候。
技能链接
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/team/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请用三个智能体并行实现登录、注册和重置密码功能。”
每周 5 个新技能,1 分钟读完。
工作原理
它会在 tmux 中启动多个工作者会话,把任务建立在保存的上下文笔记之上,并给每个工作者一个共享任务列表。工作者会认领任务、发送消息,并通过团队状态汇报进度。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Team Skill
When to use
Use only for an explicit $team request or omx team ... launch that benefits from durable tmux workers, shared task state, mailbox coordination, or worktree isolation. Read AGENTS.md#durable-runtime-invariants-canonical-ssot; do not copy its durable rules into this card.
Inputs and preconditions
- Launch shape:
omx team [N:agent-type] "<task>"(for exampleomx team 3:executor "implement X"). - Require
tmux -V, a leader session with$TMUX, and the intendedomxexecutable. In Codex App/plain non-tmux sessions, explain the runtime boundary instead of pretending Team is available. - Before launch, ground the task in a recent
.omx/context/{slug}-*.md; create a concise snapshot when none exists. Include target, evidence, constraints, unknowns, and likely touchpoints. - Do not launch nested Team runs. Pick worker roles deliberately; use
OMX_TEAM_WORKER_CLI=codex|claude|autoorOMX_TEAM_WORKER_CLI_MAP=...only when needed. - Per-agent reasoning is set by
agentReasoning; accepted values arelow,medium,high,xhigh, andmax.maxis passed unchanged and remains capability-dependent.ultrais unsupported and is not an alias formax. - Invalid configured values use the built-in role-default fallback. An explicit raw
-c model_reasoning_effort=...is opaque and wins. When both sources are present, explicit raw reasoning wins over inherited Team reasoning and environment reasoning. Do not downgrade or retrymaxasxhigh; built-in role defaults remain unchanged.
Operational steps
- Start the runtime and capture startup evidence:
Team started: <name>, tmux target, worker panes, and the leader ACK mailbox. - Current Runtime Behavior: runtime-owned task files and APIs are the operational interface; the durable ownership and safety rules remain in
templates/AGENTS.md. - Runtime creates
.omx/state/team/<name>/config.json,manifest.v2.json,tasks/task-<id>.json, worker identities/inboxes, mailbox files, and a dispatch queue. Workers receiveOMX_TEAM_WORKER,OMX_TEAM_STATE_ROOT, andOMX_TEAM_LEADER_CWD. - Deliver assignments through durable inbox/task state and the CLI API. The worker card defines ACK, claim, transition, mailbox, and idle-status commands.
- Prefer these machine-readable operations:
omx team api send-message --input '{"team_name":"<name>","from_worker":"leader-fixed","to_worker":"worker-1","body":"<short trigger>"}' --json omx team api read-task --input '{"team_name":"<name>","task_id":"<id>"}' --json omx team api transition-task-status --input '{"team_name":"<name>","task_id":"<id>","from":"in_progress","to":"completed","claim_token":"<token>"}' --json - Monitor with
omx team status <name> --jsonoromx team await <name> --timeout-ms 30000 --json; inspect mailbox/state files when a worker is blocked or stale. - Keep the team running until
pending=0,in_progress=0, andfailed=0(or an explicitly acknowledged failure path). Runomx team shutdown <name>only then, unless the user explicitly aborts. - Verify shutdown evidence and state cleanup. Do not claim completion while workers are still writing.
Team and Ultragoal
When a leader-owned .omx/ultragoal/goals.json exists, workers return task evidence only. The leader checkpoints with a fresh Codex get_goal snapshot:
omx ultragoal checkpoint --goal-id <id> --status complete --evidence "<Team evidence>" --codex-goal-json <fresh-get-goal-json-or-path>
Team launch remains an explicit separate action; it does not create hidden Codex goals.
Dispatch and recovery
- If dispatch reports
worker_notify_failed:<worker>, inspecttmux list-panes, capture the pane, then send one concise trigger and re-check mailbox/state. - For Claude panes, do not spam Enter while work is active. Confirm runtime status first.
- If a worker reports
omx team api ... ENOENT, check whether shutdown or state deletion happened too early; preserve state until all transitions finish. - For a clean retry, kill only known stale worker panes, remove only the exact stale Team root, and relaunch; never kill the leader/HUD pane accidentally.
Exit and evidence
Report team name, launch command, pane/ACK evidence, task counts, worker verification, failures or blockers, shutdown result, and cleaned state paths. Include any worktree or CLI-map choices and keep final integration/verification in the leader lane.
常见问题
我需要安装什么?
它需要 tmux 和一个主会话,所以在没有 tmux 的普通环境中无法使用。
团队可以再启动其他团队吗?
不可以。不允许嵌套的团队运行。
每个工作者可以使用不同的 AI 工具吗?
可以。一项设置可以为每个工作者选择其使用的工具。
详情
作者的原始描述
N coordinated agents on shared task list using tmux-based orchestration
repo: Yeachan-Heo/oh-my-codex
热度
- GitHub 星标
- 34k
- 排名
- #8425
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …