Claude Restore — Development skill for Claude Code
Restore Claude Code sessions on Linux after a reboot, crash or accidental terminal close.
How to install Claude Restore
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open alexcpn/claude-restore and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Restore does
Restore Claude Code sessions on Linux after a reboot, crash or accidental terminal close. Reopens them with claude --resume as gnome-terminal tabs in the right folders: automatically at login, or from a GTK picker of your 15 most recent sessions. Single Python file, systemd user timer, GNOME.
Alternatives in Development
- Crash Analysis 2.3k ★
- React Native Movie App — Get hands-on with React Native and Expo in this crash course 787 ★
- Engage.Crash — Crash → root cause → reachability → empirical exploitability verdict (native bugs) 348 ★
README
claude-restore
Bring your [Claude Code](https://claude.com/claude-code) terminal sessions back on Linux, after a reboot, a crash, or an accidental quit.
- Pick from a list: press Super, type
restore, tick the sessions you want, and they reopen as tabs in one new terminal window. - Automatic after a reboot: sessions that were open when the machine went down reopen at login.
It is a single Python file. The only dependency beyond Python is the GTK 3 bindings that GNOME desktops already ship.
Requirements
- Linux with a GNOME-style desktop and
gnome-terminal - PyGObject with GTK 3 for the picker dialog; most GNOME desktops include it
- systemd user services
- Python 3.8 or newer
- Claude Code, with
claudeon yourPATHor at~/.local/bin/claude
Developed and tested on Pop!_OS (GNOME, X11). On Debian or Ubuntu, the desktop packages can be installed with:
sudo apt install gnome-terminal python3-gi gir1.2-gtk-3.0
Install
git clone https://github.com/alexcpn/claude-restore.git
cd claude-restore
python3 claude_restore.py install
`install` records the absolute path of the script, so if you move the folder, run it again.
It creates three things, all in your home directory:
| File | Purpose |
|---|---|
~/.config/systemd/user/claude-restore-snapshot.{service,timer} |
Records running sessions every minute |
~/.config/autostart/claude-restore.desktop |
Reopens the previous boot's sessions at login |
~/.local/share/applications/claude-restore.desktop |
Adds "Claude Restore" to the app launcher |
If the app does not appear when you search for it, log out and back in.
Usage
Press **Super**, type **restore**, and press Enter. The list shows the 15 most recent sessions that are not running, with their last-active time, title and folder.
| Key | Action |
|---|---|
| ↑ ↓ | Move between sessions |
| Space | Tick or untick the highlighted session |
| Enter | Reopen the ticked sessions, or the highlighte |
Related Skills
Resume Sessions
Recover and autonomously resume open Claude Code sessions across the 4 accounts after a crash or reboot, and u
ArbiterMCP
Stop babysitting Claude Code and Codex. One desktop app for Windows and Linux: every terminal on one screen, a
De Engineer
De-engineering pass — remove accidental complexity from a target while preserving behavior, tests green after
Agentbar Menubar
GNOME/Linux tray app for monitoring provider usage, resets, spend, and headroom
Herdr Agent Resume
Herdr mod: bring Claude Code and Codex sessions back after a reboot (Ctrl+Shift+R)
Claude Desktop Watchdog
Claude Desktop on Windows will not reopen after an update and you reboot. A dead instance is holding the singl
Related Agents
macOS System Operator
Mac housekeeping and CLI operations — installing tools (brew/npm/curl installers), logins that open a browser,
Byok Token Security Expert
BYOK (Bring-Your-Own-Key) and OAuth token security expert. Deep on cross-platform OS keychain integration (mac
Design UI Designer
HIG-conformant GTK/libadwaita reviewer for Sessions Chronicle. Validates proposals against GNOME conventions,