/session:spawn
Spawn multiple parallel Claude Code sessions, each in its own git worktree with optional tmux integration for easy navigation.
Quick Start
/agileflow:session:spawn --count 3Arguments
| Argument | Description |
|---|---|
--count N | Number of sessions to spawn |
--branches a,b,c | Explicit branch names for each session |
--from-epic EP-XXX | Auto-create branches from epic stories |
Flags
| Flag | Description |
|---|---|
--init | Initialize sessions with test verification |
--no-tmux | Skip tmux window creation |
--dangerous | Skip safety confirmations |
How It Works
- Creates N git worktrees from current branch
- Auto-copies
.envfiles to each worktree - Spawns Claude Code in tmux windows (one per session)
- Registers sessions in session state for tracking
Tmux Navigation
After spawning, use tmux key bindings to switch between sessions:
Ctrl+b n- Next session windowCtrl+b p- Previous session windowCtrl+b [number]- Jump to specific window
Related Commands
| Command | Purpose |
|---|---|
/session:status | View all session states |
/session:resume | Switch to a session |
/session:cleanup | Clean up finished sessions |
/session:end | End current session |