Multi Agent Orchestration 标志

Multi Agent Orchestration

社区
mizchi
multi-agent-orchestration

决定是否启动子智能体、选择顺序执行、扇出、监督者、辩论或动态 DAG 模式、设计具有写入范围隔离的编码智能体工作流,或判断额外智能体是否会因缺乏独立证据而浪费 Token 时使用。遇到 multi-agent、orchestration、fan-out、worktree、blackboard、verifier、AgentTask 或“should I parallelize this”时触发。

Add to TypingMind

概览

发布者mizchi
代码仓库skills
技能名称multi-agent-orchestration
星标数
333
复刻数
4
附带文件
3
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 mizchi 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Multi Agent Orchestration AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/mizchi/skills/tree/main/multi-agent-orchestration
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mizchi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/multi-agent-orchestration .claude/skills/multi-agent-orchestration
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Multi Agent Orchestration,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Multi Agent Orchestration。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Multi Agent Orchestration 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Multi-Agent Orchestration

Do not add agents. Add independently verifiable work: a dependency graph, parallel only on independent nodes, integrate through shared state and a verifier.

When to use

  • About to spawn 2+ subagents, a research fan-out, a debate/jury, or a "programmer + reviewer" pair
  • Designing a coding-agent DAG, worktree split, or long-running parallel implementation
  • Tempted to scale agent count because the task "feels hard"

When not to use:

  • One tightly sequential transform (read → patch → test) with no independent parts
  • Same model, same input, same tools, only the role name changes — run multiple turns on one agent instead

Gate

Default to a single agent. Go multi only if (1) or (2) holds and (4) is positive.

3 is not a reason to spawn. It is how a multi run stops. A unit test the same agent can run is a success criterion, not a second agent. If 3 is weak, stay single or add a rubric/schema so artifacts become checkable — do not add agents to compensate.

  1. Independent parts that can run in parallel — including parts that become independent after a short frozen contract artifact (types, HTTP shape, fixture). A call or runtime edge is not an automatic stay-single.
  2. Agents would have different information, models, tools, or permissions
  3. Intermediate artifacts checkable mechanically (tests, schema, provenance, oracle, lint). For research, schema-valid provenance is enough; do not invent a fake test oracle or switch to debate.
  4. Expected gain of another agent beats its token / latency / error-propagation cost

If (1) and (2) are both weak, stay single even when (3) holds. Google's 260-config comparison: decomposable financial reasoning +80.8% vs single-agent; sequential planning −70%. No central verifier → errors propagate. Topology–task fit dominates agent count.

Topology

PatternStructureUse forFailure mode
SequentialA → B → CClear transform pipelineUpstream error cascades
Fan-out / Fan-inParallel workers, then mergeResearch, candidates, independent testsDuplicate work, weak merge
Supervisor–WorkerManager decomposes, assigns, replansOpen-ended research / developmentManager bottleneck
HandoffOwnership moves to the next specialistSupport, interactive routingUnclear control and blame
BlackboardShared task board and artifactsLong-running, async developmentStale state, write races
Debate / JuryIndependent answers, critique, voteHard-to-grade judgmentsCorrelated errors, sycophancy
Dynamic DAGRoles, deps, parallelism chosen at run timeDifficulty varies widelyGraph generation itself is unreliable
Evolution / SearchSearch over workflowsMany repeats of the same task classLearning and eval cost

Pick from the table's Use for column first. Supervisor + Dynamic DAG + Blackboard + Verifier is a kit for open-ended long-running work, not a mandatory stack. A known candidate set is Fan-out / Fan-in. One sequential file stays single.

Scale effort, not headcount. Anthropic Research: 1 agent for a lookup, 2–4 for a comparison, 10+ only for broad investigation (~15× chat tokens). Count spawned parallel workers against that band, not the parent integrator. At most one sequential verifier. Do not start five agents on an easy task.

Handoff vs agent-as-tool: handoff owns the user reply; agent-as-tool keeps a manager that integrates.

Communication

Do not ship full conversation history. Pass only upstream artifacts, structured results (patch, evidence, tests, open questions), and provenance. Drop low-value memory; prune cheap or redundant agents at run time.

Same model + same input + same tools + different persona is not diversity. Errors correlate. Collect independent evidence, then verify: disjoint search, different tests or model families, static analysis vs execution, implementer vs adversarial verifier, private answers before votes.

Coding harness

Each task is a contract, not a chat turn:

ts
type AgentTask = {
  id: string;
  objective: string;
  dependencies: string[];
  inputArtifacts: ArtifactRef[];
  allowedTools: string[];
  writeScope: string[];
  budget: { tokens: number; toolCalls: number; retries: number };
  successCriteria: Check[];
  outputSchema: Schema;
};
  1. Router estimates the dependency DAG and write-sets
  2. If write-sets are disjoint but a call/runtime edge remains, publish a frozen contract artifact so remaining deps are on that artifact, not on another worker's code. Then parallelize only nodes with no remaining code dep and disjoint write-sets. Stay single when the next edit needs the previous edit's actual code, or when both would write the same file.
  3. Workers return patch + evidence + test results + unresolved items — not a transcript
  4. Only an integrator writes the shared trunk
  5. Verifier runs in a separate context, preferably a different model
  6. Cap replans, agent count, tokens, and wall time
  7. Stop on verified success or when expected value of another run ≤ cost
  8. Store template, generated DAG, and execution trace as three separate artifacts

A worktree per agent postpones merge conflicts. Mediate writes, or keep write-sets disjoint and let the integrator apply. Tests and CI are the task queue; Git locks plus a progress file re-orient workers. If a stage has no independent observations, do not force parallelism.

Evaluate quality / cost / latency, not agent count. Under a fixed token budget, compare single-agent vs static DAG vs dynamic DAG before keeping a topology. Paper numbers are author-reported, not a substitute for that comparison.

Common mistakes

ExcuseReality
"Name them programmer and reviewer"Homogeneous role-play is often a single agent with extra KV-cache cost (OneFlow)
"Debate will fix the answer"Closed debate adds no new evidence; correlated errors persist
"Always start a team of 5"Easy tasks lose money; scale after a cheap router estimate
"Give everyone the full thread"Context pollution, stale decisions, unclear who knew what
"There is a function call, so it cannot be parallel"Freeze the callee's signature as an artifact; disjoint write-sets can still run together
"Worktrees mean we can ignore write-sets"Conflicts are deferred, not removed
"More agents = more quality"Sequential and tool-heavy tasks often get worse

Optional: Flue

Default deliverable is the orchestration plan above. Do not emit Flue code unless the user asked for it, or the repo already runs Flue ('use agent', @flue/runtime). Mapping: references/flue.md

Related

  • superpowers:dispatching-parallel-agents — how to dispatch once independence is established
  • Grok create-workflow — executable DAG runtime when the graph should be a script, not a chat

Paper links and author-reported numbers: references/sources.md

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Multi Agent Orchestration AI 技能有什么作用?

决定是否启动子智能体、选择顺序执行、扇出、监督者、辩论或动态 DAG 模式、设计具有写入范围隔离的编码智能体工作流,或判断额外智能体是否会因缺乏独立证据而浪费 Token 时使用。遇到 multi-agent、orchestration、fan-out、worktree、blackboard、verifier、AgentTask 或“should I parallelize this”时触发。

为什么在 TypingMind 中使用 Multi Agent Orchestration?

因为您只需安装一次,就能搭配任何模型使用。Multi Agent Orchestration 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Multi Agent Orchestration?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/mizchi/skills/tree/main/multi-agent-orchestration。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Multi Agent Orchestration?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Multi Agent Orchestration 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Multi Agent Orchestration 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Multi Agent Orchestration AI 技能免费吗?

mizchi 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇