ericblue

Cmux Session Manager — Development skill for Claude Code

Development community

Snapshot and restore cmux workspaces with Claude Code session resumption.

How to install Cmux Session Manager

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ericblue/cmux-session-manager and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cmux Session Manager does

Snapshot and restore cmux workspaces with Claude Code session resumption.

Alternatives in Development

  • Ccmanager — 940+ Session manager supporting 8 coding agents with smart auto-approval 946 ★
  • Cmux — cmux: tmux for Claude Code 600 ★
  • Tmux Claude Session Manager — Run many Claude Code sessions across your projects, each in its own tmux session — then list them, see which a 380 ★

README

cmux-session-manager

Snapshot and restore [cmux](https://cmux.com/) workspaces with Claude Code session resumption.

When cmux crashes or is restarted, this tool recreates your workspace layout — splits, panels, working directories, Claude sessions, and optionally terminal commands — and resumes everything where it left off.

How It Works

  1. **Snapshot** reads cmux's session state file to capture all windows, workspaces, panels, and their layout (splits, orientations, working directories).

  2. It cross-references running Claude processes (`ps`) with their `--session-id` flags, mapping each Claude panel to its active session. For non-Claude terminal panels, it detects running foreground commands (dev servers, watchers, etc.) via process inspection.

  3. **Restore** recreates the workspace structure using `cmux` CLI commands, targeting each panel by surface ref to ensure commands land in the correct split. Claude sessions resume with `claude --resume `, and terminal panels `cd` to their original directories. With `--run-commands`, captured terminal commands are re-launched automatically.

Quick Start

# Take a snapshot of all workspaces
make snapshot

# List active Claude sessions
make list-active

# Show detailed info for a workspace
make show W=myproject

# After a crash — preview the restore plan
make restore-dry-run W=myproject

# Restore a workspace (auto-executes inside cmux, prompts for confirmation)
make restore W=myproject

# Respawn: snapshot + kill + restore in one step
make respawn W=myproject

Common Workflows

Recover after a cmux crash

# See what you had running
make list-snapshots

# Inspect a specific snapshot to verify it has what you need
make show F=cmux-20260405-161401

# Preview the restore plan
make restore-dry-run

# Restore everything (requires typing 'yes' for multi-workspace)
make restore

Respawn a misbehaving workspace

# Check current state
make show W=devops-work

# Snapsho