← Directory

dmux

Open Source
• Updated Jun 10, 2026, 04:06 AM

dmux is an open-source command-line tool designed to run multiple AI coding agents in parallel using terminal multiplexing (tmux) and git worktrees.

Use Cases ▼
01

Running multiple Claude Code or Codex agents in parallel to work on separate feature branches simultaneously.

02

Speeding up large-scale code refactoring by dividing the codebase into isolated worktrees and assigning each to a different AI agent.

03

Automating cross-branch testing and validation where each agent tests a different configuration in its own worktree.

04

Comparing AI coding models or prompt strategies side-by-side by running them concurrently on the same task in isolated environments.

05

Managing a fleet of agents for continuous integration tasks such as code review, linting, or documentation generation across many PRs.

06

Enabling developers to experiment with AI-assisted coding without risking the main codebase, thanks to automatic worktree isolation and cleanup.

What Problem It Solves ▼

Developers and AI engineers often need to run multiple AI coding agents simultaneously to parallelize large tasks, experiment with different prompts or models, or manage independent features without conflicts. Manual management of multiple terminal sessions and codebases leads to disorganization, merge headaches, and wasted time. dmux solves this by automating the creation of isolated git worktrees and launching each agent inside a dedicated tmux pane, ensuring that agents operate on separate checkouts without interfering with each other. This allows users to scale agent parallelism effortlessly, monitor all agents from a single interface, and safely clean up when tasks complete.

Key Features ▼
✓

Simple installation via npm; requires only tmux and git.

✓

Automatic isolation of agent sessions with git worktrees prevents code conflicts.

✓

Real-time monitoring dashboard provides visibility into all running agents.

✓

Highly customizable through hook scripts for pre/post session actions.

✓

Lightweight and efficient, leveraging tmux's proven terminal multiplexing.

Overview

dmux is an open-source command-line tool designed to run multiple AI coding agents in parallel using terminal multiplexing (tmux) and git worktrees. It provides a streamlined way to orchestrate concurrent agent sessions, each isolated in its own tmux pane and git worktree, eliminating conflicts and enabling safe, efficient parallel development. The tool integrates with popular AI coding agents like Claude Code and Codex, automatically managing the lifecycle of each session—from creating the worktree and attaching the agent to cleaning up resources when tasks are complete. dmux includes a built-in hook system (.dmux-hooks) that allows developers to inject custom logic at key stages (e.g., worktree creation, agent stop), making it highly adaptable to different workflows. A frontend dashboard (accessible via a local web interface) provides real-time monitoring of all agent sessions, including outputs, statuses, and resource usage. With support for bulk text input, efficient key handling, and compatibility with various terminal emulators, dmux is optimized for heavy-duty agent orchestration in hacking, refactoring, and multi-task coding scenarios. The tool is packaged as an npm module and can be installed globally with a single command, requiring only tmux and git as dependencies. It is actively maintained with frequent releases (current version v5.9.0) and a growing community of contributors and users.

Pros & Cons

Pros

+

Simple installation via npm; requires only tmux and git.

+

Automatic isolation of agent sessions with git worktrees prevents code conflicts.

+

Real-time monitoring dashboard provides visibility into all running agents.

+

Highly customizable through hook scripts for pre/post session actions.

+

Lightweight and efficient, leveraging tmux's proven terminal multiplexing.

Cons

−

Requires tmux and git, limiting adoption on systems without those tools.

−

Primarily terminal-based; agents must support CLI interaction.

−

Orchestration only—does not include built-in AI agent intelligence or model management.

Similar Tools

1code agent-deck agent-kanban

More in AI Agents