I tend to have about 5 sessions going at a time, and about 5 projects open at a time, so about 25 open Claude Code sessions. I’m not working on all of them at once, but I leave them open so they’re there when I switch back. A reboot or a VS Code restart kills every Claude session, though, and resuming them by hand means digging up each session’s ID, since claude --continue only picks the newest one in a folder.
To make it easier in iTerm2, I wrote an AutoLaunch script that saves every window’s tabs, splits, and the session running in each pane once a minute. A second script types claude --resume into each pane after a reboot.
For VS Code, I wrote an extension that adds a “Claude: Restore Sessions” command that does the same thing for each terminal in a workspace.