CCManager - AI Code Agent Session Manager

CCManager is a CLI application for managing multiple AI coding assistant sessions (Claude Code, Gemini CLI, Codex CLI, Cursor Agent, Copilot CLI, Cline CLI, OpenCode, Kimi CLI) across Git worktrees and projects.
https://github.com/user-attachments/assets/15914a88-e288-4ac9-94d5-8127f2e19dbf
Features
- Run multiple AI assistant sessions in parallel across different Git worktrees
- Multi-project support: Manage multiple git repositories from a single interface
- Support for multiple AI coding assistants (Claude Code, Gemini CLI, Codex CLI, Cursor Agent, Copilot CLI, Cline CLI, OpenCode, Kimi CLI)
- Switch between sessions seamlessly
- Visual status indicators for session states (busy, waiting, idle)
- Create, merge, and delete worktrees from within the app
- Restore sessions after a restart: reopen the sessions that were running when CCManager last exited or crashed
- Copy Claude Code session data between worktrees to maintain conversation context
.worktreeinclude support: carry gitignored project files (.env, local certs) into newly created worktrees
- Configurable keyboard shortcuts
- Command presets with automatic fallback support
- Configurable state detection strategies for different CLI tools
- Status change hooks for automation and notifications
- Devcontainer integration
- Auto Approval (experimental): Automatically approve safe prompts using AI verification
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 -g ccmanager
Local Development
npm install
bun run build
npm start
Usage
ccmanager
Or run without installing:
npx ccmanager
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:
- Through the UI: Select Global Configuration → Configure Shortcuts from the main menu
- Configuration file: Edit
~/.config/ccmanager/config.json or .ccmanager.json for per-project settings (see Per-Project Configuration)
Example configuration:
// config.json (new format)
{
"shortcuts": {
"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)
Per-Project Configuration
CCManager supports per-project configuration by placing a .ccmanager.json file in your git repository root. Project settings are merged with the global config (~/.config/ccmanager/config.json), with project settings always taking priority.
Config files are read at startup. After editing them outside CCManager (by hand, or from another running CCManager), select Reload Config from Disk in the configuration screen to reload them.
For detailed configuration options and examples, see docs/project-config.md.
Configuring with an AI coding agent
This repository doubles as a plugin marketplace providing the ccmanager-config skill, which teaches Claude Code or Codex the whole configuration schema and ships a validator for it:
# Claude Code
claude plugin marketplace add kbwo/ccmanager
claude plugin install ccmanager-config@ccmanager