Repository

dmux

<h3 align="center">Parallel agents with tmux and worktrees</h3> Manage multiple AI coding agents in isolated git worktrees. Branch, develop, and merge — all in parallel. cd /path/t · License MIT · Install via npm · Maintenance unknown

License
MIT
Key
Action
n
New pane (worktree + agent)
t
New terminal pane

Specs

  • KeyAction
  • nNew pane (worktree + agent)
  • tNew terminal pane
  • j / EnterJump to pane
  • mMerge pane to main
  • xClose pane
  • pNew pane in another project
  • sSettings
  • qQuit

README

dmux logo

<h3 align="center">Parallel agents with tmux and worktrees</h3>

Manage multiple AI coding agents in isolated git worktrees. Branch, develop, and merge — all in parallel.

Documentation  ·  Getting Started  ·  Issues


dmux demo

Install

npm install -g dmux

Quick Start

cd /path/to/your/project
dmux

Press n to create a new pane, type a prompt, pick an agent, and dmux handles the rest &mdash; worktree, branch, and agent launch.

What it does

dmux creates a tmux pane for each task. Every pane gets its own git worktree and branch so agents work in complete isolation. When a task is done, press m to merge it back into your main branch.

  • Worktree isolation &mdash; each pane is a full working copy, no conflicts between agents
  • Agent support &mdash; Claude Code, Codex, and OpenCode
  • A/B launches &mdash; run two agents on the same prompt side-by-side
  • AI naming &mdash; branches and commit messages generated automatically
  • Smart merging &mdash; auto-commit, merge, and clean up in one step
  • Multi-project &mdash; add multiple repos to the same session
  • Lifecycle hooks &mdash; run scripts on worktree create, pre-merge, post-merge, and more

Keyboard Shortcuts

Key Action
n New pane (worktree + agent)
t New terminal pane
j / Enter Jump to pane
m Merge pane to main
x Close pane
p New pane in another project
s Settings
q Quit

Requirements

Documentation

Full documentation is available at dmux.ai, including setup guides, configuration, hooks, and the HTTP API reference.

License

MIT