claude-devfleet
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseClaude DevFleet Multi-Agent Orchestration
Claude DevFleet多Agent编排
When to Use
使用场景
Use this skill when you need to dispatch multiple Claude Code agents to work on coding tasks in parallel. Each agent runs in an isolated git worktree with full tooling.
Requires a running Claude DevFleet instance connected via MCP:
bash
claude mcp add devfleet --transport http http://localhost:18801/mcp当你需要调度多个Claude Code Agent并行处理编码任务时,可使用此技能。每个Agent都在独立的git worktree中运行,并配备完整工具链。
需要通过MCP连接运行中的Claude DevFleet实例:
bash
claude mcp add devfleet --transport http http://localhost:18801/mcpHow It Works
工作原理
User → "Build a REST API with auth and tests"
↓
plan_project(prompt) → project_id + mission DAG
↓
Show plan to user → get approval
↓
dispatch_mission(M1) → Agent 1 spawns in worktree
↓
M1 completes → auto-merge → auto-dispatch M2 (depends_on M1)
↓
M2 completes → auto-merge
↓
get_report(M2) → files_changed, what_done, errors, next_steps
↓
Report back to user用户 → "构建带认证和测试的REST API"
↓
plan_project(prompt) → project_id + 任务DAG
↓
向用户展示规划 → 获取确认
↓
dispatch_mission(M1) → Agent 1在工作树中启动
↓
M1完成 → 自动合并 → 自动调度M2(依赖M1)
↓
M2完成 → 自动合并
↓
get_report(M2) → 文件变更、完成内容、错误信息、后续步骤
↓
向用户反馈报告Tools
工具列表
| Tool | Purpose |
|---|---|
| AI breaks a description into a project with chained missions |
| Create a project manually, returns |
| Add a mission. |
| Start an agent on a mission |
| Stop a running agent |
| Block until a mission completes (see note below) |
| Check mission progress without blocking |
| Read structured report (files changed, tested, errors, next steps) |
| System overview: running agents, stats, recent activity |
| Browse all projects |
| List missions in a project |
Note on: This blocks the conversation for up towait_for_mission(default 600). For long-running missions, prefer polling withtimeout_secondsevery 30–60 seconds instead, so the user sees progress updates.get_mission_status
| 工具 | 用途 |
|---|---|
| AI将需求描述拆解为包含链式任务的项目 |
| 手动创建项目,返回 |
| 添加任务。 |
| 启动Agent执行任务 |
| 停止运行中的Agent |
| 阻塞直到任务完成(见下方说明) |
| 非阻塞式检查任务进度 |
| 查看结构化报告(文件变更、测试情况、错误信息、后续步骤) |
| 系统概览:运行中的Agent、统计数据、近期活动 |
| 浏览所有项目 |
| 列出项目中的任务 |
关于的说明: 此方法会阻塞对话,最长等待wait_for_mission秒(默认600秒)。对于长时间运行的任务,建议每隔30-60秒调用timeout_seconds轮询,以便用户查看进度更新。get_mission_status
Workflow: Plan → Dispatch → Monitor → Report
工作流:规划 → 调度 → 监控 → 报告
- Plan: Call → returns
plan_project(prompt="...")+ list of missions withproject_idchains anddepends_on.auto_dispatch=true - Show plan: Present mission titles, types, and dependency chain to the user.
- Dispatch: Call on the root mission (empty
dispatch_mission(mission_id=<first_mission_id>)). Remaining missions auto-dispatch as their dependencies complete (becausedepends_onsetsplan_projecton them).auto_dispatch=true - Monitor: Call or
get_mission_status(mission_id=...)to check progress.get_dashboard() - Report: Call when missions complete. Share highlights with the user.
get_report(mission_id=...)
- 规划:调用→ 返回
plan_project(prompt="...")以及包含project_id依赖链和depends_on设置的任务列表。auto_dispatch=true - 展示规划:向用户展示任务标题、类型和依赖链。
- 调度:对根任务(为空)调用
depends_on。剩余任务会在依赖完成时自动调度(因为dispatch_mission(mission_id=<first_mission_id>)为它们设置了plan_project)。auto_dispatch=true - 监控:调用或
get_mission_status(mission_id=...)检查进度。get_dashboard() - 报告:任务完成后调用,并向用户分享重点内容。
get_report(mission_id=...)
Concurrency
并发处理
DevFleet runs up to 3 concurrent agents by default (configurable via ). When all slots are full, missions with queue in the mission watcher and dispatch automatically as slots free up. Check for current slot usage.
DEVFLEET_MAX_AGENTSauto_dispatch=trueget_dashboard()DevFleet默认最多运行3个并发Agent(可通过配置)。当所有Agent槽位占满时,设置了的任务会进入任务监控队列,待槽位释放后自动调度。可通过查看当前槽位使用情况。
DEVFLEET_MAX_AGENTSauto_dispatch=trueget_dashboard()Examples
示例
Full auto: plan and launch
全自动:规划并启动
- → shows plan with missions and dependencies.
plan_project(prompt="...") - Dispatch the first mission (the one with empty ).
depends_on - Remaining missions auto-dispatch as dependencies resolve (they have ).
auto_dispatch=true - Report back with project ID and mission count so the user knows what was launched.
- Poll with or
get_mission_statusperiodically until all missions reach a terminal state (get_dashboard(),completed, orfailed).cancelled - for each terminal mission — summarize successes and call out failures with errors and next steps.
get_report(mission_id=...)
- → 展示包含任务和依赖的规划。
plan_project(prompt="...") - 调度第一个任务(为空的任务)。
depends_on - 剩余任务会在依赖满足时自动调度(它们已设置)。
auto_dispatch=true - 向用户反馈项目ID和任务数量,让用户了解已启动的任务。
- 定期调用或
get_mission_status轮询,直到所有任务进入终态(get_dashboard()、completed或failed)。cancelled - 对每个终态任务调用—— 总结成功内容,并标注失败任务的错误信息和后续步骤。
get_report(mission_id=...)
Manual: step-by-step control
手动模式:分步控制
- → returns
create_project(name="My Project").project_id - for the first (root) mission → capture
create_mission(project_id=project_id, title="...", prompt="...", auto_dispatch=true).root_mission_idfor each subsequent task.create_mission(project_id=project_id, title="...", prompt="...", auto_dispatch=true, depends_on=["<root_mission_id>"]) - on the first mission to start the chain.
dispatch_mission(mission_id=...) - when done.
get_report(mission_id=...)
- → 返回
create_project(name="My Project")。project_id - 为第一个(根)任务调用→ 记录
create_mission(project_id=project_id, title="...", prompt="...", auto_dispatch=true)。 为后续每个任务调用root_mission_id。create_mission(project_id=project_id, title="...", prompt="...", auto_dispatch=true, depends_on=["<root_mission_id>"]) - 对第一个任务调用以启动任务链。
dispatch_mission(mission_id=...) - 完成后调用。
get_report(mission_id=...)
Sequential with review
带审核的串行模式
- → get
create_project(name="...").project_id - → get
create_mission(project_id=project_id, title="Implement feature", prompt="...").impl_mission_id - , then poll with
dispatch_mission(mission_id=impl_mission_id)until complete.get_mission_status - to review results.
get_report(mission_id=impl_mission_id) - — auto-starts since the dependency is already met.
create_mission(project_id=project_id, title="Review", prompt="...", depends_on=[impl_mission_id], auto_dispatch=true)
- → 获取
create_project(name="...")。project_id - → 获取
create_mission(project_id=project_id, title="实现功能", prompt="...")。impl_mission_id - 调用,然后通过
dispatch_mission(mission_id=impl_mission_id)轮询直到完成。get_mission_status - 调用审核结果。
get_report(mission_id=impl_mission_id) - —— 由于依赖已满足,会自动启动。
create_mission(project_id=project_id, title="审核", prompt="...", depends_on=[impl_mission_id], auto_dispatch=true)
Guidelines
—
- Always confirm the plan with the user before dispatching, unless they said to go ahead.
- Include mission titles and IDs when reporting status.
- If a mission fails, read its report before retrying.
- Check for agent slot availability before bulk dispatching.
get_dashboard() - Mission dependencies form a DAG — do not create circular dependencies.
- Each agent runs in an isolated git worktree and auto-merges on completion. If a merge conflict occurs, the changes remain on the agent's worktree branch for manual resolution.
- When manually creating missions, always set if you want them to trigger automatically when dependencies complete. Without this flag, missions stay in
auto_dispatch=truestatus.draft
—