Configuration
mu reads pi's settings (models, sign-ins, preferences) and its own, in ~/.mu/agent/mu.json.
Only your own mu.json is read. A project can't change the judge, its address or its modes, because the judge reads your messages.
mu.json
{
"tiers": ["jev"],
"modes": {
"default": "active",
"turn.continue": "shadow",
"output.drift": "off"
},
"routes": {
"browser.step": ["jev"],
"memory.capture": ["mude", "jev"]
},
"features": {
"admission": { "testLog": "rules" },
"board": { "defaultOn": true },
"ttsr": false
},
"writer": "anthropic/claude-haiku-4-5",
"recordState": false
}
| Key | Meaning | Default |
|---|---|---|
tiers |
The judges that answer, in order. A later judge answers only what the ones before it couldn't, because they failed or aren't trusted with that kind of question. An unsure answer stays with the judge that gave it. | ["jev"] |
modes |
default plus one entry per decision point: active, shadow or off |
{ "default": "active" } |
routes |
A decision point on its own judges, in place of tiers |
none |
judges |
Your own named judges; see Judges | none |
features |
Per-feature switches and options: false turns a feature off, an object overrides options. Every option is listed under Features and options. |
each feature's defaults |
writer |
A small model, as provider/model, for what a judge can't do: writing the task frame and lessons. Empty uses the session's model. |
none |
recordState |
Keep the judged state in the ledger, not only the verdict. Needed to train a judge of your own; off because states hold your content. | false |
mcp |
mu's own MCP servers: { "servers": { "<name>": { "command": … } } }. Servers from Claude Code, Cursor and Codex are found too. |
none |
A part mu doesn't understand falls back to its default instead of stopping mu. A file that can't be parsed at all is reported when a session starts, and the defaults are used.
Modes in practice
- 34 of the 41 points act from the start:
context.compactandoutput.driftstay off until you turn them on,capability.disclosureandswarm.patchare off, andnotify.routing,turn.driftandcontext.preloadare in shadow, recording their verdicts only. To try a judge, or a point you're unsure of, put the point in shadow mode, read the ledger (mu ledger,/statusor the app's Judge tab), then set it back to active. /mu mode <point> <off|shadow|active>switches one point for the current session;/mu mode default shadowall of them. To keep a mode, put it inmu.json.MU_JUDGE_MODE=shadow musets the default for one run."modes": { "default": "off" }asks no judge at all: the points that are in shadow by default are off too, unlessmu.jsongives one its own mode. Choosing "Not now" at the judge step ofmu setupwrites this.
Environment variables
Judges and modes:
| Variable | Effect |
|---|---|
MU_JUDGE |
Judges for this run, comma-separated: jev, mude,jev, jev-opencode-free, classifier:<provider>/<model>, llm:<provider>/<model>. off turns the kernel off. |
MU_JUDGE_MODE |
Default mode for this run: off, shadow or active |
MU_WRITER |
provider/model for the writing model |
MU_PERMISSIONS |
Permission mode for this run: full, judge or ask |
MU_PASS_ENV |
Credential variables the agent's commands still get, comma-separated, such as GH_TOKEN,NPM_TOKEN. Every other variable that holds a credential is left out of them (permissions). |
Keys for the hosted judges, each sent only to its own service: TYPESAFE_API_KEY, MU_JUDGE_OPENROUTER_API_KEY, AI_GATEWAY_API_KEY, OPENCODE_API_KEY, CLOUDFLARE_API_KEY with CLOUDFLARE_ACCOUNT_ID, MU_JUDGE_CLM_API_KEY, MU_JUDGE_OPENAI_KEY.
Time:
| Variable | Effect |
|---|---|
MU_TIME_BUDGET_S |
The run's time budget in seconds, counted from when mu starts. A reply that's only thinking is then cut off early enough to leave time for a retry, and the model is told how many minutes are left at 50% and 80% (features.deadline). Without it nothing changes. |
The launcher:
| Variable | Effect |
|---|---|
MU_AGENT_DIR |
The agent folder, in place of ~/.mu/agent |
MU_NO_SETUP=1 |
Never ask to set up a model at the first start |
MU_LANG |
mu's own messages in a session: Chinese for zh…, English otherwise. The desktop app sets it to the app's language; mu setup follows your locale. |
MU_LINK_DIR |
Where mu link puts the mu command, in place of ~/.local/bin |
MU_CHROME |
The Chrome or Chromium the built-in browser uses on the command line |
mu also reads a .env file: ~/.mu/.env for the npm package. Lines are KEY=VALUE; nothing in it is executed. mu setup writes the Jev key there. Variables already set in your environment win.
Proxies
mu follows HTTPS_PROXY, HTTP_PROXY and NO_PROXY. The desktop app also follows the system proxy (macOS network settings, Windows Internet settings) when no HTTPS_PROXY is set. pi's httpProxy setting works as well.
Options people often change
| Setting | What it does |
|---|---|
features.admission.testLog |
"rules" folds exact repeats in test logs; "jev" adds goal-aware selection. Off by default. |
features.board.defaultOn |
Start every project with the plain-language board on |
features.permissions.mode |
The permission mode of a new conversation before you pick one |
features.injection.tools |
Which tools' results are screened for prompt injection |
features.continuation.maxNudges |
How often a run that stopped short is sent back, per message |
features.swarm.models |
Model tiers subagents may be routed to, cheapest first |
features.goal.checkModel |
The model that checks whether a goal holds |
Every feature and option, with defaults and ranges: Features and options.