Loading...
Loading...
Compare original and translation side by side
Glob**/fleet/FLEET-INDEX.mdFLEET-INDEX.mdSKILL.mdGlob**/<chosen-fleet>/SKILL.mdGlob**/fleet/FLEET-INDEX.mdFLEET-INDEX.mdSKILL.mdGlob**/<chosen-fleet>/SKILL.mdWhere should I place the fleet root? (Press enter for default)
fleet-{YYYYMMDD-HHMMSS}-{fleet-name}/集群根目录应放在哪里?(按回车键使用默认路径)
fleet-{YYYYMMDD-HHMMSS}-{fleet-name}/Q1: Can one agent handle this in a single session?
YES → "No fleet needed — this fits in one session." STOP.
Q2: Does FLEET-INDEX.md have a matching fleet type?
YES → Pick it. Read its SKILL.md for the full schema.
Q3: No match?
→ "Open multiple Claude Code sessions — you're the orchestrator." STOP.
**Show the user your reasoning.** Don't just pick a type — explain why.Q1: Can one agent handle this in a single session?
YES → "No fleet needed — this fits in one session." STOP.
Q2: Does FLEET-INDEX.md have a matching fleet type?
YES → Pick it. Read its SKILL.md for the full schema.
Q3: No match?
→ "Open multiple Claude Code sessions — you're the orchestrator." STOP.| Alias | Full ID | When to use |
|---|---|---|
| | Default for most workers |
| | Complex reasoning, architectural review, large-context synthesis |
| | Cheap/fast — validators, linters, simple checks |
| Model | When to use |
|---|---|
| Flagship — strongest reasoning, recommended default |
| Fast/cheap — validators, simple tasks |
| Coding-focused (migrating to gpt-5.4) |
sonnethaikuopus| 别名 | 完整ID | 使用场景 |
|---|---|---|
| | 多数Worker的默认选择 |
| | 复杂推理、架构评审、大上下文合成 |
| | 低成本/快速场景——验证器、代码检查器、简单校验 |
| 模型 | 使用场景 |
|---|---|
| 旗舰模型——推理能力最强,推荐作为默认选择 |
| 快速/低成本场景——验证器、简单任务 |
| 专注编码场景(正在迁移至gpt-5.4) |
sonnethaikuopus| Task complexity | max_budget_usd |
|---|---|
| One-line change, simple edit | 0.25 - 0.50 |
| Moderate task (new function, refactor one file) | 1.00 - 2.00 |
| Complex task (new feature, multi-file changes) | 3.00 - 5.00 |
| Large task (architectural change, full module) | 5.00 - 10.00 |
| 任务复杂度 | 最大预算(美元) |
|---|---|
| 单行修改、简单编辑 | 0.25 - 0.50 |
| 中等任务(新增函数、重构单个文件) | 1.00 - 2.00 |
| 复杂任务(新增功能、多文件修改) | 3.00 - 5.00 |
| 大型任务(架构变更、完整模块开发) | 5.00 - 10.00 |
| Worker role | Correct type | WRONG type | Why wrong |
|---|---|---|---|
| Researcher (web + findings file) | | | read-only has no WebFetch/WebSearch and cannot Write |
| Synthesizer (reads inputs, writes synthesis) | | | read-only cannot Write — burns entire budget trying |
| Code builder (shell + files) | | | write has no Bash |
| Reviewer (reads code, runs tests, writes verdict) | | | reviewer has full access (Bash, Edit, etc.) for verification |
read-onlywriteresearchcode-runreviewer| Worker角色 | 正确类型 | 错误类型 | 错误原因 |
|---|---|---|---|
| 研究员(网页搜索+结果文件) | | | read-only类型无WebFetch/WebSearch功能,且无法写入文件 |
| 合成器(读取输入,生成合成内容) | | | read-only类型无法写入文件——会耗尽全部预算尝试执行写入操作 |
| 代码构建者(Shell+文件操作) | | | write类型无Bash功能 |
| 评审员(读取代码、运行测试、撰写评审结论) | | | reviewer类型拥有完整权限(Bash、编辑等)以完成验证工作 |
read-onlywriteresearchcode-runreviewer{
"fleet_name": "<descriptive-kebab-case-name>",
"type": "<worktree|dag|iterative>",
"config": {
"max_concurrent": 3,
"model": "sonnet",
"fallback_model": "haiku",
"provider": "claude",
"reasoning_effort": ""
},
"workers": [...]
}config.provider"claude""codex"worker.providerconfig.reasoning_effort"low""medium""high"worker.reasoning_effortprovider: "codex"fallback_modelprovider: "codex"max_budget_usdtarget_filesbranchcode-runtype: "reviewer"depends_onstop_whenmax_iterationsreviewer_lgtm_countmax_budget_per_itermax_budget_usddepends_on: ["worker-id"]{
"fleet_name": "<descriptive-kebab-case-name>",
"type": "<worktree|dag|iterative>",
"config": {
"max_concurrent": 3,
"model": "sonnet",
"fallback_model": "haiku",
"provider": "claude",
"reasoning_effort": ""
},
"workers": [...]
}config.provider"claude""codex"worker.providerconfig.reasoning_effort"low""medium""high"worker.reasoning_effortprovider: "codex"fallback_modelprovider: "codex"max_budget_usdtarget_filesbranchcode-runtype: "reviewer"depends_onstop_whenmax_iterationsreviewer_lgtm_countmax_budget_per_itermax_budget_usddepends_on: ["worker-id"]$FLEET_ROOT/workers/{id}/prompt.md$FLEET_ROOT/workers/{id}/prompt.mdWhen you are done, commit your changes on the current branch with a descriptive message.Save ALL output files to $FLEET_ROOT/workers/{id}/output/ — use absolute paths.iterate## Writing your verdict
1. Determine the current iteration number: list the `iterations/` directory and find the
highest-numbered subdirectory that does NOT yet contain a `review.md`.
2. Write your verdict to `iterations/<N>/review.md` (relative to your working directory).
**Never use absolute paths.**
3. The file MUST contain a line exactly like one of:
- `verdict: lgtm`
- `verdict: iterate`
- `verdict: escalate`
4. Below the verdict line, list **actionable fix instructions** per worker — not just
what's wrong, but exactly where and how to fix it (file path, function name, what
to change). 2-3 precise points per worker. The builder sees this on next iteration,
so vague feedback wastes a cycle.When you are done, commit your changes on the current branch with a descriptive message.Save ALL output files to $FLEET_ROOT/workers/{id}/output/ — use absolute paths.iterate## Writing your verdict
1. Determine the current iteration number: list the `iterations/` directory and find the
highest-numbered subdirectory that does NOT yet contain a `review.md`.
2. Write your verdict to `iterations/<N>/review.md` (relative to your working directory).
**Never use absolute paths.**
3. The file MUST contain a line exactly like one of:
- `verdict: lgtm`
- `verdict: iterate`
- `verdict: escalate`
4. Below the verdict line, list **actionable fix instructions** per worker — not just
what's wrong, but exactly where and how to fix it (file path, function name, what
to change). 2-3 precise points per worker. The builder sees this on next iteration,
so vague feedback wastes a cycle.bash <path-to-fleet-skill>/scripts/launch.sh <fleet-root>--dry-runbash <path-to-fleet-skill>/scripts/status.sh <fleet-root>bash <path-to-fleet-skill>/scripts/launch.sh <fleet-root>--dry-runbash <path-to-fleet-skill>/scripts/status.sh <fleet-root>| Agent says | Rebuttal |
|---|---|
| "I can handle this without a fleet" | If the user asked for fleet-plan, they want parallel execution. Walk the decision tree and pick a type. Only say "no fleet" if Q1 is genuinely YES. |
| "I'll use opus for all workers since it's better" | Sonnet is the default. Opus costs ~5x more. Only use opus when the task demonstrably needs complex reasoning. |
| "I'll skip the decision tree and just use dag-fleet" | Walk the tree. Worktree-fleet is better for independent work (git isolation). Iterative-fleet is better for reviewer-gated work. dag-fleet is the fallback, not the default. |
| "The tasks overlap a little but worktree-fleet will work" | Overlapping files = not worktree-fleet. Use dag-fleet with depends_on, or restructure the split so files don't overlap. |
| "I'll set max_budget_usd high to be safe" | Budget should match task complexity. $0.50 for simple edits, $2 for medium, $5 for complex. Don't waste money. |
| "I don't know which fleet type to pick" | You have a decision tree. Walk it. If genuinely ambiguous after the tree, default to dag-fleet. |
| "The synthesizer just reads outputs, so read-only is fine" | NO. read-only cannot Write. The synthesizer reads inputs but WRITES a synthesis file. Use |
| "Researchers should be read-only since they're reading" | NO. read-only has no WebFetch/WebSearch and no Write. Researchers need |
| Agent表述 | 反驳理由 |
|---|---|
| "我无需集群就能处理这项任务" | 若用户要求进行fleet-plan,他们希望并行执行任务。请遵循决策树选择类型。仅当Q1的答案确实为YES时,才可告知“无需集群”。 |
| "我将为所有Worker使用opus,因为它更优秀" | Sonnet是默认选择。Opus的成本约为Sonnet的5倍。仅当任务明确需要复杂推理时才使用Opus。 |
| "我将跳过决策树,直接使用dag-fleet" | 请遵循决策树流程。Worktree集群更适合独立工作(Git隔离)。迭代式集群更适合需评审员把关的工作。DAG集群是 fallback选项,而非默认选择。 |
| "任务有少量重叠,但worktree集群可以处理" | 文件重叠时不可使用worktree集群。请使用带depends_on的dag-fleet,或重新划分任务以避免文件重叠。 |
| "为了保险起见,我会将max_budget_usd设置得较高" | 预算应与任务复杂度匹配。简单编辑设置0.50美元,中等任务设置2美元,复杂任务设置5美元。请勿浪费资金。 |
| "我不知道该选择哪种集群类型" | 您有决策树可遵循。请按流程执行。若流程结束后仍存在歧义,默认选择dag-fleet。 |
| "合成器仅读取输出内容,所以使用read-only类型即可" | 错误。 read-only类型无法写入文件。合成器虽读取输入内容,但需要写入合成文件。请使用 |
| "研究员仅进行读取操作,所以使用read-only类型即可" | 错误。 read-only类型无WebFetch/WebSearch功能,且无法写入文件。研究员需使用 |