Logo Multi Agent Orchestration

Multi Agent Orchestration

Cộng đồng
mizchi
multi-agent-orchestration

Dùng khi quyết định có nên khởi chạy subagent hay không, chọn cách tuần tự, fan-out, supervisor, debate hay dynamic DAG, thiết kế quy trình làm việc cho coding agent với phạm vi ghi được cô lập, hoặc cân nhắc liệu agent bổ sung có thể gây lãng phí token nếu không có bằng chứng độc lập. Kích hoạt khi có đề cập đến multi-agent, orchestration, fan-out, worktree, blackboard, verifier, AgentTask hoặc “tôi có nên chạy song song việc này không”.

Add to TypingMind

Tổng quan

Nhà phát hànhmizchi
Kho mãskills
Tên kỹ năngmulti-agent-orchestration
Sao
333
Bản fork
4
Tệp đi kèm
3
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được mizchi công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Multi Agent Orchestration trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/mizchi/skills/tree/main/multi-agent-orchestration
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Multi Agent Orchestration trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Multi Agent Orchestration ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Multi Agent Orchestration với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Multi Agent Orchestration làm được gì?

Dùng khi quyết định có nên khởi chạy subagent hay không, chọn cách tuần tự, fan-out, supervisor, debate hay dynamic DAG, thiết kế quy trình làm việc cho coding agent với phạm vi ghi được cô lập, hoặc cân nhắc liệu agent bổ sung có thể gây lãng phí token nếu không có bằng chứng độc lập. Kích hoạt khi có đề cập đến multi-agent, orchestration, fan-out, worktree, blackboard, verifier, AgentTask hoặc “tôi có nên chạy song song việc này không”.

Vì sao nên dùng Multi Agent Orchestration trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Multi Agent Orchestration là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Multi Agent Orchestration trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/mizchi/skills/tree/main/multi-agent-orchestration. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Multi Agent Orchestration?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Multi Agent Orchestration với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Multi Agent Orchestration với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Multi Agent Orchestration có miễn phí không?

Kỹ năng này được mizchi phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇