Skip to content

Configuration

Configuration

Preferences are stored in ~/.config/ccmux/ccmux.json and can be managed with:

Terminal window
ccmux config set <key> <value>
ccmux config get <key>
ccmux config list
Key Values Default Description
iconStyle dot, emoji, nerdfont, none dot Icon style for status badges
ageFade.after Nonnegative hours (0 disables) 24 Dim task text after this many hours continuously idle
attentionBand true, false true Pin waiting sessions in a needs attention band at the top of the list
theme catppuccin-*, tokyo-night*, dracula, gruvbox-*, nord, rose-pine* catppuccin-mocha TUI color theme (resolved at launch; see Theme)
showPreview true, false false Show preview panel on launch
previewWidth 20–80 40 Preview panel width (percentage)
command any non-blank string claude CLI command used for session restart
groupBy project, cwd, session, window, none project How sessions are grouped in the TUI
promptDisplay inline, row2, off inline Prompt display: inline on row 1, its own row, or hidden
backgroundAgents true, false true Show Claude background agents as rows (daemon restart required)
additionalClaudeConfigDirs array of paths [] Additional Claude config dirs to watch (daemon restart required; see Multiple Claude Config Dirs)
searchPaneContent true, false true Include captured pane content in TUI search
searchPaneLines 10–500 100 Lines of pane content scanned in TUI search
searchTranscript true, false true Search live Claude/Codex transcripts (full history + assistant text) via the daemon
persistent true, false false Keep picker open after switching sessions (dashboard mode)
reviewHandback confirm, auto, fill confirm After a hunk review, confirm delivery, send immediately, or fill the agent composer without submitting
tmuxSocket socket path (/...) or label unset tmux server to track (daemon restart required; see Non-default tmux Server)
sidebar.width 10–80 30 Sidebar pane width in columns
sidebar.position left, right left Which side of the window to place the sidebar
worktree.path Path template with {name} and optional {repo} .claude/worktrees/{name} Worktree directory template; relative to main checkout, ~/ to home, or absolute

For how these search knobs interact, see Search Mode.

Worktree paths and names

worktree.path defaults to .claude/worktrees/{name}. Relative templates resolve from the main checkout; a leading ~/ expands from the user’s home directory, and absolute paths are allowed. {repo} expands to the sanitized basename of the main checkout (the same safe-component rule used by ccmux’s worktree directory naming); {name} is the logical worktree name. The template must contain exactly one {name}, in the final path segment. {repo} is optional and may be repeated.

Terminal window
ccmux config set worktree.path '.claude/worktrees/{name}' # default, inside the repo
ccmux config set worktree.path '../{repo}.{name}' # beside the repo
ccmux config set worktree.path '../{repo}.worktrees/{name}' # beside the repo, grouped
ccmux config set worktree.path '~/worktrees/{repo}/{name}' # one central directory

With the main checkout at /code/app and the name fix-sidebar, the first four templates resolve to /code/app/.claude/worktrees/fix-sidebar, /code/app.fix-sidebar, /code/app.worktrees/fix-sidebar, and ~/worktrees/app/fix-sidebar, respectively (~ stands for the user’s home directory).

Templates with missing or repeated {name}, {name} outside the final path segment, unknown or unmatched placeholders, control characters, or unsupported ~user expansion are refused. A resolved worktree may not be the main checkout, be inside .git, or have the main checkout itself as its parent; the last case would make the exclusion cover the whole repository. A custom parent inside the main checkout must also be a dedicated directory: one that already holds tracked files (src/{name}, .claude/{name}) is refused at spawn, because excluding it would hide new files there from git. For example, ../{repo} has no {name}, {name}/src puts it outside the final segment, {name} has the main checkout as its parent, .git/wt/{name} is inside git metadata, and ../{branch} uses an unknown placeholder. The target is also refused if it resolves to the main checkout, such as ../{name} with name app.

The configured path controls directory placement only: branches and tmux window names keep the logical worktree name, not a {repo}-decorated basename. Collision numbers are added to {name} (../{repo}-wt-{name}-task becomes app-wt-fix-2-task, not app-wt-fix-task-2). On reopen, ccmux strips the current template’s literal prefix and suffix from the directory name when they match; otherwise it falls back to the directory basename. Changing the template never relocates or renames an existing worktree, and a branch already checked out in a registered worktree is reused across path layouts. Issue worktrees are identified from their issue-<n> / issue-<n>-... branch; branch identity also decides between issue candidates, with directory name used only as the fallback for a branchless legacy checkout. Name extraction compares the directory basename, not its parent path: changing only the parent keeps the logical name when the basename pattern still matches.

These settings apply to regular, fork, PR and issue spawns, and Move changes. If a resolved worktree parent is inside the main checkout, ccmux adds an exclusion for that parent to the hosting repo’s .git/info/exclude; the default still writes exactly **/.claude/worktrees/. A parent outside the main checkout needs no exclusion. Neither case edits .gitignore.

Column Configuration

Each session item has up to two rows (row1, row2), and each row has a left and right side. Each side is a comma-separated list of field entries. An entry is either <field> (use the field’s default mode) or <field>:<mode> (override the mode).

Terminal window
ccmux config set columns.row1.left "index,status:icon,project"
ccmux config set columns.row1.right "agent:short,pane,time"
ccmux config set columns.row2.left "summary"
ccmux config set columns.row2.right "branch"

Pass an empty string to clear a side: ccmux config set columns.row2.left "".

Field Modes Default mode Description
index — — Row number (1–9)
status icon/short/full Responsive Status badge, including completion and invoke outcomes; icon only on narrow screens
project dirname/full dirname Checkout path and branch in every grouping; + marks linked worktrees
agent short/full full Agent name (2-char code or full label)
version — — Agent version
pane — — Tmux pane target (session:window.pane)
time — — Relative time since last input
prompt — — Last user prompt (truncated)
cwd — — Working directory
branch — — Git branch, suffixed + in a worktree
pr short/full full Open PRs for the branch (#25/PR #25)
summary — — The agent’s own summary of the session, falling back to the last prompt (truncated)

summary is the default subtitle cell, and shows what the agent says it is doing. Claude Code, Codex, Copilot, Cursor, OpenCode and oh-my-pi each keep a generated summary in their tmux pane title; the column reads that through a per-agent rule that drops the status glyph, the spinner frame and the app name, so what lands on the row is the summary alone. Every other agent writes its cwd, its own state or a static app name there, and for those the cell falls back to the last prompt. A pane title equal to the machine’s own hostname is never shown either: that is the seed tmux gives a pane whose agent never set a title. Never both on one line.

prompt is unchanged and still shows the raw last prompt. To keep it as the subtitle, name it in the column config:

Terminal window
ccmux config set columns.row2.left prompt
ccmux config set sidebar.columns.row2.left prompt

Both cells flex to fill their row, so they share one budget — put at most one of them on a row.

The project cell keeps the checkout path and branch in every grouping, including <repo>/<worktree> for linked checkouts. Pressing b changes the headers and ordering while preserving row identity. Shared branches stay on the rows. Pane targets omit the tmux session name only under tmux session/window grouping, where the header already names it.

Status badges keep completion, invoke success/failure/cancellation, background agents, and subagent activity distinct. iconStyle and the status column’s icon, short, and full modes remain supported; defaults expand with the available width. Attention reasons sit beside the task text, so a pending permission does not replace the summary or search match.

Waiting sessions move into a pinned needs attention band above the groups, oldest wait first. They appear once, retain repo and tmux session identity, and return to their group when the wait ends. The band disappears when empty and stays expanded through collapse-all. With grouping off, a sessions header ends the band so the rows below it do not read as waiting. Search still filters sessions; f never removes a waiting row. Each header counts its own remaining rows. To keep waiting sessions in their own groups instead, run ccmux config set attentionBand false. It applies the next time the picker or sidebar opens; ones already open keep the setting they started with.

Project headers that unambiguously identify one repo show main + N worktrees, based only on the local worktree list; a repo with only its main checkout shows nothing. Facts are omitted when the complete phrase cannot fit. Cwd/tmux groups, mixed-repo headers, and the attention band have no repo facts. Collapsed activity counts take priority over optional facts when space is tight. These read-only counts refresh on opening, on reconnect (R), when session membership changes which repos are shown, and every 30 seconds while connected. Previous counts stay visible during a refresh or a connection blip.

Task text on rows idle longer than 24 hours uses the dim text color; identity, status, agent, PR, and handoff colors retain their meaning. Set ccmux config set ageFade.after 48 to change the threshold in hours, or 0 to disable fading. Active subagents keep their row bright.

Wrapped prompt block

promptLines renders the last prompt as a wrapped block of up to N lines, below the row’s other lines — the same text the one-line prompt column shows, given room to actually be read.

Terminal window
ccmux config set promptLines 3 # picker and sidebar
ccmux config set sidebar.promptLines 4 # sidebar only

0 (the default) disables it; the cap is 10. Turning it on removes the prompt cell from both rows rather than printing the same text twice, and promptDisplay: "off" (the p key) still hides it. The summary cell yields the same way, but per session: a row whose agent wrote a real summary keeps it on the identity line with the block below, which is the one way to see both at once, while a row whose cell would fall back to the prompt drops it. While a search is active the block yields to the one-line prompt cell, so the match highlights and the [pane]/[transcript]/[cwd] source tag stay visible (plus [summary], which appears only when a summary-only match has nowhere to show itself, the prompt opt-out layout); a rail too narrow for a readable wrap keeps the cell for the same reason. A session with no prompt gets no extra lines. The preview pane already shows the selected row’s full last prompt, so the block earns its keep mostly in the sidebar. The block is wrapped and measured before layout, so a row’s reported height and its drawn lines are always the same number — the scroll and row-menu geometry stay exact at any height.

Defaults: row1.left is index, status, project (status badge widens icon→short→full as the terminal grows; explicit modes remain supported). row1.right cascades by breakpoint: just pane below xs, then agent:short, pane at xs, agent:short, pane, time at sm, and agent:full, version, pane, time at md+. The summary and pr cells are configured on row2, but promptDisplay (default inline, cycled live by p) controls how they render: inline flattens them onto row1 so each session stays a single line, row2 gives the subtitle its own line with pr at the right edge, and off hides both. Sessions with no prompt stay single-line in inline mode; in row2 mode the second line still appears when another row-2 field (such as an open PR) has data.

Sidebar defaults differ to fit the narrow rail: row1 is status, project with pr:short, agent:short on the right (PR stays visible even with the prompt hidden), and row2 is summary / time (a lone time never earns the row; it rides along when some other field has data). The 30-col rail has no room to inline, so the sidebar always uses the two-row layout (inline behaves like row2). A waiting row also gets a fitted tmux target line, so its session name survives at 30 columns. Override these under the sidebar.columns key in ~/.config/ccmux/ccmux.json (e.g. "sidebar": { "columns": { "row2": { "left": ["pane"] } } } to bring the pane target back).

The CLI’s comma-separated form sets one mode per entry. To vary the layout by terminal width (responsive cascade), edit ~/.config/ccmux/ccmux.json directly and use the default/xs/sm/md/lg keys on either a row side (whole array) or an entry’s mode.

Breakpoints

Named breakpoints control when responsive column layouts activate. A breakpoint value applies from that terminal width upward until a larger breakpoint overrides it.

Name Default width
xs 40
sm 60
md 80
lg 100
Terminal window
ccmux config set breakpoints.sm 55
ccmux config set breakpoints.lg 120

Theme

The TUI ships 14 built-in palettes across six families, resolved once at launch (no in-TUI toggle).

Terminal window
ccmux config themes # list built-ins, mark the active one
ccmux config set theme tokyo-night # switch theme
Theme Background
catppuccin-mocha dark (default)
catppuccin-macchiato dark
catppuccin-frappe dark
catppuccin-latte light
tokyo-night dark
tokyo-night-storm dark
tokyo-night-day light
dracula dark
gruvbox-dark dark
gruvbox-light light
nord dark
rose-pine dark
rose-pine-moon dark
rose-pine-dawn light

For per-key tweaks, set theme to an object in ~/.config/ccmux/ccmux.json: a built-in base plus colors (the 14 semantic keys) and/or ansi (the 16 terminal colors used to render the preview), deep-merged over the base.

{
"theme": {
"base": "catppuccin-mocha",
"colors": { "red": "#ff5555" },
"ansi": { "brightBlack": "#585b70" }
}
}

An unknown base name falls back to the default theme; an invalid hex value or unknown override key is dropped and the base value is kept. Each emits a warning. Run ccmux config themes to inspect any problems with the current config.

Multiple Claude Config Dirs

Claude Code writes session transcripts to $CLAUDE_CONFIG_DIR/projects (default ~/.claude/projects), so sessions from a second account (e.g. a personal login launched with CLAUDE_CONFIG_DIR=~/.claude-personal) land in a tree ccmux doesn’t watch by default. List those dirs in additionalClaudeConfigDirs and a single daemon watches every <dir>/projects tree:

Terminal window
ccmux config set additionalClaudeConfigDirs '["~/.claude-personal"]'
ccmux setup --agent claude # installs hooks into every configured dir
ccmux daemon restart

~/.claude is always watched; entries are additional config dirs (~ paths supported), and a set CLAUDE_CONFIG_DIR environment variable is picked up automatically. Sessions are keyed by their globally unique session ID, so the same project opened under two accounts coexists without collision.