v0.3.13Fewer approval prompts, fewer wasted tokens, fewer runs that stop halfway · mu-agent 0.3.13
Documentation Documentation

Start here

Getting started The desktop app The command line

Using mu

Judges Permissions and safety Goal mode and finishing Context Lessons The plain-language board Subagents and the hive

Reference

Configuration Features and options Troubleshooting Privacy

Features and options

Each feature is configured under features.<name> in ~/.mu/agent/mu.json. false turns a feature off, true turns it on with its defaults, and an object overrides single options:

{
  "features": {
    "injection": { "tools": ["web_fetch", "mcp__*"] },
    "board": { "defaultOn": true },
    "ttsr": false
  }
}

Message preflight preflight

On by defaultDecision points input.preflight

Judges a message before work starts and shows the verdict in the conversation.

OptionDefaultMeaning
thinkingfalseSet the thinking level from the verdict (changing it invalidates the prompt cache)
hintstrueGive the model a one-line hint
showtrueShow the wait and the verdict
waitMs3000 msWait at most 3000 ms. After this, the turn starts without the verdict. Counted from when the message arrives, like the waits of the skill, capability and lesson questions, which are asked alongside. Range 500 to 30000.
unattendedfalseAlso judge messages in unattended runs. Unattended means a one-shot mu --print or json-mode run. Off by default: nobody reads the hint there, and every message would wait for the judge and pay for it.

Mid-run messages interjection

On by defaultDecision points input.interjection

Handles messages sent while the agent is working.

OptionDefaultMeaning
waitMs1500 msWait at most 1500 ms. Range 200 to 10000.
answerStatustrueAnswer a question about progress without interrupting the agent

Skill disclosure skills

On by defaultDecision points skills.disclosure

Chooses which skill descriptions go into the prompt.

OptionDefaultMeaning
minSkills4Don't filter below this many skills. Range 1 to 100.
waitMs3000 msWait at most 3000 ms. Range 500 to 30000.
applyLatetrueApply a late first verdict from the next turn. When the verdict on the session's first message comes after the wait, skills are hidden from the next turn on, which changes the prompt prefix once. Off: the session keeps every skill description.
subagentsInherittrueSubagents take this session's choice. A subagent hides the skills this session hides and doesn't ask the judge again. Until this session has decided, a subagent asks the judge itself, as before.
askEarlytrueAsk as soon as the message arrives. Asked alongside preflight, so the turn doesn't wait for two verdicts in a row. Off: asked once preflight is done.
refreshtrueTell the agent about skills added mid-session. When a skill is installed or removed during a session (for example by /skills accept), mu tells the agent with your next message. The system prompt stays the same, so its cached prefix is kept. Off: the change waits for the next session or /reload.

Capability catalog catalog

On by defaultDecision points capability.disclosure

Install a lot, expose little: packs and MCP servers stay hidden until a task needs them.

OptionDefaultMeaning
waitMs3000 msWait at most 3000 ms. Range 500 to 30000.
askUnattendedfalseAlso choose capabilities in unattended runs. Unattended means a one-shot mu --print or json-mode run. Off by default: capabilities stay hidden, and the turn doesn't wait.
unattendedHiddendelegate, apply_patch_from, browse, locate, remember, find_skill, find_capability, hive, ask_user, present, mu-browserTools and skills left out of unattended runs. List them by name. One-shot runs almost never use these, yet every request carries them. Anything you call by its command (such as /hive) stays in. Empty keeps them all.
unattendedFindWithMcptrueKeep find_capability in unattended runs when an MCP server is installed. Unattended means a one-shot mu --print or json-mode run. Nobody asks the judge there, so without find_capability an MCP server that isn't always open can't be reached. On: with such a server installed, find_capability stays, lists what's installed, and the model opens what it needs. With packs alone it's left out, and requests stay as they were.
subagentsInherittrueSubagents take this session's capabilities. A subagent opens the capabilities this session has open and doesn't ask the judge again; what's hidden here stays hidden there. Until this session has chosen, a subagent asks the judge itself, as before.

Task frame and to-do list frame

On by defaultDecision points task.frame

Keeps track of what you actually want: the goal, your hard constraints (in your own words, with their source), the current subgoal and the acceptance criteria. The acceptance criteria are the to-do list the model checks off with the todo tool. Every goal-related verdict reads the frame, and it rewinds with the session.

OptionDefaultMeaning
waitMs3000 msWait for the task frame at most 3000 ms. Counted from when the message arrives. A late update isn't dropped: the turn starts with the previous version plus the raw message, and the update applies when it's ready. Range 0 to 30000.
writerTimeoutMs20000 msTime limit for writing a frame. On a timeout or malformed reply, the last version stays and is marked stale, goal-based filtering holds back, and the next message tries again. Range 1000 to 120000.
showtrueShow frame updates in the conversation
reporttrueSay where the checklist stands when a run ends and the list changed

Lessons memory

On by defaultDecision points memory.recall memory.capture memory.outcome memory.worth memory.merge memory.applied

Learns from your corrections, from the agent getting itself unstuck and from what the model and subagents find. Merges each new lesson with existing ones before saving it, brings relevant lessons into later turns and retires those that are never followed. /lessons lists them; /forget retires one.

OptionDefaultMeaning
pathemptyLessons file. Leave empty for the default location.
maxCandidates24Judge at most 24. The most followed come first, then the most recently saved or confirmed. Range 1 to 200.
maxInjected5Bring in at most 5. Range 0 to 20.
waitMs3000 msWait for recall at most 3000 ms. Counted from when the message arrives; picking lessons for subagents uses the same limit. Range 0 to 30000.
retireAfter8Retire after this many recalls without being followed. 0 never retires lessons automatically. Range 0 to 100.
mergeNeighbours6Compare with this many similar lessons. Chosen by shared words and judged in one request; 0 saves without merging. Range 0 to 16.
outcometrueLearn from the agent getting unstuck. Needs the writer model or the main model to word the lesson.
appliedtrueCheck at the end of a turn whether lessons were followed
standingtrueMake a rule standing when recalling it wasn't enough. Only for your own words (a correction, a rule, /remember): when you say one a second time, or it's recalled many times and never followed, it becomes a standing rule that the constraint check holds every change against. Off: a lesson that's never followed is retired, as before. /forget removes one.
unattendedWritesfalseAlso learn new lessons in unattended runs. Unattended means a one-shot mu --print or json-mode run. Off by default: kept lessons are still read, but nothing is learned from corrections, ways out or subagent reports. The capability catalog leaves out the remember tool.

Procedures as skills procedures

On by defaultDecision points skill.capture

When a long, successful run was a reusable procedure, drafts it as a skill for you to review: /skills lists the drafts, and /skills show, accept and reject read, install or discard one. Nothing is installed without your approval.

OptionDefaultMeaning
minSteps6Minimum steps. Runs with fewer steps aren't considered. Range 2 to 100.
minCommands2Minimum commands. Runs with fewer shell commands aren't considered: a procedure has to do something. Range 0 to 50.
maxPending3Max pending drafts per project. Once a project has this many pending drafts, no more are made until you review them. Range 1 to 20.
unattendedfalseAlso draft skills in unattended runs. Unattended means a one-shot mu --print or json-mode run. Off by default: a draft needs someone to review it, and writing one keeps the run going for another model call.

Risky command guard guard

On by defaultDecision points tool.risk

Confirms dangerous commands before they run.

No options.

Permission modes permissions

On by defaultDecision points tool.approval

Full access, Judge mode or Ask first; switch any time with /permissions. When a step needs your permission, the status bar asks; allow it once or for the whole conversation. While this feature is on, it also takes over the risky command guard.

OptionDefaultMeaning
modejudgeMode for new conversations. Once you pick a mode with /permissions, your latest choice is used.full Full access · judge Judge mode · ask Ask first
readOnlyChainstrueRead-only command chains go ahead. Commands made only of read-only commands joined by ;, &&, || or | (such as pwd && ls -la; git status) run without asking the judge or you, like a single read-only command. They may throw output away with 2>/dev/null or 2>&1; a redirect that writes a file, sed -i, tee or find with -exec or -delete is not read-only. Off: only a single read-only command or pipeline goes ahead.
waitMs120000 msWait per permission question. When nobody answers in time, the step doesn't run and the agent carries on with what doesn't depend on it; /approve brings the question back. 0 waits until you answer. Range 0 to 3600000.

Plan mode plan

On by default

/plan enters plan mode: the agent only reads, searches and asks. It changes nothing and ends with a plan under "# Plan". Once you approve the plan, the agent starts on it, and the plan's steps go on the task's checklist. Edits, commands that change things and subagents are refused. The tool list and the system prompt stay the same, so the prompt cache survives the switch.

No options.

Hard constraint gate constraints

On by defaultDecision points tool.constraint

Checks each change or command against your hard constraints first; subagents follow them too.

OptionDefaultMeaning
maxConstraints6Max constraints checked per call. The newest ones are used. Range 1 to 20.
maxStanding4Max standing rules checked per call. Standing rules come from your lessons: a rule you said twice, or one that was recalled and never followed. The most recently confirmed are used; 0 checks none. Range 0 to 20.
waitMs5000 msWait at most 5000 ms. Range 500 to 30000.
skipReadOnlytrueSkip read-only commands. Read-only shell commands (ls, git status, cat … | grep …, and chains of them) aren't checked against your constraints, just like the read and grep tools.

Injection screening injection

On by defaultDecision points tool.injection tool.description

Withholds instructions aimed at an AI before the model reads web pages, search results, MCP responses and what shell commands fetch from other machines, and removes MCP tools whose descriptions contain such instructions.

OptionDefaultMeaning
toolsweb_fetch, web_search, browse, mcp__*Tools screened. Tool names, or a prefix ending in *; mcp__* covers every MCP server.
fetchCommandscurl, wget, gh, glab, lynx, w3m, Invoke-WebRequest, Invoke-RestMethod, iwr, irmFetching commands. When a bash or PowerShell command runs one of these programs, its output is screened unless every address it's given is on this machine (localhost); gh and glab output is always screened. Empty: no shell output is screened.
proseWords6Minimum words in a row to ask the judge. A passage without this many words in a row (8 characters in a row for Chinese, Japanese and other scripts written without spaces) isn't sent to the judge; only the rules check it. Directory listings, link lists, response headers and short grep hits can't hold an instruction. 0: every passage is judged. Range 0 to 50.
waitMs6000 msWait at most 6000 ms. After this, rules withhold only obvious injection phrases; the verdict is still recorded. Range 500 to 30000.
descriptionstrueScreen MCP tool descriptions. MCP tools whose descriptions ask the AI to do more than use the tool are removed from the list (tool.description).
descriptionWaitMs8000 msWait for tool description verdicts at most 8000 ms. How long a turn waits for verdicts on MCP tools it hasn't seen before. After this, rules decide until the verdict arrives. Range 500 to 30000.

Tool output admission admission

On by defaultDecision points tool.admission tool.admission.test-log

Decides which parts of long tool output enter the context.

OptionDefaultMeaning
minChars4000 charsOnly filter output longer than 4000 chars. Range 500 to 200000.
chunkChars1200 charsChunk size. Range 200 to 20000.
maxChunks48Judge at most this many chunks. Range 4 to 400.
batchChunks16Chunks per request. The judge takes many chunks in one request, with the shared context billed once. Range 1 to 32.
waitMs2000 msWait at most 2000 ms. After this, the full output goes in; the verdict is only recorded. Range 500 to 30000.
passThroughread, edit, write, delegate, hive, web_fetch, recallNever filter these tools
printCommandscat, sed -n, head, tail, nl, less, bat, grep, rg, od, xxd, git show, git diff, readelf, objdumpNever filter file prints. When a bash command only prints a file with these programs (after a cd, or piped through them), its output goes in whole, as with read: the model asked to see that file. Build, test, background-job and other output is still judged. Empty: all of it is judged.
testLogoffTest log trimmingoff Off · rules Drop exact repeats only (lossless) · jev Also let the judge pick from the rest
agentEnvtrueTell test runners an agent is reading. Vitest and other runners then print only failures and the summary.

Forgetting stale results forgetting

On by defaultDecision points context.forget

Replaces stale results with placeholders when the context gets tight.

OptionDefaultMeaning
thresholds50, 70, 85Trigger thresholds (context use %)
minChars6000 charsOnly results longer than 6000 chars. Range 500 to 200000.
minAgeTurns2At least this many turns old. Range 0 to 50.
maxPerBatch12Judge at most per batch. Range 1 to 100.
waitMs4000 msWait at most 4000 ms. The current request waits this long; later verdicts apply from the next request on. Range 500 to 30000.

Read back shortened output recall

On by default

Tool output mu left out to save context can be read back by the model with recall, a piece at a time by the call's id, instead of running the command or fetching the page again: old results forgetting replaced, noise admission archived, the rest of a page web_fetch cut. Only this conversation; the rest of a page goes through the injection screen first.

OptionDefaultMeaning
maxChars20000 charsMax text per recall call. Range 1000 to 200000.

Questions for you askUser

On by default

When a decision is yours to make and your request doesn't settle it, the model can ask you one to four questions with ask_user. Each has options to pick from, and you can always answer in your own words. Each question waits a while: if nobody answers, the agent carries on with what doesn't depend on it, and /answer brings the questions back. Unattended runs and subagents don't have the tool.

OptionDefaultMeaning
waitMs120000 msWait per question. When nobody answers in time, the question stays open and the agent carries on; 0 waits until you answer. Range 0 to 3600000.

Offers to turn features on featureOffers

On by default

When a task would benefit from a feature that's off by default (summary-free compaction, mid-stream correction, the write sandbox), the model can offer it. The offer doesn't hold up the run: when the run ends, mu tells you about the feature once, with the command that turns it on. The feature is written to mu.json only when you run that command, and it takes effect in the next session. The judge never offers one on its own, and an unattended run writes nothing.

No options.

Files handed to you present

On by default

When a task produces files you asked for (a report, a deck, a build, an export), the model hands them to you with present at the end: up to 8 files, each of which must exist. The desktop app shows them on a card, and you open each one from there. When the model mentions a file that exists, it links to it, down to the line. Unattended runs and subagents don't have the tool.

No options.

Summary-free compaction compaction

Off by defaultDecision points context.compact

Compaction that keeps original passages instead of a summary.

OptionDefaultMeaning
keepThreshold0.5Keep threshold. Range 0 to 1.
minChars600 charsKeep anything shorter than 600 chars. Range 100 to 20000.
headChars300 charsHead kept when pruning. Range 0 to 5000.
targetRatio0.5Target share of the original. Range 0.05 to 1.
maxWindowShare0.25At most this share of the window. Range 0.05 to 0.9.
freeChars24000 charsLeave histories smaller than this alone. Range 0 to 500000.
maxJudged120Judge at most this many passages. Range 10 to 1000.

Checkpoints and rewind checkpoint

On by defaultDecision points turn.rewind

Before the first file change in each turn, snapshots the working tree into mu's own shadow git directory, without touching your repository. /rewind restores files and the conversation; /rewind undo reverses a rewind.

OptionDefaultMeaning
diremptyWhere snapshots are kept. Empty means mu/checkpoints in mu's home folder, with one shadow repository per project.
keep50Snapshots kept per project. Range 1 to 1000.
maxAgeDays14 daysDays a snapshot is kept. Range 1 to 365.
maxFileMb5 MBLargest file in a snapshot. Larger files stay out of snapshots, and a rewind never touches them. Range 1 to 1024.
maxFiles5000 filesMax files per snapshot. With more files than this, mu runs without checkpoints and tells you once. Your home folder and mu's own folders are never snapshotted. Range 100 to 1000000.
maxTotalMb200 MBMax total snapshot size. Above this, mu runs without checkpoints and tells you once. Range 1 to 100000.
ignoreemptyExtra paths to ignore. gitignore patterns, one per line. The project's own .gitignore and the built-in list (node_modules, build outputs and so on) always apply.
timeoutMs30000 msMax time for a snapshot. Past this, the turn runs without a checkpoint; the tool call still runs. Range 1000 to 600000.
proposetruePropose a rewind at a dead end
confirmSeconds120 sHow long a proposal waits for you. If you don't answer, the run continues. 0 waits forever. Range 0 to 3600.
unattendedfalseAlso take checkpoints in unattended runs. Unattended means a one-shot mu --print or json-mode run. Off by default: nobody is there to confirm a rewind, so no file would ever be put back, and the snapshot and scan after every change would only slow down each step. At a dead end the model is still told to step back.

Drift monitor monitor

On by defaultDecision points turn.drift

Catches drift from the goal and the agent going in circles.

OptionDefaultMeaning
every6Tool calls between checks. Range 1 to 100.
minMinutes3 minAt least this long between checks. A check needs both: the tool calls above, and this long since the last check. Range 0 to 60.
maxMinutes10 minCheck at least this often. A check comes after this long whatever happened, so a long reply with no tool call is checked too. Range 1 to 120.
stuckMinutes10 minNo progress for this long before a drift steer. It also takes two drift readings in a row, each at least 90% sure. Progress is a new file written, more tests passing, a different error, a command of a minute or more that succeeds, or an item ticked. Range 0 to 120.
cooldownMinutes15 minAt least this long between two steers. The judge's steers (on drift or a loop) wait this long after the monitor's last steer, including one from the loop rule. Range 0 to 240.
repeats3Repeats that count as a loop. Only the same input with the same result counts as the same call; paging through a file does not. A call that was refused and never ran counts by its input alone. The monitor says so at this many, and again 2 and 5 repeats later, more plainly each time. Range 2 to 20.
window8Recent calls checked. Range 2 to 100.
unattendedfalseAlso check for drift in unattended runs. Unattended means a one-shot mu --print or json-mode run. Off by default. The rule that catches going in circles still applies.

Language servers lsp

On by defaultDecision points diagnostics.delivery

Uses language servers already installed on this machine (it installs none). It keeps only the diagnostics an edit newly introduced and lets the judge decide when to tell the model. Its lsp tool, opened when a task needs it, finds definitions, references and implementations and shows a symbol's type.

OptionDefaultMeaning
builtintrueUse the built-in list of well-known servers. Well-known servers for TypeScript, Python, Go, Rust and C/C++, found on PATH only. Add your own under features.lsp.servers in mu.json.
editToolsedit, writeTools that count as editing a file
subAgentsfalseSubagents start language servers too. Off by default: a set of servers per subagent is heavy on the machine.
settleMs1500 msWait for the server after an edit, at most 1500 ms. Past this, nothing waits: late diagnostics are handled at the next edit or when the turn ends. Range 0 to 10000.
turnEndSettleMs3000 msWait at the end of a turn, at most 3000 ms. Range 0 to 30000.
quietMs250 msSilence that counts as the server being done. Range 20 to 5000.
baselineMs5000 msWait for the pre-edit diagnostics, at most 5000 ms. Waited for in the background, never blocking a tool. Past this, the first report isn't treated as new. Range 100 to 60000.
maxItems10Diagnostics reported at once, at most 10. Range 1 to 100.
maxServers4Servers running at once, at most 4. Range 1 to 16.
waitMs4000 msWait for the judge, at most 4000 ms. Range 500 to 30000.
navigationtrueThe lsp navigation tool. Definitions, references, implementations and types, from the same server processes as the diagnostics. It's in the capability catalog and opened when a task needs it, so it isn't in every request.
navigationResults30Max places listed per answer. Range 1 to 200.

Mid-stream correction ttsr

Off by defaultDecision points output.drift

The judge, not a regular expression, notices when output goes astray, cuts it off, shows the rule and lets the model continue. Off by default; when on, every stretch of output costs one more judge call.

OptionDefaultMeaning
rulesemptyRules to follow at all times. One per line, in plain words, e.g. “Answer in Chinese”, “No placeholder implementations”. Your hard constraints from the task frame are added automatically.
segmentChars600Characters of output per check. Range 200 to 5000.
maxRules4Rules checked per call at most 4. When there are more, the most recent ones are used. Range 1 to 12.
maxInterrupts2Max cuts between two of your messages. Range 1 to 10.

Run deadline deadline

On by default

When mu knows when the run has to be done, a reply that only thinks is cut sooner (see Long-thinking retry), and the model is told how many minutes are left when 50% and 80% of the time has passed; the second time it is also asked to get the requested result in place (files written, services running) before polishing. No judge is asked. Without a time budget, nothing changes.

OptionDefaultMeaning
budgetS0 sTime budget for a run. Counted from when the mu process starts; 0 means none. The environment variable MU_TIME_BUDGET_S takes precedence, and a benchmark harness sets it from the task's timeout. Subagents ignore the budget.
noticestrueTell the model how much time is left. One line at 50% and one at 80%. Tool calls under way are not interrupted; the model reads it before its next step.

Long-thinking retry watchdog

On by default

When a reply has done nothing but think for too long, with no text and no tool call yet, it's cut off and retried at the same reasoning effort. The retry is told how far the reasoning got and asked to act on it first. The retry itself is never cut off.

OptionDefaultMeaning
thinkingMs600000 msCut a reply after thinking this long. With a run deadline (see Run deadline, MU_TIME_BUDGET_S) the cut can come sooner: after at most half the time left when the reply started, and never under a minute.
maxCuts3Max cuts between two of your messages. Range 1 to 10.

Goal mode goal

On by defaultDecision points goal.met

After /goal <condition>, the agent keeps working until the condition holds (/goal alone asks for one). Each time it wants to stop, a model reads the evidence and decides: met, or the next step. It pauses on its own when you interrupt, a model call fails, it idles or goes in circles, or it reaches its limits; your next message resumes it.

OptionDefaultMeaning
checkermodelWho checks whether the goal is met. A model reads the goal, what the run did, the last test run and the closing message, then gives a verdict and the next step; the judge steps in only when the model doesn't answer. Either way, an open acceptance item or an unverified edit means not yet.model A model (recommended) · jev The judge
checkModelemptyModel for the check. As provider/model. Empty: the current model.
checkThinkingoffThinking level for the checkoff Off · minimal Minimal · low Low · medium Medium · high High
checkTimeoutMs90000 msMax wait for the check. If the check takes longer, the judge decides; if the judge can't, only the facts count. Range 5000 to 600000.
stallLimit2Runs without progress before pausing. Runs where the check finds the agent repeating itself. The first time, the agent is told to change course; at this count, the goal pauses for you. Range 1 to 10.
maxContinuations20Max continuations. Counted from your last message. Range 1 to 200.
maxMinutes180 minLongest automatic run. Counted from your last message. Range 5 to 1440.
idleLimit2Idle runs before pausing. Runs in a row that ended without a single tool call: the agent is going nowhere. Range 1 to 10.

Plain-language board board

On by defaultDecision points board.read

Tells you in plain words how far along the work is, what's happening now and what's waiting on you. It keeps a running account: a line for each step as it happens, plus what the agent says or finds, retold right away by a plain-speaking model, with the judge deciding what's worth telling. A finished run gets a summary, and the account is kept. For you only; never in the model's context. Turned on per project (/board on, /board off); the first time, you pick the model that writes it (/board model changes it).

OptionDefaultMeaning
defaultOnfalseOn in projects you haven't set it for. Off by default: each board update costs a model call.
modelemptyModel that writes the board. As provider/model; if set here, you won't be asked. Empty: you pick one the first time you turn the board on (Claude Opus 4.6 recommended, then Gemini 3.8 Flash), saved in mu/board.json. If none is picked: the writer model, else the current model.
languageautoBoard language. Auto: what the model writes follows the language of your messages; the board's fixed lines follow the app's language.auto The one you write in · zh Chinese · en English
everyTools5Tool calls between checks. Range 1 to 100.
minIntervalMs20000 msMinimum time between checks while it works. When the agent stops, the board always checks, regardless of this setting. Range 0 to 600000.
maxSteps10Latest tool calls read each time. Range 3 to 50.
narrateTimeoutMs60000 msMax wait for the writer. This is the limit when a run ends. Mid-run the writer gets 20 s at most, since a later update would already be out of date. After that, stock phrases are used. Range 5000 to 300000.
stallMs60000 msTime before a long step counts as stuck. When a command runs this long, or a subagent has no output for this long, the board adds a line saying it's still running, updates that line at 3 and 10 times this, and checks again each time. 0 turns this off. Range 0 to 3600000.
maxStaleMs15000 msOldest the board gets while things keep happening. When something new happens while the judge is still reading, the board usually waits for the next check. If it's already older than this, it's rewritten anyway, so a busy agent can't keep it out of date. Range 0 to 300000.
unattendedfalseAlso in one-shot runs. Nobody watches the board in mu --print or json mode, so by default it isn't written there, saving the judge and writer calls.
followAlwaysfalseCheck on subagents on a timer. By default the board checks only when a subagent starts, finishes or fails. On: it checks at every interval, changed or not.

Completion check completion

On by defaultDecision points turn.completion

Checks that something verified the work before it's called done.

OptionDefaultMeaning
waitMs3000 msWait at most 3000 ms. After this, there's no nudge, and the judge call is canceled so it doesn't hold up the end of a one-shot run. Range 500 to 30000.

Continue after stopping short continuation

On by defaultDecision points turn.continue

Sends the agent back to work when a run stops short of what it said it would do.

OptionDefaultMeaning
maxNudges2Max nudges per message. Range 1 to 5.
waitMs3000 msWait at most 3000 ms. After this, there's no nudge, and the judge call is canceled so it doesn't hold up the end of a one-shot run. Range 500 to 30000.
unattendedPromised1Unattended: nudges for work it said it would do. Unattended means a one-shot mu --print or json-mode run. There, a run is sent back at most this many times per message for work it said it would do; Max nudges per message still caps all nudges together. When the judge mistook a finished "Done. Created …" for a promise, the second nudge cost a benchmark run 4 more requests. Range 0 to 5.
promisedAfterToollessfalseUnattended: nudge again after an answer without a tool call. Off by default: when the agent answered the last nudge without calling a tool ("The work is already complete"), it answered by stopping, and isn't told again that it said it would do more. A run that stops without a message is still sent back.

Notification routing notify

On by defaultDecision points notify.routing

Decides when to tell the model about events.

OptionDefaultMeaning
budgetThresholds70, 85Context budget notices (%)
unjudgednowWithout a verdict, context budget notices. Notification routing is in shadow by default, and then this decides. A next-turn notice is read only when another run starts, which never happens in a one-shot run.now Now · next_turn Next turn · drop Never
unattendedfalseAlso ask the judge about notices in unattended runs. Unattended means a one-shot mu --print or json-mode run. Off by default: notices follow their own rules, as they do in shadow mode (the default), where the verdict is only recorded.

Cache warming warming

On by defaultDecision points cache.warming

Refreshes the prompt cache before it expires, when that pays off.

OptionDefaultMeaning
waitMs3000 msWait at most 3000 ms. After this, pi's own estimate decides, and the judge call is canceled. Range 500 to 30000.

Judge connection warm-up warmup

On by default

While mu is in use, a tiny question keeps the judge's connection warm, so the questions before a turn skip 1–3 s of connection setup.

OptionDefaultMeaning
intervalMs50000 msEvery 50000 ms. The server drops connections idle for about 90 s; stay below that. Range 10000 to 85000.
idleMs900000 msStop after this much inactivity. Range 60000 to 7200000.
nearbyfalseAlso keep a judge on this machine or network warm. Off by default for a judge at localhost, 127.0.0.1, a local network address or host.docker.internal: a new connection there costs next to nothing, and on a server that answers one question at a time a probe would queue in front of real ones.
unattendedfalseAlso keep the connection warm in unattended runs. Unattended means a one-shot mu --print or json-mode run. Off by default: there a probe every 50 s costs more than the connection setup it saves, under a tenth of a second on a short route.

Subagents swarm

On by defaultDecision points swarm.routing swarm.patch

Delegates tasks to subagents with roles.

OptionDefaultMeaning
modelsemptyModel ladder (cheapest to strongest). Empty means every subagent uses the main agent's model.
maxTasks6Max tasks per call. Range 1 to 32.
concurrency3Running at once. Range 1 to 16.
defaultAgentworkerDefault role
agentsDiremptyFolder with your own roles. Empty uses <agent dir>/agents.
isolationworktreeSubagents that edit files. Isolated changes come back as a patch, which the main agent may apply with apply_patch_from. Outside a git repository, subagents edit in place.worktree Edit in its own git worktree · none Edit in place
carryUncommittedtrueCarry over uncommitted changes. The subagent starts from the files as the main agent sees them, not from the last commit.
patchPreviewLines30Lines of patch preview. The start of the patch, shown with the subagent's report. Range 0 to 400.

Hive hive

On by defaultDecision points hive.publish hive.deliver hive.relate

Several bees work on one hard task in parallel, and the judge decides what passes between them. Start one yourself with /hive <question>; the agent also starts one when a problem resists a direct attempt.

OptionDefaultMeaning
maxNotesPerBee12Max notes per bee. Range 1 to 100.
maxDeliveriesPerBee10Max deliveries per bee. Range 1 to 100.
checkpointEvery4Ask for findings after this many silent tool calls. 0 turns this off. Range 0 to 50.
lastCalltrueDeliver findings once more while writing the report
maxRelatedPerNote2Max earlier findings to compare a new one against. Only those sharing words with it. 0 turns corrections off. Range 0 to 30.
publishMarkedtruePublish marked findings directly. What a bee says starting with FOUND: or DEAD END: goes on the board without asking the judge.
publishToolOutputsfalseConsider tool output for the board too. By default only what a bee says is considered.
verifyConflicts1Max verifier bees for unsettled disputes. 0 adds none; both sides stay in the report. Range 0 to 3.
verifyAfterSeconds60Seconds before a verifier joins an open dispute. Range 0 to 600.

Adapting to you evolve

On by default

Keeps what mu observes: your answers to approval questions, programs missing on this machine, the files a project's sessions open with, how long you stay away and how often a run needed you. From these it makes suggestions you accept with /evolve accept: lowering a project's approval line to where you allowed every call anyway, or keeping a command allowed in a project when you allow it in every session. mu tells you of a new suggestion once, when the run ends. Only a command you type loosens anything; marking an approval wrong (/ledger wrong) takes it back at once. The data stays in your agent folder (mu/evolve.jsonl) and holds no commands, messages or file contents.

OptionDefaultMeaning
minAnswers12Answers needed before a lower approval line is suggested. Among the calls the judge read as needed but wasn't sure enough of, this many answers above the new line, all of them allowed and at least half given after reading the question. Range 4 to 200.
floor0.6Lowest approval line. No suggested line goes below this. The decision point itself takes none below 0.6. Range 0.6 to 0.8.
consideredMs1500 msHow long an answer waits to count as read. An answer faster than this was probably given without reading; such answers alone don't lower a line. Range 0 to 60000.
minGrants3Times in a row a command is allowed before mu suggests keeping it allowed. When your latest answers about a command were all "Allow for this session", this many times, /evolve suggests keeping it allowed in the project. One refusal starts the count again. Range 1 to 50.
commandstrueLearn which programs are missing on this machine. When a command fails with "command not found" and then works with one word changed, mu keeps which program was missing and what stood in for it. The opening snapshot tells later sessions, until the program is installed.
unattendedfalseAlso observe in unattended runs. Unattended means a one-shot mu --print or json-mode run. By default such a run uses what you accepted and observes nothing new.

Opening snapshot snapshot

On by default

Gives the model a snapshot of the workspace with a conversation's first message: what the folder holds (or that it's empty), git's branch and changed files, the system, and where commands written for Linux go wrong on this machine (macOS has no timeout, for example). The first steps no longer go to looking these up. It's a message beside yours, not part of the system prompt, so the prompt cache is unaffected. No judge is asked.

OptionDefaultMeaning
maxEntries60Folder entries listed. A folder with more is cut to this many, and the snapshot says so. Range 0 to 500.
gittrueInclude git's branch and changed files
machinetrueInclude the system and where commands differ. The system, the shell, the project's package manager, missing programs and BSD tools that differ. Only the PATH is read; nothing is run.
waitMs1500 msWait for git at most 1500 ms. After this, the snapshot goes without its git line. Range 100 to 10000.

Opening preload preload

On by defaultDecision points context.preload

When a conversation opens, gives the model the files the task is sure to need with the first message. Candidates come from rules: paths your message names, files this project's earlier sessions opened with, and tracked files whose path shares a word with the message. The decision point context.preload judges each one. It ships in shadow mode: it records which files it would bring in and compares them with what the opening reads, changing nothing. Secret files (.env, private keys) are never preloaded.

OptionDefaultMeaning
candidates24Candidate files put to the judge. Range 1 to 100.
maxFiles4Files given at most 4. Range 0 to 20.
fileChars12000 charsCharacters given per file. A longer file is given from its start, and says which lines it holds. Range 500 to 100000.
maxChars24000 charsCharacters given in all. Range 500 to 200000.
waitMs2000 msWait at most 2000 ms. Counted from when your message arrives. After this the turn starts without a preload; shadow mode never waits. Range 100 to 30000.
steps8Tool calls that count as the opening. The files read in this many tool calls are held against the verdict, and kept as candidates for the next opening. Range 1 to 50.
unattendedfalseAlso ask in unattended runs. Unattended means a one-shot mu --print or json-mode run. Off by default: there a shadow verdict is a judge call nobody reads.

File locator locate

On by defaultDecision points files.locate

The locate tool: find files by description.

OptionDefaultMeaning
candidates40Candidates judged. Range 5 to 400.
results12Results returned. Range 1 to 100.

Bulk judging tool judgeItems

On by defaultDecision points judge.items

The judge_items tool: one yes/no question, a probability for each of many items.

OptionDefaultMeaning
maxItems500Max items per call. Range 10 to 5000.

Built-in browser browser

On by defaultDecision points browser.step

A judge-driven browser with its own profile; it never touches yours.

OptionDefaultMeaning
headlesstrueRun headless
maxSteps40Max steps per run. Range 1 to 200.
textChars4000 charsPage text read per step. Range 500 to 50000.
embeddedtrueUse the desktop app's browser panel when it's running. Every step is then visible and can be paused, stopped or taken over; without the app, mu uses its own browser.
profileDiremptyBrowser profile folder. Empty uses mu's own folder.

Background commands background

On by default

bg_start / bg_output / bg_stop: run dev servers and long builds without blocking the turn. You can start one yourself with `/jobs start [--name <label>] <command>` (the desktop's Run button sends this for a package.json script); when it ends, the agent is told, along with the fact that you started it. The agent hears of a finished job right away; every job stops when the session ends, except in an unattended one-shot run.

OptionDefaultMeaning
maxJobs8Jobs running at the same time. Range 1 to 32.
bufferChars262144 charsOutput kept in memory per job. The newest output is kept; the log file has everything.
maxOutputChars20000 charsMax output per bg_output call
killGraceMs3000 msWait before force-killing a job. SIGTERM first (taskkill without /F on Windows), then force after this long.
logDiremptyLog directory. Empty means ~/.mu/jobs/<session id>, cleared after 7 days.
inheritShelltrueUse the foreground shell settings. Reads shellPath and shellCommandPrefix from settings.json, like the bash tool.
wakeWhenIdlefalseA finished job may wake an idle agent. Only a notice delivered "now" starts a turn; when off, the notice is only appended.
unjudgednowWithout a verdict, a job's end or watched line. Notification routing is in shadow by default, and then this decides. A next-turn notice is read only when another run starts, which never happens in a one-shot run.now Now · next_turn Next turn · drop Never
keepOnExitheadlessJobs still running when the session ends. Unattended means a one-shot mu --print or json run, where a service the task asked for must still be up after the run.headless Keep in unattended runs · always Always keep · never Always stop

Web reading and search web

On by default

web_fetch reads a page as text (with time and size limits, internal addresses refused and page text labeled untrusted); web_search uses a source that works from mainland China without a key.

OptionDefaultMeaning
searchsoSearch source. so (360), sogou, bing-cn, tavily, searxng:<base url>, or a URL with {query} in it. With TAVILY_API_KEY set in the environment, Tavily is asked first and this source is the fallback.
searchFallbacktrueTry the other built-in sources on failure. Applies when a source returns a verification page, no results, or results unrelated to the query.
maxChars20000 charsMax text per web_fetch call
timeoutMs20000 msTime limit per request
maxBytes2000000 bytesDownload limit
maxRedirects5Redirects followed. Range 0 to 20.
allowLoopbacktrueAllow this machine's dev servers. Only when the URL itself names localhost or 127.0.0.1; a redirect from the web is always refused.
allowPrivatefalseAllow private network addresses. 10/8, 172.16/12, 192.168/16, link-local and similar. Refused by default so a page can't steer the reader into your local network.

Welcome screen welcome

On by default

The terminal's welcome screen and the identity note for the model.

OptionDefaultMeaning
unattendedfalseFull identity note in unattended runs and subagents. Unattended means a one-shot mu --print or json-mode run. Off by default: there and in subagents the note leaves out commands to type and tools the run may not have, and pi's list of docs becomes one line with the path. That saves about 375 tokens per request.

Inherit existing setup inherit

On by default

Uses the rules, skills and MCP servers you've already set up for Claude Code, Cursor and Codex, read-only. Always-on rules join the prompt; a rule scoped to file patterns is passed along once, with the result of the first tool that touches a matching file; the rest are listed by description. Project content is used only in trusted projects.

OptionDefaultMeaning
claudetrueFrom Claude Code
cursortrueFrom Cursor
codextrueFrom Codex
rulestrueInherit rules
skillstrueInherit skills
mcptrueInherit MCP servers. When off, only the servers under mcp.servers in mu.json are used.
folderstrueAGENTS.md and CLAUDE.md in subfolders. Instructions in a folder below the project folder, such as one package's AGENTS.md in a monorepo, are passed to the model once, with the result of the first tool that reads or changes a file there. The project folder's own are loaded by pi at the start. Those inside node_modules are left out.
maxRuleChars4000 charsMax size of a file-scoped rule passed along. The rest stays in the file for the model to read. Range 500 to 20000.
maxAlwaysChars16000 charsBudget for always-on rules. Always-on rules that don't fit are listed by description instead, so they can't bloat the prompt. Range 0 to 100000.

MCP servers mcp

On by default

MCP servers connect through pi's own client (stdio and Streamable HTTP, OAuth sign-in, managed with /mcp). Each server mu inherits from Claude Code, Cursor, Codex or mu.json is a hidden catalog entry: it starts, and its tools reach the model, only when the judge finds the task needs it or the model asks through find_capability. Tool lists are cached, so the judge has a description even before a server has run. A server defined by a project asks before its first start, and again when its definition changes. "exposure": "always" under mcp.servers in mu.json keeps a server open. Servers added with mu mcp add belong to pi: they connect with the session, and tool_search loads their tools when needed.

OptionDefaultMeaning
startTimeoutMs45000 msStart timeout. An npx-style server downloads itself first. Range 1000 to 300000.
requestTimeoutMs120000 msCall timeout. Range 1000 to 3600000.

Capability packs packs

On by defaultDecision points review.triage

Tool packs that ship with mu and stay hidden until a task needs them; if a required program is missing, mu shows how to install it.

OptionDefaultMeaning
astGreptrueast-grep structural search and rewrite. Finds and changes code by syntax, not text. Requires ast-grep on this machine.
maxResults50Max matches per search. Range 1 to 500.
maxDiffChars12000 charsMax diff per result. Range 1000 to 200000.
astGrepCommandemptyast-grep path. Empty: ast-grep, then sg, from PATH.
githubtrueGitHub through gh. No tools; a skill that teaches gh for PRs, issues, checks and releases. Requires gh on this machine.
ghCommandemptygh path. Empty: gh from PATH.
committrue/commit: split changes into commits. A model proposes the groups and messages; commits are made only after you confirm the plan, all or none. Never pushes.
maxPlanChars60000Characters of the change the model reads. Range 5000 to 400000.
reviewtrue/review, with findings ranked P0 to P3
conflictstrueConflict resolution. When a merge, rebase or cherry-pick stops on conflicts, shows both sides and their base for each file, writes the resolution block by block and marks the file resolved. Never commits and never runs --continue.
maxSideLines80Lines shown per side of a conflict block. Range 10 to 1000.
maxConflictChars20000Max characters of conflicts shown per file. Range 2000 to 200000.
maxFindings40Max findings ranked per triage. The rest are still reported, just not ranked. Range 5 to 200.
debuggertrueDebugger: breakpoints, stepping, variables. Runs a program under a debugger and stops at breakpoints or uncaught exceptions, showing the call stack and variables. Uses debugpy for Python, delve for Go and lldb-dap for compiled programs, if installed; add your own under debugAdapters in mu.json. One run at a time; it ends with the session.
maxFrames20Frames shown at a stop. Range 1 to 200.
maxVariables50Variables listed per scope. Range 5 to 1000.
debugOutputChars4000 charsMax program output per result. When there's more, only the end is kept. Range 500 to 100000.
debugWaitMs30000 msMax wait for the program to stop. If it hasn't stopped or exited by then, the model is told it's still running, and can pause it to see where it is, or keep waiting. Range 1000 to 600000.

Sign in with Google (experimental) googleLogin

On by default

Adds two entries to /login: Gemini CLI's sign-in for the Gemini models, and Antigravity's for Gemini, Claude and GPT-OSS. These are Google's sign-ins for its own tools; using them from another program may violate Google's terms and get the account limited or suspended, so mu explains the risk first and continues only if you agree. The official routes need none of this: a Gemini API key (provider google) or Vertex AI (provider google-vertex, signed in with gcloud).

OptionDefaultMeaning
geminiClitrueGemini CLI sign-in. The Gemini models, on the free tier for a personal account or with a Code Assist license.
antigravitytrueAntigravity sign-in. Gemini, Claude and GPT-OSS; once you're signed in, the list shows what the account can use.

Interrupted tool calls recovery

On by default

When mu is killed, the machine sleeps or the app quits while tool calls run, reopening the session tells the model and you which calls have no result: which never started, which only read, and which started with an outcome nobody knows. For those, the model is told to check the outside state or ask you first, so a git push, a publish or a migration does not run twice. Before each call that may change something starts, the session gets a marker.

No options.

Replies you stop interrupted

On by default

When you stop a reply while it's being written, pi leaves the whole reply out of what the model is sent next, so after "stop, and expand your second point" the model has no second point. mu gives the model back the text you saw, in a message only the model reads, without the reasoning or tool calls. Replies mu cuts itself (thinking too long, breaking a rule) aren't given back: those say what they cut.

No options.

Prompt cache watch prefix

On by default

Each request to the model is compared with the one before it. When it no longer starts with what was sent before, the provider can't reuse its prompt cache for the rest, so the session records what changed (the model, the system prompt and tools, or the first message that differs) and which of mu's decisions acted in between, each with what it declares it does to the cache. Only hashes, positions and roles are kept, and nothing is sent anywhere.

No options.

Write sandbox (experimental) confine

Off by default

The agent's bash commands, background jobs and the programs it debugs can write only to the project, the temporary folders and package caches, enforced by the operating system; the project's .git/hooks and .git/config are read-only. Seatbelt on macOS, bubblewrap on Linux, none on Windows. When it cannot start (no bubblewrap, user namespaces turned off), every command is refused rather than run unconfined. The judge and the permission modes ask as before. A command that must write elsewhere (git config, git remote add) can ask to run outside the sandbox, once. In every permission mode, Full access included, the judge decides, and asks you when it's unsure (in Ask first, you decide). It's never allowed for the whole conversation.

OptionDefaultMeaning
writableemptyMore folders commands may write. For example, a cache mu doesn't know about. The home folder itself and ~/.mu never become writable this way.

Nebius sandbox (experimental) sandbox

Off by default

bash, read, write and edit run in a Nebius Token Factory sandbox VM instead of on this machine: the project is copied in at the start, and every command continues from the files the previous one left. Changes come back here only through /sandbox pull, after you have seen the diff and agreed. Needs NEBIUS_API_KEY and NEBIUS_PROJECT_ID; MU_SANDBOX=nebius also turns it on.

OptionDefaultMeaning
imagetag:ubuntu:latestBase image. An image UUID, tag:<name>, or docker://<reference> (imported on first use). Needs bash and tar; pulling needs git, which apt-get or apk installs when missing.
baseUrlhttps://api.tokenfactory.nebius.com/sandboxes/v1API address
workdir/workspaceProject folder in the sandbox
shell/bin/bashShell commands run in
timeoutS600 sTime limit of a command that sets none
seedTimeoutS900 sTime limit of copying the project in
maxSeedMB100 MBLargest project copied in
outputBytes1048576 bytesOutput kept per command. For stdout and for stderr each, at most 10 MiB. Range 1024 to 10485760.

If mu is useful to you, star it on GitHub

Star on GitHub625