Clusters & Execution
Task Master automatically detects execution clusters — groups of tasks that can run in parallel, sequenced by their dependency graph. Theclusters command visualizes your execution topology, and clusters start launches an autonomous Claude Code session to execute the plan.
Recommended Setup
For the best experience withtm clusters start, use iTerm2 with tmux control mode. This gives Claude Code’s agent teams the ability to open split panes and manage parallel work visually.
Step-by-step
- Open iTerm2 (macOS) — download here if you don’t have it
- Start tmux in control mode:
iTerm2 will open a native tmux integration window. This lets Claude Code spawn panes and tabs that iTerm2 manages natively — no raw tmux key bindings needed.
- Run the command:
Or without a tag to execute the active tag:
Visualizing Clusters
Before executing, usetm clusters to understand your project’s execution topology.
Tag-level phases
Without a--tag flag, clusters shows your tags organized into execution phases:
Task-level clusters
Drill into a specific tag to see how its tasks are clustered:Output formats
Executing Clusters
tm clusters start
Builds an execution plan from your task graph and launches an interactive Claude Code session with agent teams enabled.
- Task Master loads your tasks and detects clusters from the dependency DAG
- An execution plan is built — showing clusters, task count, and estimated turns
- The plan is displayed for review
- Claude Code launches with a system prompt containing the full execution context
- Agent teams mode is enabled (
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1), allowing Claude to spawn sub-agents for parallel task execution
CLI options
Dry run
Preview the execution plan without launching a Claude session:Resume from checkpoint
If a session is interrupted (Ctrl+C), Task Master saves a checkpoint automatically. Resume where you left off:Example Workflow
Related documentation:
- CLI Root Commands — full command reference
- Loop Command — autonomous loop-based execution
- Task Structure — understanding task organization