Skip to content

nomanr/ccbrb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccbrb

Claude Code, be right back.

Save your running Claude Code sessions, close them, and bring them all back later.

final.mp4

Quick start

npx ccbrb

Commands

Command What it does
npx ccbrb brb Save all running sessions and close them
npx ccbrb back Reopen all saved sessions (skips already running ones)
npx ccbrb back one Pick a single session to resume in the current terminal
npx ccbrb status View saved sessions with titles and paths

Running npx ccbrb without a command opens an interactive picker.

How it works

Command Details
brb Finds running Claude processes, saves their session IDs and working directories to ~/.claude/session-manifest.json, then shuts them down. Running it again overwrites the manifest.
back Reads the manifest, skips sessions already running, and reopens the rest in their original tabs (or new ones).
back one Pick one session and resume it right here in the current terminal.
status Shows saved sessions with titles and paths. Titles come from Claude's session metadata, or the first prompt if untitled. Add --verbose for session IDs.

Supported terminals

iTerm2, Terminal.app, tmux, kitty, WezTerm, GNOME Terminal, Konsole, Windows Terminal.

Requirements

  • Node.js >= 18
  • macOS or Linux

License

MIT

About

Claude Code, be right back. Save and restore all your Claude Code sessions across terminal restarts.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors