Permissions and safety
The three modes
| Mode | Runs without asking | Asks you |
|---|---|---|
| Full access | Everything | Nothing |
| Judge mode (the default) | Reading; editing files inside the project; whatever the judge is sure the task needs | Whatever the judge is unsure of, thinks goes beyond your request or thinks is unrelated |
| Ask first | Reading only | Every edit, command, external action and subagent |
/permissions full, /permissions judge and /permissions ask switch directly. A switch applies to this conversation and becomes the default for new ones; other running conversations keep their own mode. MU_PERMISSIONS=ask mu sets it for one run.
What the judge approves
In Judge mode, each command, change outside the project, external action and subagent goes to the judge model first, with one question: is this call needed for the task and what you said, does it go beyond it, is it unrelated or is it unclear? Only a call with a needed verdict at 0.8 or higher runs without asking you; for a check (a test run, build, type check or linter in the project, such as npm run check or ./test.sh, with nothing else in the command but looking), 0.7 is enough. For anything else, mu asks you, and the prompt says why, for example The judge thinks this goes beyond what you asked for.
The judge reads the whole call. A call too long for it to read in full (more than 4,000 characters, or a flagged command of more than 1,500) isn't put to it: mu asks you instead, shows the start of the command and the parts a rule flagged, and doesn't offer Allow for this conversation.
When no judge can answer (no key and the free Jev unavailable, an exhausted account or only a local judge, which isn't trusted with approvals), mu asks you about every step and says so. Set a Jev key with mu setup, or switch the mode.
When mu asks
A call that needs you shows one picker:
- Allow once
- Allow for this conversation, offered only when the call has a safe scope: all edits inside the project, one program (plus its sub-command for
git,npm,cargoand the like, sonpm testbut not everynpm), one file outside the project or one tool - Don't allow
A command with chaining, redirection or substitution, or one starting with sudo or env, can only be allowed once. Esc counts as Don't allow. A refusal tells the model not to look for another way around, but to ask you or carry on without it. Allowances are forgotten when you switch mode or run /permissions reset.
What holds in every mode
- Your hard constraints. What you rule out, such as don't touch the migrations, is kept word for word in the task frame. Before any call that changes something, the constraints are checked, and a confident violation is stopped in your own words. This holds even in full access, and subagents work under the same constraints.
- Reading is never asked about: reading, searching and listing files, web search and web reading, and shell commands made only of read-only programs such as
git statusorcat … | grep …. - Unknown tools are asked about. A tool mu doesn't know, such as an MCP tool, needs permission.
- mu's own settings are yours. mu asks you about every call that touches
~/.mu/agent; the judge can't approve it. - Your keys stay out of the agent's commands. Commands the agent runs don't get environment variables that hold a credential (a name with
KEY,TOKEN,SECRET,PASSWORDorCREDENTIAL, and a value that looks like one), so they can't read mu's keys or yours.MU_PASS_ENV=GH_TOKEN,NPM_TOKENpasses on the ones a command needs; commands you type with!get everything. MCP servers started frommcp.jsondon't get them either; give a server the key it needs in itsenv, or name it inMU_PASS_ENV.
Risky commands
Rules flag commands that look dangerous: rm -rf, force pushes, sudo, running a downloaded script and others. In Judge mode such a command runs only when the judge is sure you asked for it; in Ask first the flag is shown in the question. A flagged command can be allowed once, never for the whole conversation.
A call that would send a credential away asks you every time, in Judge mode and Ask first: one whose input holds the value of one of mu's keys (the model providers', the judge's or those in mu's .env), written out or URL-encoded, or something only a secret looks like, such as sk-…, ghp_… or a private key. Reading tools count too, so a web_fetch with a key in its address asks. So does a command that names a credential file, such as an ssh private key, a .env file or ~/.aws/credentials, and sends something off the computer (curl, scp, nc and the like). The judge isn't asked, the question shows the call with the key taken out, and it can only be allowed once. Naming a variable, as in curl -H "Authorization: Bearer $GH_TOKEN", carries nothing and is judged as usual.
Content from outside
Web pages, search results, the built-in browser and MCP servers can carry text written to steer an AI: ignore your rules, send this file, run this command or a link that leaks the conversation. Before the model reads such a result, it is screened passage by passage; a passage carrying instructions aimed at an AI is withheld and replaced by a one-line note. When the judge doesn't answer in time, plain injection phrases are still withheld by rule.
web_fetch itself has limits: a time and size limit per request, page text labeled as untrusted and addresses in your private network refused unless you allow them, so a page can't steer the reader into your local network.
Undoing changes
Before the first change of every turn that edits files, mu snapshots the project into a shadow git directory of its own. Your repository, index and branches are never touched, and the project doesn't need to be a git repository. Files holding secrets (.env, keys, certificates) are never snapshotted.
/checkpointslists the checkpoints on the current branch of the conversation./rewindshows what would change, then takes the files, the conversation or both back. Files you edited yourself since are listed separately and asked about./rewind undotakes the last rewind back.
Checkpoints are skipped for a session started in your home folder, and for very large projects (more than 5,000 files or 200 MB to take in), with a note.