Skip to main content

Terminal UI to navigate, resume, and start Claude Code sessions across all your projects

Project description

ccmgr — Claude Code session manager

A terminal UI to navigate, resume, and start Claude Code sessions across all your projects from one place. ccmgr lives in the left pane of a tmux window; the right pane shows the currently-active claude. Each claude session runs as its own detached tmux session in the background, so switching between sessions preserves all in-progress work — no responses or tool calls are interrupted.

Install

pip install ccmgr

Requires Python 3.10+ and tmux on PATH.

Run

ccmgr

If you're not already inside a tmux session, ccmgr will launch one automatically (tmux new-session -A -s ccmgr). The right pane shows the currently-active claude; each claude session also exists as a detached tmux session in the background. Switching sessions in ccmgr re-attaches the right pane to a different background claude.

Keys

Key Action
/ Move selection within the focused pane
Tab / Shift-Tab Switch focus between Projects and Sessions panes
Enter Resume or start the selected session — claude opens (or re-attaches) in the right pane
Ctrl-B then Move focus back to ccmgr from the right pane
Ctrl-B then Move focus to the claude pane
/ Filter the focused pane
i Popup with the focused session's details (title, project, msgs, tokens)
? Full help popup
q or Ctrl-C Quit (kills the right tmux pane + auto-launched tmux session)

In the right pane, keystrokes go directly to claude — full color, full TUI. Tasks keep running even when you switch the right pane to another session, because each claude lives in its own detached tmux session. Press Ctrl-B ← to return to ccmgr on the left.

How it works

ccmgr reads ~/.claude/projects/* (Claude's per-project session history) and lists everything. Pressing Enter on a session does two things: (1) if a detached tmux session named cc-<short_id> running claude --resume <id> doesn't already exist, ccmgr creates one with tmux new-session -d; (2) ccmgr's right pane runs tmux attach -t cc-<short_id> so you see and interact with that claude. Switching sessions just respawns the right pane to attach to a different background tmux session — the detached claudes keep running with all their state intact.

Roadmap

Planned for future releases:

  • Cross-session search across projects
  • Cost and token-usage dashboard
  • Mouse support
  • Renaming and closing individual sessions from within ccmgr

Issues and pull requests welcome.

Configuration

Optional config at ~/.config/ccmgr/config.toml:

[claude]
binary = "claude"

[live]
poll_interval_ms = 1000
live_badge_seconds = 60

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

ccmgr-0.1.4.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccmgr-0.1.4-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file ccmgr-0.1.4.tar.gz.

File metadata

  • Download URL: ccmgr-0.1.4.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ccmgr-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4cc866ce30aa118fc21751e3e4f7e20525757b9b015102eb0a0cfbc23618ceb1
MD5 0e6328314fe3def237ac5be48dcaf93b
BLAKE2b-256 6a1e32c99a7b4141bfdb4da07f0d8a489595cb6c3311768b3c2cf509b78f626c

See more details on using hashes here.

File details

Details for the file ccmgr-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ccmgr-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ccmgr-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 44a42bb8e403e32466743981478734a2e59b87eeca293347d9f3428101230bbe
MD5 e823c44cb0391f003e7a85ca5a98346e
BLAKE2b-256 ff7b59e4fe9ba56a1aa39172f3c29127966bf9c893dca7f8f2dbba73ab65cf1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page