tmux-worktree-orchestration
โโโโโโโโ split โโโโโโโโ โโโโโโโโ โโโโโโโโ
โ repo โ โโโโโโโโโถ โ๐ค AI โ โ๐ค AI โ โ๐ค AI โ โก Parallel
โโโโโโโโ โโโโโโโโ โโโโโโโโ โโโโโโโโ
โ โ โ
merge โโโโโโโโโดโโโโโโโโ
โผ
โโโโโโโโ
โ โ
โ
โโโโโโโโ
A Claude Code Plugin that enables parallel AI-powered development by combining tmux, git worktrees, and multiple Claude Code instances.
๐ค Why This Plugin?
โก The Power of AI Concurrent Programming
Traditional development is sequential - you work on one feature, finish it, then move to the next. But with AI coding assistants like Claude Code, we can break this limitation. AI doesn't get tired, doesn't lose context when switching tasks, and can work on multiple problems simultaneously.
This plugin unleashes the full potential of AI-assisted development by allowing you to:
- ๐ Run multiple Claude Code instances in parallel, each focused on a different feature
- ๐ Dramatically reduce development time - what used to take days can now be done in hours
- ๐ Maintain perfect isolation - each feature has its own git branch and working directory, no conflicts
๐ฅ๏ธ Why tmux?
tmux is the perfect companion for AI concurrent programming:
- ๐พ Persistent Sessions: SSH disconnected? Computer went to sleep? No problem. tmux sessions keep running. Your Claude Code instances continue working even when you're not connected.
- ๐ Session Recovery: Simply
tmux attach to reconnect to all your running AI sessions instantly
- ๐ฆ Resource Efficient: Unlike multiple terminal windows, tmux runs in a single process and uses minimal resources
- ๐ Remote Friendly: Perfect for running on remote servers - start your AI agents, disconnect, come back later to check results
๐ง How It Works
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Your Development Flow โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. SPLIT: Create parallel development environments
โโโโโโโโโโโโโโโโ
โ Main Repo โ โโโโ /tmux-worktree-split login signup api โโโโโ
โ (main) โ โ
โโโโโโโโโโโโโโโโ โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ tmux session โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Window 1 โ โ Window 2 โ โ Window 3 โ โ
โ โ login โ โ signup โ โ api โ โ
โ โ โโโโโโโโโโโ โ โ โโโโโโโโโโโ โ โ โโโโโโโโโโโ โ โ
โ โ โ Claude โ โ โ โ Claude โ โ โ โ Claude โ โ โ
โ โ โ Code โ โ โ โ Code โ โ โ โ Code โ โ โ
โ โ โโโโโโโโโโโ โ โ โโโโโโโโโโโ โ โ โโโโโโโโโโโ โ โ
โ โ โ โ โ โ โ โ
โ โ Worktree: โ โ Worktree: โ โ Worktree: โ โ
โ โ repo-login โ โ repo-signup โ โ repo-api โ โ
โ โ โ โ โ โ โ โ
โ โ Branch: โ โ Branch: โ โ Branch: โ โ
โ โfeature/loginโ โfeature/signupโ โ feature/api โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
2. DEVELOP: Work on features in parallel (AI does the heavy lifting!)
- Each Claude Code instance works independently
- No conflicts between features
- Switch between windows with Ctrl+b n/p
3. MERGE: Combine everything back
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ /tmux-worktree-merge โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโ
โ Main Repo โ โ All features merged, worktrees cleaned up,
โ (main) โ tmux sessions closed, ready for next sprint!
โโโโโโโโโโโโโโโโ
๐ State Management
The plugin automatically manages state between split and merge:
-
On Split: Creates .worktree-split-state.md in your project root
- Records base branch, tmux configuration, all feature info
- Copied to each worktree for easy access
-
On Merge: Reads state file and performs cleanup
- Merges all feature branches back to base
- Removes worktrees and cleans up branches
- Kills tmux sessions
- Deletes state file (won't be committed to git)
โจ Features