Split one iTerm2 window into 4 panes, each running claude Code. One click, four Claudes.
┌─────────────┬─────────────┐
│ claude │ claude │
│ (top-left) │ (top-right) │
├─────────────┼─────────────┤
│ claude │ claude │
│ (bottom-left)│(bottom-right)│
└─────────────┴─────────────┘
- macOS (uses AppleScript)
- iTerm2 terminal emulator
- Claude Code (
claudecommand available in PATH)
git clone https://github.com/Ricky2333/claude-code-4x.git
cd claude-code-4x
# Copy the script to your PATH
cp claude-code-4x ~/bin/ # or /usr/local/bin/
# (Optional) Install the macOS app bundle
cp -r claude-code-4x.app /Applications/Download claude-code-4x (the shell script) and place it anywhere in your $PATH.
claude-code-4xDouble-click claude-code-4x.app (if installed to /Applications).
Both methods open a new iTerm2 window with 4 panes, each automatically running claude.
The script uses AppleScript to tell iTerm2 to:
- Create a new window
- Split it vertically into left/right halves
- Split each half horizontally into top/bottom
- Run
claudein each of the 4 resulting panes
That's it - no dependencies beyond iTerm2's built-in AppleScript support.
MIT