workmux - parallel coding agents in isolated worktrees

4 months ago

workmux is a terminal workflow tool for running coding agents in parallel without sharing one checkout. It pairs git worktrees with tmux windows, so each task gets its own branch, terminal state, editor, dev server, and agent prompt.

Ask about this presentation

Chapters

  1. 0:00Parallel coding agents in isolated worktrees
  2. 0:14The problem is shared state
  3. 0:29Install, then optionally initialize
  4. 0:43One command creates the workspace
  5. 0:58Repeat it for parallel tasks
  6. 1:10Monitor, compare, and merge
  7. 1:24Start with the Quick start
Show transcript
  1. workmux is a terminal workflow tool for running coding agents in parallel without sharing one checkout. It pairs git worktrees with tmux windows, so each task gets its own branch, terminal state, editor, dev server, and agent prompt.

    Slide text
    workmux

    One task gets one branch, one worktree, one terminal window, and one agent prompt.

    prompt → branch → worktree → agent pane
  2. The pain shows up fast. One agent is fine. Four agents in one working tree means branch switching, stashing, file conflicts, and dev servers left in the wrong state. workmux makes the isolation the default instead of a manual setup ritual.

    Slide text

    Four agents in one checkout means branch switches, stashes, clashing files, and mystery server state.

    one repo
    agent A changes auth
    agent B changes checkout
    agent C changes tests
    agent D waits for a clean tree
    workmux tmux screenshot
  3. Start with the installer from the quick start. A terminal multiplexer is required, and tmux is the usual path. Then run workmux init if you want a dot workmux yaml file. The docs are clear that defaults work without that file, so configuration is optional.

    Slide text
    curl -fsSL https://raw.githubusercontent.com/\
    raine/workmux/main/scripts/install.sh | bash
    
    workmux init

    Defaults work out of the box · .workmux.yaml customizes panes

  4. The first win is the add command. With dash A and dash p, workmux generates a branch name from your prompt, creates the worktree under the project worktrees directory, opens a tmux window, runs setup, and passes the prompt into your configured agent pane.

    Slide text
    workmux add -A -p \
    "Add pagination to the users endpoint"
    • Branch name is generated from the prompt.
    • Worktree is created beside the project.
    • tmux window opens with configured panes.
    • Agent pane receives the prompt.
  5. Then repeat the same command for the next task. This is where workmux becomes useful for agent work. Your pagination task, race condition task, and refactor task can all run at the same time, each with separate files and process state.

    Slide text
    workmux hero screenshot with multiple terminal panes

    each task gets its own branch · terminal · dev server

  6. The dashboard is the control surface. It shows the active worktrees, agent status, and a diff preview, so you can see what is happening before you switch context. When a task is worth keeping, workmux merge handles the local merge and cleanup.

    Slide text
    workmux dashboard screenshot
    workmux dashboard
    workmux merge
  7. That is the first pass. Install workmux, add one agent task, add another when you are ready, watch them in the dashboard, and merge the result you want to keep. The next step is the Quick start at workmux dot raine dot dev slash guide slash quick start.

    Slide text
    • Install workmux and use tmux or another backend.
    • Add agent tasks with isolated worktrees.
    • Watch progress in the dashboard.
    • Merge the work you want to keep.

    workmux.raine.dev/guide/quick-start · MIT · Rust

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York