Repository navigation
mu v0.2.0
0.2.0 starts the era of mu's own models: turn on mude 1.0 in one click.
0.2.0:自研模型时代开始,一键启用 mude 1.0。
mu v0.2.0: the desktop app and the mu command line.
- Desktop app: macOS (.dmg, .zip), Windows (.exe), Linux (.deb), each for x64 and arm64.
- macOS: signed with a Developer ID and notarized by Apple. Windows is not code-signed yet: SmartScreen shows a warning.
- The app carries mu inside it: nothing else to install, no Node.js, no download at the first start.
- The
mucommand line:npm i -g mu-agent(Node.js 22.19 or newer), or from source (the archive below, or a clone).
What's new
The desktop app carries mu-agent 0.2.0.
Added
- mude 1.0 installs on your Mac in one step and becomes mu's judge. mude 1.0 is mu's own decision model, optimized for coding. On a Mac with Apple silicon (macOS 14 or later, 8 GB of memory or more):
- In the desktop app, the first-run guide's judge step installs it with one click: it downloads mude 1.0 (1.8 GB) and checks every file, sets it up, starts it and makes it the judge. You can follow the progress, try again if it fails, or skip it. Settings → Judges has the same card: install, start, stop, make it the judge, uninstall, and an "Only local" switch.
- In the terminal,
mu judge mude installdoes the same, andstatus,enable --local-only,disable,start,stopanduninstallmanage it. - Decisions it answers never leave your Mac, and it answers in about 0.1 s. What it can't answer goes to the judge you had before, which is hosted, unless you choose Only local. While it runs, it uses about 4 GB of memory.
- Session files count what subagents and cut replies spent. A reply stopped for thinking too long, and each subagent, leave a
kyrn.usageentry with their tokens and cost, so a cost report or benchmark can include them. The model never sees these entries. - The desktop app's first-run guide offers "No judge". It is the third choice on the judge step, beside Jev and Laya: every decision point is off and nothing is sent to a judge, like
mu setup's "Not now". Skipping the step still keeps the judge it shows. Picking a judge afterwards turns the verdicts back on. MU_TIME_BUDGET_Sgives a run a deadline. Set it to the seconds a run may take (benchmark harnesses set it from the task's timeout): a reply stuck thinking is cut early enough for its retry to finish, and the agent hears how much time is left at 50% and 80%, with a reminder to get the requested result in place first. Without it nothing changes.
Changed
- Replies start sooner in the terminal and the desktop app. The questions mu asks the judge about a new message go out together instead of one after another, and a turn waits at most 3 s for them instead of 4 s. A long command output waits at most 2 s for its check instead of 4 s. In the authors' own sessions the wait before the model starts fell from a median 2.7 s to 1.7 s. Checks that guard a command (permission, risk, your constraints, prompt injection) wait as before.
- In
mu --printand json-mode runs, mu tells the agent at most once per message that it said it would do more and stopped, and not again after the agent answered without doing anything. The local judge no longer decides this: it took a finished "Done. Created …" for a promise. - The judge no longer picks which packs and MCP servers a message needs. Asked 196 times on benchmarks and in real sessions, it never opened one, and each turn waited for its answer. They stay hidden as before, and
find_capabilitynow tells the agent which ones are installed (mcp:linear (MCP server),pack:debugger (pack), …), so it opens one when a task needs it; you can with/capabilities open."modes": { "capability.disclosure": "active" }in~/.mu/agent/mu.json, or the desktop app's settings, bring the question back;"features": { "catalog": false }shows everything from the start. - Services in the order you'd look for them. In English (and any language but Chinese),
mu setup's list and the desktop app's first-run guide start with OpenAI, Anthropic, Google, xAI and OpenRouter; in Chinese they keep starting with DeepSeek, Qwen and Kimi. - A quieter start in the terminal. mu's welcome is the whole first screen: the list of loaded skills, prompts and extensions that pi prints under it is left out; prompts and skills are still in the
/menu. Problems loading them still show."quietStartup": falsein settings.json, or--verbose, brings the list back. - The terminal's
/loginno longer offers a Claude subscription sign-in either, so the command line matches the desktop app: Anthropic doesn't allow other apps to offer one./login anthropicgoes straight to the API key. A sign-in made before keeps working until/logout. - A Claude subscription token is refused where an API key is asked for.
mu setupand the desktop app's first-run guide recognize a token fromclaude setup-token(sk-ant-oat…), send it nowhere and ask for an Anthropic API key instead. - The plain-language board makes fewer model calls: it isn't written in
mu --printor json mode, where nobody sees it, and while subagents work it updates only when one of them starts, finishes or fails. - Subagents and hives ask the judge less: no difficulty questions without a model ladder, and none at all when every role is named. Hive bees think at the session's level like other subagents, share their
FOUND:andDEAD END:notes without waiting for the judge, and still hear from each other when the judge can't answer. The subagent patch scope check is off by default. browsewith a goal says up front when the configured judge can't drive the browser, instead of stopping after the first step.- A background job that ends, and the context-budget warnings, now reach the agent during the run, also in
mu --print; a message you send while the agent works is no longer held up to 1.5 s for the judge. The judge only records what it would have done for these two points. - When the agent offers extra work you didn't ask for ("want me to do the same for the others?"), mu no longer takes that as a go-ahead and sends it back to work.
- Cache warming no longer asks the judge while the agent is running, so it can't drop the prompt cache in the middle of a run.
- Screening tool output asks the judge less. Injection screening no longer asks about text with no sentence in it (directory listings, links, response headers), and long-output filtering no longer judges a file the agent printed (
cat,sed -n,head…) or a page it fetched. Build and test logs are still filtered. - The local judge Laya no longer screens tool output. It was slow there and its verdicts were wrong; the next judge, or mu's rules, do it instead.
mu --printand json-mode runs are leaner. They skip the preflight and capability questions before the run and the drift check during it, draft no skills and learn no new lessons, and leave out tools that one-shot runs almost never use (subagents, hive, the browser,locate,remember,find_skill,find_capability): about 1.9k fewer tokens in every request. Each part can be turned back on inmu.json. Interactive and desktop sessions are unchanged.- The drift check only records by default, since its steers were mostly wrong. Skills are drafted only when the judge is at least 90% sure.
- Fewer permission questions while exploring. A command made only of read-only commands joined by
;,&&,||or|(such aspwd && ls -la; git status) runs without asking, like a single read-only command.rm -f fileandcurl … | python3 -c '…'are no longer flagged as risky; a recursivermand a downloaded script that is run still are. - MCP tool description checks are remembered between runs, so
mu --printand subagents don't wait to check the same servers again. - The drift check is reworked. It looks at exit codes, times and how long since anything got better, checks every few minutes even while a reply takes long, and would steer only after two confident readings in a row and 10 minutes without progress. It still only records until a benchmark shows it helps.
mu --printand json-mode runs take no checkpoints and send the judge no warm-up questions: nobody there can rewind, yet every change waited for git to record the folder. That saves several seconds a run. They also no longer ask the judge how to route notices. Interactive and desktop sessions keep checkpoints; warm-up skips a judge on your own machine or network, and pauses while real questions keep the connection warm.- Subagents and hive bees start faster: they use the skills and capabilities their session already chose instead of asking the judge again, and never see a skill the session hid.
mu --print, json-mode runs and subagents send about 375 fewer tokens in every request: pi's documentation list is one line there, mu's note about itself is shorter, and no tool description points at the browser tool those runs don't have.
Fixed
- Running mu from a fresh clone works as the README says.
npm install --ignore-scriptsthennode kyrn/bin/mu.mjsfailed withERR_MODULE_NOT_FOUNDfor a provider's.json: the model list pi reads is generated, not committed. The READMEs, CONTRIBUTING.md and the desktop readme now includenpm run hydrate:model-catalog(offline, from the pinned catalog, as CI builds it); without it the launcher says what to run, andmu doctorflags it. The hint for missing dependencies names that script too, instead ofhydrate:model-data, which fetches the catalogs over the network. - A flagged script keeps its line breaks for the judge and in the confirmation. They were run into one line, which in a script joins separate commands into one:
echo doneand anrm -rf buildon the next line read as a single echo. Runs of spaces still collapse. - Pressing Escape during a sign-in in the terminal goes back to the list, instead of reporting "Failed to login to GitHub Copilot: This operation was aborted".
- Choosing a subscription in
mu setupno longer tells you to start mu and type/login: when setup starts mu,/loginis already open. mu --printcan reach your MCP servers again. In a one-shot run nothing opened an MCP server, and the tool to open one was left out, so the agent couldn't use it. With a server installed, the agent now sees which ones are there and opens the one it needs; runs without one are unchanged.- The desktop app's first-run guide names OpenAI, Claude and Gemini first under "Paste an API key" in every language but Chinese, as its list of services already does.
- With the judge off, the terminal no longer reads as if one answered. The footer no longer names it after each message ("Jev 1.13 (free): chat · answer directly · off"), and
/statussays "judge: off" instead of naming the judge set up, and no longer listsnotify.routing,input.interjectionandturn.driftasshadow: with the default off they are off too./doctorno longer checks the judge by asking it a question, which sent a request to OpenCode and brought up the notice that the free Jev reads what you send; it andmu doctorsay the judge is off and nothing is sent, leave out the Jev key row, and show the browser as off, which it is without browser.step. - A first
mu setupno longer says it backed up the previous files when the only one was the emptyauth.jsonpi writes at its first start. mu doctorin a terminal starts with how many things need fixing, as/doctorinside mu does.- The judge sees the risky part of a long command. A flagged command (
rm -rf,DROP TABLE, a force push, …) reached the judge cut to its first 400 characters, so in a long script the part the flag was about could be missing, and the judge could let it run as harmless. Now a command up to 1,500 characters reaches it whole; past that, its start and every flagged part with the text around it: the same excerpt you are asked to confirm. Whole scripts up to 8,000 characters, tried first, read worse: amid hundreds of harmless lines the judge lost what you had and had not asked for. - Reading a file page by page, or running scripts that only differ further down, no longer gets the agent told it is going in circles.
mu --printno longer stays up to 10 s after the run for a judge answer nobody waits for any more.- A late skill selection on the first message now takes effect from the next message, instead of every skill staying in the prompt for the whole conversation.
/helpfits the terminal. Its English was laid out for a wide window, so in a narrower one the terminal broke lines again and left single words at the left edge. Each description now wraps in its own column at the terminal's width. It also names ZCode for/import-chat, and its/mu routeexample usesopenairather than the Codex sign-in./doctorand/statusinside mu no longer report pi's placeholderunknown/unknownas your model. With no model they say "none yet", and/doctormarks it to fix./doctorstarts with how many things need fixing, and its rows wrap like/help's.- The local judge Laya no longer crashes when the disk is nearly full, and no longer stalls for seconds when a request is longer or shorter than the one before.
/permissionsopens on the current mode, so pressing Enter keeps it; before, the cursor started on Full access. A long option in mu's pickers wraps under its own text.- A lesson the model asked to
rememberis kept when the judge gives no verdict, instead of being dropped. - mu's own commands no longer show
[t]in the terminal's slash menu. pi tagged them as an extension loaded for this run only; they come with mu. - The desktop app's settings and kernel bar show the drift check, notification routing, mid-run messages and the subagent patch scope check as they are out of the box, only recording or off, instead of as active. usemu.dev says 34 of the 40 decision points act from the start, not 38.
- The terminal's
/loginno longer offers the Codex CLI's login ("OpenAI Codex (legacy)"). ChatGPT signs in through OpenAI, as in the desktop app andmu setup; a sign-in made before keeps working until/logout. Its first menu also drops "Sign in with Radius", pi's own service, which stays in the list of accounts.mu setupnow names the entries/loginshows: Sign in with an account, then OpenAI for ChatGPT, xAI for Grok, or a Google sign-in. - Choosing a subscription in
mu setupnow opens the sign-in. The session it starts (and the first start ofmu) opens on/login, instead of leaving you to type it. With no model connected, the session's warning points to/loginrather than back tomu setup, and the status line says "no model" instead of "unknown". - Clearer
mu judge,mu ledgerandmu authin a terminal.mu judge --helpexplains each command and how to have mu ask the local judge,mu judge statussays in one line whether it's running and what it serves (--jsongives the server's answer), and its messages, also shown in the desktop app's local judge panel, are full sentences.mu ledger --helpno longer runs the ledger.mu auth --helplists mu's own sign-in commands before pi's.mu link --helpandmu unlink --helpexplain instead of linking or unlinking, andmu --versionin a checkout prints mu's version, as the npm package does, rather than pi's. - "Not now" for the judge in
mu setupnow means no judge. It said mu would run without one, but wrote nothing, so the free Jev answered anyway and what it reads went to OpenCode. It now turns every decision point off inmu.json("modes": { "default": "off" }), the welcome line says the judge is off, and nothing is sent to a judge. Picking a judge in a latermu setupturns it back on, andmu setup --judge offdoes the same as "Not now" in a script. With the default mode off, the points that start in shadow (notify.routing,input.interjection,turn.drift) are off too, so turning "Verdicts take effect" off in the desktop app stops every call to the judge, and its settings show those points off.
中文说明
自研模型时代开始:mude 1.0 一键装进 Mac 当判定器;mu setup 里直接订阅登录,判定器说关就关,回复更快开始。桌面端自带 mu-agent 0.2.0。
- 0.2.0:自研模型时代开始,一键启用 mude 1.0。 mude 1.0 是 mu 自己的决策模型,针对编程场景优化。在 Apple 芯片的 Mac 上(macOS 14 及以上,内存 8 GB 及以上),桌面端首次启动引导的「判定器」一步点一下就能下载(1.8 GB,逐个校验)、装好、启动并设为判定器;能看到进度,失败可以重试,也可以跳过。设置 →「判定器」里有同样的卡片:安装、启动、停止、设为判定器、卸载,还有「仅本地」开关。终端里用
mu judge mude install。它回答的判定不出本机,每次约 0.1 秒;答不了的交给原来的托管判定器,选了「仅本地」就不交。运行时约占用 4 GB 内存。 - 在
mu setup里选订阅账号,接着就是登录。mu setup会写明该选哪一项:Sign in with an account,再选 OpenAI(ChatGPT)、xAI(Grok)或 Google;它启动的会话(还有第一次启动mu)直接打开/login,不用自己输入。终端的/login和桌面端一致了:不再提供 Codex CLI 的登录,ChatGPT 通过 OpenAI 登录;也不再提供 Claude 订阅登录(Anthropic 不允许其他应用这样做),/login anthropic直接要 API key;第一个菜单也去掉了「Sign in with Radius」。以前的登录在/logout之前照常可用。把 Claude 订阅令牌(sk-ant-oat…)贴到要填 API key 的地方,mu setup和首次引导会认出来,不发到任何地方,请你改填 API key。 - 判定器选「暂时不要」,就真的不用判定器。 以前选它什么都没写下,免费的 Jev 照样回答,它读到的内容也照样发给了 OpenCode。现在它在
mu.json里关掉所有判定点("modes": { "default": "off" }),欢迎语写明判定器已关闭,什么都不发给判定器;之后在mu setup里选一个判定器就会重新打开,脚本里用mu setup --judge off。原本处于影子模式的通知分流、中途插话和跑偏监测也随之关闭,所以在桌面端关掉「判定生效」,对判定器的每次调用都会停下;桌面端的设置和内核栏也按出厂状态把这些判定点显示为只记录或关闭,不再显示为生效。 - 终端更安静,命令行帮助更清楚。 欢迎界面就是整个第一屏,pi 列出的已加载技能、提示词和扩展不再显示(它们仍在
/菜单里;--verbose或"quietStartup": false能让列表回来)。/help按终端宽度分栏换行;mu doctor和/doctor先说有几项要修;没有模型时,/status和状态栏不再显示 pi 的占位符unknown。mu judge --help讲清每个命令,mu judge status用一行说明本地判定器的状态;mu ledger --help、mu link --help和mu unlink --help只显示帮助、不再真的执行;mu auth --help先列出 mu 自己的登录命令;从源码运行时,mu --version显示 mu 的版本,不是 pi 的。 - 运行可以设时限。 把
MU_TIME_BUDGET_S设成一次运行最多能用的秒数(基准测试按任务的超时来设):一直在思考的回复会提早截断,好让重试来得及完成;时间用掉 50% 和 80% 时,代理会听到还剩多少时间,并被提醒先把要求的结果做出来。不设就什么都不变。跑偏监测也重做了:它看退出码、耗时和离上次有进展过了多久,回复很长时也每隔几分钟看一次,要连续两次有把握、而且 10 分钟没有进展才会纠偏。不过在基准测试证明它有用之前,它默认只记录。 - 无人值守的运行更省,子代理启动更快。
mu --print和 json 模式跳过运行前的预检、跑偏监测、检查点、判定器预热、技能起草和新教训,也去掉了一次性运行几乎用不到的工具(子代理、蜂群、浏览器等):每次请求少约 1.9k token,每次运行快几秒。每一项都能在mu.json里重新打开,交互式会话和桌面端不变。子代理和蜂沿用会话已选好的技能和能力,不再重新问判定器,蜂之间的FOUND:和DEAD END:笔记也不等判定器。筛查工具输出时少问判定器:目录列表、链接这类没有句子的文本不做注入检查,本地判定器 Laya 不再筛查工具输出。 - 回复更快开始,判定器问得更少。 新消息到来时,mu 要问判定器的几个问题一起发出,一轮最多等 3 秒(原来 4 秒);很长的命令输出最多等 2 秒检查(原来 4 秒)。在作者自己的会话里,模型开始前的等待中位数从 2.7 秒降到 1.7 秒。判定器不再替每条消息挑选要打开的能力包和 MCP 服务器(在基准测试和真实会话里问了 196 次,一次也没打开过):它们照旧隐藏,
find_capability会告诉代理装了哪些,需要时由它自己打开,你也可以用/capabilities open。mu --print又能用上你装的 MCP 服务器了。桌面端首次引导的判定器一步多了「不用判定器」;判定器关闭时,终端的状态栏、/status和/doctor不再显示得像有判定器在回答,/doctor也不再为检查而给判定器发请求。 - 修复。 被标为有风险的长命令(
rm -rf、DROP TABLE、强制推送……)以前只把前 400 个字符交给判定器,长脚本里危险的部分可能被截掉而放行;现在 1,500 个字符以内的命令整条交给判定器,更长时交给它开头和每个被标出的部分及其前后文,也就是请你确认时看到的那段摘录;换行也保留下来,脚本里相邻的两条命令不会再被读成一条。只由只读命令连起来的命令(比如pwd && ls -la; git status)不再询问权限,rm -f 文件也不再算有风险。/permissions打开时停在当前模式上,不再停在「完全访问」。代理顺带提出做你没要求的事时,mu 不再当作你同意了。代理工作时你发的消息不再为等判定器耽搁最多 1.5 秒;分页读文件不会再被说成原地打转;本地判定器 Laya 在磁盘快满时不再崩溃。