hn.today

Show HN: Tmux-restore saves tmux windows and agent sessions across reboots

github.com3 points1 comments
Screenshot of Show HN: Tmux-restore saves tmux windows and agent sessions across reboots

tmux-restore is a tool for preserving tmux workspaces across reboots, including sessions, windows, pane layouts, working directories, and scrollback. Its central benefit is that supported coding agents - Claude Code, Codex, Gemini CLI, opencode, and pi - can resume the specific conversations they were handling, rather than merely restarting as fresh processes. The project addresses two kinds of loss at once: the structure of a developer’s terminal workspace and the context held in long-running agent sessions.

It builds on tmux-resurrect and tmux-continuum: tmux-resurrect records workspace state and scrollback every minute, while small adapters locate each agent’s conversation ID in its session files and save a command to reopen it with the same flags. A shutdown service takes an additional snapshot as the machine goes down; tmux-continuum restores the workspace when tmux starts. Editors and monitors are restarted, but other commands, such as a deployment or development server, are restored at the prompt without being run automatically. Installation is provided by a shell script that can install missing dependencies and can be rerun for updates. Shutdown handling uses systemd on Linux and launchd on macOS; adapters for other agents can be added.

Read on github.com1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.