Quick start
Copy page1. Install
Section titled “1. Install”curl -fsSL https://raw.githubusercontent.com/raine/workmux/main/scripts/install.sh | bashSee Installation for other methods (Homebrew, Cargo, Nix).
2. Initialize configuration (optional)
Section titled “2. Initialize configuration (optional)”workmux initThis creates a .workmux.yaml file to customize your workflow (pane layouts, setup commands, file operations, etc.). workmux works out of the box with sensible defaults, so this step is optional.
3. Create a new worktree and tmux window
Section titled “3. Create a new worktree and tmux window”workmux add new-featureThis will:
- Create a git worktree at
<project_root>/../<project_name>__worktrees/new-feature - Copy config files and symlink dependencies (if configured)
- Run any
post_createsetup commands - Create a tmux window named
wm-new-feature(the prefix is configurable) - Set up your configured or the default tmux pane layout
- Automatically switch your tmux client to the new window
4. Do your thing
Section titled “4. Do your thing”Work on your feature, fix a bug, or let an AI agent handle it.
5. Finish and clean up
Section titled “5. Finish and clean up”Local merge: Run workmux merge to merge into the base branch and clean up in one step.
PR workflow: Use /open-pr to push and open a PR. After it’s merged, run workmux remove to clean up.
See Workflows for more patterns including delegating tasks from agent sessions.
Directory structure
Section titled “Directory structure”Here’s how workmux organizes your worktrees by default:
~/projects/├── my-project/ <-- Main project directory│ ├── src/│ ├── package.json│ └── .workmux.yaml│└── my-project__worktrees/ <-- Worktrees created by workmux ├── feature-A/ <-- Isolated workspace for 'feature-A' branch │ ├── src/ │ └── package.json │ └── bugfix-B/ <-- Isolated workspace for 'bugfix-B' branch ├── src/ └── package.jsonEach worktree is a separate working directory for a different branch, all sharing the same git repository. This allows you to work on multiple branches simultaneously without conflicts.
You can customize the worktree directory location using the worktree_dir configuration option (see Configuration).
Workflow example
Section titled “Workflow example”Here’s a complete workflow:
# Start a new featureworkmux add user-auth
# Work on your feature...# (workmux automatically sets up your configured panes and environment)
# When ready, merge and clean upworkmux merge user-auth
# Start another featureworkmux add api-endpoint
# List all active worktreesworkmux listThe parallel AI workflow
Section titled “The parallel AI workflow”Run multiple AI agents simultaneously, each in its own worktree. No conflicts, no branch switching, no stashing.
# Spin up two agents working on different tasksworkmux add refactor-user-model -p "Refactor the User model to use composition"workmux add add-search-endpoint -p "Add a /search endpoint with pagination"
# Each agent works in isolation. Check progress via tmux windows or the dashboardworkmux dashboard
# Merge completed work back to mainworkmux merge refactor-user-modelworkmux merge add-search-endpointSee AI Agents for details on prompts, multi-agent generation, and agent status tracking.