mBm TUI (mbm2)
Menu

Write Prompts

You want to Type or press What appears
Send return Your message in the transcript; the agent starts
A new line without sending shift+return or ctrl+j The cursor moves to a new line
Attach a file @ then part of the name A file list; tab or return inserts the path
Ask a subagent @ then its name, e.g. @explore The subagent in the same list
Run a shell command ! on an empty prompt Placeholder Run a command... "git status"; the metadata row reads Shell
Run a command / at the start The slash list (Slash commands)
Reuse an earlier prompt up on the first line The previous prompt, from this project's history
Write a long prompt in your editor <leader>e or /editor $VISUAL (else $EDITOR) opens with the prompt text
Park a prompt for later ctrl+p → Stash prompt The prompt empties; Stash pop brings it back
Stop the agent esc The running turn is interrupted
Send another message while it works Type and return Your message with a QUEUED badge; it is answered when the running turn reaches it
Paste a screenshot ctrl+v [Image 1] in the prompt, sent as an attachment

The prompt is the box at the bottom of home and of every session. Its left stripe and the metadata row below it take the current agent's colour, for example Safe · <model> <provider>.

The Row Under The Prompt

One status row sits under the prompt at every window width:

 ⠋  esc interrupt                         12.3K (6%) · $0.01  ctrl+p commands  Unlicensed
Part Shows
Left, while the session works A spinner in the agent's colour ([⋯] with animations off) and esc interrupt; a retry from the provider shows its reason in the error colour instead
Left, in shell mode esc exit shell mode
Usage (in a session) The last reply's tokens, its share of the model's context window in brackets when the model's limit is known (lowered to MBM_MAX_CONTEXT_TOKENS when set, at most 100%), then the cost when above zero. The share is the same number as the sidebar's % used and the Context row of /stats
Keys tab agents on home (replaced by the usage in a session) and ctrl+p commands, each with the key bound to it
Edition Your licence's edition name in the theme's success colour with an mBm key, Unlicensed in its warning colour without one; nothing until the runtime answers

A Suggested Next Message

When a turn you started ends, the empty prompt can show one short next message in dim text, in the language of your last message, as a follow-up you might plausibly send ("run the tests"), never a new task. A small, cheap model writes it: the small_model of mbm.json (the one titles and recaps use), else the session's own.

You press What happens
tab The text goes into the prompt with the cursor at its end, to edit (a completion popup that is open keeps tab)
enter on the empty prompt The text is sent as it is
Any key you type The suggestion goes away

Nothing is suggested after a turn a wake or an auto session started, in a worker session, after a turn that failed or ended on a question or a permission, or while the prompt already holds text. A suggestion is withdrawn when you send anything else, and it is never stored or sent to the model. mbm code shows it above its prompt box with a use button that puts it in the box.

Turn it off with /config → Prompt suggestion, or "prompt_suggestion": false in mbm2.json (Configuration).

Messages Sent While The Agent Works

You do not have to wait. A message sent while a turn runs is stored by the runtime at once and drawn with a bold QUEUED badge in the agent's colour, without a time. It is answered when the running turn reaches it, and the badge goes. Open it like any of your messages (click it, or Timeline) to copy, revert or fork from it. esc interrupts the running turn, not the queue.

With mbm2's runtime the status row counts them: 2 queued. Changed your mind before the agent reads it? Press ctrl+alt+q with an empty prompt: the newest queued message comes back into the prompt to edit, and return queues it again (last). ctrl+alt+x removes the newest queued message. The palette lists both as Edit queued prompt and Remove queued prompt; rebind them in mbm2.json as "keybinds": {"queue_edit": "…", "queue_remove": "…"}. Both need mbm2's runtime; a message the agent has already read is not queued any more, and the toast says so. The queue is kept by the runtime, so it survives a reconnect.

/queue (palette Queued prompts) lists every queued message, oldest first: return takes the one under the cursor back to edit, x removes it.

An interrupt (esc esc, or another client's abort) ends the turn before it answers what was queued. The messages stay in the transcript without a reply; press esc once on the now idle session and they are sent again, in order, each with its own agent and model (Sent 1 queued prompt).

Session Steps Above The Prompt

When the agent plans its work with the todowrite tool, its steps are drawn just above the prompt while the turn runs, whether the sidebar is open or closed, and for 5 seconds after it ends:

  ◐ Draw the steps above the prompt          the step it is on, bold
  ☐ Write the /todo panel                    the next ones
  ☐ Offer promotion when the turn ends
  ☐ Record the goldens at every width
    +3 more · 2/7 · ctrl+t one line          the rest, and how many are done
Key or state What you see
ctrl+t The list folds to one row, ◐ Draw the steps above the prompt 2/7 · ctrl+t list; again unfolds it, as in Claude Code. Rebind it in mbm2.json as "keybinds": {"steps_toggle": "…"}
Done steps ☑ and struck through, after the open ones; a cancelled step is ☒
More than five steps Four rows and +N more; the full list is in the sidebar's Todo and in /todo
A short or narrow terminal One row below 16 rows; the words are cut with …; under 12 columns nothing is drawn
No steps Nothing changes: the strip only appears when the agent wrote steps

In v1 ctrl+t cycles the model variants; in mbm2 that is ctrl+alt+w (variant_cycle in tui.json rebinds it, Keybindings). When a turn ends with steps still open and the runtime keeps a project work log, a notice says 2 steps are still open. /todo promotes them to the project log. Nothing is written to the log unless you promote the steps in /todo.

Before The First Send

Situation What return does
No provider is connected Opens Connect a provider instead of sending (Connect)
Your licence does not include the chosen model Refuses with Model "<id>" is not available in <tier> and keeps your text
The session's workspace is not connected Refuses with the Workspace unavailable warning and keeps your text
The prompt is empty Nothing
The whole prompt is an alias (/alias) Runs or sends its target, for example учшэ quits like exit (Configuration cookbook)
The whole prompt is exit, quit or :q Quits

mbm2 --prompt "…" fills the first home prompt and sends it once the agents and a model are ready (Command line).

Attach Files With @

  1. Type @ anywhere in the prompt, then a few letters of the file name.
  2. The list shows matching files from the project, most recently used first. Move with up/down (or ctrl+p/ctrl+n).
  3. Press tab or return to insert the path; esc hides the list.
┃ Why does @internal/cart/total.go round down?
Variation Example Effect
A line range @internal/cart/total.go#40-75 Only lines 40-75 are attached
A subagent @explore find every caller of Total The explore subagent answers that part
An MCP resource @ then its name Listed as name (uri) when an MCP server offers resources
A folder @internal/cart/ The agent gets the folder's listing

Paths Outside The Project

Type a path after @ and the list completes it from the disk, not only from the project: anything with a / in it, starting with ./, ../, / or ~/. Folders end in / and are listed first; tab on a folder opens it, return attaches it. A name starting with . is listed once you type the dot.

You type The list offers Attached
@./cmd/ the files and folders in cmd/ of the session's directory @./cmd/main.go
@../shared/ the folder next to the project @../shared/config.yaml
@~/notes/ a folder in your home directory @~/notes/release.md
@/etc/ho /etc/hostname, /etc/hosts @/etc/hosts
@../shared/config.yaml#10-20 the file with the range lines 10-20 only
┃ Compare @./internal/cart/total.go with @../billing/total.go and the spec in @~/notes/tax.md

The prompt and the transcript keep the path as you typed it — a relative path stays relative — while the agent is given the absolute file. Reading a file outside the project asks first, as the agent's own reads do: Access external directory names its folder, and Allow always stops the question for that folder. The list reads the disk of the machine mbm2 runs on.

Only subagents appear after @; primary agents (build, safe, plan) are switched with tab (Agents and models).

Run Shell Commands With !

  1. On an empty prompt, type !. It is not inserted; the prompt switches to shell mode.
  2. Type a command and press return.
┃ Run a command... "git status"
┃ Shell

The command runs on the runtime host in the session's directory, and its output becomes part of the session, so the agent can read it in the next turn. esc, or backspace with the cursor at the start, leaves shell mode; any text you typed stays as an ordinary prompt.

Example Use
!go test ./internal/cart/... Show the agent a failing test, then ask fix the failure above
!git diff --stat Put the current change in front of the agent before a review

A ! typed after other text is an ordinary character.

Slash Commands And Runtime Commands

Type / at the start of the prompt for a list of client commands (/models, /fork, …) and the runtime's own commands. The bundled runtime lists, among others:

Runtime command Description it shows
/init guided AGENTS.md setup
/review review changes [commit|branch|pr], defaults to uncommitted
/manager project manager: start|status|resume with the project work log (Todo lists)
/maxcontext set or reset the context token limit (maxcontext <number> | reset)

Commands from MCP servers are listed as /name:mcp. Text after the name is the command's arguments, for example /review branch. Runtime commands run as commands inside an open session; on the home screen, before a session exists, the line is sent as an ordinary message. /skills opens Skills (Search skills...); choosing one puts /<skill> in the prompt.

Paste

You paste Result in the prompt
Three or more lines, or more than 150 characters A placeholder such as [Pasted ~42 lines]; the full text is sent
A path to an image [Image 1], sent as an attachment
A path to a PDF [PDF 1]
Anything else The text itself

Turn the summary off with ctrl+p → Disable paste summary (and back with Enable paste summary).

ctrl+v reads the clipboard

Your terminal's own paste (for example ctrl+shift+v) sends text. ctrl+v instead asks the system clipboard, an image first, so a screenshot can be attached directly:

Platform Image read with Text read with
macOS osascript (PNG) pbpaste
Linux, Wayland wl-paste -t image/png wl-paste -n
Linux, X11 xclip -selection clipboard -t image/png -o xsel --clipboard --output, else xclip
Windows, WSL PowerShell PowerShell Get-Clipboard

An image becomes an attachment named clipboard; text goes through the same paste rules as above. A tool that is missing is skipped. An empty bracketed paste also reads the clipboard. Over SSH, when you paste the path of an image, SVG or PDF that the runtime cannot read, the clipboard's image is used instead. Install wl-clipboard or xclip on Linux if ctrl+v pastes nothing.

Labels

File mentions, agent mentions, summarised pastes and attachments are labels: drawn in their own style (a file in bold warning colour, an agent in bold secondary colour, a paste or image as a highlighted chip) and edited as one unit.

Key or click On a label
left / right Jump over the whole label
backspace at its end, delete at its start Remove the label and what it attaches
A click inside it Puts the cursor at its nearer edge
A click anywhere else in the prompt Puts the cursor there

Undo brings a removed label's text back, but not its attachment; add the file again.

History, Stash And Editor

Feature How Detail
History up / down up first moves the cursor to the start of the prompt, then steps back through earlier prompts, shell commands included
Stash Palette: Stash prompt, Stash pop, Stash list Stash list opens Stash; return restores an entry, ctrl+d deletes it
External editor <leader>e or /editor The prompt opens in $VISUAL (else $EDITOR); the saved text comes back into the prompt when the editor exits
Clear ctrl+c Clears the prompt; on an empty prompt ctrl+c quits. While the prompt holds text, no exit key quits

Example: write a long task in the editor.

export EDITOR="nvim"     # or: code --wait, nano, vim

Then press <leader>e, write the task, save and quit. The text is in the prompt; press return.

Editing Keys

Key Action Key Action
ctrl+a / ctrl+e Start / end of line home / end Start / end of the prompt
alt+b / alt+f Word back / forward ctrl+w Delete the word before the cursor
ctrl+k Delete to end of line ctrl+u Delete to start of line
ctrl+- Undo (ctrl+z on Windows) ctrl+. Redo
shift+left/right Select ctrl+shift+d Delete the line

All prompt keys are rebindable (Keybindings); the full list is in the Shortcut cheat sheet.

Pitfalls

Symptom Cause and fix
! appears as text The prompt was not empty or the cursor was not at the start; clear it first
/review was sent as a message It was typed on home with no session; send a first message, then run it
shift+return sends the prompt Your terminal reports it as return; use ctrl+j
up does not recall history The cursor was not on the first line; press up again
<leader>e does nothing Neither $VISUAL nor $EDITOR is set; set one and restart mbm2
ctrl+v pastes nothing on Linux No clipboard tool on PATH; install wl-clipboard (Wayland) or xclip/xsel (X11), or use the terminal's own paste
A message seems to vanish while the agent works It is queued: look for the QUEUED badge, or /queue
Messages wait unanswered after an interrupt Press esc on the idle session: they are sent again
return opened Connect a provider No provider is connected yet; connect one, then send again

Published from revision f88fc66f 2026-11-30