Developer builds terminal snapshot tool to restore Claude Code sessions after crashes
A developer has released a tool called claude-sessions that snapshots the full state of an iTerm terminal every five minutes using a launchd daemon and AppleScript. The snapshot records open tabs, working directories, and any active Claude Code sessions, storing up to 100 distinct states as a history file. After a machine crash, users can run a single command to restore all tabs to their previous directories and resume Claude sessions automatically. The developer deliberately avoided auto-restore, making users the explicit trigger to distinguish crashes from intentional quits. The project, available on GitHub, also includes a cross-project session picker that lets users resume any Claude Code session from any repository in a single interface.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in