Slash Commands
| Group | Commands |
|---|---|
| Session | /new /sessions /rename /timeline /fork /compact /undo /redo /copy /export /import /share /unshare /remote-control /jobs /delegate /todo /recap /queue /mode /auto log /timestamps /thinking |
| Prompt | /editor /skills /warp |
| Model and agent | /models /agents /variants /mcps /connect /org /escalate /needs |
| Workers | /worker /worker rename /claude /agy /codex /terminal /tab /switch /team /team lead /team fresh /team rules /team share /team peer /team inbox /team generate /team edit /team new /team model /team budget /team board /team add /team remove /team move /overview /activity /split |
| Settings and app | /config /setup /alias /rag /plugins /account /package /pricing /themes /status /help /reset-ui /redraw /restart /upgrade /exit |
| CLI commands | /web /serve /run /stats /mcp /agent create /permissions tidy /github /models <args> /export <id> /import <file|url> |
Type / at the start of the prompt: the list shows each command with its description and aliases,
filtered as you type, and the mouse wheel scrolls it. return runs the highlighted command, tab
completes it, esc hides the list. Every command is also in the palette (ctrl+p) under its title,
and many have a key. There is no /workers: use /worker. /mcps toggles servers; /mcp runs
mbm2 mcp (CLI commands). Your own aliases work as command names too: after
/alias config=cfg, /cfg opens /config.
Session
| Command (aliases) | Palette title | Key | Example and result |
|---|---|---|---|
/new (/clear) |
New session | <leader>n |
/new → home with an empty prompt; the next return starts a new session. The old one stays in /sessions |
/sessions (/resume, /continue) |
Switch session | <leader>l |
/sessions → Sessions over the current screen; type cart → the server searches titles; return opens one, esc returns to where you were |
/rename |
Rename session | ctrl+r |
/rename → Rename Session; type Cart retries, return. With a name it names the tab you are on: /rename Cart retries on main renames the session, /rename reviewer on the plan tab renames that worker as /worker rename does (Workers) |
/timeline |
Jump to message | <leader>g |
/timeline → Timeline; pick a message → Message Actions: Revert, Copy, Fork |
/fork |
Fork session | — | /fork → Fork session; Full session copies everything, a message forks just before it |
/compact (/summarize) |
Compact session | <leader>c |
/compact → the runtime summarises with the current model; the status reads compacting |
/undo |
Undo previous message | <leader>u |
/undo → your last message returns to the prompt; edit and resend |
/redo |
Redo | <leader>r |
/redo after /undo → moves forward one message |
/copy |
Copy session transcript | — | /copy → Session transcript copied to clipboard! |
/export |
Export session transcript | <leader>x |
/export → Export Options; choose Format: JSON (session export document), return |
/import |
Import session | — | /import, type cart-retries.json, return (only with a runtime that offers import; otherwise it says to run mbm2 import <file>) |
/share |
Share session / Copy share link | — | /share → confirm once → Share URL copied to clipboard: and the link, for 8 s; hidden when sharing is disabled |
/unshare |
Unshare session | — | /unshare → Session unshared successfully |
/remote-control (/rc) |
Remote control | — | /rc → Remote control with https://tui.mbm.mn/remote/rc_… and its QR code; open it signed in to your tui.mbm.mn account to prompt this session from a phone; the status row says remote; /rc again stops it. /rc machine → every session of this machine, and new ones, in mbm code at https://tui.mbm.mn/code, at every start; /rc off turns the machine and the link off (Remote control) |
/jobs |
Background jobs | ctrl+alt+j |
/jobs → Background jobs: the session's background commands and tasks, running first; return shows a job's last 200 output lines, s stops a running one (Background jobs) |
/delegate <task> |
Delegated tasks | — | /delegate Add a --dry-run flag to mbm2 export (more brief lines with shift+return) → Delegated in the background: Add a --dry-run flag to mbm2 export · /delegate lists it: a general subagent works on it in its own git worktree with your current model while you go on; outside git it shares the project directory and the toast warns. /delegate alone → Delegated tasks: return reads a task's report, m asks to merge a finished one (the same approval task_merge asks), s stops one, and r removes a stale worktree listed under the tasks. Only on mbm2's runtime and in a session (Parallel work) |
/todo |
Todo | — | /todo → Todo: the project work log by section (☐ Wire the strip P2) and this session's steps (◐ Draw the strip in progress); space checks a log item, a adds one, e edits it, p promotes the step under the cursor to the log, P every open step, A asks a topic and archives the checked items; tab switches part. On an engine without the log the panel says project log not available on this engine (Prompt, Sessions) |
/queue |
Queued prompts | — | /queue → Queued prompts: every message waiting for the running turn, oldest first, the newest under the cursor; return takes one back into an empty prompt to edit, x removes it. Only on mbm2's runtime and in a session (Prompt) |
/escalate |
Escalate the next turn | — | /escalate → toast the next prompt goes on mbm/gpt-6.2-astra for one turn: the next prompt you send runs on the agent's model_escalate (the app-dev lead's is gpt-6.2-astra), and the turn after it is back on the agent's own model. An agent with no model_escalate, or one whose model no connected provider serves, says so and nothing changes (Generate a team) |
/recap |
Recap session | — | /recap → ※ recap: writing a recap… at the end of the transcript, then a dim ※ recap: entry: what was done, what still runs, what waits on you. /recap again while it is written cancels it. One also appears by itself when you come back after 5 minutes away (Recap when you come back) |
/mode |
Permission mode / Mode: auto / Mode: ask / Mode: plan / Mode: trust | — | /mode auto → Auto mode: safe actions run without asking; the rest still ask and the status row says AUTO: what the permission rules leave to ask goes to the session's small model as a judge, and what is never safe (force push, deleting outside the project, secrets, deploys…) still asks you. /mode plan → PLAN: the session reads but does not edit. /mode ask → back to asking. /mode trust opts a session in (a ♥ TRUST badge in the build agent's colour) and logs its Trust allowances; denies still refuse and protected actions can prompt on initial evaluation. /mode trust all applies it to the window's mbm2 sessions and new tabs while held (the bar shows ♥ TRUST all). Closing the window ends the hold for new tabs, not Trust saved to existing sessions. Switch to /mode ask, /mode auto or /mode plan before closing to leave Trust. Trust is never a default; running Claude tabs keep their own permissions (Trust mode). /mode alone names the mode. /mode default auto|ask|plan sets the mode new sessions start in (permission.default_mode in the global mbm.json, comments kept) and applies it at once: default mode: auto (new sessions); /mode default alone says the current default and where it comes from (the file, MBM_DEFAULT_MODE, or the built-in auto). When launching a Claude Code tab, mbm2 maps Auto to --permission-mode auto if the installed binary advertises it, otherwise to acceptEdits. Trust maps to acceptEdits, Plan to plan and Ask to manual. Explicit worker arguments take precedence. mbm2 does not choose a bypass mode or pass a permission-mode flag to agy or Codex. See Claude Code tab permissions. Only on mbm2's runtime and in a session (Auto mode) |
/needs |
Needs you | <leader>i |
/needs → Needs you: every permission, question and escalation that waits in any session on this engine, the team's reviews by a person, tasks blocked over a day, budgets reached, unassigned work and failing syncs, oldest first; return opens one with its buttons (Allow once, Allow always, Deny with a reason; a question's options and Dismiss), a team item shows the command that settles it. /needs notify off (or on) writes notify_terminal (Permissions) |
/auto log |
Auto log | — | /auto log → Auto log: every decision auto mode made in this session and its subagents, oldest first; return shows one whole. Each row is the time, who decided (rule, judge, guardrail, question), what (allow, deny, escalate, answer), the request and the reason, e.g. allow bash go test ./...: runs the tests the task asked for. A decision about an escalation shows its state, [waiting], [answered] or [expired]; return on a waiting one shows what waits and answers it: a allow once, A always, d deny, a question's 1-9 its option (When auto mode needs a person). Each decision is also a dim line in the transcript. Only on mbm2's runtime and in a session (Auto mode) |
/timestamps (/toggle-timestamps) |
Show / Hide timestamps | — | /timestamps → each message shows its time |
/thinking (/toggle-thinking) |
Show / Hide thinking | — | /thinking → reasoning blocks appear in the transcript |
Details: Sessions.
Prompt
| Command | Palette title | Key | Example and result |
|---|---|---|---|
/editor |
Open editor | <leader>e |
/editor → the prompt opens in $VISUAL / $EDITOR; save and quit to bring the text back |
/skills |
Skills | — | /skills → Skills, type pdf, return → /<skill> is put in the prompt |
/warp |
Warp | — | /warp → Warp: choose a workspace for the session. Only with MBM_EXPERIMENTAL=1 or MBM_EXPERIMENTAL_WORKSPACES=1 |
Details: Prompts.
Model And Agent
| Command (aliases) | Palette title | Key | Example and result |
|---|---|---|---|
/models |
Switch model | <leader>m |
/models, type sonnet, return → the metadata row names the new model. ctrl+f favourites, ctrl+a opens Connect a provider |
/agents |
Switch agent | <leader>a |
/agents → Select agent; pick build. safe is the default when the runtime sets no default_agent |
/variants |
Switch model variant | — (ctrl+alt+w cycles) |
/variants → Select variant; pick high. Listed only when the model has variants: a reasoning model's low, medium, high (more on OpenAI models), plus any variants a model sets in mbm.json. The choice is sent as the provider's reasoning options and kept on the messages |
/mcps |
Toggle MCPs | — | /mcps → MCPs; space turns the highlighted server on or off, ctrl+e edits it, ctrl+d removes it, and the last row + Add server adds one by form or pasted JSON (Configuration cookbook) |
/connect |
Connect provider | — | /connect → Connect a provider: + Add account for another key or sign-in, a provider row to connect it, a provider row already connected to add another account of it, a Connected row to edit or remove it (Connect) |
/org (/orgs, /switch-org) |
Switch org | — | /org → Switch org; pick one → Switched to <org>. Listed only when your account has more than one org |
Details: Agents and models.
Workers
| Command | Palette title | Key | Example and result |
|---|---|---|---|
/worker |
Add a worker | — | /worker → Workers; Add plan → Worker name plan (return keeps it) → Added worker plan to …/.mbm/workers.json and the tab opens |
/worker rename |
Rename worker | <leader>shift+r |
On the plan tab: Worker name: plan → type reviewer, return → renamed plan to reviewer; the tab stays open |
/claude |
Open a Claude tab | — | /claude → a Claude Code tab opens (added to the project first; offers to install Claude Code when missing) |
/agy |
Open an agy tab | — | /agy → an agy terminal tab on the team bus opens (added to the project first; a toast says how to install agy when missing) (agy tab) |
/codex |
Open a codex tab | — | /codex → a codex terminal tab on the team bus opens (added to the project first; a toast says how to install Codex when missing) (codex tab) |
/terminal [command] (/cli) |
Open a terminal tab | — | /terminal → a terminal tab running your shell in the project directory, focused; /terminal npm run dev runs that command instead; the next one is terminal-2. Not saved to .mbm/workers.json (Terminal) |
/team |
Team messages | <leader>shift+i |
/team → Team messages · auto off — you approve each message; return sends a held message, a turns auto on or off |
/team fresh <member> [brief] |
— (typed only) | — | /team fresh zve-docs → zve-docs: new session: the member's tab is made again with no session of its own (its old session stays in history; a Claude tab starts under a new --session-id); with a brief it is the new session's first message. Typed in main (you), the pm's or the lead's tab; any other member's tab gets only the pm, the lead or the person may start a member's new session |
/team lead [<worker> | -] |
— (typed only) | — | /team lead planner → planner leads the team: its session can delegate_task to the others and writes "lead": true on planner in .mbm/workers.json; /team lead alone says who leads (no lead yet; /team lead <worker> names one); /team lead main → you lead the team from the main tab: its session can delegate_task to the workers and writes "lead": "main" at the top of the file (a team led by you, the sysadmin team); /team lead - → the team has no lead now (Teamwork) |
/team rules |
— (typed only; r in /team) |
— | /team rules → Kept for planner's team · until this window closes and the rules «Allow always» → «This team» kept (bash npm test *); ↑/↓ choose one, d revokes it, esc goes back (Permissions) |
/team share on|off |
— (typed only) | — | /team share off → no longer shared with your account's other mbm2s, saved as "relay_share": false: your other mbm2s neither list nor message this one; /team share on → shared with your account's other mbm2s. Anything else answers the usage line (Agent relay) |
/team inbox |
— (typed only) | — | The open hand-offs of this folder's team role (mbm2 team inbox), title, sender and status; return sends one to the session as a message with its path and how to answer it (mbm2 team reply). Without a team store or a role it says why, and a problem with the team's backup is a toast once a day (The team store) |
/team generate |
— (typed only) | — | Makes, migrates or resets a team of one of seven presets (app-dev, the default, small, sysadmin, content, data, support, review; named by the team's role prefix; a project with no team gets a store named after its folder): the mode when roles exist, the preset with a line each, the suggested models from your connected providers (accept all, or pick each role's), then the preview — roles, models with substitutions marked, how running work continues, the backup — with Apply (or Wait while sessions run) and Cancel. mbm2 team generate is the full path (Generate a team) |
/team edit [<wish>], /team new |
— (typed only) | — | Makes the team, or reorganizes the one the project has, by chatting: sends the tab a prompt that loads the built-in team-edit skill; the agent reads the project and the team, proposes members or changes with a reason each, shows mbm2 team generate --dry-run (or --migrate, team add, remove, model, move, rename with their dry runs) and applies with --yes only after you say so in the chat. Words after the command are your wish (/team edit add a docs writer) (Make or reorganize the team by chatting) |
/team remove <role> [--to <role>], /team move <role> <project folder> |
— (typed only) | — | The preview of taking a role out (card and agent archived, work and escalations to --to, an alias) or moving it to another project's team, with Apply or Wait while the role works (Remove or move a member) |
/team add [<role_type>] [--name <n>] [--model <m>] |
— (typed only; /worker → Add a role… in a team) |
— | /team add → the role types; one plans the new role (worker → <team>-worker-2) with a preview and Apply (Add a member) |
/team budget <role> <limit|unlimited> |
— (typed only) | — | /team budget api $5 400k → the preview with Apply: the role's agent gets budget: {tokens_per_day: 400000, usd_per_day: 5}; at the limit its next turn waits (Cost limits). /team shows each role's spend today against its limit |
/team autoopen [on|off] |
— (typed only) | — | /team autoopen off → work for a closed member runs headless instead of opening its tab in the background (team_auto_open in mbm2.json, on by default); bare, it says what is in force. Not team auto (team_auto: whether a message needs your return) |
/team model <role> <model> [--fallback <model>] [--escalate <model>] |
— (typed only; /worker → the role → Change model) |
— | /team model lead mbm/gpt-6.2-sol → the preview with Apply: the role's agent gets the model for good (/model changes the session's only); a Claude model makes the role a Claude tab, any other a session (Change a member's model) |
/team models |
— | — | Inspect team models (unreleased) |
/team board |
— (typed only) | — | Every task of the team — hand-offs, the lead's tasks, the board's items — with owner, state, last progress and age, blocked work first with what it waits for (mbm2 team status --all) (Blocked work) |
/worker → a role |
— | — | The role's page: Open, Agent from the role card, Change model (the primary, then the fallback: Keep, None or a model; a Claude model has none; the row shows «now <model>, fallback <model>») and Open on start: off → return plans mbm2 team open-on-start <role> on (preview, Apply). Change role is only for nonmember session workers. See A team's project. |
/worker <role> |
— (typed only) | — | /worker ui → focuses the <team>-ui tab, opening it when it is closed |
/team peer |
— (typed only) | — | /team peer add reviewer → a token for an outside agent, shown once; /team peer lists peers; /team peer -reviewer revokes. Without an mBm key it answers: store an mBm key with mbm2 auth mbm to let other agents message this team (Agent relay) |
/open <member>, /open all |
Open worker tabs | — | Open or focus one configured worker, or open all closed configured worker tabs in the background without changing focus or duplicating tabs. See Workers. |
/tab [<n> | <name>], /switch <name> |
Go to tab… | alt+1 … alt+9, <leader>1 … <leader>9, <leader>0 (last) |
/tab 3 → tab 3, as the bar numbers it; /tab cod → the one tab whose name starts with cod (an exact name wins, two matches list just those); /tab alone → every tab with its number and state (⠋ working · 1 queued, ! needs you, ○ idle), return goes there. Typing /cod also offers /tab coder (Workers) /switch is the same command: a team member whose tab is closed (by its name or short name, /switch docs) is opened and focused |
/activity |
Activity | ctrl+alt+o |
/activity → every tab with its state (working, stale, waiting on you, idle), when it last had an event and output, its queued prompts and asks, and under it its session's background jobs, running first; return on a tab goes to it, on a job opens its output in the tab's Background jobs, s stops a running one there, esc closes (Workers) |
/overview |
Workers overview | <leader>o |
/overview → one card per tab; alt+2 opens the second |
/split |
Split right | <leader>\ |
/split → split with:; choose claude → two panes side by side |
Palette only: Split below (<leader>-) and Close split (<leader>shift+x). Details:
Workers, Teamwork, Claude Code tab.
Settings And App
| Command (aliases) | Palette title | Key | Example and result |
|---|---|---|---|
/config |
Open settings | — | /config → Settings: Workers, Providers, Model, Agent, Theme, MCP servers, Workspace keys, Copy on select, Team auto, Team auto budget, Panels, Runtime config status, Package & features, Pricing, Plugins, Account, tui.json settings, Workers file (raw), tui.json (raw). esc on a page goes back to the hub; esc on the hub closes |
/setup |
Guided setup | — | /setup → Guided setup: provider, model, workers, theme; esc skips a step |
/alias |
Aliases | — | /alias exit=учшэ → учшэ now means exit (…/mbm2.json); then typing учшэ quits as exit does, and /учшэ offers /exit. /alias → Aliases, ctrl+d removes the highlighted one; /alias -учшэ → Removed alias учшэ. Recipes: Configuration cookbook |
/rag (/rag_setup) |
RAG | — | /rag → RAG: the knowledge base's state, its settings and index actions; only with a runtime that serves RAG, otherwise RAG is not available from this runtime: … (RAG knowledge base) |
/plugins |
Plugins | ctrl+alt+v |
/plugins → the plugins, + Install a plugin, or one plugin's page to turn it off, set a setting or remove it (Account, plans and plugins) |
/account |
Account | ctrl+alt+a |
/account → licences, balance and usage; Usage for 7, 30 or 90 days, Devices; changes open tui.mbm.mn/account |
/package |
Package & features | ctrl+alt+m |
/package → your plan, its expiry and each feature ✓ or ✗ |
/pricing |
Pricing | <leader>p |
/pricing → each model's price per million tokens now, with ⚡ during a peak window |
/themes |
Switch theme | <leader>t |
/themes → Themes; moving previews, return keeps it |
/status |
View status | <leader>s |
/status → Status: MCP and LSP servers, formatters and configured plugins, each with its state |
/help |
Help | — | /help → Press ctrl+p to see all available actions and commands in any context. |
/reset-ui |
Reset UI state | ctrl+alt+r |
/reset-ui → dialogs close, a pending key sequence is dropped; toast Released 0 keybind lock(s) and 1 dialog(s) |
/redraw |
Redraw screen | ctrl+l |
/redraw → the whole screen is drawn again and the terminal is told once more to report the mouse, focus changes and pastes and to send the keyboard's extra keys. For a window whose mouse stopped working: the wheel no longer scrolls and a drag selects whole rows, borders included (Troubleshooting) |
/restart |
Restart mbm2 | — | /restart → this window starts mbm2 again in the same directory, with the same tabs, the session each showed, the focused tab and unsent prompts; after mbm2 upgrade in another terminal (toast v2.17.0 installed — /restart to switch) it is the installed version. A running turn goes on (Install) |
/upgrade (/upgrade check) |
Upgrade mbm2 | — | /upgrade → Upgrade mbm2 reads tui.mbm.mn's latest: mbm2 v2.17.0 is up to date., or A new release is available: v2.17.0 → v2.18.0 with the release notes when the site has them, and Cancel/Install. Install runs mbm2 upgrade's own download and checks with your saved install password; with none saved (or a refused one) the dialog asks for it in a masked field. Once installed the window restarts as /restart does: same tabs, sessions and unsent prompts, on the new version. A failure shows Update Failed with the reason. /upgrade check only reports (Install) |
/exit (/quit, /q) |
Exit the app | <leader>q |
/exit → mbm2 quits and prints the Session and Continue lines. The words exit, quit and :q typed alone quit too. While the prompt holds other text, <leader>q does nothing (empty the prompt first) |
Details: Configuration, Configuration cookbook.
CLI Commands
Some of mbm2's CLI commands run inside the TUI, on the engine it already uses:
no second process starts, and the output opens in a dialog that fits the screen. Scroll it with
up/down (a line), pgup/pgdn (half the dialog), home/end (the top and the bottom) or the
mouse wheel over the dialog; while there is more than fits, a scrollbar shows on the right and the
status line says N more above / N more below. The title and the key hints stay in place. When the
command asks a question (a name, a choice by number, y/n), type the answer on the dialog's >
line and press return; a secret is shown as dots. esc cancels a running command and closes a
finished one; c copies a finished command's output.
| Command | Palette title | Example and result |
|---|---|---|
/web |
Open web client | /web → the browser opens http://127.0.0.1:<port>/, the web client of this TUI's engine; sign in as mbm with the /serve password. Only for an engine on this machine (127.0.0.1, ::1, localhost) |
/serve |
Server address | /serve → Server: Address, Username, Password ••••••••; r shows the password, c copies it. Another terminal attaches with MBM_SERVER_PASSWORD=<password> mbm2 --attach <address>; mbm2 run, stats and the rest in this directory attach on their own |
/run <message> |
Background runs | /run write the release notes → Running in the background: write the release notes · /run lists it; you stay where you are. When it is done: Run finished: write the release notes · /run opens it. /run alone lists your runs; return opens one. Like mbm2 run, the session refuses questions and plan switches; a permission it asks waits until you open it |
/stats [options] |
Usage statistics | /stats --days 7 --models → the mbm2 stats boxes for the last seven days. In a session, a THIS SESSION box comes first: that session's Input, Output, Reasoning, Cache Read and Cache Write tokens summed over its replies, its Cost (the figure the footer and sidebar show) and its Context: the last reply's tokens and, when the model's limit is known, the same % used as the sidebar and the footer. From the home screen there is no session box. The dialog opens at the top |
/models <provider|--verbose> |
— | /models mbm → the mbm2 models mbm list. Bare /models keeps opening Switch model |
/export <id> [--sanitize] |
— | /export ses_… --sanitize → the session's JSON document, redacted. Bare /export keeps opening Export Options |
/import <file|url> |
— | /import ./cart.json or /import https://tui.mbm.mn/s/<slug> → Imported session: ses_…. Bare /import keeps its dialog |
/mcp [list|add|auth|logout|debug] |
MCP servers | /mcp → mbm2 mcp list; /mcp add asks location, name, type and command in the dialog; /mcp auth github opens the browser for the server's sign-in |
/agent create [options] |
Create agent | /agent create asks the location and a description, generates the agent with the current model, then asks its permissions and mode; /agent create --path . --description "reviews PRs" --mode subagent --permissions read,grep asks nothing |
/permissions, /mfw |
Permission rules | Opens the rules manager for commands, hosts, paths and waivers. Preview and confirm changes before writing. |
/allow host <host>, /allow cmd "<pattern>", /allow path [<key>] <path> |
Preview a permission allow | Opens the add preview directly. tab switches between project and global; enter saves. |
/permissions tidy [--dry-run] [--yes] |
Tidy permission rules | /permissions tidy opens the tidy dialog. It previews stale allow rules and ignored waivers, asks before removing them, and backs up changed files under .mbm/backups/permissions-<stamp>/. It leaves denies alone. See Tidy Old Rules. |
/github (/github install) |
Install GitHub agent | /github → mbm2 github install in the dialog: provider, model, the app install and the workflow file |
Other CLI commands (mbm2 run with its options, serve, web --port, github run, session,
acp, db, …) are not slash commands; /mcp frobnicate or /github run answer with the line to run
in a terminal instead.
Runtime Commands
The runtime adds its own commands to the same list. The bundled runtime lists:
| Command | Description it shows | Example |
|---|---|---|
/init |
guided AGENTS.md setup | /init in a new project |
/review |
review changes [commit|branch|pr], defaults to uncommitted | /review branch |
/manager |
project manager: start|status|resume with the project work log | /manager status lists the plan in docs/todo/current.md (Todo lists) |
/maxcontext |
set or reset the context token limit (maxcontext <number> | reset) | /maxcontext 120000 → toast Context token limit set to 120000. |
/handoff |
write a handoff note for this session (handoff [extra instructions]) | /handoff mention the failing test → toast Handoff note with the note |
/maxcontext caps how much context a session may fill before it is compacted automatically.
It does not stop the work in progress: a reply that is still running keeps going and uses the new
limit from its next step. The value is saved as compaction.max_tokens in the project's
.mbm/mbm.json, so it holds after a restart.
| Typed | Toast |
|---|---|
/maxcontext 120000 |
Context token limit set to 120000. |
/maxcontext reset |
Context limit reset. The model's default context limit now applies. |
/maxcontext lots |
Invalid value "lots". Usage: /maxcontext <number> to set the context token limit, or /maxcontext reset to clear it. |
/handoff asks the session's model for a short note on where the work stands, with the sections
Done, Next steps, Checks and Files, and shows it for 15 seconds. Text after the name is added to the
request as extra instructions. The note is saved with the session (a newer note replaces it) and is
not added to the conversation, so the model does not read it back. If the model cannot be reached,
the toast says Handoff note not written: and why. Notes are also written automatically; see
Handoff notes.
Custom commands from the runtime's configuration appear the same way; commands from MCP servers
are listed as /name:mcp. Text after the name is passed as arguments, and further lines are part of
them. Runtime commands run inside an open session; on the home screen the line is sent as an ordinary
message.
/init sends a prompt that writes or improves AGENTS.md for the project. /review reviews the
uncommitted changes (or /review <commit>, /review <branch>, /review <pr url or number>) in a
child session and then asks the session's agent to sum up what it found.
Custom Commands
A command is a markdown file in .mbm/command/ (the project) or ~/.config/mbm/command/ (every
project); its name is the file name. .mbm/command/fix.md:
---
description: Fix an issue from the tracker
agent: build
---
Fix issue $1. Read @docs/todo.md first. The failing tests are:
!`go test ./... 2>&1 | tail -20`
/fix 42 sends Fix issue 42. Read @docs/todo.md first. The failing tests are: with the test
output in place of the !… line, and the file docs/todo.md attached. The same command in
mbm.json: {"command": {"fix": {"template": "Fix issue $1 …", "description": "…", "agent": "build"}}}.
| In the template | Becomes |
|---|---|
$1, $2, … |
The arguments by position (quotes keep words together); the highest one takes the rest |
$ARGUMENTS |
Everything after the name |
| neither | The arguments are added after the template, on their own paragraph |
!command |
What the command prints, run in the project with your shell. It may take as long as it needs; interrupting the session (esc twice) stops it, and the command is then not sent |
@path |
That file or folder attached (from the repository root; ~/ is your home), or the agent of that name. Outside a git repository a relative path starts at /, as in v1 (@notes.md is /notes.md): write the full path there, @/home/you/project/notes.md |
| Field | Effect |
|---|---|
description |
Shown in the / list |
agent |
The agent that answers; a subagent runs the command as a task in a child session |
model |
provider/model to answer with |
subtask |
true: run as a task in a child session even with a primary agent; false: never |
mbm2 run --command fix 42 runs it from a script. A name that is not a command answers
Command not found: "<name>". Available commands: ….
Palette-Only Commands
These have no slash name; open the palette (ctrl+p) and type part of the title.
| Title | Does |
|---|---|
| Open terminals | The runtime's terminals for this session (Terminal) |
| Copy last assistant message | As <leader>y |
| Stash prompt, Stash pop, Stash list | Park and restore prompts |
| Sharing settings | Manual, Auto, Disabled for the runtime |
| Open share link | Opens the session's share link in a browser |
| Show / Hide tool details, Show / Hide sidebar, Toggle session scrollbar | Transcript display |
| Enable / Disable code concealment | Also <leader>h |
| Switch to light / dark mode, Lock / Unlock theme mode | Theme mode |
| Enable / Disable animations, file context, diff wrapping, paste summary, terminal title, session directory filtering | Preferences, kept in kv.json |
| Config status | The runtime's configuration sources and errors, when the runtime reports them; ctrl+alt+c |
| Toggle debug panel | Connection and event diagnostics; b there saves a bug report, f saves the frame under it (Troubleshooting) |
| Toggle console | The tail of this run's log |
| Write heap snapshot | Writes tui.heap.pprof (a Go heap profile) and toasts Heap snapshot written to <path> |
| Open docs | Opens https://tui.mbm.mn/docs/ in a browser |
| Variant cycle | As ctrl+alt+w |
| Split below, Close split | As <leader>- and <leader>shift+x |
| Remove editor context | Drops the selection an editor integration attached to the prompt |
| Show / Hide tips | On the home screen; also <leader>h there |
Published from revision f88fc66f 2026-11-30