Execute tasks in parallel using git worktrees. Analyzes dependencies and file overlaps to safely parallelize independent tasks.
From manifoldnpx claudepluginhub dhanesh/manifold --plugin manifold"task1" "task2" ["task3"] [--dry-run] [--max-parallel=N]/parallelDecomposes compound tasks into independent work packages and executes them in parallel across separate Claude processes with full plugin capabilities, aggregating results.
/parallelDisplays guide for setting up parallel Claude Code sessions using git worktrees, including native claude -w mode, subagent isolation, manual setup, usage scenarios, and cleanup.
/parallelStarts multiple AI agents in parallel across git worktrees from pipe-separated worktree:prompt args. Validates worktrees, creates missing ones, displays status table.
/parallelGuide for running multiple Claude Code sessions on the same project simultaneously.
/parallelParallel agent orchestration for independent tasks. Use when facing 2+ independent tasks that operate on different files/domains and can be parallelized for efficiency.
Execute multiple tasks in parallel using isolated git worktrees.
/manifold:parallel "task1" "task2" "task3" [options]
| Flag | Description |
|---|---|
--auto-parallel | Enable automatic parallelization without confirmation |
--max-parallel N | Maximum concurrent tasks (default: 4) |
--verbose, -v | Show detailed output |
--deep | Use deep analysis (slower but more accurate) |
--timeout N | Task timeout in seconds (default: 300) |
--strategy TYPE | Merge strategy: sequential, squash, rebase |
--no-cleanup | Don't cleanup worktrees after completion |
--dry-run | Analyze but don't execute |
--file, -f FILE | Load tasks from YAML file |
User: /manifold:parallel "Add login form" "Add signup form" "Add password reset" --dry-run
Response:
đ Analyzing tasks for parallelization...
PARALLELIZATION ANALYSIS
ââââââââââââââââââââââââ
Recommendation: â
PARALLELIZE (85% confidence)
Safe Parallel Groups:
Group 1: [Add login form, Add signup form]
ââ No file overlap detected
Group 2: [Add password reset]
ââ Overlaps with Group 1 on src/auth/utils.ts
Sequential Tasks: None
Estimated Speedup: 1.8x (2 parallel + 1 sequential)
âšī¸ Dry run mode - no execution performed
Create .parallel.yaml in project root:
enabled: true
autoSuggest: true
autoParallel: false
maxParallel: 4
maxDiskUsagePercent: 90
maxMemoryUsagePercent: 85
maxCpuLoadPercent: 80
timeout: 300000
cleanupOnComplete: true
mergeStrategy: sequential
| Constraint | Description | Implementation |
|---|---|---|
| B1 | No merge conflicts | Overlap detection prevents file conflicts |
| B2 | Faster than sequential | Parallel execution with resource-aware concurrency |
| B3 | Auto-identify opportunities | Task analysis and file prediction |
| B4 | Opt-in control | Configuration and explicit flags |
| T1 | Clean branch state | Pre-check before worktree creation |
| T2 | Isolated worktrees | Each task runs in separate worktree |
| T3 | No same-file parallel | Overlap detector enforces |
When this command is invoked:
.parallel.yaml if present--dry-run, display analysis and exit--no-cleanup/manifold:m0-init - Initialize a constraint manifold/manifold:m-status - Show current manifold state