claude-devfleet
affaan-m/everything-claude-code
Orchestrate parallel coding tasks across multiple Claude agents with dependency chains and isolated worktrees.
What is claude-devfleet?
Claude DevFleet lets you plan complex projects, dispatch multiple Claude Code agents to work in parallel on isolated git worktrees, and monitor progress with structured reports. Use it when you need to break down large coding tasks into independent missions that can run concurrently.
- Plan projects into dependency-chained missions with AI-driven task decomposition
- Dispatch multiple agents in parallel, each in an isolated git worktree with auto-merge on completion
- Set up dependency chains so missions auto-dispatch when their prerequisites complete
- Monitor agent progress via dashboard, mission status polling, and structured completion reports
- Configure concurrency (up to 3 agents by default) and handle queuing automatically
How to install claude-devfleet
npx skills add https://github.com/affaan-m/everything-claude-code --skill claude-devfleet- Install and run the DevFleet server from https://github.com/LEC-AI/claude-devfleet
- Connect the running instance via MCP: claude mcp add devfleet --transport http http://localhost:18801/mcp
- Verify the process on port 18801 is the DevFleet binary (see SECURITY.md for localhost MCP guidance)
How to use claude-devfleet
- 1.Call plan_project(prompt) to break your task into a mission DAG, or manually create_project and create_mission for step-by-step control
- 2.Review the plan with the user and get approval before proceeding
- 3.Dispatch the root mission (empty depends_on) with dispatch_mission; remaining missions auto-dispatch as dependencies complete if auto_dispatch=true
- 4.Poll get_mission_status or get_dashboard every 30–60 seconds to monitor progress without blocking
- 5.Call get_report(mission_id) on completed missions to read files changed, test results, errors, and next steps
- 6.Share highlights and failures with the user; retry failed missions after reviewing their reports
Use cases
- Build a REST API by splitting auth, endpoints, and tests into parallel missions
- Refactor a large codebase by assigning different modules to separate agents
- Implement a feature with parallel work on frontend, backend, and database schema
- Run code review and testing missions sequentially after implementation completes
- Orchestrate multi-phase projects where later phases depend on earlier agent outputs
- Engineering teams managing large or complex coding projects
- Developers who want to parallelize independent coding tasks
- Project leads coordinating work across multiple coding agents
- Anyone needing structured multi-agent task orchestration with dependency tracking
claude-devfleet FAQ
DevFleet runs up to 3 concurrent agents by default, configurable via DEVFLEET_MAX_AGENTS. Missions with auto_dispatch=true queue and launch automatically as slots free up.
The mission reaches a failed state. Call get_report(mission_id) to read the error details and next steps, then decide whether to retry or adjust the approach.
No. Mission dependencies form a DAG (directed acyclic graph). Circular dependencies are not allowed and will cause issues.
Both approaches work. plan_project auto-decomposes a description into a full mission chain. For more control, use create_project and create_mission to build the workflow step-by-step.
Each agent runs in an isolated worktree and auto-merges on completion. If a conflict occurs, the changes remain on the agent's worktree branch for manual resolution.
Full instructions (SKILL.md)
Source of truth, from affaan-m/everything-claude-code.
name: claude-devfleet description: Orchestrate multi-agent coding tasks via Claude DevFleet — plan projects, dispatch parallel agents in isolated worktrees, monitor progress, and read structured reports. metadata: origin: community
Claude DevFleet Multi-Agent Orchestration
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.
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:
claude mcp add devfleet --transport http http://localhost:18801/mcp
Before first use, verify the process listening on port 18801 is the DevFleet binary you installed (see SECURITY.md on localhost MCP servers).
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 user
Tools
| Tool | Purpose |
|---|---|
plan_project(prompt) | AI breaks a description into a project with chained missions |
create_project(name, path?, description?) | Create a project manually, returns project_id |
create_mission(project_id, title, prompt, depends_on?, auto_dispatch?) | Add a mission. depends_on is a list of mission ID strings (e.g., ["abc-123"]). Set auto_dispatch=true to auto-start when deps are met. |
dispatch_mission(mission_id, model?, max_turns?) | Start an agent on a mission |
cancel_mission(mission_id) | Stop a running agent |
wait_for_mission(mission_id, timeout_seconds?) | Block until a mission completes (see note below) |
get_mission_status(mission_id) | Check mission progress without blocking |
get_report(mission_id) | Read structured report (files changed, tested, errors, next steps) |
get_dashboard() | System overview: running agents, stats, recent activity |
list_projects() | Browse all projects |
list_missions(project_id, status?) | List missions in a project |
Note on
wait_for_mission: This blocks the conversation for up totimeout_seconds(default 600). For long-running missions, prefer polling withget_mission_statusevery 30–60 seconds instead, so the user sees progress updates.
Workflow: Plan → Dispatch → Monitor → Report
- Plan: Call
plan_project(prompt="...")→ returnsproject_id+ list of missions withdepends_onchains andauto_dispatch=true. - Show plan: Present mission titles, types, and dependency chain to the user.
- Dispatch: Call
dispatch_mission(mission_id=<first_mission_id>)on the root mission (emptydepends_on). Remaining missions auto-dispatch as their dependencies complete (becauseplan_projectsetsauto_dispatch=trueon them). - Monitor: Call
get_mission_status(mission_id=...)orget_dashboard()to check progress. - Report: Call
get_report(mission_id=...)when missions complete. Share highlights with the user.
Concurrency
DevFleet runs up to 3 concurrent agents by default (configurable via DEVFLEET_MAX_AGENTS). When all slots are full, missions with auto_dispatch=true queue in the mission watcher and dispatch automatically as slots free up. Check get_dashboard() for current slot usage.
Examples
Full auto: plan and launch
plan_project(prompt="...")→ shows plan with missions and dependencies.- 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
get_mission_statusorget_dashboard()periodically until all missions reach a terminal state (completed,failed, orcancelled). get_report(mission_id=...)for each terminal mission — summarize successes and call out failures with errors and next steps.
Manual: step-by-step control
create_project(name="My Project")→ returnsproject_id.create_mission(project_id=project_id, title="...", prompt="...", auto_dispatch=true)for the first (root) mission → captureroot_mission_id.create_mission(project_id=project_id, title="...", prompt="...", auto_dispatch=true, depends_on=["<root_mission_id>"])for each subsequent task.dispatch_mission(mission_id=...)on the first mission to start the chain.get_report(mission_id=...)when done.
Sequential with review
create_project(name="...")→ getproject_id.create_mission(project_id=project_id, title="Implement feature", prompt="...")→ getimpl_mission_id.dispatch_mission(mission_id=impl_mission_id), then poll withget_mission_statusuntil complete.get_report(mission_id=impl_mission_id)to review results.create_mission(project_id=project_id, title="Review", prompt="...", depends_on=[impl_mission_id], auto_dispatch=true)— auto-starts since the dependency is already met.
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
get_dashboard()for agent slot availability before bulk dispatching. - 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
auto_dispatch=trueif you want them to trigger automatically when dependencies complete. Without this flag, missions stay indraftstatus.
Related skills
More from affaan-m/everything-claude-code and the wider catalog.
security-review
Security checklist and patterns for authentication, input validation, secrets, and sensitive features.
golang-patterns
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable applications.
coding-standards
Baseline coding conventions for naming, readability, immutability, and quality across projects.
frontend-patterns
React and Next.js patterns for components, state management, performance, and modern frontend practices.
backend-patterns
REST/GraphQL API design, database optimization, and server-side patterns for Node.js, Express, and Next.js.
golang-testing
Go testing patterns: table-driven tests, subtests, benchmarks, fuzzing, and TDD methodology.