跳到正文
Skillpedia
智能体70k · #3115

teammode

它能做什么

Teammode 可以让多个 AI 助手像一支有组织的团队一样协作完成任务。它会统筹这些助手,确保他们能够共享信息、相互配合,朝着共同目标前进。

适用场景

  • ✓任务需要多人一起思考时。
  • ✓工作无法被完全拆分成彼此独立的部分时。
  • ✓成员之间能够看到并回应彼此的工作,会更方便时。

技能链接

https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/omo-codex/plugin/components/teammode/skills/teammode/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/omo-codex/plugin/components/teammode/skills/teammode/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“组建一个助手团队,为我们的应用开发一项新功能:一个负责后端,一个负责前端,第三个负责测试。”

每周 5 个新技能,1 分钟读完。

工作原理

Teammode 会先为团队选择一种沟通方式(例如 'MultiAgentV2' 或 'Codex App threads')。然后为每位成员分配清晰且独一无二的职责,确保他们在你的领导下协作。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Teammode

Run a named team of cooperating Codex workers under one leader, with durable state on disk. This is a Codex-only workflow. It never depends on an external terminal runner - it coordinates through Codex's own collaboration tools plus a bundled state script, on ONE of two transports chosen up front: native MultiAgentV2 agents, or Codex App threads as the fallback.

When to use a team (and when to use plain subagents instead)

Use a TEAM when EITHER holds:

  • the work does NOT split into perfectly isolated pieces, but doing it in parallel is clearly more convenient - members will need to see and react to each other's findings; or
  • one task still needs exploration, yet its GOAL is already clear - parallel investigation under a fixed objective.

Use plain fire-and-forget subagents ($ulw / one-off spawn_agent workers) - NOT a team - when EITHER holds:

  • the work IS perfectly isolated, so there is no coordination cost worth paying; or
  • the GOAL is still ambiguous, where one mind should resolve direction before any fan-out.

A team buys cross-member coordination at a real overhead cost; only spend it when coordination is the thing you actually need.

Pick the transport FIRST - then tell the user

Before creating any team state, decide which transport this session can run. Inspect your active tool list and select:

  1. MultiAgentV2 (preferred) - select when the flat V2 collaboration tools are ALL active: flat spawn_agent whose schema requires task_name, plus send_message, followup_task, wait_agent, list_agents, and interrupt_agent. Members are durable native agents addressed by task name / agent path (/root/<task_name>). The namespaced multi_agent_v1.* surface never qualifies as a team transport.
  2. Codex App threads (fallback) - select when flat V2 is not available but the codex_app.* thread tools are (create_thread, read_thread, send_message_to_thread, set_thread_title, set_thread_archived).
  3. Neither set visible - if a tool_search tool is active, search for the missing sets (e.g. spawn_agent, codex_app) before concluding: some environments defer tools behind tool search. A hit is only a lead: revalidate that the visible result is the COMPLETE, mutually compatible transport set from case 1 or 2 before selecting it. Do not combine partial hits from different transports.
  4. Neither set exists - teammode cannot run here. Do NOT run init or fake a team with partial tooling. If another visible plain-subagent mechanism can independently spawn, communicate with, and observe plain workers, announce that exact mechanism and use it for non-overlapping scopes. Otherwise continue serially and report the capability limitation; never promise or imply plain subagents that this session cannot create.

Then, BEFORE running init (or instead of it in case 4), tell the user in one line what this environment provides and which route you picked:

  • Teammode transport: MultiAgentV2 (flat spawn_agent with task_name).
  • Teammode transport: Codex App threads (flat V2 tools not present in this session).
  • Teammode unavailable: neither MultiAgentV2 nor codex_app tools exist in this session - using <visible plain-subagent mechanism> for independent scopes.
  • Teammode unavailable: neither MultiAgentV2 nor codex_app tools exist in this session, and no compatible plain-subagent mechanism is available - continuing serially.

Pass the choice to init as --transport multi_agent_v2 or --transport codex_app. The transport is recorded in team.json and is IMMUTABLE for the team's lifetime: a V2 spawn failure is a V2 blocker to report, never permission to mix Codex App threads into the same team. Never probe by trial-calling tools; read your tool list, and search it with tool_search only when a needed set is not visible.

You are the leader - orchestrate, do not implement

The main session is ALWAYS the team leader; you orchestrate directly and never spin up a separate leader worker. Your job is orchestration, NOT writing product code: split the work and assign each slice, hold live situational awareness of every member, verify and QA what they deliver, relay findings between members, instruct and unblock, and synthesize the result. DELEGATE every code edit to a member - if you catch yourself editing product files while the team runs, that work was a

…

常见问题

“团队”和单独使用多个助手有什么区别?

“团队”适用于需要协作、成员之间需要相互回应的工作。单独的助手更适合完全独立、无需协调的任务。

团队可以只有一个助手吗?

不可以。团队至少需要两个助手,才能实现协作和协调。

Teammode 如何决定助手之间的沟通方式?

它会检查你的环境中有哪些沟通工具可用,然后选出最合适的方式,例如 'MultiAgentV2' 或 'Codex App threads'。

详情

作者的原始描述

Codex-only team orchestration: run a named team of cooperating Codex workers with durable, script-managed state. MUST USE when the user asks Codex to create, run, coordinate, inspect, archive, or delete a team of agents/threads/sessions, or to work on something as a team in parallel. FIRST inspects the active tool surface (checking tool_search for deferred tools) and tells the user the route: nati

repo: code-yeongyu/oh-my-openagent

热度

GitHub 星标
70k
排名
#3115
许可证
NOASSERTION
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能