Permissions And Questions
| Reply | Key or click | What the runtime does | When it is offered |
|---|---|---|---|
Allow once |
highlight it, return; or click it |
Runs this one call | Always |
Allow always → This session |
highlight it, return, then return on This session; or click both |
Runs this call and every later call matching the shown patterns in this conversation and its subagents, also after a restart; other sessions still ask | Not for the safe agent |
Allow always → This project (permanent) |
as above, then This project (permanent); for a folder outside the project, ↑/↓ first to keep its parent or everything |
Writes an allow rule for the pattern the Keeps … line shows into the project's .mbm/mbm.json (or mbm.jsonc), where it takes effect; every later session in the project runs matching calls without asking |
Not for the safe agent; needs a v2 runtime |
Allow always → This team (workers of <lead>) |
as above, then This team … |
Runs this call and every later matching call of the lead and every worker of this window, until the window closes; nothing is written to disk | Only in a session of a lead's team (Keep it for the team) |
Allow always → This agent (permanent) |
as above, then This agent (permanent) |
Writes the allow into the asking agent's own file (.mbm/agents/<name>.md), whose rules come after the project's |
Only when a custom agent's own rule is what asks (The agent's own rule asks) |
Reject |
highlight it, return, esc, or click it |
Does not run the call; the agent is told it was refused and carries on without it, and the same request is not asked again in this turn | Always |
Reject with a reason |
Reject on a subagent's request, type, return |
As above, and your sentence goes to the agent | For a request from a child (subagent) session |
Reject & stop |
highlight it, return, or click it |
Does not run the call and ends the turn: the agent stops until your next message | Always |
v1 ended the turn on every Reject without a reason; mbm2 lets the agent carry on and keeps the old
behaviour as Reject & stop.
The runtime decides when to ask; mbm2 only shows the request and sends your reply. In the default
ask mode nothing is approved automatically (Auto mode is the one you turn on for
unattended workers), and a request that arrived while you were disconnected is shown again when the
connection returns.
When An Agent Asks
The default rules of the bundled runtime, per agent (Agents and models):
| Action | build |
safe |
plan |
|---|---|---|---|
| Read, search and list files in the project | runs | runs | runs |
Read *.env and *.env.* files (not *.env.example) |
asks | asks | asks |
| Touch a path outside the project (the runtime's own temporary and skill directories excepted) | asks | asks | asks |
| Edit, write or patch a file | runs | asks | refused, except plan files under .mbm/plans/ |
Run a shell command (bash) |
runs | asks | runs |
Repeat the same call in a loop (doom_loop) |
asks | asks | asks |
| Ask you a question | allowed | allowed | allowed |
An operator or you can change these rules in the runtime's own configuration (permission in
mbm.json); they are not client settings. A shell command in plan can still change files, so use
safe when you want to see every command first.
The Prompt
A prompt appears above the input box of the session that asked. Its left stripe has the colour of
the session's agent (in the bundled runtime: pink for build, green for safe, orange for plan);
the reply buttons are drawn as boxes and the highlighted one has a filled background.
┃
┃ △ Permission required
┃ → Call tool external_directory
┃
┃ Allow once Reject Allow always Reject & stop
┃ ⇆ select enter confirm ctrl+f fullscreen
┃
This one is build asking to touch a path outside the project.
| Key | Action |
|---|---|
left/h, right/l |
Move between buttons |
return |
Confirm the highlighted button |
up, down, pgup, pgdn |
Scroll a long request (a huge command, a long list of paths); a bar on the right shows there is more |
esc |
Reject |
ctrl+f |
Show the request full screen, or back (ctrl+f minimize); the hint shows whatever key permission.prompt.fullscreen is bound to |
ctrl+c |
Reject (it does not quit while a prompt is open) |
| Mouse | Hovering a button highlights it; releasing on it answers as return would. A long request scrolls with the wheel; the buttons stay in view |
The title row names what is asked: edit <path>, read <path>, list <path>, glob "<pattern>",
grep "<pattern>", or Call tool <name> for anything else. With more than one request waiting the
hint row ends in 2 pending; they are answered in order.
Example 1: Approve One Shell Command (safe)
You are on safe and ask run the cart tests. The agent wants go test ./internal/cart/...:
┃ △ Permission required
┃ → Call tool bash
┃
┃ Allow once Reject Reject & stop
┃ ⇆ select enter confirm ctrl+f fullscreen
safe offers no Allow always. Allow once is highlighted; press return. The command runs and
its output appears in the transcript. The next shell command asks again.
Example 2: Refuse A Secret (build)
The agent decides to read .env:
┃ △ Permission required
┃ → read /home/you/src/shop-api/.env
┃
┃ Allow once Reject Allow always Reject & stop
Press esc (or move to Reject and press return). The file is not read; the agent continues
without it. Tell it what to use instead in your next prompt, for example use .env.example.
Example 3: Allow Always, For This Session Or For This Project
The agent runs git push origin main and you want to keep an allow rule. Other rules and checks can still
apply. Move to Allow always and press return. A second step asks where to keep the rule:
┃ △ Always allow
┃
┃ This will allow the following patterns in this session, or in this project for good
┃
┃ - git push *
┃
┃ Keeps bash git push * for this session
┃
┃ This session This project (permanent) Cancel ⇆ select enter confirm
The Keeps … line says exactly what the highlighted choice keeps: the permission, the pattern and
where (for this session, for this project); on Cancel it reads Keeps nothing: back to the question.
| Choice | Effect |
|---|---|
This session |
Sends always; matching calls in this conversation (and its subagents) run without asking, also after a restart. A new session asks again |
This project (permanent) |
The runtime adds "git push *": "allow" under permission.bash in the project's .mbm/mbm.json (.mbm/mbm.jsonc when you have one) — in a git repository the closest such file between your directory and the repository root, which is read last (Rules across folders), else the repository root's — right where it takes effect, and keeps the rest of the file — comments, order, spacing — as you wrote it. Later sessions in the project inherit the allow rule; other checks and denies still apply. Choosing it again for a rule that is already there changes nothing and succeeds |
Cancel, or esc |
Back to the three buttons; nothing is sent |
left/right |
Moves between the three |
Allow always keeps the command, subcommand and any leading assignments or wrappers that the next call needs to match. Review the saved pattern before confirming; a saved allow is not a waiver of other checks or an override of a deny.
| Command | Saved allow pattern |
|---|---|
mbm2 team send team/docs 'Check the inbox' |
mbm2 team send *, not mbm2 * |
git -C /dir status --short |
git -C /dir status *, not git -C * |
bash run.sh example |
bash run.sh *, not bash * |
env A=1 mbm2 team send team/docs 'Check the inbox' |
env A=1 mbm2 team send *, not env * |
time git status |
time git status *, not time * |
A forked session starts with a copy of the parent conversation's saved session rules and waivers.
What the project file looks like afterwards (a file that already asked for every command):
{
// asked unless listed
"permission": {
"bash": {
"*": "ask",
"git push *": "allow"
}
}
}
The last matching rule normally decides. This project writes an allow before overlapping denies in
the same file so those denies still win for what they cover.
For example, a broad allow may be saved for ordinary pushes without allowing force pushes. Denies from
other applicable files or scopes are not waived. If there is no overlapping deny, the allow can go after
an earlier ask rule. The runtime refuses, and
writes nothing, when the rule could not take effect; the prompt comes back and a toast
Not kept for this project: … says why in the runtime's words:
| Message | Cause and fix |
|---|---|
a deny rule for bash git push * is configured; remove it there to allow it |
A deny for the same pattern exists. The runtime never overwrites a deny; edit the file yourself if you mean it |
| An allow would override a deny from another applicable file | The runtime refuses the project save and names the conflicting file. Changing scopes does not waive an applicable deny. |
the rule "*": "ask" comes after "bash" in .mbm/mbm.json and still decides … |
A member of permission written after bash ("*", or a wildcard key) wins over anything under bash. Move it above bash, or choose This session |
the project file was left as it was: the rule "*": "ask" in /home/me/app/.synoti/mbm.json still decides bash "git push origin main", and it is read after the project's file … |
A rule read after the project file's decides this call; the message names where it is written — a file's path, set by MBM_PERMISSION, of the legacy "tools" setting, kept for this conversation. Change that rule, or choose This session |
the project file was left as it was: the rule "bash": "ask" of the agent pm's own file /home/me/app/.mbm/agents/pm.md still decides bash "npm test", and an agent's own rules are read after every project file; choose «This agent (permanent)» … |
The asking agent's own file says bash: ask, and an agent's rules come after every project file. Choose This agent (permanent), or move the bash policy into the project's mbm.json (The agent's own rule asks) |
this request is confirmed every time; it cannot be kept |
Some requests (a worktree merge) always ask |
a project file keeps doom_loop for everything at once, not for bash alone … |
doom_loop, webfetch, todowrite, question and the other single-action permissions can only be allowed as a whole; set them yourself, or choose This session |
A command that starts with variable assignments or a redirection (FOO=1 npm run dev) is kept with
its arity pattern (npm run dev *) and as written, because the arity pattern alone never
matches it; This session and This project then cover at least the call you answered.
Commands With A Here-Document
A command whose input is a here-document (mbm2 team send zve/zve-docs 'title' - <<'EOF' and the lines up to
EOF) is read as the command before <<: the body is the command's input, not more commands, so a body
that mentions rm -rf / is not a risk, and This session or This project keeps the rule for the
command (mbm2 team send *, with any leading assignments kept in front), never the body. Other rules and
checks still apply to the next send. The body is read as commands only where the shell runs it: an unquoted
delimiter expands $(…) and backticks in it, and a shell that reads its script from the input
(bash <<EOF, sh -s, cat <<EOF | sh) runs it. For an eligible Python or Node here-document,
This project keeps the displayed command pattern, not the script body. The shell around the
here-document is still checked. The command words covered by a Bash pattern are normalized, so extra spaces,
tabs and line continuations between those words do not produce different saved rules. Quoted arguments and
the rest of the command are not rewritten. A line neither parser can read cannot be kept as a project,
member or team rule; if it triggers the unreadable-command check, use Allow once only after reviewing
what the call will do.
Some parallel, xargs and watch calls now ask because the runtime cannot reliably tell what command
will run. This includes a parallel job supplied as input, an xargs option missing its required value,
or a watch command whose shell text cannot be parsed. Review the actual command and its input before
allowing it once, or have the agent rewrite it with a fixed command and explicit arguments. Do not add a
blanket allow for the wrapper; even a recognized command is still subject to the usual permission checks.
Keep A Folder Outside The Project
The agent reads /etc/nginx/nginx.conf, outside the project, so the runtime asks for
external_directory with the folder pattern /etc/nginx/*. Choose Allow always, then press
down once:
┃ △ Always allow
┃
┃ This will allow the following patterns in this session, or in this project for good
┃
┃ - /etc/nginx/*
┃
┃ Keeps external_directory /etc/* for this project
┃ ↑↓ This project keeps ○ this folder ● its parent ○ everything
┃
┃ This session This project (permanent) Cancel ⇆ select enter confirm
Choice (up/down) |
Kept in the project | Covers |
|---|---|---|
this folder (the default) |
"/etc/nginx/*": "allow" |
Everything under /etc/nginx |
its parent |
"/etc/*": "allow" |
Everything under /etc |
everything |
"*": "allow" |
Every path outside the project; asks for a second return on a confirm line, esc goes back |
up/down also move the highlight to This project, since the widening applies only there;
This session always keeps the request's own pattern. The runtime accepts a kept pattern only when
it covers the request — never a narrower one or a different permission — and refuses anything else
with the prompt still waiting. The offer appears for one absolute folder pattern (/…/*, ~/…/*,
C:\…\*); a shell command's patterns are kept as shown.
When the request asks for everything (*) the body reads
This will allow edit in this session, or in this project for good. instead of a list. Read the
patterns before you choose: a broad pattern covers more than this one call. A runtime that cannot
write the project file (a v1 server) offers This session and Cancel only. The web page and «mbm
code» offer the same two choices.
Keep It For The Team
With a lead, the lead and every worker the window started are
one team: planner, coder and reviewer used to ask the same command three times, since This session covers one conversation. In a session of such a team the always stage offers a choice right
after This session:
┃ Keeps bash npm test * for planner's team until this window closes
┃
┃ This session This team (workers of planner) This project (permanent) Cancel
| Choice | Effect |
|---|---|
This team (workers of planner) |
The runtime keeps "npm test *": "allow" for every session of the team — the lead, every worker, their subagents — and answers the team's other waiting requests it now allows. It is read after the agents' rules, like This session, and lives in the runtime's memory: nothing is written to disk, and it ends when the window closes |
/team rules, or r in /team |
Lists the team's rules; ↑/↓ choose one, d revokes it, esc goes back |
A session of no lead's team is not offered it (the runtime refuses scope: "team" for one with
this session belongs to no lead's team; choose «This session»). The web page and «mbm code» offer
the same button. The rules belong to the window: another mbm2 window in the same project has a team
of its own.
Keep It For The Member
A team member works in many sessions: a wake, a rotation to a fresh conversation, /team fresh or a copy
each starts a new one, and This session would ask again in each. In a member's session
(mbm2 team agents lists the members: an agent named as a role of the project's team, such as
zve-pm, with its agent file .mbm/agents/zve-pm.md) the always stage therefore opens on
This member (permanent): the allow is written into the member's agent file, as
This agent does, and every session of that member reads it.
This session and This project (permanent) are still offered after it.
┃ △ Always allow
┃
┃ This will allow the following patterns for every session of this member, or in this session only
┃
┃ - mbm2 team send *
┃
┃ Keeps bash mbm2 team send * for every session of zve-pm, in its agent file /home/me/app/.mbm/agents/zve-pm.md
┃
┃ This member (permanent) This session This project (permanent) Cancel
A rule kept for a member never overrides a deny: if the project (or another earlier rule) denies a
pattern that overlaps it, say rm -rf* against a kept rm *, This member is refused, the dialog opens on
This session and says why, and This session keeps only the exact command. The dialog names the file the
rule is written to; when that is the team store's (.mbm2/team/…), the rule reaches that member on every host
the store syncs to, and the dialog says so.
mbm2 answer esc_… always does the same for a member's escalated call: the rule is kept for the session
and for the member. main, the built-in agents and a member who is a person of the team keep
This session as the first choice. A member whose card names a terminal CLI (Agent: claude) runs
outside mbm2, so mbm2's rules do not apply to its tab and there is no mbm2 dialog or member scope for it:
allow things in that CLI's own settings.
The Agent's Own Rule Asks
A custom agent can carry its own permission, and an agent's rules are read
after every project file. An agent pm written as
---
description: Product manager
mode: primary
permission:
bash: ask
---
You plan the work.
asks for every command that is not read-only whatever the project's
mbm.json allows, so This project cannot keep
npm test: the runtime writes the rule, finds that pm's own bash: ask still decides, undoes
the write and says so, naming the file. For such a request the always stage offers a fourth choice:
┃ △ Always allow
┃
┃ This will allow the following patterns in this session, or for good
┃
┃ - npm test *
┃
┃ Keeps bash npm test * in the agent pm's file /home/me/app/.mbm/agents/pm.md
┃
┃ This session This project (permanent) This agent (permanent) Cancel
This agent (permanent) writes the allow into the agent's frontmatter, right after its catch-all,
and leaves the rest of the file — the other keys, comments, the prompt — as it was:
---
description: Product manager
mode: primary
permission:
bash:
"*": ask
"npm test *": allow
---
You plan the work.
bash: ask and bash: {"*": ask} mean the same; the runtime turns the first into the second to
add the pattern. It refuses, and writes nothing, when the file is read-only or not writable
(… pm.md is read-only; make it writable or choose «This session»), when a deny for the pattern
is in the file, or when the agent is declared in an mbm.json instead of its own file. Choosing it
again for a rule that is already there changes nothing. The web page and «mbm code» offer the same
button. The better fix is usually to keep the bash policy in the project's mbm.json and leave
the agent only its role's limits (Custom agents).
Manage Permission Rules
| Section | What it shows |
|---|---|
| Commands | Bash command patterns and their allow, ask or deny actions |
| Hosts | Hosts and ranges listed in auto.allow_hosts |
| Paths | Patterns for file permissions such as read, edit and external_directory |
| Waivers | The check, permission key and pattern recorded for each file waiver |
Open /permissions (or /mfw). Select a rule to see its scope, source file and where it came from.
The manager lists supported rules in global, project and project agent files, not rules kept in a
session or in team memory. It can add rules to the project or global file and remove listed rules from
those files or a listed agent file.
- Press
ato add, select a section and enter a pattern. For a command or path,tabcycles allow, ask and deny before you preview. To remove a rule, select it and pressd. - Review the preview: it shows the target scope and file, the lines that would change and any backup path.
In an add preview,
tabswitches between project and global. Pressenterto confirm a regular edit orescto cancel. A broad destructive waiver has a separate confirmation. Before an existing file changes, the manager copies it to<file>.bak. - Press
tto open the tidy flow; it asks before removing findings.
/allow host api.example.com, /allow cmd "go test *" and /allow path read /srv/data/* open the
add preview directly. If you omit the key with /allow path, it uses external_directory. In a terminal,
use mbm2 permissions list, mbm2 permissions add <section> <pattern> or
mbm2 permissions remove <pattern>. Add defaults to project scope; --global changes the target.
Add and remove show the planned changes before writing. After a successful Allow always save, the
confirmation toast tells you where it was kept and says Manage with /permissions.
Destructive waivers in the manager
Unreleased. In /permissions or mbm2 permissions add, you can save an eligible destructive waiver at
project scope. An exact waiver matches only the exact call. The manager saves it in the project and records
it on this host; removing the waiver also removes that record.
A broad pattern that is still eligible shows a red warning in the preview. Press y in the window to confirm;
enter does nothing. The CLI asks for explicit confirmation in a terminal. To confirm from the command line
without the prompt, pass --confirm-broad and --yes; --yes alone cannot confirm a broad waiver.
The manager still refuses global destructive waivers, * and other patterns that would waive a check for
all calls, and waivers for credentials, permission settings, or plan mode. The manager does not answer a pending
request or save a session exception. See what Allow always can waive for the
separate prompt options.
Who Can Change Permissions
Permission-setting changes are for the person, not for an agent to approve on its own. On the agent's Bash
path, permission-settings covers mbm2 permissions add or remove, permissions tidy with
--fix, --apply or --yes, and mbm2 config set or unset for permission, auto, tools or mode
keys. It also covers recognized loopback calls to settings and approval routes, including /permission,
/question, /escalation, /team/permission, /needs, /config and /trust. The engine strips its
credential from agent-launched processes and treats .engine-address as a credentials path.
Unreleased on shared, local Linux engines: The engine also requires a person token for permission,
question, escalation, and team-permission replies; Trust and config writes; rules-manager writes
(POST /permission/rules); and blocked-task decisions (POST /needs/{id}/task). Marking an item seen
(POST /needs/{id}/seen) does not require the token and does not answer it.
Use the mbm2 window or a separate terminal you opened yourself. Agent subprocesses and terminal tabs
started by the engine cannot use those person-only routes. The check distinguishes processes started by
this engine; it does not verify that an independently started process is operated by a person. This protection
does not apply on macOS or Windows, or to engines started by mbm2 serve or mbm2 web. The engine defines
these routes in internal/person/person.go.
On the shared local Linux engine in v2.24.45-793a3646, only the person can allow or deny a head-seat
or terminal claim. A seat address, TEAM_ME and a team message are not approval. See
Set up, claim and reclaim a head seat for how to
review the pending item in the window and answer it from an already-recognized terminal.
Tidy Old Rules
mbm2 permissions tidy (in the TUI: /permissions tidy) lists stale allow rules and ignored waivers
in the project's .mbm/mbm.json[c] and agent files under .mbm/agents/. It removes the findings after
you confirm:
$ mbm2 permissions tidy
Allow rules that can never match a later call (3):
/home/me/app/.mbm/mbm.jsonc
bash TEAM_ME=zve/zve-pm mbm2 team send zve/zve-docs 'title' - <<'EOF'⏎body⏎EOF
literal: a whole command line with a newline or a here-document, which no later call repeats
bash mteam show zangila-ve/inbox/zve-docs/*
former: names the former team zangila-ve, which no longer exists
bash git status *
duplicate: the same rule is written above it
Remove them? The changed files are copied to /home/me/app/.mbm/backups/permissions-20261127-090000 first. [y/N]
| Found | When |
|---|---|
| literal | no * or ?, and the pattern holds a newline or << |
| former | the pattern names a former team of the project's team (former_names in its team.json, followed by /) or a role its alias map archived |
| duplicate | the same permission and pattern is written twice in one file, apart from spacing |
wide-waiver |
the waiver pattern is too broad |
destructive-waiver |
a project or ordinary agent file contains a protected waiver the host has not recognized |
Tidy leaves deny and ask rules alone. --dry-run prints the list and writes nothing; --yes prints the
list and removes the findings without prompting. With no terminal and no --yes, it only prints.
Each changed file is copied to
.mbm/backups/permissions-<time>/ first and edited in place, so its comments, the other rules and an
agent's prompt stay as written. mbm2 team check reports the same rules, each with the command that removes
it.
Rules Across Folders
The runtime reads permission from every configuration file that applies to the directory a
session works in, and evaluates the rules in this order, the last matching rule deciding:
| # | File | Example |
|---|---|---|
| 1 | The global ~/.config/mbm/mbm.json[c] |
your defaults everywhere |
| 2 | MBM_CONFIG, ~/.mbm/mbm.json[c], MBM_CONFIG_DIR/mbm.json[c] |
the same, older places |
| 3 | mbm.json[c] in the repository's folders, root first |
rarely used |
| 4 | .mbm/mbm.json[c] in the repository's folders, root first, your folder last |
repo/.mbm/, then repo/services/api/.mbm/ |
| 5 | MBM_CONFIG_CONTENT, the managed configuration, then MBM_PERMISSION |
an administrator's, a launcher's |
Rules are not merged into one object; each file's rules follow the files before it. A subfolder therefore inherits its repository's rules and can override any of them, as git and eslint configurations layer:
// repo/.mbm/mbm.json
{ "permission": { "bash": "ask" } }
// repo/services/api/.mbm/mbm.json
{ "permission": { "bash": "allow" } }
| Session working in | bash |
|---|---|
repo/ |
asks |
repo/services/api/ (or below) |
runs |
repo/web/ |
asks (it reads only repo/.mbm/) |
Inside one file the same rule holds: later keys win, so put the broad rule first and the exceptions after it.
{
"permission": {
"external_directory": "allow", // read and touch any path outside the project…
"bash": {
"*": "ask", // "*" first: every command asks…
"git status*": "allow" // …except this one, written after it
}
}
}
"external_directory": "allow" lets the agent reach every path outside the project without asking
(the reads of *.env files still ask: that is the read permission). A "*": "ask" written
last in an object overrides everything above it, and a subfolder's "*": "allow" overrides a
deny its repository wrote — write the subfolder's exceptions as narrowly as you mean them.
This is a deliberate difference from v1, where the farthest folder's .mbm won, ~/.mbm came after
every project folder, and a key two files both wrote kept the first file's position. With the same
files, v1 asked for bash in repo/services/api/ and v2 runs it.
Read-Only Commands Never Ask
A shell command that only reads runs without a prompt, even under "bash": "ask", "*": "ask" or an
agent's own bash: ask. The transcript shows a dim line for each such call, and /auto log lists it:
✓ permission · bash "ls -lt *.json": read-only, not asked
| Read-only | Not read-only (asks as before) |
|---|---|
ls, cat, head, tail, wc, stat, file, pwd, echo, which, date, jq |
sed (even sed -n), awk, tee, xargs, env, sudo, a path like /bin/ls |
grep, rg |
rg --pre <program> |
find |
with -exec, -execdir, -ok, -okdir, -delete, -fprint, -fprint0, -fprintf, -fls |
sort, uniq |
sort -o/--output/--compress-program, uniq in out (a second file is written) |
git status, git diff, git log, git show, git branch that lists; also after -C <dir>, --no-pager and -c for display keys (color.*, core.quotepath, …) |
git branch <name> (creates), -d/-m/…, --output, --ext-diff, --textconv, -c core.pager=…, any other subcommand |
cmd1 && cmd2, cmd1 | cmd2, cmd1; cmd2 when every command is read-only |
one command that is not (ls && rm -rf build) |
2>/dev/null, > /dev/null, &>/dev/null, 2>&1 |
any other redirection (> out.txt, >>, `> |
LC_ALL=C sort list, LANG=…, TZ=…, NO_COLOR=1 in front |
LD_PRELOAD=…, PATH=… or any other assignment in front |
$VAR, $(…), `…`, <(…), & (background), ( … ), { …; }, if/for/while/case |
|
a path naming an environment file (.env, app.env, .env.local; .env.example is fine) |
Rules still decide around it:
- A rule that names the command still asks: with
"bash": {"*": "ask", "git log*": "ask"},git logasks andgit statusdoes not. Only a catch-all (*) is skipped. - A
denyalways refuses, whatever it names. - A read outside the project still asks for
external_directoryfirst:ls /etcasks to reach/etc/*, ascat /etc/hostsalways has; inside the project nothing asks.
To ask for every command again, as before this release, set the switch in mbm.json:
{ "permission": { "read_only_commands": false, "bash": "ask" } }
One Prompt Per Decision
The runtime avoids asking you the same thing twice:
| Situation | What happens |
|---|---|
| You reject a request, with or without a reason, and the agent tries the same call again in the same turn | Refused at once with your answer; the agent is told you already said no. Your next message (or the next turn) starts afresh |
| The session asks the same request again while the first is still waiting | One prompt; your answer applies to both calls |
This project in one tab while another tab of the same project waits on the same request |
The other tab's request is answered too; nothing is written twice |
Measured on one scripted scenario (a read outside the project rejected with a reason and retried
three times, LC_ALL=C echo kept three times with This session, git rev-list --count HEAD twice
with This project in a project whose file asked for git rev-list * before "*": "ask", then the
same command in a second session): v2.16.80 showed 9 prompts and refused both This project replies;
now 3 prompts and none refused.
Subagent Requests
A subagent (for example one started with @explore) runs in a child session, but you do not have to
open it to answer. The root session gathers the pending permission requests and questions of
itself and every child, newest child first, and shows them in place of its own prompt. You answer
them where you are; the child goes on.
| You are in | You see |
|---|---|
| The parent session | Its own requests and its subagents' requests, one at a time |
| The child session | The child's transcript and its subagent footer; answer in the parent |
| Another worker tab | ! on the parent's tab and a toast, as for any request |
Example 4: Reject With A Reason (Subagent)
When you Reject a request that came from a subagent, the prompt asks what to do instead:
┃ △ Reject permission
┃ Tell mBm what to do differently: use the fixtures in testdata/ instead
┃
┃ enter confirm esc cancel
Type the sentence (the usual editing keys work) and press return. esc goes back to the buttons
without replying.
Requests In Other Tabs
With workers, a request can arrive in a tab you are not looking at:
| Where | What you see |
|---|---|
| Tab bar | The tab's mark turns to ! |
| Bar, right side | A toast such as builder needs you — alt+2 |
Overview (<leader>o) |
The card's last row reads like Allow bash go test ./...? |
Press the alt+n shown to go there and answer. Focus never moves by itself.
Questions
An agent can ask you a question instead of guessing. The prompt lists numbered answers:
┃ Which database should the tests use?
┃
┃ 1. SQLite in memory
┃ fast, no setup
┃ 2. The docker-compose Postgres
┃ 3. Type your own answer
┃
┃ ↑↓ select enter submit esc dismiss
| Key | Action |
|---|---|
up/k, down/j |
Move between answers |
return |
Pick the highlighted answer (toggle for a multiple-choice question) |
1 … 9 |
Pick that answer at once |
Type your own answer, then return |
An editor row opens; type, return submits it, esc closes it |
tab/shift+tab, left/right |
Next / previous question when several are asked |
esc |
Dismiss: the question is rejected and the turn ends, as in v1 |
| Mouse | A click on an answer picks it (or opens the typed-answer row); a click on a question's tab selects it |
A question that allows several answers shows (select all that apply) and marks picks [✓];
picked answers are drawn in the success colour. A typed answer is kept when you move away and back.
With several questions a tab row shows each header and a final Confirm tab; it lists every answer
(or (not answered)) and return there submits them all.
A Countdown On Every Ask
By default a request waits until someone answers it. Set ask_timeout (seconds) in mbm.json and
every permission and question counts down, then is rejected:
{ "ask_timeout": 300 }
| Where | What you see |
|---|---|
| The prompt in mbm2 | rejects in 4m 59s before the hints, rejects in 42s in the last minute, rejecting… at zero |
The web page (/rc, mbm2 web, mbm code) |
The same line on the card |
mbm2 send --wait in a terminal |
The same line above the answer |
At zero the request is rejected with the reason no answer within 300s; the agent is told and
carries on. A timeout never approves anything. The value is read at each request, so a change
applies to the next one; 0 or no key waits for ever. v1 refuses a file that sets ask_timeout.
When No One Is Watching
A request that comes from a message another agent sent with mbm2 send goes back to that sender
first (Teamwork). If no one answers there:
- A mbm2 window whose tab shows the session prompts as usual; any other tab shows a toast,
Waiting for an answer in <session>: permission bash (from team/docs, mbm2 send). - With
/rc machineon,tui.mbm.mn/code/<machine>lists it under Waiting for an answer, with a link to the session where you answer it. ask_timeout, when set, rejects it.
Another agent can answer a question with mbm2 answer, never a permission: only a person approves a
call.
Auto Mode
A worker that runs with no one watching would stop at every request its rules leave as ask. In
auto mode the runtime decides those itself and hands only the rest to a person.
| Mode | What happens to a request the rules leave as ask |
Set it with |
|---|---|---|
ask |
It waits for your answer, as above | /mode ask |
auto (default) |
Hard guardrails first; then the session's small model judges it against the task; what neither settles waits for a person | /mode auto, mbm2 run --auto, mbm2 send --auto, "mode": "auto" on a session worker in workers.json |
plan |
Read only: edits are refused, and a command that does more than read asks even when the rules allow it | /mode plan |
trust (never a default) |
Runs ordinary requests without prompting and records the allowances in /auto log. Denies refuse; Trust checks ask when no matching waiver applies. |
/mode trust, /mode trust all |
Auto is the default (since 2026-11-27): a session that names no mode works in auto, everywhere — your
main session, workers and the team's members. /mode ask (or "mode": "ask" on a worker) keeps a session
asking, and it stays so; /mode default ask (or "permission": {"default_mode": "ask"} in mbm.json)
makes ask the default again for a project or for all of them. The status row shows AUTO or PLAN while
that mode is on. A subagent works in the mode of the session that started it.
Claude Code Tab Permissions
At launch, mbm2 uses the worker's configured mode or the mbm2 default to select Claude Code's
--permission-mode. A worker's explicit permission-mode argument takes precedence.
| mbm2 mode | Claude Code launch mode |
|---|---|
| Auto | auto if the installed claude --help lists it; otherwise acceptEdits |
| Ask | manual |
| Plan | plan |
| Trust | acceptEdits |
mbm2 checks support once per unchanged binary and checks again after an upgrade. It never chooses
bypassPermissions or dontAsk. It supplies no permission-mode flag to agy or Codex tabs.
What Auto Mode Decides
| Step | What it does |
|---|---|
| 1. Rules | A deny refuses and an allow runs, exactly as in ask — but the guardrails are checked even for a call a rule allows |
| 2. Hard guardrails | Never run without a person, whatever the judge would say: a hit is handed to you as a normal prompt that names the guardrail |
| 3. The judge | The session's small model (small_model, else the session's model) reads a fixed policy prompt, the task (your first and latest message) and the one action, and answers allow, deny or escalate with a one-line reason; a deny tells the agent why and it carries on. No answer within 20 seconds, an error, or an answer that is not the JSON it must be is an escalation |
| 4. Questions | An option marked (Recommended) is taken (the agent's question tool marks its recommendation so); a question without one waits for you |
The judge never sees secrets: environment values, tokens, passwords, Authorization headers and
key-like strings are replaced with [redacted] before it reads anything.
| Guardrail | Examples that trip it |
|---|---|
delete-outside |
rm -rf ~/projects, rm -rf "$TARGET", find / -delete, sh -c 'rm -rf /srv/data' |
force-push |
git push --force, git push -f, git push origin +main, git push --mirror, git push origin --delete x |
history-rewrite |
git reset --hard origin/main, git rebase or git commit --amend on main/master/release*, git filter-branch |
deploy |
npm publish, make deploy, ./scripts/deploy.sh, docker push, kubectl apply, terraform apply, gh release create |
credentials |
reading or editing .env, *.pem, *.key, id_ed25519, credentials.json, auth.json, .netrc, ~/.aws/*, ~/.kube/config (.env.example is fine) |
sudo |
sudo …, su -c …, doas … |
permission-settings |
editing mbm.json, mbm2.json, workers.json or .mbm/*.json, by a tool or by sed -i, tee, > |
network-send |
curl -d …, curl -F file=@…, wget --post-file, scp/rsync to a remote, nc — to a host not in auto.allow_hosts |
external-directory |
a path outside the project that the rules would ask about and auto.roots does not list |
impersonate |
Setting TEAM_ME to another member, answering with --as-person, or changing team people |
impersonate-head |
Setting TEAM_ME to a head seat, including <team>/main |
Unreleased: A team session normally sets TEAM_ME to its member address already. Explicitly assigning
that same address does not trigger either impersonation guard. Other assignments in the same command still
get checked, and other guardrails still apply.
The check reads every part of a compound line (a && b; c | d), through FOO=1 prefixes,
env/nice/timeout wrappers, quotes, $(…), backticks, bash -c and eval; a line it cannot
read (an unclosed quote) is handed to you too.
The deploy check reads a command by what it runs, not by the names it is given. For mbm2,
mbm and mteam only the subcommand counts (the first word that is not a flag; after team or
worker, the next one), and a read-only one never trips: show, inbox, status, who, list,
roles, people, peers, log, help, cat, version, models, doctor — so mteam show …/2026-11-26-…-promote-approved-…-to-public-po.md runs, while mbm2 team publish still asks.
For other runners (npm run deploy:prod, make deploy), a task word matches as before; a path
argument matches only by its own name (bun scripts/deploy.ts), only for a runner that executes it
(bun, deno, npx, uv, …), and never when it is a document (.md, .txt, .json, .html,
.yaml) whose long hyphenated name merely contains the word.
{
"small_model": "mbm/deepseek-v4-flash",
"auto": {
"allow_hosts": ["api.example.com", ".corp.internal"],
"roots": ["/srv/cache"],
"escalate_wait": 120
}
}
allow_hosts lists hosts an auto session may send data to (a leading . covers subdomains;
localhost is always allowed); roots lists folders outside the project it may reach and delete in;
escalate_wait is how many seconds an escalation waits for an answer before it is handed off (below).
SSH forwarding (unreleased). The SSH server and the host a forward reaches are checked separately.
Auto mode checks the targets in -L, -R, -W, -o LocalForward=, and -o RemoteForward= against
auto.allow_hosts. Loopback targets are allowed; a forwarding spec mbm2 cannot parse asks. For example,
ssh -L 8080:db.internal:80 ns5 asks about db.internal if it is not allowed, even when ns5 is listed.
-D and -o DynamicForward= ask even if the SSH server is listed: a SOCKS forward can reach arbitrary hosts.
When Auto Mode Needs A Person
A guardrail hit, a judge's escalate or a question without a recommended option is an
escalation, with an id like esc_001a21…. It goes to the first of these that answers:
| Step | Who sees it | How they answer |
|---|---|---|
| 1. The sender | The person or agent whose mbm2 send started the turn (Teamwork) |
At the terminal of send --wait; another agent may answer a question with mbm2 answer, never a permission — that goes on to step 2 |
| 2. A window | The mbm2 tab that shows the session prompts as usual; every other mbm2 window on the computer shows Waiting for an answer in <session>: … (auto: <reason>); tui.mbm.mn/code/<machine> lists it under Waiting for an answer |
The normal prompt, or the buttons on mbm code |
| 3. A hand-off | No one answered within escalate_wait seconds (default 120; 0 goes straight here) |
See below |
On a hand-off the call is refused, and the agent reads one line:
escalated: esc_001a21… — auto mode handed this call to a person (sudo runs a command as another user);
it waits in the hand-off /home/me/app/.mbm2/team/inbox/mbm2-pm/2026-11-25-from-mbm2-auto-escalation-….md
for mbm2/mbm2-pm. Do not retry it: continue with other work, or end the turn with a summary of what waits.
The answer comes to this session as a new message.
| The project has | The hand-off is |
|---|---|
A team store (.mbm2/team, the project's, or a role folder's link to it) and a role: the session's agent when it is a member of the team (zve-pm is zve/zve-pm, whatever folder it works in), else the .mbm2/role file at or above the session's folder that mbm2 team setup leaves in a role folder |
A file in the team's inbox, for the role that gave the work, else the team's *-pm role (else the session's own role): From, To, Status: open, Evidence, what waits (the command, or the question and its options), why auto mode did not decide it, and how to answer. mbm2 writes and commits it in the store and pushes the store's history; no other program runs |
| Neither | A notice: tui.mbm.mn/code/<machine> lists it with Allow, Always and Deny (a question: its options and Dismiss), and /auto log lists it as waiting |
Secrets are redacted in the file as they are for the judge.
Answer An Escalation
Find what waits, then answer it once, from anywhere that reaches the computer's mbm2:
$ mbm2 answer
esc_001a21… ses_1a2b3c Fix the parser 4m bash: sudo make install
per_001a2c… ses_9f8e7d Docs 12s edit docs/guide.md
mbm2 answer ses_1a2b3c allow answers the one request waiting in that session as its id would
(allow, always, deny, an option's text for a question); with several waiting it lists them and
asks for the id, with none it says so. In the window, /auto log marks a request that waits needs
you, lists those first, and its detail names the request (esc_…, per_… or que_…), the
session that asks it and what it asks, with buttons as the permission prompt has them: Allow
once, Allow always and Deny (which asks for an optional reason) for a permission, one
button per option and Dismiss for a question. Click one, or press a, A, d, 1-9, or
tab/the arrows and enter; the detail then says Answered: …. This works for the tab's own
pending prompt too — one auto mode escalated that has no esc_… yet.
$ mbm2 answer esc_001a21… allow
mbm2 answer: esc_001a21… answered allow; the session goes on in a new turn
| Answer | What the worker gets |
|---|---|
allow (or once) |
A new message, Approved: bash: sudo make install — run it now and continue. …; that one call runs once, past its guardrail. It is not a rule: the next identical call is escalated again |
always |
Approves the call and keeps an allow rule. An eligible check also gets a waiver; for protected checks it covers only the approved request. |
deny "<why>" |
Denied: bash: make release — do not run it. Why: <why>. … |
"<answer>" (a question) |
The answer to your question: «Which region?»: eu-north. …; deny dismisses the question |
| nothing | mbm2 answer esc_… reads the reply to its hand-off (mbm2 team reply, the …-result.md beside it): the first line of the reply is the answer |
| a reply to the hand-off | The engine running the worker reads it itself at its next pull of the clone (a minute while an escalation waits): a question takes any role's reply; a permission only a person's (below) |
The other places answer the same way: /auto log (a allow, A always, d deny, a question's
number) and the mbm code buttons. A second answer is refused with the first one's outcome
(escalation esc_… was already answered: allow (answer, 2026-11-25T09:12:03Z)). Only a person
answers a permission: mbm2 answer run by another agent (no terminal) is refused. An answer given
within the grace is the call's own reply and starts no new turn. An escalation not answered within
7 days expires; one survives a restart of the engine.
A reply file counts as a person's only when its From role is listed in team_people of your
global mbm2.json and is not a role set up on the session's host (a registered folder is an agent's);
a project's mbm2.json cannot add one. Add yourself once, at a terminal: mbm2 team people add acme/owner; then TEAM_ME=acme/owner mbm2 team reply <file> allow --as-person (or mteam reply, the same
command) allows the call. A reply by any other role to a permission leaves it waiting, and
/auto log says why.
A session woken by a message rather than a person (mbm2 send to an auto session, a hand-off, mbm2 team send --wake) also has an hourly budget: team_wake_per_hour (default 30) woken turns, and as
many judge calls of woken sessions; past it a call that would go to the judge is escalated as
the woken sessions' judge calls of the last hour (team_wake_per_hour) are spent.
Every Decision Is Logged
Each decision — a rule's deny, a guardrail's hit, the judge's answer, a recommended answer, an
escalation — is one dim line in the transcript, for example
auto · judge allowed bash "go test ./...": runs the tests the task asks for. The model never reads
these lines. /auto log lists them for the session and its subagents; from a shell:
$ mbm2 auto log ses_1a2b3c
2026-11-25 10:04:05 judge allow bash "go test ./..." runs the tests the task asks for
2026-11-25 10:04:31 guardrail force-push escalate bash "git push --force origin main" git push --force can overwrite or delete what others pushed
--format json prints the list as JSON.
Set Up A New Project's Common Commands
On the first eligible permission prompt, choose Set up this project's common commands… to review a batch
of project-wide Bash allow rules. The offer requires a runtime that can keep project rules and a project
configuration with no permission block. An unreadable configuration or empty offer skips setup.
| Offered | Left out |
|---|---|
Go build, test and formatting commands from go.mod; Makefile targets; package scripts for npm and, when detected, pnpm or Yarn; Cargo and pytest commands when matching files exist |
Names associated with deploys, releases, publishing, installs or removal; direct rm, git push, curl, wget and ssh commands |
git status, git diff, git log, git show and ls; cat, rg and grep are unchecked because they can read arbitrary files, including secrets |
Patterns that overlap a deny; the prompt lists those it left out |
Review the patterns and what the project scripts do before saving. Use ↑/↓ to move, space to toggle,
a to select all or none, and enter to keep the checked patterns. esc goes back without saving;
n (Not now) suppresses the offer for seven days. If nothing is checked, nothing is saved.
Before changing an existing nonempty project file, setup copies it to .mbm/mbm.json.bak or
.mbm/mbm.jsonc.bak, beside the file it changes. If setup creates a file, there is nothing to back up.
The success toast reads Kept N commands in <file> (the earlier file is <file>.bak). The toast currently uses
.mbm/mbm.json as its label even when setup updates .mbm/mbm.jsonc.
Trust Mode
Trust mode is opt-in. It runs ordinary calls that would otherwise ask, and records those allowances as
trust in /auto log.
| Command | What it does |
|---|---|
/mode trust |
Enables Trust for this session. The status row shows ♥ TRUST in the build agent's colour. |
/mode trust all |
Holds Trust for the window's mbm2 sessions, including new session tabs while the hold is active. ♥ TRUST all shows at the right of the tab bar. A trusted mbm2 session tab can also show its own ♥ when space allows. Terminal-runner tabs do not get the mark. |
/mode ask, /mode auto or /mode plan |
Turns off Trust for the session. If the window-wide hold is active, it also ends the hold and switches its open trusted sessions to the selected mode. |
Closing the window ends the hold for new tabs but does not clear Trust from sessions already in that mode.
A resumed trusted session still shows ♥ TRUST. Switch to /mode ask, /mode auto or /mode plan before
closing to turn off Trust for the open trusted sessions.
Trust is never a default: /mode default trust, permission.default_mode, MBM_DEFAULT_MODE and a worker's
mode cannot set Trust as the default.
A deny rule refuses the request before Trust Mode is considered. The following checks ask even when a rule
would allow the request, unless an eligible check has a matching waiver:
git pushwith--force,-f,--force-with-leaseor a+refspec(also--mirror,--delete,--prune), and a history rewrite of a shared branch;sudo,doas,suand kin;rm,find -deleteand kin whose target is/,~,$HOME,..or any path outside the project andauto.roots;- writes outside the project,
auto.rootsand the temporary directories (/tmp,/var/tmpand the system's temporary directory), including edits, patches and shell redirects; deletes do not get the temporary-directory exception; - reading or writing secrets (
.env,*.pem,*.key,.git-credentials,.ssh,.aws…); - deploys and publications (
kubectl apply,terraform apply,docker push,npm run deploy…), a network send (curl -X POST,scp…), edits of the permission settings and a command line that cannot be read safely; - a worktree merge, which always asks for a person's confirmation;
- any command a pattern in
permission.trust_asksnames: add your deploy, publish and release scripts there, for example"permission": {"trust_asks": ["make deploy*", "./scripts/release*"]}(config).
A Python or Node here-document can run in Trust Mode. mbm2 still checks the surrounding shell commands; it does not inspect the script body as shell commands.
What Allow Always Can Waive
Allow always can save a waiver for the eligible Auto or Trust check named in the prompt. It does not waive other checks or override a deny. Credential access, permission settings and command lines neither parser can read cannot be waived. Plan mode does not offer Allow always for a change that prompts.
| Check | What the saved waiver covers |
|---|---|
Protected: force-push, sudo, deploy, history-rewrite, delete-outside, network-send, write-outside, and any permission.trust_asks hit |
A new prompt approval saves the exact request, not the broader allow pattern. That waiver does not cover a force push to a different branch or with different flags. |
| Other eligible checks | The saved patterns and the selected scope. An eligible project waiver is stored in permission.waive. |
Protected waivers can be kept in the current session, in the team's in-memory rules for the current window,
or in a member's role file if the team store was made, joined, imported, generated or set up on this host.
A store that merely came with a repository clone does not qualify. The host records ownership when it
creates a store with mbm2 team init, joins one with mbm2 team sync enable, or imports or generates one.
A role registered on this host through mbm2 team setup also establishes ownership of its store.
Allow always → This project saves an allow rule if one is needed. On a host that can record approvals, it also saves a protected waiver for the exact call and records it on that host. If the host has no place for that record, the waiver stays in the session and the toast says so. A project or global file alone cannot authorize a protected waiver: copying a file does not bring that host's approval with it. A protected waiver from an ordinary agent file is ignored; saving an allow there from a prompt keeps any protected waiver in the session. See Tidy Old Rules to review flagged entries.
Waivers That Are Too Broad
mbm2 ignores a waiver that would match every call or does not identify a specific command or location.
This includes patterns such as *, ?* and * *, a wildcard in the command word, or a wrapper or shell
without a named command or script (env *, sh *). For paths, the first segment that names a place must
be literal: /, ~, ../* or a wildcard in that first named segment are too broad.
Allow always never saves a broad waiver. At project, agent/member or team scope, mbm2 refuses a keep
that would leave the check unsatisfied and asks for a narrower pattern. At session scope it can keep the
allow rule alone; the toast explains that the waiver was not saved. mbm2 permissions tidy reports these
as wide-waiver and removes them when you confirm.
Use Ask or Plan when you want more control over approvals, and review existing Always rules and waivers.
Claude tabs use Claude Code's own permissions. /mode trust all does not change a running Claude tab's
mode. See Claude Code tab permissions for the launch mapping.
Needs You
Everything that waits for you, from every session and every team on this computer's engine, is one list: «Needs you». A headless session, a session a message woke, an auto session's escalation or another tab's prompt waits there as much as the tab you are looking at.
| Kind | What waits | How you answer it |
|---|---|---|
permission |
A permission any session asks | Allow once, Allow always, Deny (with a reason) |
question |
A question any session asks | One of its options, your own answer, or Dismiss |
escalation |
A request auto mode handed to a person (esc_…) |
Allow, Always, Deny, or the question's answer |
review |
A team task in review whose reviewer is one of the team's people | The command it names (mbm2 team status --all) |
blocked |
A team task blocked for more than a day | Close, Withdraw, or Open the task (unreleased; older engines show a command instead) |
budget |
A role that reached today's cost limit | mbm2 team budget <role> <limit|unlimited> |
unowned |
Work nobody has owned for two hours, after the lead and the pm were told | mbm2 team status |
sync |
The team history's pushes failing | The fix it names |
model (unreleased) |
A role's own model failed: not found, authentication failed, or provider not connected | The repair command it names; see Inspect and repair team models |
What an item asks is one line, shortened, with secrets taken out (API_TOKEN=[redacted]) the way
auto mode's judge reads it, so a list, a toast or a notification never shows a secret. Only a person
answers: an agent that runs mbm2 needs is refused a permission.
From A Terminal
$ mbm2 needs
# FROM KIND AGE TITLE ASKS
1 zve-docs permission 4m Ship it bash API_TOKEN=[redacted] ./deploy.sh
2 main question 1m Pick a colour Which colour? (Green | Blue)
3 zve-lead blocked 2d Move the TPM key blocked 49h on: the TPM key
mbm2 needs <n> shows one; mbm2 needs <n> <answer> answers it
$ mbm2 needs 1
permission per_01a2b3…
Ship it
From: zve-docs (site)
Asks: bash API_TOKEN=[redacted] ./deploy.sh
Session: ses_1a2b3c
Waiting: 4m
Answers: once | always | reject
$ mbm2 needs 1 deny --message "use the staging host"
mbm2 answer: per_01a2b3… answered
$ mbm2 needs 2 Blue
The words are mbm2 answer's: allow is once and deny is reject for a permission, a question takes
an option's text or your own answer, dismiss rejects it. --format json prints the list (or one
item) as JSON.
In The Window
While anything waits, the tab bar says needs you 3 · <leader>i (team messages held for your
approval count too). <leader>i — from any tab, a terminal tab or an open dialog included — a click on
the count, or /needs opens the list; return opens an item with its buttons, the same as in
/auto log: Allow once (a), Allow always (A), Deny (d, then a reason) for a
permission; a question's options (1-9) and Dismiss. Allow always in /needs offers the same
scopes as the session dialog for the same request: the agent option is This member for a team member
and This agent otherwise, when that scope is available. The session permission dialog ignores enter
for about 0.3 seconds when a new request appears, so a key meant for the previous request cannot answer it.
n on a waiting row of /auto log opens it here. Team messages use <leader>shift+i (or /team).
Each row of the list names who it came from: zve-docs · site · permission · Ship it: bash ./deploy.sh
is the agent (a team member's name; main for a built-in agent), the project (the folder's name, or
the team's), the kind, the session's title (left out when it is a default New session - …) and what
it asks. An opened item starts with From: zve-docs (site).
A new item from any session — another tab's, a headless one, a session a message woke — is a toast in
every open window: Needs you · zve-docs — bash ./deploy.sh — click or /needs to answer.
A click opens it. When the window is not focused, mbm2 also asks the terminal for a desktop
notification (OSC 9 in iTerm2, kitty and Konsole; OSC 777 in Windows Terminal, rxvt, foot, WezTerm and
Ghostty). Turn that off with /needs notify off (it writes notify_terminal: "off" to mbm2.json) and
on again with /needs notify on.
Settle a blocked task
Unreleased. In /needs, open a blocked item and choose Close (done), Withdraw (withdrawn),
or Open the task (open). In a person terminal, use mbm2 needs <n> close, mbm2 needs <n> withdraw,
or mbm2 needs <n> open. The change is recorded as <team>/main with a note. An older engine may list the
item without these actions; use mbm2 team status --all to find it. See
Blocked work and the whole board for the task-state commands
and how to find stale tasks with mbm2 team check.
On mbm code
tui.mbm.mn/code/<machine> shows the same list for that machine, each item with its buttons:
Allow once, Allow always, Deny (it asks for a reason) for a permission; the options,
Answer… and Dismiss for a question; Allow, Always, Deny for an escalation. A team
item shows the command that settles it. Notify me lets the page show a browser notification when a
new item arrives while its tab is in the background. Notifications with no page open (Web Push) are
built but not switched on yet.
Pitfalls
| Symptom | Cause and fix |
|---|---|
ctrl+c did not quit |
A prompt was open; ctrl+c rejected it. Quit after answering |
No Allow always button |
The session's agent is safe, by design |
| An approval stopped working in a new session | This session covers one conversation and its forks. A project allow can apply to later sessions. A protected waiver saved only for the session does not reach unrelated sessions. |
This project wrote nothing |
The toast Not kept for this project: … says why (a deny, a rule after bash in the file, or a rule merged after the project's); the file was left as it was and the prompt is back |
A rule in the repository's .mbm/mbm.json does not apply in a subfolder |
The subfolder has its own .mbm/mbm.json, read after the repository's: its rule for the same permission decides (Rules across folders) |
The same request was asked again right after This project |
Before this release the rule could land where an earlier ask or a later "*" still decided; choose This project once more and the runtime moves it, or says which rule is in the way |
A long Bash command reports evaluation_limit despite a matching allow rule |
In v2.24.45, rules that cannot match are skipped before spending the matching budget. The last matching rule still decides, and genuinely complex rule sets can still exhaust the budget without granting access. If it persists on the new engine, review the applicable rules for overly complex patterns rather than adding a broader allow. |
| Nothing asks, but files change | The agent is build; switch to safe with tab |
plan ran a command that changed a file |
Shell commands are allowed in plan; use safe to approve them |
| An auto session stopped at a prompt naming a guardrail | The call is one auto mode never runs alone (a force push, a deploy, a credential file, …): answer it, or add the host to auto.allow_hosts / the folder to auto.roots when that guardrail is the cause |
The agent said escalated: esc_… and moved on |
No one answered within auto.escalate_wait: answer it with mbm2 answer esc_… allow|deny, /auto log or mbm code, and the session continues in a new turn |
mbm2 answer esc_… says only a person answers a permission |
It ran without a terminal (another agent, a script): run it yourself, or use the window or mbm code |
| No hand-off file although the project has a team | The session's agent is no member of the team (main, a built-in agent, a person of the team) and there is no .mbm2/role for it, or the role has no inbox; /auto log says why, and the escalation is a notice on mbm code instead |
/auto log lists a judge escalate with "did not answer within 20s" |
The small model was slow or unreachable; set small_model to a fast model |
| The prompt is cut off | ctrl+f shows it full screen |
| A subagent seems stuck | It is waiting for you: its request is in the parent session's prompt |
A prompt vanished after you edited mbm.json |
The runtime re-read the file: a new allow rule let the call run, a new deny refused it (Configuration) |
Published from revision f88fc66f 2026-11-30