tmux-restore - Reboot-proof tmux with agent session resume

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

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, then puts it all back when tmux starts. Sessions, windows, splits, working directories, and scrollback return intact. Panes running Claude Code, Codex, Gemini CLI, opencode, or pi reopen the exact conversation they were in, with the same flags. Editors and monitors restart automatically, while risky commands like deploys or dev servers come back typed on the prompt, waiting for Enter. Install with a single curl command; it sets up tmux, TPM, and plugins for you.

Reboot-proof tmux. Your coding agents pick up mid-conversation.
  1. heding

    OOH I think this is a neat solution for a real problem I'm experiencing, I really liked the decision not the invent the wheel and use tools that have been working for years now (tmux continuum and resurrect) and just add the missing layer on top of them.

    OTOH My terminal today is only a bunch of agents, I don't ever run any commands myself anymore, I just tell my agent to do so, meaning I don't have any processes, history or anything that I care of, it's all inside the agent itself. so I'm wondering whether I really need this whole tmux wrapping and not just to expect my terminal app to be capable to handle those --resume commands for me.

  2. ghshephard

    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 changed.

    Really interested to see if restore lives up the foundations that it's built on.

  3. boldi

    Hi everyone I built this since it'd be so frustrating to have all my tmux windows with different paths and layouts all destroyed when restarting my computer (e.g. for installing drivers). It also resumes e.g. claude code sessions. Hope it helps!

  4. Roark66

    I've made a very similar tool github.com/lukolszewski/session-keeper

    But my tool supports pi, claude code and copilot cli as this is what I use. It also saves any tail -f and few other processes I tend to leave running for a long time as well as folders I'm in.

    My tool is likewise built on top of the same tmux plugins so it saves windows layouts, names etc.

    After I started using it, especially on a Windows work laptop (in WSL) that has a habit of restarting almost every night to "do updates" I don't know how could I ever live without it.

    But my tool saves every few min on a schedule as well as on keystroke. I didn't need save on shutdown, because my main use case is protecting from unexpected restarts such as a mashine crash or those updates pushed by corporate it every night.

    It is very cool creating such tools has become so easy one can just casually do it without spending days of time on it. That's a great benefit of AI.

    Another tool I find indispensable for pi, although it's still a work in progress is my tool use permission/classified called adaptive-acl (same github account). It has a very elaborate treesitter based deterministic classification layer plus an llm feature that extracts the intent from the user context and converts it into deterministic rules.

    So there is no llm call on every tool use, just those tgat don't match the deterministic rules.

    My favourite feature is good level of control on the grants, ability to preview them, alter them, export, import. I also […]

  5. hxugufjfjf

    I’m pretty sure I’ve used tmux-ressurect for this. What’s the difference?

More from this day

2026-11-07