ccmux
A streamlined terminal-UI for juggling concurrent Claude Code sessions.
Features
- Visual sidebar — see all sessions at a glance; red highlights tell you instantly when Claude needs your attention
- CLI session management — create, list, activate, remove sessions from the terminal
- Git worktree isolation — spin up duplicate sessions on isolated branches; use
ccmux.tomlfiles to add additional steps when spinning up worktrees, such as setting up untracked build dependencies
Prerequisites
Before installing ccmux, make sure you have:
-
tmux — terminal multiplexer
# Ubuntu/Debian sudo apt install tmux # macOS brew install tmux
-
Claude Code — Anthropic's CLI for Claude
npm install -g @anthropic-ai/claude-code
See Claude Code documentation for details.
Installation
# Recommended
pipx install ccmux
# Or, if you don't use pipx
pip install ccmux
Quick Start
ccmux # auto-creates a session for the current directory or attaches to an existing one
ccmux new # create a new session from the current directory's repo
Sidebar
| Action | Effect |
|---|---|
| Click a session | Switch to it |
| Double-click a session | Edit its note |
| Click the arrow on a repo header | Collapse or expand the group |
| Click a repo name | Select the group; click again to deselect (highlight blinks, clears after 10 s idle) |
↑ / ↓ |
Move the selected group up or down |
← / → |
Collapse / expand the selected group |
Esc |
Clear the selection |
| Remove box on a selected group's sessions | Slides in from the right; removes that session, asking first if a worktree has uncommitted changes |
| Click the empty space below the sessions | Reveal the Add + bar, which opens a repo from your workspace directories, clones a URL, or starts a new project |
Group order and collapsed state are remembered across restarts.
Commands
| Command | Description |
|---|---|
| (default) | Auto-attach to existing session or create one |
new [PATH] |
Create a new session (add -w for worktree, --init to create a new repo at PATH) |
list |
List all sessions with status and branch info |
clone URL |
Clone a repo into a workspace directory (--into DIR) and create a session |
attach |
Attach to the ccmux tmux session |
activate [NAME] |
Reopen Claude Code in a session's tmux window, continuing its most recent conversation |
deactivate [NAME] |
Close tmux window (keeps session) |
remove [NAME] |
Permanently delete a session |
rename OLD NEW |
Rename a session |
kill |
Kill entire ccmux session |
which |
Print current session name (useful for scripting) |
detach |
Detach from tmux |
reload |
Restart the sidebar and reapply tmux hooks in place after upgrading ccmux |
Workspace Directories
The sidebar's Add + button looks for repositories one level under your
workspace directories. Set them in ~/.ccmux/config.toml:
[sidebar]
workspace_dirs = ["~/work", "~/Git_Repos"]
Without this setting, the parent directories of repos that already have sessions
are searched. ccmux clone uses the same list when --into is omitted and exactly
one directory is configured.
Worktree Configuration
Drop a ccmux.toml in your repo root to run commands after worktree creation:
[worktree]
post_create = [
"ln -s $CCMUX_REPO_ROOT/node_modules $CCMUX_INSTANCE_PATH/node_modules",
"cp $CCMUX_REPO_ROOT/.env $CCMUX_INSTANCE_PATH/.env",
]
Commands run inside the new worktree with these environment variables:
| Variable | Description |
|---|---|
CCMUX_REPO_ROOT |
Absolute path to the main repository |
CCMUX_INSTANCE_PATH |
Absolute path to the new worktree |
CCMUX_INSTANCE_NAME |
Name of the new instance |
CCMUX_SESSION |
ccmux tmux session name |
Contributing
git clone git@github.com:TheHumbleTransistor/ccmux.git
cd ccmux
pip install -e ".[dev]"
pytest tests/ -v
PRs welcome — open an issue first for large changes.
License
MIT — see LICENSE
Metadata
Release files for ccmux 0.10.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 |
|---|---|---|---|---|
| ccmux-0.10.0.tar.gz | 194.4 kB | With provenance | Details for ccmux-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ccmux-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for ccmux-0.10.0-py3-none-any.whl |
Total release size: 266.4 kB
Release files / ccmux-0.10.0.tar.gz
| Download URL | ccmux-0.10.0.tar.gz |
|---|---|
| Size | 194.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5cec2bf9f0b6e6f13c6448a5e8ccd30e2d3a2ff45b6e865994c2a51d4559a72
|
|
BLAKE2b-256 checksum How to use checksums |
d7ff5a59b7897a23d1009435c38136a5f1569cf974e1047d30bc14b3c90f8b17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / ccmux-0.10.0-py3-none-any.whl
| Download URL | ccmux-0.10.0-py3-none-any.whl |
|---|---|
| Size | 72.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08577b994b8cc83c0bc85824fdd7b1ec3ee1587b1040d2c22ef2bfd9aa3db7cd
|
|
BLAKE2b-256 checksum How to use checksums |
b0752d69b2b08ca2cfc37c07df5668aa229606111604dff3c359aa5b56829344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for ccmux 0.10.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ccmux-0.10.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA 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.