mochi
cmux · the fork

cmux Mochi

A small set of ergonomic additions on top of cmux, for living inside agent-driven terminal work. A few are genuinely new; most are sharper takes on things cmux already does — tagged so you can tell which is which.

new doesn't exist upstream  ·  extends cmux builds on an existing cmux feature

v0.64.151 · built on current upstream · mochiexists/cmux-mochi

Agents & sessions

Resume mode — you choose how

extends cmux

cmux already re-runs an agent's resume command on reopen. Mochi adds a setting: Medium (the default) pre-types the resume command and waits for you to submit it — so reopening puts the command in front of you to run, rather than auto-running. Full auto-runs it, Off starts clean. Per-pane, so the right session returns to the right tab.

Settings → Terminal · default Medium

Scrollback that persists across quits and crashes

extends cmux

A restored pane keeps its previous scrollback, so reopening a window — after a clean quit or a crash — looks exactly like you left it instead of a blank shell, even for live TUIs that were never formally detected as an agent.

Codex close-and-resume

new

Detaching from a Codex thread now fires a real end-of-session signal, so closing it stages the resume command the same way quitting a Claude session does. And that command is only staged once Codex has actually written the session to disk — open a thread, never prompt it, and you won't be handed a resume that points at a session id that was never saved.

depends on the Mochi Codex fork (adds the ThreadUnsubscribe hook event) — lands cleanly if that merges upstream into Codex

Tabs & navigation

Reveal in Finder · Copy Path, on a tab

extends cmux

cmux can reveal paths in Finder; Mochi puts Reveal in Finder and Copy Path on the surface tabs themselves — a terminal reveals its working directory, a markdown pane reveals the file, and a browser on a local file:// page reveals that file, selected in Finder.

right-click tab → Reveal in Finder

Reopen Closed Tab, with its scrollback

extends cmux

cmux reopens closed items; Mochi restores the closed tab's scrollback and last command too, so it comes back as the tab you actually had rather than an empty pane in the same slot.

Sidebar spring-load

new

Drag a session onto a collapsed workspace in the sidebar and it opens immediately, so you can drop the session right where it belongs — no pre-navigating.

Monitoring

Task Manager as a tab or full page

extends cmux

cmux already has the task manager; Mochi makes it openable as a normal tab or a dedicated full-area page — so process detail lives where you're working instead of only in a menu.

Always-on CPU & memory footer

new

A persistent CPU and memory readout pinned in the sidebar footer. Ambient, always there, catching the spike before you go looking for it.

Browser

One-click "open externally"

extends cmux

cmux can already route web opens to your system browser when the in-app browser is off. Mochi adds a right-click Open in External Browser toggle on the New Browser button — with a button glow — so it's one obvious control instead of a setting you have to go find.

right-click New Browser → Open in External Browser

Each item is a self-contained change on top of current upstream cmux, written to be offered back. If your team uses cmux and any of it looks useful — new or extension — it's yours: mochiexists/cmux-mochi.

528 Hz