kbwo/ccmanager

Coding Agent Session Manager for Claude Code / Gemini CLI / Codex CLI / Cursor Agent / Copilot CLI / Cline CLI / OpenCode / Kimi CLI

What it solves

Developers who work with AI coding assistants often juggle multiple sessions across different branches or projects. Managing these sessions manually — starting, stopping, switching, keeping track of which one is busy or waiting — is tedious and error-prone. CCManager solves this by providing a single terminal interface to create, monitor, and switch between AI coding sessions running in separate Git worktrees, without needing tmux.

How it works

CCManager runs as a CLI. You start it with ccmanager (or npx ccmanager). It detects the Git worktrees available in your project and lets you launch AI assistant commands (like claude, gemini, codex, etc.) in each. Each session runs in its own pseudo-terminal, and CCManager monitors its output to determine its state: idle, busy, or waiting for input. It shows these statuses in a menu, so you can see at a glance which session needs attention. You can switch between sessions with keyboard shortcuts, create or delete worktrees, copy session data from one worktree to another to preserve conversation context, and even restore sessions after a restart by replaying the same commands. It also supports configuration files (global and per-project) and hooks to trigger custom commands on status changes or worktree creation. For multi-project workflows, it can scan a directory for multiple Git repositories and manage them all from one interface.

Who it's for

This tool is aimed at developers who use AI coding assistants like Claude Code, Gemini CLI, Codex CLI, and others, and who want to run multiple sessions in parallel across different branches or projects. It's especially useful for those who don't use tmux or want a simpler, self-contained session manager. It's also for developers who want to automate session management with hooks, or who need to manage sessions inside devcontainers.

Highlights

  • No tmux dependency — works out of the box
  • Real-time status indicators for each session (busy, waiting, idle)
  • Supports many AI assistants: Claude Code, Gemini CLI, Codex CLI, Cursor Agent, Copilot CLI, Cline CLI, OpenCode, Kimi CLI, MiniMax Code, Grok Build
  • Create, merge, and delete Git worktrees from within the app
  • Copy Claude Code session data between worktrees to preserve conversation context
  • .worktreeinclude support to copy gitignored files (like .env) into new worktrees
  • Restore sessions after a restart or crash
  • Configurable keyboard shortcuts and command presets with fallback
  • Status change hooks and worktree creation hooks for automation
  • Devcontainer integration to run sessions inside containers
  • Multi-project mode to manage multiple repositories from one interface
  • Optional experimental auto-approval using an AI verifier

Related

  • Project
  • Project
  • Project
  • Project
  • Project