A tmux-based viewer for git worktrees
Project description
worktree-mux
A tmux control panel for git worktrees.
When you run multiple AI agents or parallel feature branches, each git worktree becomes its own dev environment. worktree-mux maps 1 worktree → 1 tmux window, so you can instantly jump between contexts to run commands, inspect logs, or debug — without losing your place.
- What it does: fast terminal access to every worktree
- What it doesn't do: create or manage worktrees — git still does that
Think: a dashboard for parallel coding environments.
See PLAN.md for assumptions and design considerations.
Install
# Install from PyPI
uv tool install worktree-mux
# Or install from source
git clone https://github.com/tt6746690/worktree-mux.git
uv tool install worktree-mux/
# (Optional) Short alias — add to ~/.zshrc
alias wm='worktree-mux'
Usage
- Create worktrees with git: worktree-mux just views them
git worktree add .worktrees/feature/auth -b feature/auth
git worktree add .worktrees/fix/parser-bug -b fix/parser-bug
git worktree add .worktrees/refactor-models -b refactor-models
- See all worktrees and their status with
worktree-mux(orworktree-mux ls)
worktree-mux — my-repo
────────────────────────────────────────────────────────────────
Branch tmux Modified vs main Last Commit
────────────────── ──── ──────── ─────── ─────────────────
▸ feature/auth ● 2 files ↑3 12 minutes ago
fix/parser-bug ○ clean ↑1 2 hours ago
refactor-models ○ 3 files ↑5 ↓2 35 minutes ago
● = tmux window open ○ = no tmux window ▸ = current
Session: my-repo (3 worktrees, 1 open)
- Jump into a worktree: creates a tmux window and switches to it with
worktree-mux cd
worktree-mux cd auth # (fuzzy) leaf name match
worktree-mux cd parser # (fuzzy) substring match
worktree-mux cd feature/auth # exact path match
worktree-mux cd # go to the main window (repo root)
Return to your previous session: prefix + s and toggle
- Live dashboard of worktrees — auto-refreshing version of the status table with
worktree-mux dash
worktree-mux — my-repo (refreshes every 5s)
──────────────────────────────────────────────────────────────────────
Branch tmux Modified vs main Last Commit
────────────────── ──── ──────── ─────── ─────────────────
▸ feature/auth ● 2 files ↑3 12 minutes ago
fix/parser-bug ○ clean ↑1 2 hours ago
refactor-models ○ 3 files ↑5 ↓2 35 minutes ago
● = tmux window open ○ = no tmux window ▸ = current
- Cleanup: worktree-mux automatically cleans up orphaned tmux windows (from removed worktrees) on every command. No manual close needed — just delete the worktree with
git worktree removeand the window goes away.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file worktree_mux-0.3.0.tar.gz.
File metadata
- Download URL: worktree_mux-0.3.0.tar.gz
- Upload date:
- Size: 45.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3734367d89439004aa1556d1ae0e8411fb3643a74b179af112337091b64636af
|
|
| MD5 |
6806c5c704913168737fa2c749f7a219
|
|
| BLAKE2b-256 |
6e837f246fc27f24702f612884728bb86023f5ee4f33b0c44f527737f4a30129
|
File details
Details for the file worktree_mux-0.3.0-py3-none-any.whl.
File metadata
- Download URL: worktree_mux-0.3.0-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8267e52e56b4a532d7b9277e5d8e316c16bd36c03d540bd8544ff1cb521250a7
|
|
| MD5 |
ecc5ffb019a59d85490e2c9131d4de16
|
|
| BLAKE2b-256 |
1295d3c459f4ff95d498d3a4a66b72c2b04f70e1c06e429a5192dd8f39230a5d
|