by andrewboldi
Reboot-proof tmux: every session, layout and scrollback comes back, and Claude Code, Codex, Gemini CLI, opencode and pi reopen the conversations they were in.
# Add to your Claude Code skills
git clone https://github.com/andrewboldi/tmux-restoretmux-restore is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by andrewboldi. Reboot-proof tmux: every session, layout and scrollback comes back, and Claude Code, Codex, Gemini CLI, opencode and pi reopen the conversations they were in. It has 86 GitHub stars.
tmux-restore's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/andrewboldi/tmux-restore" and add it to your Claude Code skills directory (see the Installation section above).
tmux-restore is primarily written in Shell. It is open-source under andrewboldi on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh tmux-restore against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Ever rebooted and lost a dozen tmux windows, along with the agent conversations running in them? tmux-restore saves everything every minute and right before shutdown, and puts it back when tmux starts. Panes running Claude Code, Codex, Gemini CLI, opencode or pi reopen the exact conversation they were in.
tmux-restore runs on top of tmux-resurrect and tmux-continuum, which bring back sessions, windows, splits, working directories and scrollback. It adds:
tail -f,
journalctl -f, kubectl logs -f) and whatever you list in @resurrect-processes restart.
With zsh, anything else waits on the prompt for Enter, where tmux-resurrect leaves an empty shell.~/.zshrc or ~/.bashrc.Scrollback is saved to disk, so anything a pane showed, a password included, sits in a folder
only you can read. To not save it, add set -g @resurrect-capture-pane-contents 'off'.
curl -fsSL https://raw.githubusercontent.com/andrewboldi/tmux-restore/main/install.sh | bash
It installs whatever is missing (tmux, TPM, the plugins) and turns everything on. Run it again to update. Rather not run a script? Install by hand.
Already using tmux-resurrect and tmux-continuum? Keep them: your settings, your list of programs to restart and your saves carry over. The installer switches tmux-resurrect to a fork that lets only one restore run at a time (proposed upstream).
tmux-resurrect saves each pane and its command. For an agent's pane, a small adapter finds the conversation's id in the agent's own session files and saves the command that resumes it instead. A background service (systemd on Linux, launchd on macOS) makes the save at shutdown. More in how it works.
Using another agent? An adapter is one short file. Send it in (CONTRIBUTING.md),
or keep it to yourself in ~/.config/tmux-restore/agents/.
MIT. Built on tmux-resurrect and tmux-continuum by Bruno Sutic and contributors.