JSPM

  • Created
  • Published
  • Downloads 260
  • Score
    100M100P100Q84501F
  • License MIT

TUI application for managing multiple Claude Code sessions across Git worktrees

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ccmanager) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    CCManager - Claude Code Session Manager

    CCManager is a TUI application for managing multiple Claude Code sessions across Git worktrees.

    https://github.com/user-attachments/assets/a6d80e73-dc06-4ef8-849d-e3857f6c7024

    Features

    • Run multiple Claude Code sessions in parallel across different Git worktrees
    • Switch between sessions seamlessly
    • Visual status indicators for session states (busy, waiting, idle)
    • Create, merge, and delete worktrees from within the app
    • Configurable keyboard shortcuts
    • Command configuration with automatic fallback support
    • Status change hooks for automation and notifications

    Why CCManager over Claude Squad?

    Both tools solve the same problem - managing multiple Claude Code sessions - but take different approaches.

    If you love tmux-based workflows, stick with Claude Squad! It's a great tool that leverages tmux's power for session management.

    CCManager is for developers who want:

    🚀 No tmux dependency

    CCManager is completely self-contained. No need to install or configure tmux - it works out of the box. Perfect if you don't use tmux or want to keep your tmux setup separate from Claude Code management.

    👁️ Real-time session monitoring

    CCManager shows the actual state of each Claude Code session directly in the menu:

    • Waiting: Claude is asking for user input
    • Busy: Claude is processing
    • Idle: Ready for new tasks

    Claude Squad doesn't show session states in its menu, making it hard to know which sessions need attention. While Claude Squad offers an AutoYes feature, this bypasses Claude Code's built-in security confirmations - not recommended for safe operation.

    🎯 Simple and intuitive interface

    Following Claude Code's philosophy, CCManager keeps things minimal and intuitive. The interface is so simple you'll understand it in seconds - no manual needed.

    Install

    $ npm install
    $ npm run build
    $ npm start

    Usage

    $ npx ccmanager

    Environment Variables

    CCMANAGER_CLAUDE_ARGS

    ⚠️ Deprecated in v0.1.9: CCMANAGER_CLAUDE_ARGS is no longer supported. Please use the Command Configuration feature instead.

    Keyboard Shortcuts

    Default Shortcuts

    • Ctrl+E: Return to menu from active session
    • Escape: Cancel/Go back in dialogs

    Customizing Shortcuts

    You can customize keyboard shortcuts in two ways:

    1. Through the UI: Select "Configuration" → "Configure Shortcuts" from the main menu
    2. Configuration file: Edit ~/.config/ccmanager/config.json (or legacy ~/.config/ccmanager/shortcuts.json)

    Example configuration:

    // config.json (new format)
    {
      "shortcuts": {
        "returnToMenu": {
          "ctrl": true,
          "key": "r"
        },
        "cancel": {
          "key": "escape"
        }
      }
    }
    
    // shortcuts.json (legacy format, still supported)
    {
      "returnToMenu": {
        "ctrl": true,
        "key": "r"
      },
      "cancel": {
        "key": "escape"
      }
    }

    Note: Shortcuts from shortcuts.json will be automatically migrated to config.json on first use.

    Restrictions

    • Shortcuts must use a modifier key (Ctrl) except for special keys like Escape
    • The following key combinations are reserved and cannot be used:
      • Ctrl+C
      • Ctrl+D
      • Ctrl+[ (equivalent to Escape)

    Command Configuration

    Screenshot From 2025-06-18 16-43-27

    CCManager supports configuring the command and arguments used to run Claude Code sessions, with automatic fallback options for reliability.

    Features

    • Configure the main command (default: claude)
    • Set primary arguments (e.g., --resume)
    • Define fallback arguments if the primary configuration fails
    • Automatic retry with no arguments as final fallback

    Quick Start

    1. Navigate to ConfigurationConfigure Command
    2. Set your desired arguments (e.g., --resume for resuming sessions)
    3. Optionally set fallback arguments
    4. Save changes

    For detailed configuration options and examples, see docs/command-config.md.

    Status Change Hooks

    CCManager can execute custom commands when Claude Code session status changes. This enables powerful automation workflows like desktop notifications, logging, or integration with other tools.

    Overview

    Status hooks allow you to:

    • Get notified when Claude needs your input
    • Track time spent in different states
    • Trigger automations based on session activity
    • Integrate with notification systems like noti

    For detailed setup instructions, see docs/state-hooks.md.

    Development

    # Install dependencies
    npm install
    
    # Run in development mode
    npm run dev
    
    # Build
    npm run build
    
    # Run tests
    npm test
    
    # Run linter
    npm run lint
    
    # Run type checker
    npm run typecheck