跳过导航
cmux now restores your Claude Code, Codex, and OpenCode sessions across quits and reboots.
0:00 / 0:28

cmux now restores your Claude Code, Codex, and OpenCode sessions across quits and reboots.

Lawrence Chen

@lawrencecchen5833 位关注者

在 X 上查看
510 个赞下载原帖

55,605 次观看

cmux now restores your Claude Code, Codex, and OpenCode sessions across quits and reboots. Run `cmux hooks setup` once. Requires v0.64.3.

39 条评论

评论来自 X (Twitter) 上的原帖

  • maddada • ghostex.dev 的头像

    @maddada

    Great work! Been doing this in vsmux and zmux for weeks now. It doesn't need hooks btw, see how I did it here: (native Ghostty fork) and /vsmux (vscode extension)

    5 个赞

  • cmux 的头像

    @manaflowai

    Free & open source (GPL). GitHub:

    3 个赞

  • synabun.ai 的头像

    @SynabunAI

    Session restoration across reboots is the kind of thing you don't know you need until you've lost a long context three times in a row.

    2 个赞

  • tiff ☀️ 的头像

    @tiffnami

    FINALLY

    1 个赞

  • BITEDECK 的头像

    @BITEDECKapp

    How do I drag in an image? Doesn’t work anymore in the new update… @lawrencecchen

    1 个赞

  • Lawrence Chen 的头像

    @lawrencecchen

    sry we'll fix in a minor patch. will be "shift" to drop as text (into claude code/codex) so should match behavior of dragging files into text buffers in vscode

    2 个赞

  • BITEDECK 的头像

    @BITEDECKapp

    Thanks Lawrence.

    1 个赞

  • Jason Haugh 的头像

    @jason_haugh

    Big one for me is the overnight runs. I'll kick off a long agent task before bed, mac decides to reboot for an update, morning comes and the whole thing's dead. Hooks like this fix the silent failure mode no one talks about. Installing today.

    1 个赞

  • Luong NGUYEN 的头像

    @luongnv89

    does it eat up the context - usage limit? i mean imagine you open cmux and all sessions have been restored, and you finish your 5h usage limit

    1 个赞

  • Dmitry 的头像

    @mitryco

    @warpdotdev when will we have this ?

    1 个赞

  • AgentsRoom.dev 的头像

    @AgentsRoomDev

    We’ve been doing this at for quite a while now : restoring Claude sessions, tabs, active terminals, and more. ➡️ Give it a try: 🔥

  • Heisenberg 的头像

    @heisenbzrg

    Is this possible in tmux?

  • Timur Yessenov 的头像

    @Timur_Yessenov

    session restore is underrated. once agents run across days, the hard part becomes less “can it code?” and more “can I reopen the exact run, inspect decisions, and continue without rebuilding context?”

  • Plamen 的头像

    @plamenworks

    A whole CLI for --continue ? XD

  • Timur Yessenov 的头像

    @Timur_Yessenov

    session restore is underrated. the difference between toy agent and daily driver is whether it survives quit/reboot/context reset without losing intent. next layer I’d want is searchable history of decisions + tool calls, not just terminal state.

  • kmiterror 的头像

    @kmiterror

    Hey man Great work. I'm diving through docs of cmux, but I can't find one thing Hook that I can customise same way as in tmux, which is triggered when workspace in cmux is changed. Tmux does it this way in .tmux.conf set-hook -g client-session-changed 'run-shell "~/.local/scripts/tmux-on-session-switch.sh #{session_name}"' Is this possible in cmux?

  • gary IH fung 的头像

    @garyfung

    Revolutionary!

  • Tunde 的头像

    @bulbview

    Been waiting for this capability, would also be useful to reinstate pills as well.

  • Jason Glaspey 的头像

    @jasonglaspey

    This is hot.

  • lucas gu 的头像

    @lucasgu

    i built a terminal for this too. do not need hooks. supports hermes, claude, codex and opencode.