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.
Metadata
Release files for worktree-mux 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| worktree_mux-0.4.0.tar.gz | 45.1 kB | Without provenance | Details for worktree_mux-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| worktree_mux-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for worktree_mux-0.4.0-py3-none-any.whl |
Total release size: 58.2 kB
Release files / worktree_mux-0.4.0.tar.gz
| Download URL | worktree_mux-0.4.0.tar.gz |
|---|---|
| Size | 45.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c82fabdfe97b2de29c230f60f07b08d29841996bdf56b268a36e35a1f685a0b4
|
|
BLAKE2b-256 checksum How to use checksums |
ed98324d04353b818aa91be5c956189a90437f127d425795432a460515535cbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / worktree_mux-0.4.0-py3-none-any.whl
| Download URL | worktree_mux-0.4.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53ef8a8007a57525eba81c7c2638b87a3a07cb43a41ba9cb072a69e9a20ec6af
|
|
BLAKE2b-256 checksum How to use checksums |
2df9834766c5ffc92987fa68c6ba5ae9b5f4a1503183abfe0263be54c295269b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for worktree-mux 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.