โœจ Open Source

Magically easy
worktree management

ccswitch is the one CLI tool for all your git worktree needs. Perfect for juggling features, experiments, or Claude Code sessions without the context-switching headaches.

Terminal
$ curl -sSL https://ccswitch.dev/install.sh | bash
๐Ÿš€ Quick session creation
๐Ÿš Shell integration
๐Ÿงน Smart cleanup

Everything you need

Powerful features that make managing git worktrees a breeze

๐Ÿš€

Quick Session Creation

Describe what you're working on in plain English and get a branch and worktree instantly.

๐Ÿ“‹

Interactive Session List

Beautiful TUI shows all your active sessions. Navigate with arrow keys, select with Enter.

๐Ÿงน

Smart Cleanup

Remove worktrees and optionally delete branches. Keep your workspace pristine.

๐Ÿ—‘๏ธ

Bulk Operations

Spring cleaning made easy with cleanup --all. Remove all worktrees in one command.

๐Ÿš

Shell Integration

Automatically cd into new worktrees. No copy-pasting paths ever again.

๐ŸŽจ

Beautiful Output

Colour-coded messages and clean formatting make your terminal a joy to use.

How it works

Simple workflow, powerful results

1

Describe your work

Tell ccswitch what you're working on

2

Auto branch creation

Converts to a clean branch name

3

Centralised storage

Creates worktrees in ~/.ccswitch

4

Start coding

Automatically navigates you there

See it in action

Common workflows made simple with ccswitch

โœจ

Create Session

Start a new feature

๐Ÿ“‹

List Sessions

View all worktrees

๐Ÿ”„

Switch Context

Jump between features

๐Ÿงน

Clean Up

Remove completed work

Terminal Output bash
$ ccswitch # Interactive prompt appears ๐Ÿš€ What are you working on? Fix authentication bug โœ“ Created session: feature/fix-authentication-bug Branch: feature/fix-authentication-bug Path: /home/user/.ccswitch/worktrees/project/fix-authentication-bug # You're automatically switched to the new directory!
$ ccswitch list # Interactive TUI appears โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Active Sessions โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ โ–ธ feature/fix-authentication-bug โ”‚ โ”‚ feature/add-payment-gateway โ”‚ โ”‚ feature/refactor-ui-components โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ # Use โ†‘โ†“ to navigate, Enter to select, q to quit
$ ccswitch switch fix-auth โœ“ Switched to session: fix-authentication-bug Branch: feature/fix-authentication-bug # Or use interactive mode: $ ccswitch switch # Select from list of sessions
$ ccswitch cleanup --all โš ๏ธ You are about to remove the following worktrees: โ€ข feature-1 (feature/feature-1) โ€ข feature-2 (feature/feature-2) โ€ข bugfix-1 (feature/bugfix-1) Press Enter to continue or Ctrl+C to cancel... Delete associated branches? (y/N): y โœ“ Successfully removed: feature-1 โœ“ Successfully removed: feature-2 โœ“ Successfully removed: bugfix-1 โœ… All 3 worktrees removed successfully!