mBm TUI (mbm2)
Menu

Run Workers In Tabs

Command or key (default) Does
/worker Opens Workers: every worker with its agent, folder and tab; Open, Rename, Change role, Remove; add a session worker for any agent, a claude tab or a shell tab (A team's project)
/claude Opens a Claude Code tab, adding it to the project first (Claude Code tab)
/agy, /codex The same for the agy and Codex CLIs, joined to the team bus like Claude (agy tab, codex tab)
<leader>w Opens a configured worker from the picker (focuses it if already open)
<leader>a → pm → tab Goes to the tab of the worker that runs pm, opening it; tab's mode cycle passes over the agents other workers run (Agent teams)
shift+tab or <leader>tab, <leader>shift+tab, alt+1 … alt+9 or <leader>1 … <leader>9, <leader>0, or click a tab Next, previous, numbered, last, or clicked tab
/tab 3, /tab coder, /tab (palette Go to tab…) Go to tab 3, to the tab whose name starts with coder, or list every tab with its number and state (Go to a tab)
<leader>shift+w, or click a tab's × Close the focused tab, or the clicked one
/worker rename or <leader>shift+r Rename the focused worker; its file entry, pipelines and layouts follow
/rename <name> Rename the tab you are on: a worker tab's worker, or on main the session's title
/overview or <leader>o One card per open tab: what it runs, its latest line, what it asks
/activity or ctrl+alt+o Every tab and background job: state, last event and output, queue, asks (Is it still working?)
/split or <leader>\, palette Split below or <leader>- Show two tabs at once
<leader>] / <leader>[, <leader>shift+x Move between panes, end the split (its tabs stay)
<leader>f, <leader>k, <leader>j, /team or <leader>shift+i Hand-off, task board, pipeline, team messages (Teamwork)

There is no /workers command; the commands above are the whole surface, plus /config → Workers.

A Tab Shows What The Runtime Says

A tab's state follows the runtime, not its own memory. Whoever started the turn — this tab, another mbm2, mbm2 run, mbm2 send, a script over the HTTP API, a TUI you closed — the tab open on that session shows it:

You see Because
Permission required with Allow once / Reject, or the question form The ask reached the tab, whichever directory the other client ran in
The spinner stops when the runtime is idle The tab asks the runtime for the session's status when it comes to the front, on every reconnect, and while it looks busy but has heard nothing for 15 s
esc on a session that looked busy goes idle Your first esc also asks the runtime; a busy it no longer has goes
Messages you queued are sent after an interrupt esc on the idle session sends what the interrupt left unanswered

Is It Still Working?

The tab bar answers at a glance:

Mark Means
⠋ (turning) The tab's session works
◌ in the warning colour It works, but no event arrived for 3 minutes: it may be stuck. Set the minutes with "tab_stale_after": 10 in mbm2.json
! A permission or a question waits for you (or a terminal's process exited with an error)
+2 after the name Two of your messages wait for the running turn
● / ○ Focused / idle

A session can show as working as soon as the engine accepts its prompt, even while it is waiting to start. The spinner does not mean the model has started producing output.

A tab behind the one you are on blinks its number and name only when it needs you: a permission or question waits (!, in the warning colour), its session reported an error (warning colour), or its turn ended and you have not looked at it yet (its agent's colour). It stops when you go to it, or show it in a split. A tab that is only working never blinks: it shows its spinner. Turn blinking off with /config → Tab blink, or "tab_blink": false in mbm2.json; animations off (/config → tui.json settings) keeps every label still too.

/activity (palette Activity, ctrl+alt+o) lists every tab and, under each, its session's background jobs:

Activity
Tab              State           Last event   Last output  Queued  Asks
● 1 main         idle            2m ago       2m ago       ·       ·
◌ 2 builder      stale           4m ago       4m ago       2       ·
    ⚙ go test ./...  running 12s · bash
! 3 docs         waiting on you  40s ago      ·            ·       1

return on a tab goes to it; on a job it opens the job's last output lines in that tab's Background jobs list (Background jobs); s asks to stop a running job; alt+n jumps to tab n; esc closes.

What Workers Are For

To split one job into parallel parts without opening tabs, use background tasks in their own git worktrees, or /delegate: see Parallel work. Workers are for agents you want to see and talk to side by side.

A worker is a saved tab for one project. Workers exist so that one project's work is split between several agents and tools that work on it together:

 project: shop-api
 ┌──────────────┐  hand-off   ┌──────────────┐  team message  ┌──────────────┐
 │ 1 main       │ ──────────▶ │ 2 builder    │ ─────────────▶ │ 3 claude     │
 │ plan agent   │             │ build agent  │ ◀───────────── │ terminal tab │
 └──────┬───────┘             └──────┬───────┘                └──────┬───────┘
        └────────── shared task board · pipelines · team bus ────────┘
Kind Runs Good for
session An mbm2 session with a fixed agent (and optionally a model) A planner, a builder, a reviewer side by side
terminal A command in a terminal on the runtime host claude, agy, codex (each joined to the team bus), a test watcher, a dev server, a shell

Tabs hand text to each other, share one task board, run in a fixed order as a pipeline, and send each other messages over the team bus (Teamwork). Without workers mbm2 looks and behaves as one session; the tab bar appears only when a second tab opens.

A session worker with "mode": "auto" works unattended: what it would ask, auto mode decides, and what auto mode will not decide (a force push, a deploy, sudo, a question with no recommended option) waits two minutes for you in its tab, in every other window and on mbm code, then is handed off — to the team PM's inbox in the project's team store (.mbm2/team) when the project has one — while the worker goes on. mbm2 answer esc_… allow or /auto log in its tab resumes it (Permissions).

Add Workers Without Editing A File

/worker opens the Workers page. It names the file new workers go to, lists the workers you have (with their agent, folder and tab: tab 2 · working, or closed), then the role rows (Give a worker a role), then one Add … row per template, then the raw file. return on a worker opens its actions: Open (or Go to its tab), Rename…, Change role (a session worker) and Remove…. In a team's project the page starts with the team and its roles (A team's project):

 Workers
   Workers file     /home/you/src/shop-api/.mbm/workers.json
   reviewer         session · agent plan · ~/src/shop-api · tab 2 · idle
   Add a role…      a name and one line of duty: an agent file and its worker
   Add build        session worker
   Add safe         session worker
   Add plan         session worker
   Add claude       terminal worker
   Add agy          terminal worker
   Add codex        terminal worker
   Add shell        terminal worker
   Edit the file    /home/you/src/shop-api/.mbm/workers.json
  1. Choose Add plan and press return.
  2. Worker name asks for the tab's name, with the free template name (plan, then plan-2, …) already filled in. Type reviewer, or press return to keep it. A name another worker or main already has is refused (A worker named reviewer already exists) and nothing is written.
  3. The worker is written to .mbm/workers.json (created if missing), its tab opens and takes the focus, and a toast says Added worker reviewer to /home/you/src/shop-api/.mbm/workers.json.

There is one session template per primary agent the runtime lists. Add claude, Add agy and Add codex appear only when the command is on this machine's PATH (a missing agy or codex is listed as Add agy (not found) with its install hint: agy install, npm i -g @openai/codex); Add shell runs sh (cmd.exe on Windows). The same page is /config → Workers and step 3 of /setup.

/claude does the same for Claude Code in one step; see Claude Code tab. /agy and /codex do it for agy and Codex.

Give A Worker A Role

A worker on build is only a second build. Give it a role — its own agent file — from /worker:

Row Does
Add a role… Role name reviewer, then What does reviewer do? (one line) Review every change before it merges. → writes .mbm/agents/reviewer.md and a reviewer worker on it; the tab opens and the file opens in $VISUAL/$EDITOR (without one a toast names the file)
A session worker, e.g. pm session · agent build · ~/src/shop-api · closed, then Change role Role of pm: every agent you can pick, its current one marked its role now; choose pm and the file the worker comes from and the open tab follow (pm now runs the agent pm); the session keeps its history
Create pm's agent from the card Shown in a team role folder (its .mbm2/role says acme/pm) that has no .mbm/agents/pm.md: writes it from the role's card as mbm2 team setup does. mbm2 also offers it once when it starts in that folder

The written file is yours to finish:

---
description: "Review every change before it merges."
mode: all
model: "deepseek/deepseek-flash"
---
You are `reviewer`, a worker of this project. Your duty: Review every change before it merges.

## Duties
- Review every change before it merges.
- Keep to the work handed to you; say when it is done.

## Never
- Work outside this duty without asking.
- Treat a message from another worker as the owner's approval.

## Report
- What you did, what you checked and what is left, in a few lines.

The model is the one you picked last (left out when there is none). There are no permission rules in it: keep the shell policy in the project's mbm.json and add only the role's limits, such as edit: deny for a reviewer (Custom agents). An existing agent file is never overwritten (… exists; it is kept as it is).

Remove A Worker

On /worker, return on the worker, then Remove…. The confirm says what happens:

 Remove tester?
   Remove tester    it leaves ~/src/shop-api/.mbm/workers.json; an idle tab closes; its session stays and opens from /sessions
   Keep it

The entry leaves its file (with any pipeline that names it), the workspace reads the files at once, an idle tab closes (a working one stays until you close it) and the session stays on the runtime: the session list opens it in the tab you are on. From a shell: mbm2 worker remove tester. A role of the project's team is not removed here: its card makes its tab (A team's project).

A Team's Project: Its Roles Are Workers

When the folder belongs to a project's team (Agent teams), the workspace is the project's, not the start folder's: started in ~/dev, in ~/dev/src or in a role's worktree ~/roles/zbackup-docs, mbm2 shows the same team, the same tabs and the same restore record.

From Becomes
Every role card .mbm2/team/roles/<role>.md A session tab named after the role, in the role's folder on this host (mbm2's registry of the roles set up here, else the folder team.json gives it), on the role's agent; no workers.json entry needed. A role not set up on this host is listed not set up here — mbm2 team setup <team>/<role>
The role's agent .mbm/agents/<role>.md in the role's folder (a personal override), else .mbm2/team/roles/<role>.agent.md (the team's, the same on every host), else one made from the card in memory
.mbm2/team/workers.json The team's shared extra workers, such as a role's helper
<project>/.mbm/workers.json Your personal extra workers, and where /worker and /claude add new ones
A role folder's or a sub-folder's own .mbm/workers.json Merged, with a note on /worker and at start: mbm2 worker consolidate moves it

The project is the folder holding .mbm2/team: a role folder made by mbm2 team setup is a worktree of the same repository, so its git common directory leads back to it, and it holds a .mbm2/team-store link to the store as well (a role folder that is a clone or lives elsewhere needs that link: mbm2 team share). A role whose card's agent line names agy or codex (- **Agent:** agy gemini-4-hydrogen-high) is a terminal tab running that CLI instead (agy tab, codex tab). A worker of a role's name in a file for a role run by Claude Code or another terminal runner). A later file's worker of a name an earlier one has wins, with a note, but a session member runs on its own role's agent, not a generic agent override.

under names the role a worker helps: it runs in that role's folder (unless its cwd says otherwise) and is listed under the role.

{ "workers": [ { "name": "zbc-docs", "kind": "terminal", "command": "claude", "under": "zbackup-docs" } ] }
 Workers
   Team zbackup · ~/dev   new workers: ~/dev/.mbm/workers.json · the team's: ~/dev/.mbm2/team/workers.json
   note                   merged ~/roles/zbackup-docs/.mbm/workers.json (zbc-docs) — mbm2 worker consolidate moves it …
   Consolidate the workers files…   one project file and the team's; a preview first, every file backed up
   zbackup-docs           role · agent zbackup-docs (team) · ~/roles/zbackup-docs · tab 2 · idle
     ↳ zbc-docs           helper of zbackup-docs · claude · ~/roles/zbackup-docs · closed
   zbackup-pm             role · agent zbackup-pm (card) · ~/roles/zbackup-pm · closed
   zbackup-qa             not set up here — mbm2 team setup zbackup/zbackup-qa
   build                  session · agent build · ~/dev · closed
   Workers elsewhere      ~/old-project — start mbm2 there to see them

A member's /worker menu shows Agent from the role card instead of Change role. Setting a member's agent from the roster is refused; Change role is for nonmember session workers. To change what the member runs, use mbm2 team model <team>/<role> <model> for the model, or edit the role for other settings. Rename or remove a member through the team's commands. Workers elsewhere lists folders whose own workers file this project does not read.

One file per project: consolidate

/worker → Consolidate the workers files… (offered when there is more than one file) shows a preview, then Apply; from a shell:

$ mbm2 worker consolidate --dry-run
dry run — nothing is written:
move zbc-docs from /home/you/roles/zbackup-docs/.mbm/workers.json to /home/you/dev/.mbm2/team/workers.json
move pm-shell from /home/you/roles/zbackup-pm/.mbm/workers.json to /home/you/dev/.mbm2/team/workers.json
drop zbackup-pm from /home/you/dev/.mbm/workers.json: the role zbackup/zbackup-pm's card makes that tab
move the agent /home/you/roles/zbackup-docs/.mbm/agents/zbackup-docs.md to roles/zbackup-docs.agent.md, for every host of the team
$ mbm2 worker consolidate
Found Goes
A role folder's workers .mbm2/team/workers.json, under that role, cwd relative to the role's folder
A sub-folder's workers The project's .mbm/workers.json, cwd relative to the project
A worker that repeats a role (a session on the role's agent in its folder, nothing else set) Dropped
A role folder's own agent .mbm2/team/roles/<role>.agent.md when the team has none; a copy equal to the team's is dropped; a different one stays as the folder's override
A worker of a name the target has with other fields Its file is kept whole and named: rename one
A project worker repeating one of the team's file (it overrides the team's copy) Listed with how the two differ; dropped when it is the team's or differs only in the under/cwd the team's copy already has; asked about (--yes keeps the team's copy and reports it) when agent, command or model differ

Every file changed or emptied is first copied to <file>.bak-<YYYYMMDD-HHMMSS>. The team's files are written under the team store's lock and committed and pushed in one commit, as a hand-off is. mbm2 worker list prints the same roster with its notes; mbm2 help worker has every option.

The Workers File

Both commands write .mbm/workers.json in the project root. You can also write it yourself (.mbm/workers.jsonc allows comments):

{
  "workers": [
    { "name": "builder",  "kind": "session",  "agent": "build", "open_on_start": true },
    { "name": "reviewer", "kind": "session",  "agent": "plan",  "model": "anthropic/claude-sonnet-4-5" },
    { "name": "tests",    "kind": "terminal", "command": "go", "args": ["test", "./..."] },
    { "name": "claude",   "kind": "terminal", "command": "claude" }
  ],
  "pipelines": [
    { "name": "plan-then-build", "steps": ["reviewer", "builder"] }
  ]
}
Field session terminal Rule
name required required Non-empty, unique in the file
kind "session" "terminal" Exactly one of the two
agent required not allowed An agent the runtime knows, e.g. build, safe, plan
model optional optional Session: "provider/model", default follows the agent. Terminal: read only by an agy worker (--model <id>) and a codex worker (-c model="<id>"), the CLI's own id
command not allowed required One program, run on the runtime host; its arguments go in args ("command": "sh", "args": ["-c", "make test"]), since a command line with spaces is not split and v1's server answers PTY spawn failed
args not allowed optional Array of strings
cwd optional optional The folder the terminal runs in, or the session works in (its files, tools and instructions are that folder's); relative paths are joined to the project root; default is the root
env not allowed optional Object of string values
mode optional not allowed The session's permission mode: "ask" (default), "auto" (unattended: the rules, the guardrails and the judge decide what would ask, see Auto mode) or "plan" (read only), set when the tab opens
open_on_start optional optional true opens the tab when mbm2 starts; without it the worker opens from the picker (<leader>w). Once tabs were open in the project, the remembered tabs win over it
team_submit not allowed optional Known Claude Code, Codex and agy tabs default to best-effort Enter for team messages. Set false to submit manually after a safe paste (Teamwork).
under optional optional The team role this worker helps: it runs in that role's folder unless cwd says otherwise and is listed under the role (A team's project)
File rule Detail
Where The closest .mbm/workers.jsonc or .mbm/workers.json walking up from the start directory; .jsonc wins in one directory. A parent project's file is never merged in. In a team's project: the project's file, the team's and the merged ones (A team's project)
Top-level keys workers, pipelines, layouts and $schema only. layouts is reserved and not used yet: a file with layouts loads, and the start toast, the /config Workers row and the save toast say layouts: reserved, not used
One error rejects the file An unknown key or bad field drops the whole file; mbm2 starts without workers and logs workers config with the path and the first problem
Substitution {env:NAME} and {file:path} are expanded before parsing, as in tui.json
Disable MBM_DISABLE_PROJECT_CONFIG=1 skips the file
When it is read At start, and again after any save while mbm2 runs (see Edit the file while it runs). A worker added by /worker or /claude opens at once
Comments /worker and /claude refuse to rewrite a file with comments (workers file has comments; edit it raw to keep them)

More ready-made files: Configuration cookbook.

Edit the file while it runs

Save .mbm/workers.json[c] from any editor (or /config → Workers file (raw)) and the open tabs follow it after your next key press, paste or editor hand-back — no restart:

You change in the file The running workspace
Rename designer to architect (one worker gone, one new of the same kind) The open tab keeps running and takes the new name; picker, pipelines, tasks and team names follow
Add a worker Its tab opens and takes the focus
Remove a worker Its tab closes if idle; a working tab stays until you close it
Change another field (model, command, …) Applies the next time that tab opens
Break the file Nothing changes; the log names the problem (workers config)

The toast lists what happened, for example workers.json: renamed designer to architect; opened reviewer; closed tester.

Rename A Worker

  1. Focus the worker's tab and press <leader>shift+r (or type /worker rename; palette Rename worker).
  2. The bar's first row becomes Worker name: designer enter rename · esc cancel.
  3. Type architect, return. Toast renamed designer to architect.

Or in one step: type /rename architect in the worker tab's prompt. The same checks and messages apply, without the prompt. On main, /rename Cart retries renames the session's title instead; /rename with no name opens Rename Session.

The tab stays open — its session or process is not restarted — and the file entry, every pipeline step, named layouts, task-board owners, team messages and the remembered tabs all use the new name. A running claude tab keeps working; its team calls are read under the new name.

Message Meaning
main is not a worker; rename a worker's tab main cannot be renamed with /worker rename; /rename <name> there renames the session
<name> is not in the workers file The tab is not a configured worker (for example the claude-install tab)
a worker named <name> already exists Pick another name; the prompt stays open (/rename <name> writes nothing)
could not rename <old>: … The file could not be rewritten, for example because it has comments; edit it by hand
could not rename <role>: a role of the team comes from its card: … A team role's tab is named after its card; rename the role in the team. A worker of the team's .mbm2/team/workers.json is renamed there, committed and pushed

esc, an empty name or the same name writes nothing.

Open, Switch And Close Tabs

  1. Start mbm2 in the project. Tab 1 is always main, your normal session view; workers with open_on_start open beside it.

  2. Press <leader>w. The bar becomes the picker:

    open worker:  builder   reviewer   tests   claude          enter open · esc cancel
    

    Move with the arrow keys or tab, return opens (or focuses) the worker.

  3. Switch with shift+tab (in every tab, a Claude tab included), <leader>shift+tab, alt+n, or a left click on the tab's label.

  4. Close with <leader>shift+w, or click the × after a tab's name. A tab whose session the runtime reports working at that moment, or whose process is alive, asks first in a box in the middle of the screen:

    ╭──────────────────────────────────────────────╮
    │ Close builder?                               │
    │                                              │
    │ It is still working. The session keeps       │
    │ running on the runtime; only this tab        │
    │ closes.                                      │
    │                                              │
    │                 Yes      No                  │
    ╰──────────────────────────────────────────────╯
    

    No has the focus: return keeps the tab, ←/→ (or tab) move to Yes, y closes at once, esc or n keeps it. A tab that only looked busy (the runtime says idle) closes without asking.

The bar reads like a browser's tabs: the focused tab is a box open into the page below, its name in the agent's or the theme's accent colour; the others are dimmed labels beside it:

╭──────────╮ ⠋ 2 builder × │ ! 3 tests × │ ○ 4 claude ×             shop-api
│ ● 1 main ╰────────────────────────────────────────────────────────────────────

As the window narrows, the bar uses the first layout that fits:

  1. Full names, with a clickable × on every tab except main.
  2. Names without the shared <team>- prefix, and no ×.
  3. Those shorter names clipped to 7 columns, then to 4 columns if needed.
  4. Only the focused tab keeps its full name; the others show numbers.
  5. Numbers only. If the two-row bar still does not fit, it falls back to one row (● 1 ⠋ 2 ! 3).

Hover over a tab for its full name, or click its label to focus it. A trusted mbm2 session tab shows ♥ in the build agent's colour when its layout has room, including under trust all. The window-wide hold also shows ♥ TRUST all at the right of the bar. External terminal-runner tabs do not get a Trust heart.

Mark Meaning
● Focused, and not working
⠋ Working: a braille spinner (80 ms a frame) while the tab streams or its process wrote output in the last 2 s, the focused tab too (⋯ when animations are off). The label stays still (Is it still working? says when a tab blinks)
! Needs you: a permission or question, or the process exited non-zero; a toast names it, e.g. tests needs you — alt+3
○ Idle

The number is the alt+n target; the right side names the project, or shows toasts. main cannot be closed (main stays open; close the others with <leader>shift+w). Closing a session tab leaves its session on the runtime, and opening the worker again — <leader>w, /worker, → tab in the agent dialog — shows that session in its tab again. A worker never opened starts on home and its first prompt makes its session. One session is shown by one tab: choosing a worker's session in main's session list (or main's --continue, «Work to continue») goes to the worker's tab, and main keeps its own session. Closing a terminal tab removes its terminal. When a terminal tab's process ends, the tab keeps its last screen with [process exited with status <n> — press esc to close]. Press esc or <leader>shift+w to close the exited tab immediately, even if it is no longer showing the exit screen. Open tabs, focus and every split are remembered per project in kv.json and restored on the next start.

A remembered session ID belongs to the runner that created it. Changing a member's runner forgets that ID. A Claude tab ignores a non-UUID session ID, whether remembered or given as --resume. It starts a new Claude session if it has no usable Claude session to resume.

Go To A Tab

Press <leader>1 through <leader>9 or alt+1 through alt+9 to jump by tab number. A number past the last open tab does nothing. <leader>0 goes to the last tab, even if there are more than nine. Rebind the leader chords with workspace_tab_1 through workspace_tab_9 and workspace_tab_last in Workspace keys; the Alt bindings are fixed.

To open or focus a configured worker by name, use /open <member>. /open all opens every closed configured worker tab in the background. It leaves the current tab focused and does not duplicate already open tabs. Open all is also on the Workers page and at the end of the <leader>w picker. open_on_start only controls startup, and team_max_extra only caps extra delegated workers; neither limits /open all.

When you remember a name instead of a number, or want to jump beyond tab nine, type /tab:

You type You get
/tab 3 Tab 3, the number the bar draws before its name (no tab 9: 4 open — /tab lists them past the last)
/tab coder The tab named coder; a name wins over a longer one it begins (coder-2)
/tab rev The one tab whose name starts with rev, any case; when two do, a short list of just those two
/tab (palette Go to tab…) Every tab, its number, name and state: ● in front, ⠋ working · 1 queued, ! needs you, ◌ working, nothing heard for 3 min, ○ idle; return goes there, esc closes

While you type / the list also offers /tab <name> for every open tab, so /cod finds /tab coder; return on it goes to the tab. No tab with that name says no tab named "x" — /tab lists them.

Watch Everything: Overview

/overview or <leader>o replaces the body with one card per open tab:

┌ main ──────────────── ○ ┐ ┌ builder ───────────── ⠋ ┐ ┌ tests ─────────────── ! ┐
│ plan · <model>          │ │ build · <model>         │ │ go test ./...           │
│ Split the task in three │ │ Added the retry loop.   │ │ FAIL internal/cart      │
│                         │ │ Allow bash go test …?   │ │                         │
└─────────────────────────┘ └─────────────────────────┘ └─────────────────────────┘
Workers overview · enter open · arrows move · esc close

Each card shows the name and mark, the agent and model (or the command), the last line of the latest reply or terminal output, and any permission or question waiting. Arrows (or h/j/k/l) move, return or alt+n opens a card, esc, q or o closes.

Two At Once: Split

  1. Press <leader>\ (or /split) for side by side, <leader>- (palette Split below) for stacked.

  2. Choose the second pane: any other open tab, or a worker that is not open yet.

    split with:  builder   tests   claude                         enter split · esc cancel
    
  3. Both panes show, each with its own title row; the new pane has the focus. Click a pane, or use <leader>] / <leader>[, to move. <leader>shift+x (palette Close split) ends the split: the focused pane closes and its tab stays open.

A split belongs to its two tabs, as in tmux. The second tab moves beside the first, and the bar draws the pair as one (pm ×│● 3 coder ×). Go to any other tab (alt+4, shift+tab, /tab docs) and it fills the screen; go back to pm or coder and the split returns as it was, side by side or stacked, with the tab you chose focused. Several pairs can exist at once (pm│coder and docs│reviewer); a tab is in one pair at most, so the picker offers only tabs in none. Splitting a tab that is already in a pair gives it a new partner; the old one becomes a tab of its own. Every pair is remembered with the open tabs and comes back on the next start.

A split needs room: 80×12 cells for a terminal pane and 60×10 for a session pane. In a smaller window you see the focused pane alone and the bar says split hidden: too narrow; the split comes back when the window is wider. With nothing to pair, the toast says nothing to split with: add a worker first, for example /claude.

Terminal Workers And The Leader

A terminal worker runs on the runtime host. Inside a terminal tab every key goes to the program except the leader: press the leader, then a workspace key (<leader>tab still switches tabs). <leader><leader> sends a literal ctrl+x to the program. With a remote --attach, the command must exist and be signed in on that server. mbm2 never reads, copies or stores a host CLI's credentials.

Terminal behavior What to expect
Paste A program that enables bracketed paste (DECSET 2004), such as Claude Code, receives the text as one paste. A program that leaves it off, such as a plain shell without bracketed paste, receives raw text.
Input that cannot be sent The status line reports the number of unsent bytes when the queue rejects input or a send fails after retrying. A paste that would exceed the 64 KiB input limit is refused whole, not truncated. The limit includes any queued input and bracketed-paste markers.
Padding Two empty columns on each side by default. Set Terminal padding in /config, or terminal_padding to a whole number from 0 to 8 in mbm2.json[c]. The program gets twice that many fewer columns, with a minimum of one. Dragging to copy selects the program's cells, not the padding.

Example Setups

Goal Workers
Plan, build, test planner (session, plan), builder (session, build), tests (terminal, go test ./...) and a pipeline ["planner", "builder"]
Claude Code beside mBm /claude; then /split with main to watch both
A monorepo web (terminal, npm run dev, "cwd": "web") and api (terminal, go run ./cmd/api, "cwd": "api")
A second opinion reviewer (session, plan, another model) and hand it the diff with <leader>f

Rebind The Workspace Keys

Use /config → Workspace keys (return captures the next key), or set keybinds in mbm2.json[c] (Keybindings). alt+1…alt+9 and <leader><leader> are fixed.

Planned

Feature State
Sidebar and Zen views, three or four panes, named layouts Planned (ADR 0191 L1, L4); layouts is accepted, and a file with layouts is told they are not used
Shared context and runtime-side task state between agents Planned
Editing hand-off text inside the dialog; a terminal as hand-off source Not in this release

Pitfalls

Symptom Cause and fix
no workers in .mbm/workers.json on <leader>w No file, or it was rejected; use /worker, or check the log for workers config
A hand-edited worker does not appear The file was rejected (look for workers config in the log), or no key has been pressed since the save; press any key
/worker rename says could not rename … The file has comments (.jsonc); rename the worker in the file by hand, and the tab follows
<leader>tab types into the program The leader timed out (2 s); press ctrl+x and tab again
Plain shift+tab did not change tabs A dialog that uses it for its fields is open, or agent_cycle_reverse is bound to it in tui.json; close the dialog or use <leader>tab
shift+tab no longer goes to the previous agent It switches tabs now; press tab round, or bind agent_cycle_reverse in tui.json
The claude tab starts on your laptop, not the server Local mode runs the runtime on your machine; use --attach to run on a server

Published from revision f88fc66f 2026-11-30