正在加载视频...

视频加载失败

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 次观看 • 6 个月前 •via X (Twitter)

39 条评论

maddada • ghostex.dev 的头像
maddada • ghostex.dev6 个月前

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 的头像
cmux6 个月前

Free & open source (GPL). GitHub:

synabun.ai 的头像
synabun.ai6 个月前

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 ☀️ 的头像
tiff ☀️6 个月前

FINALLY

BITEDECK 的头像
BITEDECK6 个月前

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

Lawrence Chen 的头像
Lawrence Chen6 个月前

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 的头像
BITEDECK6 个月前

Thanks Lawrence.

Jason Haugh 的头像
Jason Haugh6 个月前

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 的头像
Luong NGUYEN6 个月前

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 的头像
Dmitry6 个月前

@warpdotdev when will we have this ?

AgentsRoom.dev 的头像
AgentsRoom.dev6 个月前

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

Heisenberg 的头像
Heisenberg6 个月前

Is this possible in tmux?

Timur Yessenov 的头像
Timur Yessenov6 个月前

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 的头像
Plamen6 个月前

A whole CLI for --continue ? XD

Timur Yessenov 的头像
Timur Yessenov6 个月前

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 的头像
kmiterror6 个月前

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 的头像
gary IH fung6 个月前

Revolutionary!

Tunde 的头像
Tunde6 个月前

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

Jason Glaspey 的头像
Jason Glaspey6 个月前

This is hot.

lucas gu 的头像
lucas gu6 个月前

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

s00pcan 的头像
s00pcan6 个月前

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

🔥 nor 的头像
🔥 nor6 个月前

pi

onecookie 的头像
onecookie6 个月前

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

Parth Patel 的头像
Parth Patel6 个月前

incredible

s.h 的头像
s.h6 个月前

Nice. 👌

Cynthia Rohr 的头像
Cynthia Rohr6 个月前

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

lifcc 的头像
lifcc6 个月前

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 的头像
Business Mind AI6 个月前

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 ⏩ 的头像
Danizord ⏩6 个月前

does it support restoring state for ssh reconnections?

shirtwascash🇺🇸⚒️🗽 的头像
shirtwascash🇺🇸⚒️🗽6 个月前

Why no Linux? Sir plz

GB Jeong 的头像
GB Jeong6 个月前

this is it !

swordholder0 的头像
swordholder06 个月前

Not support ssh... a little bit disappointed

Lawrence Chen 的头像
Lawrence Chen6 个月前

good point we will fix

swordholder0 的头像
swordholder06 个月前

thanks!

Gabe 的头像
Gabe6 个月前

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

Michael Kremenetsky 的头像
Michael Kremenetsky6 个月前

This is great

Balance 的头像
Balance6 个月前

Ty ty

swordholder0 的头像
swordholder06 个月前

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

Duoduo 的头像
Duoduo6 个月前

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.

相关视频