lazy-tmux: restore tmux sessions lazily, with scrollback

Lobsters Hottest Tools

Summary

lazy-tmux is a CLI tool that snapshots tmux sessions with running processes and scrollback, and restores them lazily when selected from a TUI picker.

<p>A tmux session manager in Go. It lists all saved sessions as a tree, but only restores one — its processes and scrollback — when you actually open it, instead of bringing everything back eagerly like resurrect/continuum.</p> <p>The part I'd most like feedback on is the restore model: what gets re-run is controlled by an allow/denylist matched as regexes over the full command, so servers relaunch but destructive commands don't.</p> <p>Works with tmux 2.9–3.7b, one-line install.</p> <p><a href="https://lobste.rs/s/z1alry/lazy_tmux_restore_tmux_sessions_lazily">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 07/21/26, 04:41 PM

# lazy-tmux: lazy tmux session manager with scrollback restore Source: [https://lazy-tmux.xyz/](https://lazy-tmux.xyz/) ![lazy-tmux logo – lazy tmux session manager with scrollback restore](https://lazy-tmux.xyz/assets/logo-white.svg) Session manager with scrollback restore\. CLI that snapshots tmux sessions with running processes and scrollback and restores them lazily and seamlessly when you select one\. Try lazy\-tmux right now:`docker run \-it \-\-rm alchemmist/lazy\-tmux:latest` ## Demo Preview ![lazy-tmux: save sessions, kill the tmux server, then restore from the TUI picker](https://lazy-tmux.xyz/assets/demo.gif)A tmux session with a shell, a running`top`, and a deploying service\. We detach, run`tmux kill\-server`to wipe everything, then bring it all back by picking the session in the TUI — the shell's scrollback and the running processes come back intact\.

Similar Articles

Tmux plugin to quickly switch between sessions

Lobsters Hottest

tmux-underkeys is a Tmux plugin that assigns mnemonic shortcut keys to session names by underlining a unique character in each session name, allowing instant keyboard-driven session switching via a configurable trigger key.

thundersnap v0.01: an undo button for everything

Lobsters Hottest

Thundersnap is an experimental distributed filesystem from Tailscale that uses btrfs snapshots and Tailscale networking to provide undo-like functionality and efficient replication across computers. It is currently a toy, not production-ready.