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, terminate, and delete Claude Code sessions across all projects
  • Remote Control Tab — Start/stop RC servers per project, toggle auto-start, show running/stopped/dead states
  • Cleanup Tab — Prune empty/short sessions, sweep orphan artifact directories

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

Coming soon to PyPI. The package is not published yet. Until the first release lands, install from GitHub (see Latest master build below). Once published, the commands below will work.

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

Until the package is on PyPI — or 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

# 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.4.0.tar.gz (89.3 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.4.0-py3-none-any.whl (68.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cc_session_control-0.4.0.tar.gz
  • Upload date:
  • Size: 89.3 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.4.0.tar.gz
Algorithm Hash digest
SHA256 45156cc6fccc373dc7fd9a11d2f87d806a45788bbeb90e67fa59dfc4c080d51d
MD5 15a65191cf886adacd11c5c76b6a9ac5
BLAKE2b-256 f10b2cd121aa1013460b70288d10dc17e020bd8d4de98be379118774cea44fbb

See more details on using hashes here.

Provenance

The following attestation bundles were made for cc_session_control-0.4.0.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.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cc_session_control-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd49d98808d2005612c99e42ecf0a9843aa9b2d671a5f47bf2ccf806aa295dbc
MD5 ab75e0e900b6321baff743975cb9cf33
BLAKE2b-256 65e77094812eebe64dd1f3e12bfbf6616c89599a588d98d9c7f2c6a828262fb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cc_session_control-0.4.0-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