Loading video...

Video Failed to Load

Go Home

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

55,605 views • 6 months ago •via X (Twitter)

39 Comments

maddada • ghostex.dev's profile picture
maddada • ghostex.dev6 months ago

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)

cmux's profile picture
cmux6 months ago

Free & open source (GPL). GitHub:

synabun.ai's profile picture
synabun.ai6 months ago

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.

tiff ☀️'s profile picture
tiff ☀️6 months ago

FINALLY

BITEDECK's profile picture
BITEDECK6 months ago

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

Lawrence Chen's profile picture
Lawrence Chen6 months ago

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

BITEDECK's profile picture
BITEDECK6 months ago

Thanks Lawrence.

Jason Haugh's profile picture
Jason Haugh6 months ago

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.

Luong NGUYEN's profile picture
Luong NGUYEN6 months ago

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

Dmitry's profile picture
Dmitry6 months ago

@warpdotdev when will we have this ?

AgentsRoom.dev's profile picture
AgentsRoom.dev6 months ago

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

Heisenberg's profile picture
Heisenberg6 months ago

Is this possible in tmux?

Timur Yessenov's profile picture
Timur Yessenov6 months ago

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's profile picture
Plamen6 months ago

A whole CLI for --continue ? XD

Timur Yessenov's profile picture
Timur Yessenov6 months ago

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's profile picture
kmiterror6 months ago

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's profile picture
gary IH fung6 months ago

Revolutionary!

Tunde's profile picture
Tunde6 months ago

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

Jason Glaspey's profile picture
Jason Glaspey6 months ago

This is hot.

lucas gu's profile picture
lucas gu5 months ago

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

s00pcan's profile picture
s00pcan6 months ago

I'm literally implementing this right now with systemd+tmux+codex lol

🔥 nor's profile picture
🔥 nor6 months ago

pi

onecookie's profile picture
onecookie6 months ago

This is the stuff that makes agent workflows feel less fragile. Losing the terminal is fine, losing the run context sucks.

Parth Patel's profile picture
Parth Patel6 months ago

incredible

s.h's profile picture
s.h6 months ago

Nice. 👌

Cynthia Rohr's profile picture
Cynthia Rohr6 months ago

Have you fixed the @ symbol issue for non english keyboards... that would be amazing!

lifcc's profile picture
lifcc6 months ago

cmux hooks setup is the sharp part here. For Claude Code/Codex/OpenCode, does restore cover only the session process, or also terminal cwd/env after quits and reboots?

Business Mind AI's profile picture
Business Mind AI6 months ago

Session restore is one of those boring features that becomes huge once agents are real work, not demos. The failure mode is rarely the terminal closing. It is losing the reasoning trail, pending approvals, and enough context to safely resume without starting over.

Danizord ⏩'s profile picture
Danizord ⏩6 months ago

does it support restoring state for ssh reconnections?

shirtwascash🇺🇸⚒️🗽's profile picture
shirtwascash🇺🇸⚒️🗽6 months ago

Why no Linux? Sir plz

GB Jeong's profile picture
GB Jeong6 months ago

this is it !

swordholder0's profile picture
swordholder06 months ago

Not support ssh... a little bit disappointed

Lawrence Chen's profile picture
Lawrence Chen6 months ago

good point we will fix

swordholder0's profile picture
swordholder06 months ago

thanks!

Gabe's profile picture
Gabe6 months ago

If you add the communication system I have in this I'd use it!

Michael Kremenetsky's profile picture
Michael Kremenetsky6 months ago

This is great

Balance's profile picture
Balance6 months ago

Ty ty

swordholder0's profile picture
swordholder06 months ago

@manaflowai Cannot imagine you just support this. It is good. I used to manually do that for every update

Duoduo's profile picture
Duoduo6 months ago

Session restore sounds small until you live inside the run. A reboot should be an interruption, not amnesia. If an agent cannot survive process death, it is still a demo wearing a systems coat.

Related Videos