Skip to main content

ccmux

ccmux demo

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.toml files to add additional steps when spinning up worktrees, such as setting up untracked build dependencies

Prerequisites

Before installing ccmux, make sure you have:

  1. tmux — terminal multiplexer

    # Ubuntu/Debian
    sudo apt install tmux
    # macOS
    brew install tmux
    
  2. 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.

Small Screens and the Auto-Hiding Sidebar

The layout adapts to the window size, so the same workspace works from a desktop terminal and from a phone over SSH. tmux sizes the window to whichever terminal you typed in last.

  • Compact (phone): below 100 columns or 24 rows, one pane is shown at a time, full screen, with a gold button bar at the bottom: Projects · Agent · Terminal. Tap a button to switch; picking a session in Projects goes back to Agent. The normal layout stays intact underneath.
  • Full (desktop): the normal layout: sidebar on the left, Claude, and the bash pane along the bottom.
  • Auto-hide (desktop, off by default): turn it on in the About page (click the CCMUX title → Settings) and an unfocused sidebar shrinks to a thin strip of status dots; click it to expand. On a phone the sidebar is always the one-line bar.
# ~/.ccmux/config.toml
[sidebar]
auto_hide = false     # desktop auto-hide default; the About page toggle overrides it
strip_width = 3

[layout]
compact_width = 100   # below this many columns (or compact_height rows): compact layout
compact_height = 24

Run ccmux reload after changing these.

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.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ccmux 0.11.1
File Size Uploaded Provenance Actions
ccmux-0.11.1.tar.gz 208.4 kB With provenance Details for ccmux-0.11.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ccmux 0.11.1
File Interpreter ABI Platform Actions
ccmux-0.11.1-py3-none-any.whl Python 3 none any Details for ccmux-0.11.1-py3-none-any.whl

Total release size: 288.1 kB

Release files / ccmux-0.11.1.tar.gz

Download URL ccmux-0.11.1.tar.gz
Size 208.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0619a8b1d5b24fb6fec8fe19bffbab58ece4263c9f68249c6a0b50a624328631
BLAKE2b-256 checksum
How to use checksums
198f60c3d9a18e490f64c0ff25ca731626e334480b21369b56ae3a3295af5bf5
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 log

Release files / ccmux-0.11.1-py3-none-any.whl

Download URL ccmux-0.11.1-py3-none-any.whl
Size 79.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e310adc0cdb2a127a5067407632e1757497c15ee0f4a7652c65c80d1f9dc992
BLAKE2b-256 checksum
How to use checksums
946cb3ea96433542d53f1684e82957661c92f4728634bac6fc613c84642f7b76
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 log

Security for ccmux 0.11.1

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.

Select from 2 files

Attestation for ccmux-0.11.1.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 log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page