Logo Agent Fanout

Agent Fanout

Cộng đồng
neuromechanist
agent-fanout

Use this skill when the user asks to "fan out agents", "spawn agents", "use an agent team", "parallel agents", "delegate to subagents", "act as team lead", "orchestrate implementation", "fan out teammates", or when a task decomposes into 2+ independent work items (parallel exploration, one implementer per issue, a multi-lens PR review panel). Covers the basic mechanics of spawning, briefing, supervising, and synthesizing subagents and teammates, plus the hard cap on fleet size.

Add to TypingMind

Tổng quan

Nhà phát hànhneuromechanist
Kho mãresearch-skills
Tên kỹ năngagent-fanout
Sao
51
Bản fork
9
Tệp đi kèm
2
Giấy phépBSD-3-Clause
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ộ.

  • 2 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 neuromechanist 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 Agent Fanout 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/neuromechanist/research-skills/tree/main/plugins/project/skills/agent-fanout
  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/neuromechanist/research-skills.git /tmp/research-skills
mkdir -p .claude/skills
cp -r /tmp/research-skills/plugins/project/skills/agent-fanout .claude/skills/agent-fanout
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 Agent Fanout 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 Agent Fanout 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 Agent Fanout 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.

Agent Fan-Out and Teams

Orchestrate multiple subagents or teammates to explore, implement, review, and validate in parallel. This skill makes every judgment call explicit: when to fan out, how many agents, which model, what to put in each prompt, how to supervise, and how to combine results.

When to fan out (decision table)

SituationAction
Single bounded question ("where is X defined?")No fan-out. Search directly or use one read-only explorer.
Open-ended audit/review of a system with 2+ independent subsystemsOne read-only explorer per subsystem, in parallel.
Multiple root-caused issues, each fixable independentlyOne implementer per issue, each in its own git worktree.
One pull request (PR) ready for reviewOne review panel (2-5 reviewers, see Review panels below).
Sequential work where step N needs step N-1's outputDo NOT parallelize. Run one agent at a time or do it inline.
Task needs secrets, deploy rights, or user-only credentialsDo NOT delegate. Keep it in the main session (mark the task "owner: lead").

Do not fan out for work you can finish inline in a few minutes; a subagent costs setup, supervision, and synthesis time.

Hard limits (compute BEFORE launching)

  1. Before any fan-out, compute the worst case: finders x max findings per finder x verifiers per finding + implementers + reviewers. Write the number down in your plan.
  2. Budget: 10-20 agents per run for routine work; hard cap 40. If the math exceeds the routine budget, say so and justify it; if it exceeds 40, cut scope before launching: fewer lenses, findings capped per agent (maxItems-style limits in the prompt), one verification vote instead of three. Going past 40 requires explicit user approval in the same conversation. If the user's own configuration states a stricter cap, the stricter number wins.
  3. Prefer waves of 10 or fewer concurrent agents. Finish and synthesize a wave before launching the next.
  4. Every phase plan states its own agent budget and routing up front (for example "Sol lead + Terra phase planner + Luna implementer/reviewer, ~4 agents total").
  5. If you hit a rate limit: stop spawning, schedule one backoff wait, resume staggered. Narrate as a status update, not a question.

Evidence for the cap: an uncapped review-verify fan-out in a real session reached ~130 agents, rate-limited the account, and disrupted the live product under review. Compute the count first.

Roles and model routing

Keep the lead/orchestrator on the strongest available reasoning tier; in driver mode (below), the driver delegates the lead's hard calls to that tier. The lead owns requirements, architecture, irreversible decisions, supervision, load-bearing verification, and final synthesis. Delegate bounded plan elaboration to the intermediate tier only after the architecture is fixed. Delegate implementation to the worker tier only after the brief names exact files, decisions, tests, and gates.

Worker agents perform near lead quality only when three controls are present: a full lifecycle brief with exact values and named tests, mechanical gates (lint, typecheck, tests, and zero new diagnostics), and lead verification of the result. If any control is missing, keep the work on the lead or intermediate tier.

Ecosystem routing

Use an exact alias only when the current runtime exposes it. Otherwise apply the capability class in the final column.

EcosystemLead / architect / observer / synthesizerPhase-plan elaboratorImplementer / focused reviewer / validatorCapability fallback
Claude CodeFable when available, otherwise Opus or bestOpus for unresolved design; Sonnet after architecture approvalSonnetstrongest / balanced / worker
OpenAI CodexSol (gpt-5.6-sol)Terra (gpt-5.6-terra)Luna (gpt-5.6-luna)strongest / intermediate / clear-repeatable worker
GitHub Copilot CLIstrongest available modelbalanced reasoning modelcost-efficient coding modelstrongest / intermediate / worker
Other systemsstrongest available modelintermediate modelfastest model that passes the gatesstrongest / intermediate / worker

Driver mode (the usual session). The session driver is Sonnet at xhigh (Claude) or Luna at max (Codex). The driver runs the workflow mechanically and delegates hard calls instead of making them:

  • routine implementation, focused review, and validation: Sonnet xhigh or Luna max;
  • architecture, unresolved design, high-risk invariants, contested findings, and repeated non-mechanical failures: Opus xhigh (Fable when available) or Sol xhigh.

Pass the effort explicitly on every delegation.

Codex Luna is appropriate only for clear, repeatable implementation from a detailed plan. Escalate a worker to Terra or Sol when the task exposes an unresolved architecture choice, repeatedly fails a gate for a non-mechanical reason, or touches data integrity, encryption, concurrency, authorization, or another high-risk invariant. On Claude, use the same escalation rule from Sonnet to Opus/Fable.

RoleAgent typeDefault tierNotes
Lead/orchestratormain sessionstrongest, or a Sonnet/Luna driver in driver modePreserve requirements, approve architecture, supervise, verify, and synthesize; a driver delegates hard calls to the strongest tier.
Explorer/scoutread-only explorerintermediate or workerOne-shot for bounded facts; the lead re-verifies the keystone fact.
Architectplan agentstrongestOwns macro design and open judgment calls.
Phase plannerplan agentintermediateExpands an approved architecture into worker-executable actions; escalates unresolved design.
Implementergeneral-purposeworkerOne per issue and worktree, named; receives the full lifecycle contract.
Reviewerreview agentworkerOne fresh panel per PR; use intermediate/strongest for high-risk invariants.
Validatorgeneral-purposeworkerRuns named checks; classify first what needs human hardware.
Integration reviewerreview agentworkerReviews only cross-phase integration at the end.

Review panels shrink as the code stabilizes: 4-5 lenses while new types and invariants are being invented, 2-3 once they settle, 1 integration-scoped reviewer for the final merge. Every PR gets at most two review rounds (one full, one delta); see project:pr-review-toolkit review-convergence.md reference.

Mechanics (the plumbing)

Read references/fanout-mechanics.md for tool-by-tool instructions: spawning (agent tool parameters, naming, model selection, background execution), messaging (follow-ups, corrections, stand-downs), task boards, worktree commands, and what to do on platforms without subagent support (run the same role prompts sequentially in fresh contexts). If you have never spawned an agent in the current tool, read that file first.

Briefing rules (what goes in every prompt)

Read references/fanout-prompts.md for the full templates. Non-negotiable elements for every delegated prompt:

  1. Shared CONTEXT block, authored once, pasted into every prompt of the wave: one-line project description, repo/package map, largest files with line counts, and a negative list (already-fixed items not to re-report, known gaps to extend rather than rediscover).
  2. Scope boundary: exact worktree/branch (literal commands), files owned by concurrent siblings ("agent X is editing files A and B; do not touch them"), and read-only vs edit rights.
  3. DECIDED POLICY lines: pre-resolve every foreseeable ambiguity at spawn time so parallel agents cannot diverge ("DECIDED POLICY (lead decision, note it in the PR body): ...").
  4. Numbered deliverables with exact values (constants, thresholds, type signatures), never "reasonable defaults".
  5. Gates: the exact verification commands to run and the numeric bar ("zero new lint/type diagnostics vs the measured baseline", "all tests green").
  6. How-far boundary: commit / push / PR / merge, and an explicit DO NOT beyond it (usually "Do NOT merge").
  7. Report contract: a closing "Report:" line dictating the final message's exact contents, and the instruction to send the full report as message text (report files may be blocked for subagents; idle does not mean delivered).
  8. Secrets rule: "NEVER read or print .env or any secrets file."
  9. No perfect agent type available? Reuse the closest adjacent one and override its default framing explicitly in the prompt: state what this task is and is NOT ("this is a technical disclosure, NOT a journal manuscript; do not score on journal criteria; instead assess ..."), so the agent does not fall back to its default domain.
  10. GitHub text formatting: semantic line breaks remain the default for prose source, except in text posted to GitHub (issue and pull-request bodies, comments, reviews, and discussions). Keep each GitHub paragraph and list item on one source line, separate paragraphs with blank lines, and do not insert sentence- or clause-level newlines inside a paragraph.

Supervision protocol

  • Canary first: before launching N parallel instances of an unvalidated action, run one and watch it complete.
  • Staleness threshold: pick a number when you spawn (default 45 min for implementers, 20 min for reviewers; see project:engineering-loop unblock-rules.md reference). If an agent shows no commits, file writes, or messages within it, check filesystem evidence (file mtimes, expected deliverable paths). Do not treat "no report yet" as "still working".
  • Escalation ladder: (1) nudge with the exact expected deliverable, (2) narrow the ask ("send what you have now, quote line numbers"), (3) state the consequence ("if you do not reply shortly I will take over"), (4) stop the agent and finish the work in the main session.
  • Idle without report: send the standard nudge (template in references). If an idle ping arrives after the report already landed, acknowledge and do not double-nudge.
  • Zombies: track which agents are stood down or superseded; if one resurfaces, discard its late output explicitly instead of acting on it.
  • Agent hard-fails (API error, crash): say so, and proceed on the coverage that completed. Never silently drop a failed lane and never block everything on it. If the dead agent left partial output on disk, brief the replacement with an inventory of those files; do not re-run the original prompt blind.
  • Lead keeps its hands off the code: once delegation is underway, direct edits to project source by the lead are a smell. Prefer widening an existing agent's mandate or spawning a new one; it keeps every change reviewable under a scoped brief and preserves the lead's context for coordination. The exception is taking over from a stalled or stopped agent.
  • Upstream changes: after merging anything into a shared branch, message every in-flight worker naming exactly what changed and 1-2 acceptable reconciliation strategies, before they open PRs.
  • Correction broadcast: if a claim you gave earlier turns out wrong and reached in-flight agents, send each one a named correction quoting the wrong claim, the disproving evidence, and their specific rework. Leave a marker in project docs where the wrong path was taken.
  • Remove finished agents: after harvesting an agent's final report and confirming no follow-up is needed, close/remove its thread. Keep an agent available only when it has a named recurring role and a concrete next task; "might reuse later" is not sufficient.

Synthesis rules (after a wave returns)

  1. Merge N reports into ONE consolidated, prioritized list, bucketed by severity (Critical / Important / Moderate / Suggestion).
  2. Every finding is either accepted (dispatched with an exact fix) or rejected with a one-sentence rationale recorded in an "EXPLICITLY REJECTED" section. No silent drops.
  3. When two agents disagree on a fact, reproduce it yourself with a minimal check (grep, script, source read). Never average or pick by confidence.
  4. Reproduce any headline numeric claim that gates a merge yourself before standing the worker down; state your number next to theirs.
  5. Treat a subagent's causal explanation as a hypothesis: spot-check the most load-bearing fact against the evidence its own report cites before relaying it or acting on it.
  6. "PR open" and "PR reviewed with findings addressed" are two separately verified states. A task completes on its own stated criterion (usually merge), not on the nearest milestone.

Done

The fan-out is complete when: every spawned agent is completed, stood down, or stopped with its output accounted for; every non-reusable agent thread is closed/removed; every finding is dispatched or rejected with a reason; every claimed result you relied on has been independently spot-checked; worktrees and other artifacts created for the wave are cleaned up; and the state file / task board reflects final status.

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 Agent Fanout làm được gì?

Use this skill when the user asks to "fan out agents", "spawn agents", "use an agent team", "parallel agents", "delegate to subagents", "act as team lead", "orchestrate implementation", "fan out teammates", or when a task decomposes into 2+ independent work items (parallel exploration, one implementer per issue, a multi-lens PR review panel). Covers the basic mechanics of spawning, briefing, supervising, and synthesizing subagents and teammates, plus the hard cap on fleet size.

Vì sao nên dùng Agent Fanout 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. Agent Fanout 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 Agent Fanout trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/neuromechanist/research-skills/tree/main/plugins/project/skills/agent-fanout. 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 Agent Fanout?

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 Agent Fanout 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 Agent Fanout 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 Agent Fanout có miễn phí không?

Có. Kỹ năng này được neuromechanist phát hành trên GitHub theo giấy phép BSD-3-Clause. 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 👇