Show HN: Tmux-restore saves tmux windows and agent sessions across reboots
Tmux-restore is a new plugin built on tmux-resurrect that automatically preserves window layouts and active AI coding agent sessions across machine reboots.
summary is enough It is a straightforward utility announcement whose core mechanism and features fit comfortably in a brief summary.
summary
Tmux-restore automates saving tmux windows, splits, scrollback, and active AI coding agent sessions like Claude Code across reboots. Built on top of tmux-resurrect and tmux-continuum, it saves state every minute and during system shutdown using systemd or launchd. When tmux restarts, command-line adapters automatically trigger the resumption flags for each agent. The project solves the modern developer pain point of losing long conversational contexts when machines restart.
key points
- Builds on established plugins tmux-resurrect and tmux-continuum to handle base window layouts, splits, and scrollback.
- Adds specific adapters for AI coding agents like Claude Code, Gemini CLI, and Pi to resume exact conversations mid-stream.
- Triggers backups both periodically every minute and right before system shutdown.
who should read it
Developers who use tmux combined with terminal-based AI coding agents and experience frequent reboots.
discussion warm
consensus
Commenters are enthusiastic about extending tmux recovery plugins to handle AI agent sessions, noting it directly addresses a frustrating friction point with tools like Claude Code.
pushback
A few users suggest that VM hibernation or alternative tools like herdr and session-keeper solve similar problems differently.
This is built on top of tmux-continuum & tmux-resurrect, tmux plugins which I've been using now for 10+ years - pretty much every day - they bring so much joy to using tmux.
Zero worries about having to restore local window settings - It's not uncommon for me to have 40+ panes split across 15+ windows. Windows / Dell / Security updates have me rebooting almost weekly - which means a restart of WSL - but, with continuum/ressurect - zero issues - all the windows, panes, scrollback (!) and with just a tiny bit of bash history foo - command history - are completely restored as though nothing had …
A long-time user of the underlying base plugins shares valuable real-world context on how well the foundational architecture performs.
Generated by an LLM from the article and thread. Check the sources before relying on it.