Summary
Enhance /parallel-work start to optionally auto-create a tmux pane or window for the new worktree session.
Current Behavior
When running /parallel-work start <branch>, the user must manually:
- Open a new terminal
cd to the worktree directory
- Run
claude with the context prompt
Proposed Behavior
Add tmux integration that automatically:
- Creates a new tmux pane or window
- Changes to the worktree directory
- Starts a claude session with the context
Implementation Ideas
Option 1: New Subcommand
/parallel-work start <branch> --tmux-pane # Split current window
/parallel-work start <branch> --tmux-window # New window in session
Option 2: AskUserQuestion Choice
After creating the worktree, ask:
- "Open in new tmux pane (Recommended)"
- "Open in new tmux window"
- "Manual - I'll open it myself"
Technical Considerations
- Detect if running inside tmux (
$TMUX env var)
- Use
tmux split-window -c <worktree-path> for pane
- Use
tmux new-window -c <worktree-path> for window
- Send the claude startup command:
tmux send-keys "claude 'See .parallel-context.md'" Enter
Open Questions
- Should this be opt-in (flag) or default behavior when in tmux?
- Preferred default: pane or window?
- Should we support non-tmux terminals (iTerm2 tabs, Terminal.app)?
Related
Summary
Enhance
/parallel-work startto optionally auto-create a tmux pane or window for the new worktree session.Current Behavior
When running
/parallel-work start <branch>, the user must manually:cdto the worktree directoryclaudewith the context promptProposed Behavior
Add tmux integration that automatically:
Implementation Ideas
Option 1: New Subcommand
Option 2: AskUserQuestion Choice
After creating the worktree, ask:
Technical Considerations
$TMUXenv var)tmux split-window -c <worktree-path>for panetmux new-window -c <worktree-path>for windowtmux send-keys "claude 'See .parallel-context.md'" EnterOpen Questions
Related
/parallel-workcommand added in feat: Add /parallel-work command for multi-PR development #38