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.
当需要并行调度多个 Claude Code Agent 执行编码任务时,使用此 skill。每个 Agent 都在隔离的 git worktree 中运行,并拥有完整的工具支持。
Setup
设置
The DevFleet server is a separate project, not bundled with ECC. Install and
run it from its repository first: https://github.com/LEC-AI/claude-devfleet
Then connect the running instance via MCP:
bash
claude mcp add devfleet --transport http http://localhost:18801/mcpBefore first use, verify the process listening on port 18801 is the DevFleet
binary you installed (see SECURITY.md on localhost MCP servers).
DevFleet server 是一个独立项目,不随 ECC 捆绑提供。请先从其仓库安装并运行:https://github.com/LEC-AI/claude-devfleet
然后通过 MCP 连接正在运行的实例:
bash
claude mcp add devfleet --transport http http://localhost:18801/mcp首次使用前,请验证监听 18801 端口的进程是否为你安装的 DevFleet binary(请参阅 localhost MCP server 的 SECURITY.md)。
How 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 userUser → "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 userTools
工具
| 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 将描述拆解为一个包含链式 mission 的项目 |
| 手动创建项目,返回 |
| 添加一个 mission。 |
| 启动 Agent 执行 mission |
| 停止正在运行的 Agent |
| 阻塞至 mission 完成(参见下方说明) |
| 无需阻塞即可检查 mission 进度 |
| 读取结构化报告(已更改文件、测试结果、错误和后续步骤) |
| 系统概览:运行中的 Agent、统计数据和近期活动 |
| 浏览所有项目 |
| 列出项目中的 mission |
关于的说明: 该调用最多会阻塞对话wait_for_mission秒(默认 600)。对于长时间运行的 mission,建议改为每 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="...")和 mission 列表,其中包含project_id依赖链,并设置depends_on。auto_dispatch=true - 展示计划:向用户展示 mission 标题、类型和依赖链。
- 调度:在根 mission(为空)上调用
depends_on。其余 mission 会在依赖完成后自动调度,因为dispatch_mission(mission_id=<first_mission_id>)为它们设置了plan_project。auto_dispatch=true - 监控:调用 或
get_mission_status(mission_id=...)检查进度。get_dashboard() - 报告:mission 完成后调用 。向用户分享重点内容。
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,可通过 配置。当所有名额均被占用时,设置了 的 mission 会在 mission watcher 中排队,并在名额释放后自动调度。调用 查看当前名额使用情况。
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=...)
- → 展示包含 mission 和依赖关系的计划。
plan_project(prompt="...") - 调度第一个 mission,即 为空的 mission。
depends_on - 其余 mission 会在依赖关系解决后自动调度(它们已设置 )。
auto_dispatch=true - 报告项目 ID 和 mission 数量,让用户了解已启动的内容。
- 定期使用 或
get_mission_status轮询,直至所有 mission 达到终止状态(get_dashboard()、completed或failed)。cancelled - 对每个进入终止状态的 mission 调用 ——总结成功内容,并指出失败项及其错误和后续步骤。
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 - 为第一个(根)mission 调用 → 获取
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>"]) - 在第一个 mission 上调用 ,启动任务链。
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="Implement feature", 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="Review", 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
- 除非用户已明确同意执行,否则调度前始终与用户确认计划。
- 报告状态时包含 mission 标题和 ID。
- 如果 mission 失败,先读取其报告再重试。
- 批量调度前,调用 确认 Agent 槽位是否可用。
get_dashboard() - Mission 依赖构成 DAG——不要创建循环依赖。
- 每个 Agent 都在隔离的 git worktree 中运行,并在完成后自动合并。如果发生合并冲突,更改会保留在 Agent 的 worktree 分支上,以便手动解决。
- 手动创建 mission 时,如果希望其在依赖完成后自动触发,请始终设置 。未设置此标志时,mission 将保持
auto_dispatch=true状态。draft