Workspaces & Terminal

Workspaces & groups

Organize related tabs into workspaces, group workspaces in the sidebar, and move live tabs across workspaces with zero interruption.

A workspace is a folder of related tabs — one project's terminal, diff panel, and AI agent sessions sit together. Once you have several, sidebar groups keep them tidy, and you can move live tabs between workspaces anytime.

What a workspace contains

Each workspace has its own:

  • Primary directory — where new standard tabs' shells start (directories[0]). Opening isolated Git worktree tabs never overwrites this root directory.
  • Tabs and panes — terminals, Claude / Codex / Gemini (agy) / Pi / omp sessions, custom CLI profiles, diff panels, and web-browser panels.
  • Layout — split ratios, focus, and the active tab in each pane.

All layout state persists under ~/.purplemux/workspaces.json and ~/.purplemux/workspaces/{wsId}/layout.json. Closing the browser doesn't dissolve a workspace; tmux holds the shells open and the layout stays put.

Create a workspace

The first run gives you one default workspace. To add another:

  1. Click + New workspace at the top of the sidebar, or press ⌘N / Ctrl+N.
  2. Name it and pick a default directory — typically the repo root for that project.
  3. Hit Enter. The empty workspace opens.
Pick the right starting directory
The primary directory is the starting cwd of every new shell in this workspace (and the repo checked when you toggle an isolated Git worktree in Launch Session).

Moving live tabs between workspaces

Need to reorganize tabs without restarting a long-running agent or build? You have two ways to move a live tab to another workspace:

  • Drag & drop — drag any tab from its tab bar and drop it onto the target workspace in the sidebar.
  • Context menu — right-click the tab → Move to workspace → pick the destination workspace.

Under the hood, muxbay calls POST /api/layout/pane/[paneId]/tabs/[tabId]/move-workspace, renames the underlying tmux session (tmux rename-session), and migrates StatusManager state before updating both layouts — so the process keeps running seamlessly.

Rename and delete

In the sidebar, right-click a workspace (or use the kebab menu) for Rename and Delete. Rename is also bound to ⌘⇧R / Ctrl+Shift+R for the currently active workspace.

Deleting a workspace closes its tmux sessions and removes it from workspaces.json. There is no undo.

Switch workspaces

Click any workspace in the sidebar, or use the number row:

Action macOS Linux / Windows
Switch to workspace 1–9 ⌘1 – ⌘9 Ctrl+1 – Ctrl+9
Toggle the sidebar ⌘B Ctrl+B
Switch sidebar mode (Workspace ↔ Sessions) ⌘⇧B Ctrl+Shift+B

The order in the sidebar is the order the number keys map to. Drag a workspace up or down to change which slot it lives in.

Group workspaces

Once you have a handful of workspaces, drop them into groups by drag-and-drop in the sidebar:

  • Create a group — drag one workspace onto another and the sidebar offers to group them.
  • Rename — right-click the group header.
  • Reorder — drag groups up and down, or drag workspaces in and out.
  • Collapse — click the chevron on the group header.

Groups are purely visual organization. ⌘1 – ⌘9 still walks the flat order top-to-bottom.

What's next