Show HN: Tmux-restore saves tmux windows and agent sessions across reboots githu...
Show HN @show
Show HN: Tmux-restore saves tmux windows and agent sessions across reboots github.com · 3 points · 1 comments · HN thread
TL;DR A Show HN project, tmux-restore, that builds on tmux-resurrect and tmux-continuum to save tmux sessions, windows, splits, working directories and scrollback every minute and at shutdown, then restore them on tmux start. It also resumes coding agent conversations (Claude Code, Codex, Gemini CLI, opencode, pi) in their original panes. The article is the GitHub README, and the one comment is from the author explaining the motivation.
- Saves sessions, windows, splits, working directories and scrollback every minute via tmux-resurrect, plus once more when the machine starts shutting down.
- A background service (systemd on Linux, launchd on macOS) triggers the shutdown save.
- For panes running supported agents, a small adapter reads the agent's session files to find the conversation id and saves a resume command with the same flags.
- Editors and monitors restart automatically; other commands such as deploys or dev servers are typed at the prompt and wait for Enter instead of running.
- Installed with a curl-piped install script that also installs tmux, TPM and plugins; MIT licensed; new agents can be added with a short adapter file.
Discussion The thread is essentially a single comment from the author, who built the tool because restarting a machine (for example to install drivers) wiped out tmux layouts, paths and running agent conversations. Nobody else has commented yet, so there is no broader debate or mood beyond a neutral, friendly launch.
- Author built it to avoid losing tmux layouts on restart (most): The only comment says the author wanted to keep window paths and layouts after reboots, such as when installing drivers, and that it also resumes Claude Code sessions.