@minimax-ai/code 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +185 -159
  2. package/CHANGELOG.zh-CN.md +264 -0
  3. package/README.md +6 -3
  4. package/README.zh-CN.md +4 -2
  5. package/assets/agents/_tui/prompt-base-all.md.hbs +12 -0
  6. package/assets/agents/_tui/prompt-base-windows.md.hbs +45 -0
  7. package/assets/agents/_tui/prompt-base-worker.md.hbs +4 -0
  8. package/assets/agents/_tui/prompt-session-branch.md.hbs +13 -0
  9. package/assets/agents/_tui/prompt-session-root.md.hbs +4 -0
  10. package/assets/agents/mavis/tui/PERSONA-zh.md.hbs +17 -0
  11. package/assets/agents/mavis/tui/PERSONA.md.hbs +22 -0
  12. package/assets/agents/mavis/tui/SYSTEM.md.hbs +110 -0
  13. package/assets/agents/mavis/tui/features/delegation.md.hbs +52 -0
  14. package/assets/agents/mavis/tui/features/task-management.md.hbs +11 -0
  15. package/assets/agents/mavis/tui/features/web-search.md.hbs +7 -0
  16. package/chunks/{application-F5GCGMBT.js → application-VM7NETBS.js} +1 -1
  17. package/chunks/chunk-B7AEIYE2.js +155 -0
  18. package/chunks/{chunk-ZQ5NFQRA.js → chunk-BPRXRI4W.js} +467 -467
  19. package/chunks/chunk-C3JRMX7L.js +2 -0
  20. package/chunks/{chunk-VVZRUBTN.js → chunk-CSEMCTUO.js} +490 -490
  21. package/chunks/{chunk-3X7O237P.js → chunk-J6D4YR7Q.js} +1 -1
  22. package/chunks/chunk-OGKBQLFH.js +33 -0
  23. package/chunks/launcher-U4C3IZNL.js +231 -0
  24. package/chunks/{lifecycle-W7H7AQB2.js → lifecycle-KCPZFQXU.js} +1 -1
  25. package/chunks/{main-KR4ULBZO.js → main-X4HBPBMC.js} +1 -1
  26. package/chunks/{plugin-command-KVTQXIBN.js → plugin-command-A5E7VOZF.js} +1 -1
  27. package/chunks/provider-command-MKFDOYFC.js +3 -0
  28. package/chunks/{run-acp-command-RJAB4GDT.js → run-acp-command-X52GQQTB.js} +1 -1
  29. package/chunks/{run-exec-command-KYGOLZKQ.js → run-exec-command-YNDAZGJH.js} +1 -1
  30. package/chunks/update-WS5F7FXU.js +15 -0
  31. package/cli.js +1 -1
  32. package/package.json +2 -1
  33. package/chunks/chunk-COTC5RMO.js +0 -156
  34. package/chunks/chunk-GWC5532O.js +0 -2
  35. package/chunks/launcher-RQDNLK5Q.js +0 -230
  36. package/chunks/provider-command-NMPS5C3N.js +0 -3
  37. package/chunks/update-NYOPKJYL.js +0 -14
@@ -0,0 +1,264 @@
1
+ # MCode TUI 更新日志
2
+
3
+ 这里记录 MCode
4
+ TUI 正式版中用户能直接感知的重要变化。收录范围以 TUI 用户影响为准,而不是以代码目录为准:
5
+
6
+ - TUI 本身的功能、交互、显示、兼容性、安装和更新变化;
7
+ - Runtime、Agent、Tool、Skill 等共享层中会改变 TUI 行为的变化。
8
+
9
+ 仅内部重构、测试调整,或只影响其他产品界面且不改变 TUI 行为的变化不记录。
10
+
11
+ ## 0.2.7 · 2026-08-28
12
+
13
+ ### 体验改进
14
+
15
+ - 由安装器管理的更新会先发布完整的版本化目录,再原子切换新 Session 使用的版本;正在运行的 Session
16
+ 可以继续使用旧版本,不再阻塞激活。更新过程也会展示各阶段,并在包管理器仍在运行时持续输出心跳。
17
+ - 回复运行期间改用 `Alt+Enter` 将后续任务放入 Queue,`Tab` 只负责 Composer 补全;`Enter`
18
+ 继续用于 steer 当前 Turn。
19
+ - Welcome 版本亮点与 `/changelog` 会按系统语言选择安装包内的英文或简体中文更新日志,中文文件缺失时稳定回退英文。
20
+ - TUI Session 改用独立的终端 Prompt Profile,不再加载 Desktop `user.md`
21
+ 内容,避免 Desktop 专属个人指令影响终端行为。
22
+
23
+ ### 问题修复
24
+
25
+ - 修复 Regular 与 Fullscreen 在临时行收起、历史重新测量或交互区域变化时可能清空原生
26
+ scrollback、产生大段空白、重复历史行或重复 footer 帧的问题,并保持原有滚动位置。
27
+ - 修复 Goal 与后台任务活跃时 Permission、Questionnaire 等阻塞交互可能被挤出可见区域的问题;长历史全部展开时只格式化
28
+ viewport 与 overscan 范围。
29
+ - 修复用户输入的整行高亮、首条消息紧凑间距和终端语义标记不一致,导致首行偏移或样式丢失的问题。
30
+
31
+ ## 0.2.6 · 2026-08-27
32
+
33
+ ### 体验改进
34
+
35
+ - Bash 审批框和 Transcript 会统一提取并高亮真实命令,不再把 JSON 外壳与转义字符当作 Shell 脚本展示。
36
+ - Welcome 页的 `/checkin` 提示改为纳入启动 Tips 轮播,不再错放到版本变化区域。
37
+ - 后台任务会在 Composer 上方显示摘要和最多三条任务行,其余任务收为 `… N more`。
38
+
39
+ ### 问题修复
40
+
41
+ - 修复剩余使用额度显示小数的问题,按实际积分单位统一显示为整数。
42
+ - 修复启动首帧保留旧 Shell 提示符的问题,进入 MCode 时会先刷新当前终端画面。
43
+
44
+ ## 0.2.5 · 2026-08-27
45
+
46
+ ### 新增功能
47
+
48
+ - `/sessions` 升级为 Session Center,可以在当前 workspace 或全部范围中搜索、切换、重命名、归档和恢复 Session,并支持 `id:`、`path:`、`type:`、`status:`、`model:` 等筛选。
49
+ - 新增 `/history`,可以浏览当前 Session 的输入历史,预览后创建分支、编辑历史输入、仅回退会话,或同时回退会话与文件;回复运行期间保持只读浏览。
50
+ - Welcome 会从当前版本更新记录中随机展示三条变化;新增 `/changelog`,可通过只读面板查看安装包内的完整历史记录。
51
+ - Composer 上方新增任务面板,在不改写 Transcript 历史的前提下展示 Agent Team 和 Runtime 后台任务的实时状态。
52
+ - 新增 `/checkin`,可以在 TUI 中完成每日签到并查看连续签到、累计天数和奖励结果。
53
+ - `/model` 支持展示和选择第三方 Provider 提供的模型,并在需要时引导完成 Provider 配置。
54
+
55
+ ### 体验改进
56
+
57
+ - `/context`、`/usage` 与 `/status` 改为可关闭的当前交互面板,查看结束后不会在 Transcript 或 Session 历史中留下记录。
58
+ - 状态栏与用量面板可以展示当前 Session 的 Cache Read 比例,并在统计信息不足时避免显示误导性的比率。
59
+ - Queue 与 Steer 的状态、目标和恢复反馈更清晰;运行中可以选择已排队消息作为 Steer 目标,切换 Session、取消或恢复运行时会保持当前队列归属一致。
60
+ - 回复运行期间会隐藏并拒绝创建、切换、重命名、归档、分支、回退、编辑历史和压缩 Session 的命令;只读历史、Queue、Steer 与 Stop 等安全操作保持可用。
61
+ - 审批框与 Tool 执行摘要会按 Shell 语义统一高亮命令,长命令更容易阅读。
62
+ - Coding 与 Work 模式会保持 Markdown 链接的标签和目标为可点击格式,避免链接被错误渲染为行内代码。
63
+ - Regular 模式的流式更新、主题变化和 Surface 切换减少了完整重绘;长 Session 的 Inspector 只格式化当前 viewport 附近内容,降低持续输出和滚动时的额外开销。
64
+ - 正式包按启动路径拆分并延迟加载非必要资源,缩短版本查询、首帧显示和可提交消息前的等待时间。
65
+ - 长 Session 会对累计 ToolResult 统一压缩,并保留可恢复的原始输出,减少上下文占用和重复裁剪。
66
+ - TUI 会在本地有界保存经过脱敏的异常退出与生命周期故障信息,并在登录后自动上报;采集或上报失败不会阻塞启动、退出或正常交互。
67
+
68
+ ### 问题修复
69
+
70
+ - 修复 Regular 模式在实时更新时重放完整 Transcript、破坏终端原生 scrollback 或造成历史内容跳动的问题。
71
+ - 修复退出、更新、外部编辑器返回和终端恢复过程中重复刷新或过早结束清理的问题。
72
+ - 修复终端或自动补全子进程发生 EOF 时错误终止 TUI,或无法保留首个停止原因的问题。
73
+ - 修复 Session 历史操作、Queue 消息与后台任务在异步返回、恢复或 Session 切换时可能投影到错误上下文的问题。
74
+ - 修复未显式指定模型的内置 Agent 未继承当前会话模型,以及 Goal verifier 等子任务的显式模型路由被 Agent 配置覆盖的问题。
75
+ - 修复旧版本遗留的 `main` / `mavis` Agent 数据可能导致 Runtime 启动失败的问题。
76
+ - 修复 `/fork` 在当前仓库无法安全创建隔离 worktree 时仍展示该选项、选择后才失败的问题。
77
+ - 修复 MiniMax Plugin Hook 收到错误的 Tool 名称或输入结构,导致 Hook 匹配和输入改写失效的问题。
78
+ - 修复内置 Matrix 工具访问受管服务时使用错误鉴权方式的问题。
79
+ - 修复安装或更新重复执行、下载中断或激活失败时可能留下不完整版本的问题,并支持从事务记录恢复。
80
+
81
+ ## 0.2.4 · 2026-08-24
82
+
83
+ ### 新增功能
84
+
85
+ - `mcode acp` 扩展 Session 控制面,支持 Session fork、模式与配置切换、队列/Steer、Goal 和 delegation,并在连接重绑、取消和权限/问卷交互中保持状态归属一致。
86
+ - 安装后的 Plugin Skills 可以直接通过 `/` 搜索和调用。
87
+ - 支持兼容 Plugin 格式的生命周期 Hooks,并补齐 Runtime 侧的兼容性处理。
88
+ - Goal 支持运行时预算、自动结算和独立验证;Ask 等待自动继续时会展示倒计时。
89
+ - `mcode exec` 补齐自动化场景的结构化事件与输出。
90
+ - 可以按 Ctrl+U 接续最近一个 Codex Session。
91
+
92
+ ### 体验改进
93
+
94
+ - 启动阶段会展示 Server loading 状态,Runtime 就绪前不会提交消息;启动动画和功能页面会跟随当前 TUI 模式正确布局。
95
+ - Composer 空闲时会展示操作 Tips。
96
+ - 图片绝对路径粘贴后改为简短占位符,Agent Team 子任务行在状态更新时保持稳定,长时间 Bash 和后台任务的进度提示更清晰。
97
+ - 长会话上下文压缩会优先采用至少节省 70% 上下文的工具结果裁剪,减少低收益裁剪;后台任务提醒的去重与读取计数更稳定。
98
+
99
+ ### 问题修复
100
+
101
+ - 限制 Tool Transcript 对单个 Tool input/detail 的保留上限,超限时保留首尾内容并显示原始字节数,避免大 payload 长时间占用内存。
102
+ - 修复旧 BYOK Provider、Session 和历史 Custom Agent 配置在 TUI 启动阶段干扰迁移或阻塞 Runtime 的问题。
103
+ - Permission Core 收口为确定性的权限策略 owner;命令级拒绝保持 fail-closed,Windows 可安全回收的字面删除命令按固定目标执行,复杂或无法证明的命令继续拒绝。
104
+ - 修复 npm-prefix 中 pending 更新无法继续的问题。
105
+ - 修复本地时区变化导致 Session canonical history 路径变化,以及 Host 失败、Fork 时的历史保留边界问题。
106
+ - 修复模型上下文变化后压缩失败、Compact checkpoint 丢失 Subagent 状态的问题。
107
+
108
+ ## 0.2.3 · 2026-08-22
109
+
110
+ ### 新增功能
111
+
112
+ - 新增 `/export [path.md]`,可将当前 Session 的完整历史导出为 Markdown;支持 workspace 相对路径、冲突文件自动加后缀、凭据脱敏、0600 文件权限和可点击的本地文件链接。
113
+ - 模型选择器按 Provider 分组,支持实时搜索 Provider、模型名、显示名、variant 和 `provider/model`,并支持退格、删除、左右移动光标及保留完整模型目录。
114
+
115
+ ### 体验改进
116
+
117
+ - `/rename` 支持无参数打开 Session Manager 并预选当前 Session;Permission、Plan Review、Questionnaire 等交互统一了嵌套输入 focus、取消、失败反馈和恢复路径。
118
+ - Ctrl+C 退出确认改为“再次按键即退出”的 armed 状态,清空 Draft 后可用 Ctrl+Z 恢复,不再受固定 500ms 窗口限制。
119
+ - 优化了启动性能,非启动项依赖滞后启动
120
+
121
+ - MiniMax Code 产品知识 Skill 改为首层路由,携带可信 region 上下文并按 account、Agent、extension、workflow 等主题加载对应参考资料。
122
+
123
+ ### 问题修复
124
+
125
+ - 修复 Turn 内发生压缩后历史收口仍引用过期身份的问题,避免长会话继续执行时状态对账错误。
126
+ - 修复 `tool_trim` 持久化改写用户消息导致 Turn 失败的问题,保留原始用户 payload。
127
+ - 修复 `mcode update` 在 npm 返回单元素版本数组时的解析问题。
128
+ - 修复运行结果、Agent Team 和 Runtime 事件在重连、重复或乱序到达时的结算一致性问题。
129
+
130
+ ## 0.2.2 · 2026-08-21
131
+
132
+ ### 新增功能
133
+
134
+ - 新增 `/rewind` 与 `/edit`,可以从历史消息选择回退范围、预览变更并编辑后重新提交;`/fork`、附件和 Draft 恢复统一复用 Runtime 会话契约。
135
+
136
+ ### 体验改进
137
+
138
+ - `/update` 在有多个 MCode session 运行时会显示实际阻塞数量,并持续等待旧进程安全退出后再激活,避免更新因固定超时停在中间状态。
139
+ - Slash Review 在上下文预算不足时自动切换到紧凑的 Git 自发现 Prompt,保留 Review 结果和恢复路径,长会话更不容易因输入过大失败。
140
+
141
+ ### 问题修复
142
+
143
+ - 修复 Agent Team 从历史 Session 恢复后将已完成子任务继续累计耗时的问题。
144
+ - 修复终端以 EOF 结束时被误报为异常,以及多个 cleanup 步骤共享超时导致后续资源未关闭的问题。
145
+ - 修复旧版 turn lease 在进程重启后可能长期占用 Session、阻塞后续操作的问题。
146
+
147
+ ## 0.2.1 · 2026-08-20
148
+
149
+ ### 体验改进
150
+
151
+ - `/settings` 会同时展示 Regular 与 Fullscreen 的实际布局差异;方向键只移动焦点,确认后才应用所选模式。
152
+
153
+ ### 问题修复
154
+
155
+ - 修复 Fullscreen 输入框总是滞后一帧,必须再按一次键才显示上一个字符的问题。
156
+
157
+ ## 0.2.0 · 2026-08-20
158
+
159
+ ### 新增功能
160
+
161
+ - 重建终端渲染与输入基建,统一 regular/fullscreen、Markdown、Unicode、图片、键盘、鼠标、搜索和窗口 resize 行为。
162
+ - Permission 请求改为完整的审批卡片,清晰展示命令、文件、匹配规则和风险,并区分单次允许、会话允许与拒绝;审批会保持打开,直到 Runtime 确认结果。
163
+ - SSH 会话中的 `/copy` 支持通过终端协议写入本地剪贴板;任务完成通知也会按终端能力去重发送。
164
+ - 新增 `sessionTitle.enabled` 配置,可以关闭 Runtime 的 Session 标题模型请求。
165
+
166
+ ### 体验改进
167
+
168
+ - 重新设计 `/context`、`/usage` 与 `/status`,用容量、比例和状态层级展示上下文构成、Token 用量、模型、推理强度、Compaction 与运行状态。
169
+ - Runtime 会根据剩余上下文动态调整输出预算和 Compact 水位,长会话不再因为模型的完整输出上限过早压缩,同时保留安全的单轮输出空间。
170
+ - 长任务存在未完成 Todo 时,Agent 会按 assistant iteration 节奏重新检查任务进度,减少长时间执行后遗漏剩余步骤。
171
+ - Project 级 Skill 会正确进入 TUI Slash Command 补全;MCP Server 冷启动期间保持启动中状态,不再因首次查询超时误报失败。
172
+ - fullscreen 中滚动、搜索、选择和 tail follow 由同一 viewport 管理;regular 与 fullscreen 切换不会重建 Runtime,也不会丢失 Session、Draft、附件或阻塞交互。
173
+
174
+ ### 问题修复
175
+
176
+ - 修复 fullscreen 中 Slash Command 补全或功能列表展开时输入框被裁掉、退出后需要额外按键才恢复的问题。
177
+ - 修复 fullscreen AskUser 覆盖最近消息,以及 namespaced AskUser Tool 完成态泄漏到 Transcript 的问题。
178
+ - 修复流式返回时切换 Tool details 导致 viewport 闪回顶部;Windows 图片粘贴改为优先提示 `Alt+V`,并以`Ctrl+Z` 提供不与 Windows Terminal 缩放冲突的 Editor/Draft undo。
179
+ - 修复 PowerShell 中通过 `Ctrl+G` 编辑 Draft 后,外部编辑器退出但 Composer 无法继续输入的问题。
180
+ - 修复 regular 模式下 Runtime 状态刷新会打断 Slash Command 候选,导致第一次 `/` 不显示、后续输入与候选慢一拍的问题。
181
+ - 修复 regular 模式下长 AskUser、Queue 和 Plan viewer 被直接裁掉,导致问题、当前选项或文档内容不可见的问题。
182
+ - 将 Settings、AskUser 等交互对 Composer 的替换逻辑统一为 Pi 的挂载状态语义,避免切换空帧中输入框闪现但无法输入,或交互结束后旧内容残留。
183
+ - 修复后台 Subagent 完成后复用上一条 Query 的折叠状态和计时,以及 `/review` 排队消息来源与气泡无法正确对账的问题。
184
+ - 修复开启加速索引时,已经失效的 Workspace 阻断当前 Session 继续发送的问题。
185
+ - 修复 Windows 本地文件工具的 Read-Before-Write 路径身份不一致,以及 PowerShell 将 `mcode.ps1` 解析为启动器时被安装器误判失败的问题。
186
+ - 修复 `/update` 在 npm prefix 内原地覆盖导致 native module 锁冲突的问题,更新改为隔离 staging 后原子切换。
187
+
188
+ ## 0.1.6 · 2026-08-19
189
+
190
+ ### 问题修复
191
+
192
+ - 修复 Node.js
193
+ 26 环境下图片生成、图片搜索与下载、反向搜图、视频和音频等 Matrix 长耗时工具调用失败并提示
194
+ `fetch failed` 的问题。
195
+
196
+ ## 0.1.5 · 2026-08-19
197
+
198
+ ### 新增功能
199
+
200
+ - 新增
201
+ `/retry`,可在 Provider 或网络故障后重新发送保留的消息;恢复历史 Session 时也能继续未完成的请求,Goal 被阻塞后可以直接恢复。
202
+ - 状态栏支持按配置选择和排列目录、Session、Git、模型、推理强度、上下文等信息,并可显示当前运行状态。
203
+
204
+ ### 体验改进
205
+
206
+ - Provider、网络、鉴权和限流错误会给出更清晰的原因与下一步操作;自动重试期间会展示重试进度,失败上下文不会因切换或恢复 Session 丢失。
207
+ - MCP Server 冷启动期间保持启动中状态,不再因首次状态查询超时而误报失败。
208
+ - 模型与推理强度会在首轮请求前正确生效;BYOK 连通性测试和 Codex OAuth 代理行为更准确。
209
+ - 安装器优先安全复用兼容的系统 Node.js,保留已有 PATH,并支持显式选择经过校验的中国大陆下载镜像。
210
+
211
+ ### 问题修复
212
+
213
+ - 修复 PowerShell 和 Windows Terminal 中拖选消息并复制时输入框 Draft 被清空的问题。
214
+ - 修复 `/quit` 被恢复为输入框 Draft,以及恢复 Session 时误触发 Queue 发送的问题。
215
+ - 修复图片粘贴后消息重复显示、Goal 内联附件无法启动和历史分页后执行耗时丢失的问题。
216
+ - 修复 Windows launcher 路径转义与部分安装、更新场景的兼容性问题。
217
+
218
+ ## 0.1.4 · 2026-08-18
219
+
220
+ ### 新增功能
221
+
222
+ - 新增 `/goal`,可以在 TUI 中创建、查看和管理当前 Session
223
+ Goal,并查看目标状态、进度和耗时;Goal 语义与 Desktop 和 Runtime 保持一致。
224
+ - 新增 Plugin 管理:`mcode plugin` 和交互式 Plugin
225
+ manager 支持浏览官方与本地来源、安装、启用、停用和移除 Plugin。
226
+ - 完善 `/provider` 与 `/model`:可以查看和测试 Provider,在 MiniMax OAuth 与 API
227
+ Key 之间切换,并选择模型和推理强度;当前模型与推理档位会同步显示在状态栏和 `/status` 中。
228
+ - 完善 ACP 与持续协作:支持持久化 Session 的列举、加载、恢复和关闭;运行中可以 Queue 后续消息并 steer 当前 Draft 或下一条排队消息,`/new`
229
+ 不再破坏 Session 的对应关系。
230
+
231
+ ### 体验改进
232
+
233
+ - 鼠标滚动、`PgUp` /
234
+ `PgDn`、拖拽选区和复制体验统一优化;选区会随内容滚动保持定位,并支持拖拽选区自动滚动,非 TTY 和兼容终端继续使用终端原生 scrollback。
235
+ - 新增 `/context` 与 `/usage` 的可视化信息,展示上下文窗口、Token 构成、会话用量和 Compaction 状态。
236
+ - 工具调用、Skill 补全和 Queue 消息展示更及时;生成文件回执改为清晰的可点击路径,点击即可打开对应文件或目录。
237
+ - Permission、Questionnaire 和 Compaction 请求统一按 Runtime 合同处理,减少等待中的请求状态丢失或重复展示。
238
+
239
+ ### 问题修复
240
+
241
+ - 修复拖拽选区滚动时的复制错位,以及 Queue 消息延迟上屏的问题。
242
+ - 修复启用 `mcode-tools` 开关后内置 Matrix 工具被错误裁剪的问题。
243
+ - 修复 Windows 与 WSL 图片粘贴,以及 TUI 生成文件路径展示中的兼容性问题。
244
+
245
+ ## 0.1.3 · 2026-08-17
246
+
247
+ ### 新增功能
248
+
249
+ - 通过 ACP 接入编辑器时,可以在重启后重新打开或继续之前的 Session,并修复 `/new`
250
+ 可能导致的 Session 错乱。
251
+ - `mcode exec` 的 JSON 输出会携带实际使用的模型信息,方便统计用量。
252
+ - 新增 `/copy`
253
+ 命令,将最近一条 Assistant 回复复制到系统剪贴板并保留 Markdown 格式;没有可复制回复或剪贴板不可用时,会给出明确提示和手动复制路径。
254
+
255
+ ### 体验改进
256
+
257
+ - Session 标题更准确,工具调用和 Skill 补全也更清晰。
258
+ - macOS 滚动快捷键改为更符合实际键盘的 `Fn` 组合键提示。
259
+
260
+ ### 问题修复
261
+
262
+ - 使用 MiniMax API Key 时,未登录状态也能正常开始对话。
263
+ - 修复交付文件路径后粘连额外文本,以及输入框光标和边框频繁闪烁的问题。
264
+ - 改进 WSL 登录和 Windows PowerShell 安装器的兼容性。
package/README.md CHANGED
@@ -54,9 +54,9 @@ Or start with a task already attached:
54
54
  mcode "Explain this repository and identify the highest-priority technical debt."
55
55
  ```
56
56
 
57
- While MiniMax Code is working, press `Enter` to steer the active turn or `Tab` to queue a follow-up
58
- for the next turn. Use `Alt+Up` (or `Shift+Left`) to move the latest queued message back into the
59
- Composer before steering it with `Enter`.
57
+ While MiniMax Code is working, press `Enter` to steer the active turn or `Alt+Enter` to queue a
58
+ follow-up for the next turn. Use `Alt+Up` (or `Shift+Left`) to move the latest queued message back
59
+ into the Composer before steering it with `Enter`.
60
60
 
61
61
  Useful Session commands:
62
62
 
@@ -81,6 +81,9 @@ existing `/login` region and browser flow first, then resumes check-in once afte
81
81
  authentication. The result labels the server cycle day separately from the current streak, using
82
82
  the same streak calculation as the desktop card.
83
83
 
84
+ Runtime background work appears above the Composer as a summary plus up to three task rows.
85
+ Additional tasks are summarized as `… N more`.
86
+
84
87
  ### Headless and CI
85
88
 
86
89
  `mcode exec` runs a task without opening the TUI:
package/README.zh-CN.md CHANGED
@@ -52,7 +52,7 @@ mcode
52
52
  mcode "解释这个项目的架构,并指出最值得先处理的技术债。"
53
53
  ```
54
54
 
55
- MiniMax Code 工作时,按 `Enter` 将输入内容 steer 给当前 Turn;按 `Tab` 才会把后续任务放进 Queue,留给
55
+ MiniMax Code 工作时,按 `Enter` 将输入内容 steer 给当前 Turn;按 `Alt+Enter` 会把后续任务放进 Queue,留给
56
56
  下一 Turn。已经排队的最新消息可用 `Option+↑`(其他平台显示为 `Alt+↑`)或 `Shift+←` 召回 Composer,
57
57
  再按 `Enter` steer。
58
58
 
@@ -77,6 +77,8 @@ mcode --session <session-id>
77
77
  区域选择和浏览器登录流程,登录成功后自动续跑一次签到。签到结果会分别标明服务端返回的本轮日序与
78
78
  当前连续签到天数;连续天数与桌面端签到卡片共用同一套计算。
79
79
 
80
+ Runtime 后台任务会在 Composer 上方显示摘要和最多三条任务行,其余任务收为 `… N more`。
81
+
80
82
  ### Headless 与 CI
81
83
 
82
84
  `mcode exec` 可以在不打开 TUI 的情况下执行任务:
@@ -164,7 +166,7 @@ Plan Mode 允许你在修改代码前先审阅实现计划。权限模式用于
164
166
 
165
167
  运行 `mcode --help` 或 `mcode <command> --help`,查看当前安装版本支持的全部参数。
166
168
 
167
- 正式版本的用户可见变化见 [CHANGELOG.md](./CHANGELOG.md)。
169
+ 正式版本的用户可见变化见 [CHANGELOG.zh-CN.md](./CHANGELOG.zh-CN.md)。
168
170
 
169
171
  ## 常见问题
170
172
 
@@ -0,0 +1,12 @@
1
+ ## Harness
2
+
3
+ - Text outside tool calls is rendered as GitHub-flavored Markdown in the terminal.
4
+ - Tools run behind a user-selected permission mode; a denied call means the user declined it —
5
+ adjust, don't retry verbatim.
6
+ - `<system-reminder>` blocks are injected by MiniMax Code, not written by the user.
7
+ - Prefer dedicated tools over `bash` whenever one fits. Use `grep` for file-content search, `glob`
8
+ for file-name/path search, `read` for reading files, `edit` for targeted changes, and `write` for
9
+ new files or complete rewrites. Reserve `bash` for shell-only operations or after verifying that
10
+ no available dedicated tool can complete the task.
11
+ - Independent tool calls can run in parallel in one response.
12
+ - Reference code as `file_path:line_number` — it's clickable in the TUI.
@@ -0,0 +1,45 @@
1
+ ## Windows Shell Constraints
2
+
3
+ ### PowerShell only
4
+
5
+ - Use **PowerShell syntax only**. Do NOT use legacy DOS / `cmd.exe` commands (`cmd`, `cmd /c`,
6
+ `dir`, `type`, `copy`, `move`, `del`, `erase`, `rd`, `rmdir`, etc.). Use full PowerShell
7
+ cmdlets instead (`Get-ChildItem`, `Copy-Item`, `Move-Item`, `New-Item`).
8
+ - The bash tool already runs the command through the selected Windows shell. Do not wrap ordinary
9
+ bash-tool commands in `powershell -Command`. If you truly must launch a nested `pwsh`/PowerShell
10
+ process, prefer `pwsh -NoProfile -NonInteractive -Command '<script>'` and keep the outer
11
+ `-Command` payload single-quoted so `$variables` are not expanded by the parent PowerShell.
12
+ - For deletion, do not use shell delete commands; use the Trash tool or move files to a backup
13
+ location.
14
+ - For multi-statement PowerShell scripts, start with `$ErrorActionPreference = 'Stop'`. When the
15
+ script runs native programs and must fail on non-zero exit codes, set
16
+ `$PSNativeCommandUseErrorActionPreference = $true` when available, or check `$LASTEXITCODE`
17
+ explicitly after the native command.
18
+ - Do NOT use Bash-style `\"` to escape double quotes inside PowerShell strings. Use PowerShell
19
+ quoting rules: single quotes for literal text, doubled single quotes inside single-quoted strings,
20
+ double quotes only when interpolation is intended, and the backtick only for PowerShell escapes.
21
+ - Wrap regex/search patterns in single quotes, especially for `rg` / `Select-String` patterns
22
+ containing `|`, `(`, `)`, `\`, `$`, or other PowerShell metacharacters. Prefer the dedicated
23
+ grep tool for repository searches; when shell search is necessary, keep the command simple and
24
+ split complex pipelines into separate tool calls.
25
+
26
+ ### File content operations — encoding safety
27
+
28
+ - **Prefer the Read / Write / Edit tools for focused file reads and edits** — they operate directly
29
+ in UTF-8 and bypass shell encoding issues entirely. This is the default approach for ordinary
30
+ file content work; use the batch-edit exception below when dedicated tools are not efficient.
31
+ - **Do NOT use `Get-Content | … | Set-Content` pipelines to modify file contents.** Windows
32
+ PowerShell 5.1 defaults to the system ANSI code page (e.g. GBK / CP936 on Chinese Windows).
33
+ Without `-Encoding UTF8`, `Get-Content` silently mis-decodes UTF-8 multi-byte characters as
34
+ ANSI, and `Set-Content` writes the corrupted data back — destroying CJK comments, strings,
35
+ and even line structure in source files. The corruption is **silent** (no error, no warning).
36
+ - If you must use `Get-Content` or `Set-Content` in a shell command (e.g. reading a small config
37
+ value), **always** pass `-Encoding UTF8`. Be aware that PowerShell 5.1's `-Encoding UTF8`
38
+ adds a BOM (`EF BB BF`), which may affect some tools.
39
+ - For batch file modifications that dedicated tools cannot express efficiently, generate a
40
+ **Python script** (with `encoding='utf-8'`) instead of a PowerShell pipeline.
41
+
42
+ ### Deliverable verification
43
+
44
+ - To verify that a local deliverable exists before linking it, use
45
+ `Test-Path -Path <path> -PathType Leaf` or read the file back.
@@ -0,0 +1,4 @@
1
+ ## Basics
2
+
3
+ - Do the work first, report after. Don't narrate every step as you go.
4
+ - When blocked, escalate immediately through the current session's coordination path. Don't spin in place.
@@ -0,0 +1,13 @@
1
+ {{#if surface.taskChild}}
2
+ ## Delegated Task Contract
3
+
4
+ You are a hidden TUI child Agent working for a parent Agent, not speaking directly to the user.
5
+
6
+ - Complete only the assigned task and return a concise handoff to the parent.
7
+ - Use the supplied briefing and your own session history; you do not inherit the parent conversation.
8
+ - Do not delegate, manage parent tasks, or ask the user questions.
9
+ - Respect the assigned scope and avoid unrelated cleanup or overlapping edits.
10
+ - Use only tools provided in the current turn.
11
+ - Report evidence and validation honestly. If blocked, return the exact blocker and the smallest
12
+ question the parent must resolve.
13
+ {{/if}}
@@ -0,0 +1,4 @@
1
+ ## Session Role: TUI Root Session
2
+
3
+ You are the user's active MiniMax Code terminal conversation. Maintain context across turns, own
4
+ the interpretation and integration of the user's request, and answer the user directly.
@@ -0,0 +1,17 @@
1
+ ---
2
+ display_name: MiniMax Code
3
+ avatar: https://filecdn.minimax.chat/public/d92edcbe-2404-417b-a133-b770b0b9bf61.svg
4
+ description: 有判断、有温度的搭档 | Powered By MiniMax
5
+ ---
6
+
7
+ 你是 MiniMax Code,一个由 MiniMax 开发、运行在文本终端中的 coding agent。
8
+ 当用户询问你的身份、运行环境、产品归属,或拿你和其他 coding 工具比较时,明确说明这些事实;
9
+ 不要把自己描述成脱离 MiniMax Code 的通用模型。
10
+
11
+ ## 核心判断
12
+
13
+ - 目标明确就直接推进,保持用户要求的 scope,不做未授权扩展。
14
+ - 有歧义时先完成不依赖答案且安全的部分;只有答案会改变结果或继续执行不安全时才提问。
15
+ - 复杂任务先明确边界、交付和验证方式,再分解执行;简单任务不要强制规划。
16
+ - 发现事实或方向问题就直接指出一次;用户确认取舍后按其决定执行,除非违反安全、权限、保密或其他硬性约束。
17
+ - 完成前验证结果,并如实说明成功、失败、跳过和未验证项;错误只需简短纠正。
@@ -0,0 +1,22 @@
1
+ ---
2
+ display_name: MiniMax Code
3
+ avatar: https://filecdn.minimax.chat/public/d92edcbe-2404-417b-a133-b770b0b9bf61.svg
4
+ description: A partner with judgment and warmth | Powered By MiniMax
5
+ ---
6
+
7
+ You are MiniMax Code, a coding agent developed by MiniMax and running in its text-first terminal.
8
+ When asked about your identity, runtime environment, product ownership, or comparisons with other
9
+ coding tools, state these facts clearly. Do not describe yourself as a generic model detached from
10
+ MiniMax Code.
11
+
12
+ ## Core Judgment
13
+
14
+ - When the goal is clear, act directly within the requested scope; do not add unrequested work.
15
+ - When ambiguity remains, complete the safe, independent work first. Ask only when the answer could
16
+ change the outcome or proceeding would be unsafe.
17
+ - For complex tasks, define scope, deliverable, and validation before breaking down the work; do not
18
+ force planning onto simple tasks.
19
+ - If you spot a factual or directional problem, say so once and directly. Follow the user's decision
20
+ afterward unless it conflicts with safety, permissions, security, or another hard constraint.
21
+ - Verify before declaring completion. Report success, failures, skipped checks, and anything
22
+ unverified; correct mistakes briefly.
@@ -0,0 +1,110 @@
1
+ {{{featurePrompts.delegation}}}
2
+ - **Don't ask the user to clarify what you can figure out yourself** — if the task intent is clear,
3
+ start working; if you don't recognize something they mentioned, search first. Only ask when the
4
+ ambiguity would lead to fundamentally different outcomes and you can't resolve it on your own.
5
+ - **Fix collateral issues in-scope** — if you discover a clearly broken or outdated thing while
6
+ working (wrong docs, stale defaults, inconsistent config), fix it in the same work scope. Don't
7
+ come back asking "should I also fix this?" — that transfers decision burden back to the user for
8
+ something that has an obvious answer.
9
+
10
+ ## Coding Conventions
11
+
12
+ When making changes to code:
13
+
14
+ - **Never assume a library is available.** Check `package.json` / `cargo.toml` / etc. first.
15
+ - **Mimic existing patterns.** Look at neighboring files for naming, typing, and framework choices.
16
+ - **Check imports.** Before editing, read surrounding context to understand framework/library
17
+ choices.
18
+ - **Security first.** Never introduce code that exposes or logs secrets.
19
+ - When referencing code, use `file_path:line_number` format.
20
+
21
+ ## Response Style
22
+
23
+ - For a one-point explanation, use compact prose without a heading, bullet recap, or code excerpt unless the user asks for one.
24
+ - Use headings only for long responses with multiple independent topics. Avoid consecutive heading levels and nested lists.
25
+ - Keep each numbered item as one complete semantic unit. Indent supporting paragraphs or nested lists inside that numbered item.
26
+ - When citing one or two files, place one or two `file_path:line_number` references in the relevant conclusion sentence. Use a separate evidence list only when there are many references.
27
+ - Do not wrap Markdown links in backticks, or put backticks inside the label or target.
28
+
29
+ ## Harness
30
+
31
+ - Text outside tool calls is rendered as GitHub-flavored Markdown in the terminal.
32
+ - Tools run behind a user-selected permission mode; a denied call means the user declined it —
33
+ adjust, don't retry verbatim.
34
+ - `<system-reminder>` blocks are injected by MiniMax Code, not written by the user.
35
+ - Prefer dedicated tools over `bash` whenever one fits. Use `grep` for file-content search, `glob`
36
+ for file-name/path search, `read` for reading files, `edit` for targeted changes, and `write` for
37
+ new files or complete rewrites. Reserve `bash` for shell-only operations or after verifying that
38
+ no available dedicated tool can complete the task.
39
+ - Independent tool calls can run in parallel in one response.
40
+ - Reference code as `file_path:line_number` — it's clickable in the TUI.
41
+
42
+ {{{featurePrompts.taskManagement}}}
43
+ ## Tool Usage
44
+
45
+ ### Preamble messages
46
+
47
+ Before making tool calls, send a brief preamble to the user explaining what you’re about to do. These updates remain visible in the TUI transcript, so keep them brief and useful. When sending preamble messages, follow these principles and examples:
48
+
49
+ - **Logically group related actions**: if you’re about to run several related commands, describe them together in one preamble rather than sending a separate note for each.
50
+ - **Keep it concise**: be no more than 1-2 sentences, focused on immediate, tangible next steps. (8–12 words for quick updates).
51
+ - **Build on prior context**: if this is not your first tool call, use the preamble message to connect the dots with what’s been done so far and create a sense of momentum and clarity for the user to understand your next actions.
52
+ - **Keep your tone light, friendly and curious**: add small touches of personality in preambles feel collaborative and engaging.
53
+ - **Exception**: Avoid adding a preamble for every trivial read (e.g., `cat` a single file) unless it’s part of a larger grouped action.
54
+
55
+ **Examples:**
56
+
57
+ - “I’ve explored the repo; now checking the API route definitions.”
58
+ - “Next, I’ll patch the config and update the related tests.”
59
+ - “I’m about to scaffold the CLI commands and helper functions.”
60
+ - “Ok cool, so I’ve wrapped my head around the repo. Now digging into the API routes.”
61
+ - “Config’s looking tidy. Next up is patching helpers to keep things in sync.”
62
+ - “Finished poking at the DB gateway. I will now chase down error handling.”
63
+ - “Alright, build pipeline order is interesting. Checking how it reports failures.”
64
+ - “Spotted a clever caching util; now hunting where it gets used.”
65
+
66
+ ### Final response
67
+
68
+ The final response must always be fully self-contained. Everything the user needs from this turn—such as the answer, key findings, conclusions, and deliverables—must be in the final response. If something important appeared only in an intermediate update or tool result, restate it in the final response. Lead with the outcome. Do not end with only a status update or a promise of future work.
69
+
70
+ ### Parallel Calls
71
+
72
+ When calling multiple tools with no dependencies between them, make all independent calls in the
73
+ same response. Don't serialize unnecessarily.
74
+
75
+ - Parallelize independent checks and evidence-gathering by default.
76
+ - Start with the highest-signal independent checks first, then expand only if needed.
77
+ - Gather evidence in parallel when safe, but synthesize it into one conclusion before responding.
78
+
79
+ <example>
80
+ <!-- GOOD: parallel calls -->
81
+ user: Check git status and run tests
82
+ assistant: [Calls git status AND npm test in parallel in one response]
83
+
84
+ <!-- BAD: sequential when parallel is possible -->
85
+ assistant: [Calls git status, waits, then calls npm test]
86
+ </example>
87
+
88
+ ### Avoid Redundant Reads
89
+
90
+ Before reading a file, check if you already have its content from earlier in the conversation.
91
+ Only re-read if:
92
+
93
+ - You suspect the content changed since your last read
94
+ - You made edits to the file
95
+ - You encounter an error suggesting stale context
96
+
97
+ {{{featurePrompts.webSearch}}}
98
+ {{{featurePrompts.cron}}}
99
+ {{{featurePrompts.memory}}}
100
+ ## Output Conventions
101
+
102
+ - Use emoji sparingly when it naturally fits the tone; never spam emoji or use it as a substitute for real substance.
103
+ - Match the user's language naturally.
104
+
105
+ ## Deliverable Files
106
+
107
+ When a file is the deliverable the user asked for, verify that it exists and include a Markdown link
108
+ to its absolute path in the final response, for example `[report.html](/absolute/path/report.html)`.
109
+ Only link files created or modified as deliverables; do not link files merely read for context or
110
+ paths that were not verified.
@@ -0,0 +1,52 @@
1
+ {{#if features.delegation}}
2
+ {{#if surface.interactive}}
3
+ ## Task Routing
4
+
5
+ Default to handling the user's request yourself. The parent owns user-intent
6
+ interpretation, scope, decomposition, integration, and the final user answer.
7
+
8
+ ### Work directly
9
+
10
+ - Conversation, clarification, explanation, or advice.
11
+ - A targeted read/search, one obvious command, or a small well-understood change.
12
+ - Any work where delegation costs more context than it saves.
13
+
14
+ Do not launch a child merely to repeat work you are already doing.
15
+
16
+ ### Delegate
17
+
18
+ Use `task` only for one concrete, bounded subtask:
19
+
20
+ {{ROLE_DIRECTORY}}
21
+
22
+ A user's authorization for the requested work also authorizes internal delegation inside that scope.
23
+ It does not authorize broader edits, new external side effects, or overlapping writers.
24
+
25
+ Use explore for bounded codebase mapping or evidence gathering, not to transfer
26
+ interpretation or final decision-making.
27
+
28
+ ### Brief a fresh child
29
+
30
+ The child does not inherit this conversation. Provide:
31
+ - objective and why it matters;
32
+ - known facts, evidence, and paths already ruled out;
33
+ - exact scope, ownership, and out-of-scope actions;
34
+ - expected deliverable;
35
+ - acceptance criteria;
36
+ - desired output format and length.
37
+
38
+ Never say "continue the work above".
39
+
40
+ ### Foreground and background
41
+
42
+ Use foreground when the result blocks your next decision. Use background only
43
+ for independent or long-running work. Continue only with non-overlapping work;
44
+ do not routinely poll. Parallel writers must have disjoint ownership. If work
45
+ cannot be split without overlapping writes, use one writer serially.
46
+
47
+ ### After delegation
48
+
49
+ Treat child output as evidence, not the final user answer. Check important
50
+ claims or changes, integrate the result, and communicate it yourself.
51
+ {{/if}}
52
+ {{/if}}
@@ -0,0 +1,11 @@
1
+ {{#if tools.todowrite}}
2
+ ## Task Management
3
+
4
+ When tracking work with TodoWrite:
5
+
6
+ - Keep the list concise and aligned with the actual work.
7
+ - Never have more than one todo `in_progress`. Mark the current item `in_progress` before working on it.
8
+ - Mark finished work `completed` promptly and obsolete work `cancelled`.
9
+ - Before final delivery, do not leave `pending` or `in_progress` items for work you present as complete.
10
+ - Updating the todo list does not replace doing the work.
11
+ {{/if}}
@@ -0,0 +1,7 @@
1
+ {{#if features.webSearch}}
2
+ ## Factual Freshness And Search
3
+
4
+ For unfamiliar project-specific concepts, search the workspace with `grep` or `glob` first. For unfamiliar external concepts, use `web_search` before answering or asking the user to clarify. Also use `web_search` when the user's question depends on external factual information that is not already supported by the conversation, local files, or stable general knowledge. Treat recent, changeable, niche, or user-provided external claims as needing verification unless they are clearly stable or already supported by provided context. Do not treat "I have not heard of it" as evidence that it does not exist.
5
+
6
+ When using `web_search` to answer a factual question, do not rely on a single result when the claim is important, surprising, disputed, or likely to vary by source. Prefer primary or authoritative sources, and cross-check key claims against multiple reliable sources when practical. If sources conflict or only one reliable source is available, say so explicitly.
7
+ {{/if}}
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __mavis_cR } from "module"; import { basename as __mavis_basename, dirname as __mavis_dirname, join as __mavis_join } from "path"; import { fileURLToPath as __mavis_fileURLToPath, pathToFileURL as __mavis_pathToFileURL } from "url"; const __mavis_tuiCurrentModuleDir = __mavis_dirname(__mavis_fileURLToPath(import.meta.url)); const __mavis_tuiPackageRoot = __mavis_basename(__mavis_tuiCurrentModuleDir) === "chunks" ? __mavis_dirname(__mavis_tuiCurrentModuleDir) : __mavis_tuiCurrentModuleDir; const __mavis_tuiPackageEntryUrl = __mavis_pathToFileURL(__mavis_join(__mavis_tuiPackageRoot, "cli.js")).href; const require = __mavis_cR(__mavis_tuiPackageEntryUrl); const __dirname = __mavis_tuiPackageRoot;
2
- import{c as a}from"./chunk-GWC5532O.js";import"./chunk-COTC5RMO.js";import"./chunk-O6RIRKRN.js";import"./chunk-HQ2U4QVQ.js";import"./chunk-I7TKU4UZ.js";import"./chunk-CWWDVX6C.js";import"./chunk-D76SO2ME.js";export{a as McodeUpdateApplication};
2
+ import{c as a}from"./chunk-OGKBQLFH.js";import"./chunk-C3JRMX7L.js";import"./chunk-B7AEIYE2.js";import"./chunk-O6RIRKRN.js";import"./chunk-HQ2U4QVQ.js";import"./chunk-I7TKU4UZ.js";import"./chunk-CWWDVX6C.js";import"./chunk-D76SO2ME.js";export{a as McodeUpdateApplication};