Skip to main content

TUI manager for Claude Code sessions and Remote Control

Project description

cc-session-control

TUI manager for Claude Code sessions and Remote Control.

CLI command: csctl

Features

  • Sessions Tab — View, resume (bare terminal / tmux / background + Remote Control), terminate, and delete Claude Code sessions across all projects; a cleanup submenu (c) prunes empty/short sessions and sweeps orphan artifact directories
  • Projects Tab — Start a new tmux claude session in a project dir (t), start/stop RC servers per project, toggle auto-start, show running/stopped/dead states
  • Background agents Tab — List background agent jobs; take over, respawn, watch their timeline, stop, or remove them

Built with urwid.

UI language: Simplified Chinese (notifications and status text). CLI output is in English.

Requirements

  • Python 3.12+
  • Claude Code CLI installed and authenticated
  • tmux (for Remote Control management)
  • Linux / WSL (macOS support is partial — /proc-based liveness detection is Linux-only)

Installation

Install the latest published release:

uv tool install cc-session-control
# or
pipx install cc-session-control

Upgrade later with uv tool upgrade cc-session-control (or pipx upgrade cc-session-control).

Latest master build

To try the newest master before it is released, install from GitHub:

uv tool install --reinstall git+https://github.com/dzshzx/cc-session-control.git

csctl manages the Claude Code state on the machine where it is installed: the local ~/.claude, local tmux, and local workspace. Install it separately on each machine whose sessions you want to manage. For working on the code instead of using it, see CONTRIBUTING.md.

Usage

# Open TUI
csctl

# Remote Control management (no TUI)
csctl rc status          # Show all projects and RC status
csctl rc add .           # Add current project to RC list and start
csctl rc add myproject   # Add by name
csctl rc rm myproject    # Remove and stop
csctl rc up              # Start all listed projects
csctl rc stop all        # Stop all RC servers
csctl rc list            # Show auto-start list

# Session cleanup
csctl prune                          # Dry run: show stats
csctl prune --max-prompts 1 --apply  # Delete sessions with ≤1 prompt

# Resume rescue (headless): list sessions across directories with
# ready-to-copy resume commands (native /resume only searches the cwd
# and hides sdk-ts/bridge sessions)
csctl resume                 # Page 1, 20 per page
csctl resume mybug           # Keyword: sid/cwd/title, then transcript body
csctl resume --page 2        # Next page
csctl resume --all           # Everything, no paging

# Bundled Claude Code skill (session-doctor knowledge for the agent)
csctl skill install          # Write SKILL.md to ~/.claude/skills/
csctl skill install --force  # Replace an existing skill directory
csctl skill uninstall

# Options
csctl --workspace ~/projects   # Override workspace root
csctl --version

Configuration

Environment Variable Default Description
CSCTL_WORKSPACE ~/workspace Workspace root directory
CSCTL_RC_SESSION rc tmux session name for RC servers
CSCTL_RC_STAGGER 2 Seconds between starting RC servers
XDG_CONFIG_HOME ~/.config Config directory base

RC auto-start list is stored at $XDG_CONFIG_HOME/csctl/rc-enabled.

License

MIT

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

cc_session_control-0.6.4.tar.gz (118.4 kB view details)

Uploaded Source

Built Distribution

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

cc_session_control-0.6.4-py3-none-any.whl (92.2 kB view details)

Uploaded Python 3

File details

Details for the file cc_session_control-0.6.4.tar.gz.

File metadata

  • Download URL: cc_session_control-0.6.4.tar.gz
  • Upload date:
  • Size: 118.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cc_session_control-0.6.4.tar.gz
Algorithm Hash digest
SHA256 e60d493c7f169e1b2895b265d73fe7ba84991775c11cf23469db6e6c559a674c
MD5 72e2bb7e0decbc9473942500890bcf91
BLAKE2b-256 19937885825c90627db4875b2d8c80427d8999ac2299724e3ad1d7dd99ae985b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cc_session_control-0.6.4.tar.gz:

Publisher: release.yml on dzshzx/cc-session-control

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cc_session_control-0.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for cc_session_control-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a221934040fca37048752aa60708778ed1d61211b2e8dd8ca9c09f2201ace125
MD5 650b9bfe0d3bf4e35675ad5dd78d1ca2
BLAKE2b-256 a2046cabf08ca1fa128393ce4a9a0620fb0baed8ac389a032d7079b3f4b28d01

See more details on using hashes here.

Provenance

The following attestation bundles were made for cc_session_control-0.6.4-py3-none-any.whl:

Publisher: release.yml on dzshzx/cc-session-control

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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