I do most of my work through coding agents, one cmux workspace per task, grouped by project (how the loop works). On 17 October 2026 I had 68 workspaces open in 9 groups. With that many, starting an agent takes seconds. What took my time was finding the session that had finished and was waiting for me.
cmux-sidebar replaces the left sidebar of cmux, a macOS terminal for coding agents built on Ghostty. I started from its workspace example and built the filtering, nested groups and agent-state indicators around it.
What it does
-
Groups nest by name. A group called
Work/Backend/APIshows as API under Backend under Work, and each level folds on its own. Renaming or moving a group takes its subgroups with it. - An orange dot means the agent is working, also while a subagent runs. Green means its turn finished while I was in another workspace, and it clears when I open that workspace.
-
A folded group still lists its working and finished rows, with a dim path
such as
Backend › API ›when they sit in a subgroup. - Active and Favorites filters at the top of the list.
- Favorites and title colors are cmux's own pin and workspace color, so they survive a restart and the built-in sidebar shows them too.
-
Multi-select with bulk close, drag and drop into and out of groups, and a
short guide to every icon behind the
?button.
Keeping the right sessions visible
I returned to cmux because its custom-sidebar runtime exposes workspace and agent state to a single JavaScript file. That let me organize sessions around how I work: one project group, subgroups for its parts, and one workspace per task.
The main distinction is between work in progress and a result waiting for me. Waiting for input, idle and ended do not count as working, so the orange dot shows only on sessions that are really busy. The green dot stays until I open the workspace. An optional clock, off by default, marks work that finished in the last hour.
The Active filter shows only running agents and unread results. Folding a group keeps those rows visible, with their subgroup path. I can put a project out of the way without losing track of its agents.
Updating only what changed
cmux sends the sidebar fresh data about once a second. My first version redrew far too much on each tick: on a test tree of 60 workspaces three levels deep, a tick with no changes sent about 1,144 updates to the native view. I moved every read behind memos that fire only on a real change and gave each workspace its own signal. That tick now sends nothing, and an agent starting work updates only its own row and the Active count.
Scrolling had a different cost. cmux processes every node of every row on each scroll frame, so rows now mount the dot, bookmark and badge only while they show. A plain row went from 13 nodes to 7. While scrolling my sidebar, which had 102 workspaces at the time, cmux's main thread went from about 85% busy to about 52%.
Both limits are covered by tests. Before every release I run the suite
against SidebarRuntime.js from the installed cmux app,
checking performance against the runtime users actually run.
Working with the cmux runtime
- An early change to the working-session indicator broke the group creation button. I added tests against the real runtime as I developed the sidebar into a standalone project.
- cmux keeps no record of when a turn finished or when I last opened a workspace. The sidebar tracks both in memory, so green dots are lost when cmux restarts. The optional clock is rebuilt from cmux data in most cases.
- Custom sidebars get no key events, so ⌘W cannot close a selection.
-
cmux groups are flat. The nesting lives in the group name, so the
built-in sidebar shows
Work/Backend.
Install
Paste this into a cmux terminal:
curl -fsSL https://github.com/s4ff0x/cmux-sidebar/releases/latest/download/install.sh | sh
The script downloads the latest release into
~/.config/cmux/sidebars/, checks it with
cmux sidebar validate and switches the left sidebar to it. It
has to run inside cmux, because cmux accepts CLI commands only from
processes it started. From another terminal the file still installs; then
right-click the sidebar button in cmux and pick cmux-sidebar. Running the
same command again updates it.
Custom Sidebars must be on in cmux settings, which is the default. Claude
Code works out of the box. For omp, install the hooks once with
cmux hooks omp install. Agents such as Codex, OpenCode or
Gemini should show the same dots once their hooks are installed with
cmux hooks setup, but I have not tested them.
To remove it, run the installer with --uninstall:
curl -fsSL https://github.com/s4ff0x/cmux-sidebar/releases/latest/download/install.sh | sh -s -- --uninstall Then pick another sidebar from the same right-click menu.
The source code, all releases and the issue tracker are on GitHub.
If something looks wrong, open an issue with your cmux version
(cmux --version).