@maincode-ai/matilda-code 0.21.12 → 0.21.13-nightly.20261027.e00306cd3

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 (269) hide show
  1. package/chunks/agent-H5JE3RJQ.js +3 -0
  2. package/chunks/agent-headless-H2JZZ7UV.js +3 -0
  3. package/chunks/{askUserQuestion-2QI4NSFJ.js → askUserQuestion-L3WDL2T4.js} +3 -3
  4. package/chunks/ca-UBWUTZVZ.js +25 -0
  5. package/chunks/chunk-4CVGYUEL.js +3 -0
  6. package/chunks/{chunk-RNKDFE2S.js → chunk-5B2QERWR.js} +1 -1
  7. package/chunks/chunk-62GTGPTP.js +8 -0
  8. package/chunks/chunk-6365AZBW.js +56 -0
  9. package/chunks/chunk-6PFK4XTH.js +207 -0
  10. package/chunks/chunk-7ZODGQO6.js +4 -0
  11. package/chunks/chunk-DB5LMKXU.js +31 -0
  12. package/chunks/chunk-EYZPVR7N.js +13 -0
  13. package/chunks/chunk-FKHUEFMK.js +8 -0
  14. package/chunks/{chunk-6T2GIM76.js → chunk-GILXFDEG.js} +1 -1
  15. package/chunks/{chunk-VTGICC67.js → chunk-GKEUZTOB.js} +1 -1
  16. package/chunks/chunk-GSRXW64P.js +120 -0
  17. package/chunks/chunk-GT6MSEK4.js +3 -0
  18. package/chunks/chunk-HEJO7OBH.js +3 -0
  19. package/chunks/chunk-HPO2YWG4.js +78 -0
  20. package/chunks/chunk-I3CV4LOD.js +8 -0
  21. package/chunks/{chunk-DOOFGSRV.js → chunk-J3AMKDX6.js} +1 -1
  22. package/chunks/chunk-JU7QTSKS.js +14 -0
  23. package/chunks/chunk-LBQNFSZ2.js +9 -0
  24. package/chunks/chunk-LOB42ODE.js +9 -0
  25. package/chunks/chunk-LVDDFAK4.js +89 -0
  26. package/chunks/{chunk-27Q5KW3A.js → chunk-NK2QMGCC.js} +13 -13
  27. package/chunks/{chunk-YRQP3SLC.js → chunk-O7VPFJ3R.js} +1 -1
  28. package/chunks/chunk-OBE5S4GG.js +9 -0
  29. package/chunks/{chunk-CZGZ3KK7.js → chunk-ONANBLIE.js} +1 -1
  30. package/chunks/chunk-QXSBPCBA.js +8 -0
  31. package/chunks/chunk-TUKNB5CQ.js +33 -0
  32. package/chunks/chunk-UM6CLO7D.js +7 -0
  33. package/chunks/chunk-V4D3LER3.js +2615 -0
  34. package/chunks/{chunk-HYVP4472.js → chunk-V6UPUMP3.js} +1 -1
  35. package/chunks/chunk-VUJRLLGL.js +8 -0
  36. package/chunks/{chunk-MCQUPLRE.js → chunk-WTU6GSZH.js} +1 -1
  37. package/chunks/chunk-XBTBZHRC.js +8 -0
  38. package/chunks/{chunk-WV3IUPZS.js → chunk-YTB3OFTT.js} +1 -1
  39. package/chunks/chunk-ZQKABJBB.js +8 -0
  40. package/chunks/chunk-ZSGBDQXU.js +11 -0
  41. package/chunks/{computer-use-WKDNUTLD.js → computer-use-N6KGNST6.js} +1 -1
  42. package/chunks/{cron-create-F2LXM2OA.js → cron-create-4XBY5RVI.js} +1 -1
  43. package/chunks/cron-delete-BH4VP3LX.js +3 -0
  44. package/chunks/cron-list-XXRFKNGM.js +5 -0
  45. package/chunks/de-LEEHWWJ2.js +25 -0
  46. package/chunks/{devtools-5JRKK3E7.js → devtools-7YNCRYZV.js} +1 -1
  47. package/chunks/{chunk-OOEH6ZSV.js → dist-UWUWLWTO.js} +2 -2
  48. package/chunks/{edit-QQNJZ55P.js → edit-6ULTLTJQ.js} +1 -1
  49. package/chunks/{en-EJLDYIBM.js → en-LNOIHFSQ.js} +4 -4
  50. package/chunks/{enter-worktree-5X5SAMBJ.js → enter-worktree-V2VANZYJ.js} +1 -1
  51. package/chunks/enterPlanMode-75H54S3Z.js +18 -0
  52. package/chunks/{exit-worktree-SRKZBEYF.js → exit-worktree-KPB32K6P.js} +1 -1
  53. package/chunks/{exitPlanMode-WSPTGGVN.js → exitPlanMode-K7JRP22Y.js} +2 -2
  54. package/chunks/fr-4TA2AIU6.js +25 -0
  55. package/chunks/{getMachineId-bsd-ZYBNK2JG.js → getMachineId-bsd-ETKQTB6C.js} +1 -1
  56. package/chunks/{getMachineId-darwin-CM2MQGUI.js → getMachineId-darwin-AKNRWOWB.js} +1 -1
  57. package/chunks/{getMachineId-linux-SYE2KMCW.js → getMachineId-linux-2QSD7FTP.js} +1 -1
  58. package/chunks/{getMachineId-unsupported-6IHVG2XO.js → getMachineId-unsupported-UXSV7I24.js} +1 -1
  59. package/chunks/{getMachineId-win-S3J3JSUM.js → getMachineId-win-4MTFXGP3.js} +1 -1
  60. package/chunks/glob-ACAIHWST.js +22 -0
  61. package/chunks/{goal-tools-C6BSBHCF.js → goal-tools-VPFXBI6M.js} +3 -3
  62. package/chunks/{grep-MVCOBUYW.js → grep-R4K75RXS.js} +1 -1
  63. package/chunks/{ja-GGNJR7AR.js → ja-VXDMQKRW.js} +5 -5
  64. package/chunks/keychain-token-storage-7VYNARRB.js +3 -0
  65. package/chunks/ls-4ZEICYPK.js +15 -0
  66. package/chunks/{lsp-DYDK6XCS.js → lsp-4US2RIIV.js} +1 -1
  67. package/chunks/mcp-client-ZKQFYCFN.js +3 -0
  68. package/chunks/monitor-KSNFIY54.js +32 -0
  69. package/chunks/{multipart-parser-JI75T2O5.js → multipart-parser-FKHYAVGR.js} +1 -1
  70. package/chunks/notebook-edit-655ZNV6Q.js +17 -0
  71. package/chunks/openaiContentGenerator-BG3OM453.js +52 -0
  72. package/chunks/pt-WEIMCOKI.js +25 -0
  73. package/chunks/read-file-4VSUKSRB.js +3 -0
  74. package/chunks/ripGrep-PNALN2GG.js +3 -0
  75. package/chunks/ru-WFLK34ZL.js +25 -0
  76. package/chunks/scheduler-AVYCIBEK.js +8 -0
  77. package/chunks/send-message-ND2SRKX5.js +8 -0
  78. package/chunks/shell-GUHQNOMZ.js +3 -0
  79. package/chunks/{skill-HZPFEAPF.js → skill-AB2X2DTC.js} +1 -1
  80. package/chunks/src-LZEU4AYF.js +5 -0
  81. package/chunks/symbol-search-VICSUEZH.js +19 -0
  82. package/chunks/{syntheticOutput-432LXITX.js → syntheticOutput-Z7DQKMRI.js} +1 -1
  83. package/chunks/task-create-BQ73FRTH.js +3 -0
  84. package/chunks/{task-detach-XMSJ3HBM.js → task-detach-JCHSLUOR.js} +1 -1
  85. package/chunks/task-list-6ESRFO5F.js +9 -0
  86. package/chunks/{task-stop-NTS62FLG.js → task-stop-74H2CPAJ.js} +1 -1
  87. package/chunks/{task-update-AR26UFYZ.js → task-update-R3BN6KPQ.js} +1 -1
  88. package/chunks/{team-create-PYXFVIR5.js → team-create-UTKRPUPZ.js} +3 -3
  89. package/chunks/team-delete-PCCGTLGL.js +8 -0
  90. package/chunks/todoWrite-BZI75DFV.js +3 -0
  91. package/chunks/{tool-search-RKZDSRYS.js → tool-search-FJ5MAPQ6.js} +1 -1
  92. package/chunks/{web-fetch-VW3SVDQ6.js → web-fetch-DEUGZQZS.js} +17 -17
  93. package/chunks/{web-search-XQUIZARL.js → web-search-PUUIEFJO.js} +3 -3
  94. package/chunks/{workflow-YXNXDRWZ.js → workflow-CBADL3IM.js} +2 -2
  95. package/chunks/write-file-QGCL2AJL.js +15 -0
  96. package/cli.js +644 -679
  97. package/examples/starter/README.md +0 -3
  98. package/locales/ca.js +1 -37
  99. package/locales/de.js +1 -42
  100. package/locales/en.js +1 -43
  101. package/locales/fr.js +1 -39
  102. package/locales/ja.js +1 -42
  103. package/locales/pt.js +1 -42
  104. package/locales/ru.js +1 -42
  105. package/package.json +2 -2
  106. package/sandbox-macos-permissive-closed.sb +0 -1
  107. package/sandbox-macos-permissive-open.sb +0 -1
  108. package/sandbox-macos-permissive-proxied.sb +1 -2
  109. package/sandbox-macos-restrictive-closed.sb +14 -2
  110. package/sandbox-macos-restrictive-open.sb +14 -2
  111. package/sandbox-macos-restrictive-proxied.sb +15 -3
  112. package/bundled/mainy/SKILL.md +0 -157
  113. package/bundled/mainy/docs/_meta.ts +0 -32
  114. package/bundled/mainy/docs/common-workflow.md +0 -571
  115. package/bundled/mainy/docs/configuration/_meta.ts +0 -7
  116. package/bundled/mainy/docs/configuration/auth.md +0 -82
  117. package/bundled/mainy/docs/configuration/matilda-ignore.md +0 -55
  118. package/bundled/mainy/docs/configuration/model-providers.md +0 -598
  119. package/bundled/mainy/docs/configuration/settings.md +0 -790
  120. package/bundled/mainy/docs/configuration/themes.md +0 -199
  121. package/bundled/mainy/docs/configuration/trusted-folders.md +0 -67
  122. package/bundled/mainy/docs/extension/_meta.ts +0 -9
  123. package/bundled/mainy/docs/extension/extension-releasing.md +0 -204
  124. package/bundled/mainy/docs/extension/getting-started-extensions.md +0 -299
  125. package/bundled/mainy/docs/extension/introduction.md +0 -338
  126. package/bundled/mainy/docs/features/_meta.ts +0 -27
  127. package/bundled/mainy/docs/features/approval-mode.md +0 -388
  128. package/bundled/mainy/docs/features/arena.md +0 -219
  129. package/bundled/mainy/docs/features/auto-mode.md +0 -308
  130. package/bundled/mainy/docs/features/channels/_meta.ts +0 -8
  131. package/bundled/mainy/docs/features/channels/dingtalk.md +0 -134
  132. package/bundled/mainy/docs/features/channels/feishu.md +0 -186
  133. package/bundled/mainy/docs/features/channels/overview.md +0 -336
  134. package/bundled/mainy/docs/features/channels/plugins.md +0 -87
  135. package/bundled/mainy/docs/features/channels/telegram.md +0 -120
  136. package/bundled/mainy/docs/features/channels/weixin.md +0 -106
  137. package/bundled/mainy/docs/features/code-review.md +0 -291
  138. package/bundled/mainy/docs/features/commands.md +0 -528
  139. package/bundled/mainy/docs/features/dual-output.md +0 -627
  140. package/bundled/mainy/docs/features/followup-suggestions.md +0 -109
  141. package/bundled/mainy/docs/features/headless.md +0 -448
  142. package/bundled/mainy/docs/features/hooks.md +0 -1306
  143. package/bundled/mainy/docs/features/language.md +0 -171
  144. package/bundled/mainy/docs/features/lsp.md +0 -496
  145. package/bundled/mainy/docs/features/markdown-rendering.md +0 -183
  146. package/bundled/mainy/docs/features/mcp.md +0 -423
  147. package/bundled/mainy/docs/features/memory.md +0 -185
  148. package/bundled/mainy/docs/features/sandbox.md +0 -249
  149. package/bundled/mainy/docs/features/scheduled-tasks.md +0 -139
  150. package/bundled/mainy/docs/features/skills.md +0 -347
  151. package/bundled/mainy/docs/features/status-line.md +0 -397
  152. package/bundled/mainy/docs/features/structured-output.md +0 -309
  153. package/bundled/mainy/docs/features/sub-agents.md +0 -737
  154. package/bundled/mainy/docs/features/tips.md +0 -54
  155. package/bundled/mainy/docs/features/token-caching.md +0 -29
  156. package/bundled/mainy/docs/features/tool-use-summaries.md +0 -178
  157. package/bundled/mainy/docs/features/worktree.md +0 -345
  158. package/bundled/mainy/docs/ide-integration/_meta.ts +0 -4
  159. package/bundled/mainy/docs/ide-integration/ide-companion-spec.md +0 -182
  160. package/bundled/mainy/docs/ide-integration/ide-integration.md +0 -144
  161. package/bundled/mainy/docs/integration-github-action.md +0 -241
  162. package/bundled/mainy/docs/integration-jetbrains.md +0 -81
  163. package/bundled/mainy/docs/integration-vscode.md +0 -39
  164. package/bundled/mainy/docs/integration-zed.md +0 -72
  165. package/bundled/mainy/docs/matilda-serve-deploy-local.md +0 -221
  166. package/bundled/mainy/docs/matilda-serve.md +0 -661
  167. package/bundled/mainy/docs/overview.md +0 -64
  168. package/bundled/mainy/docs/quickstart.md +0 -234
  169. package/bundled/mainy/docs/reference/_meta.ts +0 -3
  170. package/bundled/mainy/docs/reference/keyboard-shortcuts.md +0 -91
  171. package/bundled/mainy/docs/support/Uninstall.md +0 -65
  172. package/bundled/mainy/docs/support/_meta.ts +0 -6
  173. package/bundled/mainy/docs/support/tos-privacy.md +0 -94
  174. package/bundled/mainy/docs/support/troubleshooting.md +0 -127
  175. package/chunks/agent-WM63A6NK.js +0 -3
  176. package/chunks/agent-headless-QIUBDKPW.js +0 -3
  177. package/chunks/anthropicContentGenerator-VKFTAIU3.js +0 -39
  178. package/chunks/ca-I2HEEIL7.js +0 -25
  179. package/chunks/chunk-2HTPVSGT.js +0 -3
  180. package/chunks/chunk-2MOGYHWM.js +0 -8
  181. package/chunks/chunk-3IRGBRSP.js +0 -113
  182. package/chunks/chunk-3YLXGE6T.js +0 -8
  183. package/chunks/chunk-47XR7IMP.js +0 -8
  184. package/chunks/chunk-4F4DA5UI.js +0 -8
  185. package/chunks/chunk-4J6DC24J.js +0 -59
  186. package/chunks/chunk-4Q2SNBUH.js +0 -18
  187. package/chunks/chunk-5C2RJ5RR.js +0 -37
  188. package/chunks/chunk-6E766NPX.js +0 -31
  189. package/chunks/chunk-6EQMZNIY.js +0 -8
  190. package/chunks/chunk-6GBNB5Z2.js +0 -3
  191. package/chunks/chunk-6Z2MV7ZY.js +0 -186
  192. package/chunks/chunk-BVOCFLC4.js +0 -56
  193. package/chunks/chunk-CSJTA7NE.js +0 -101
  194. package/chunks/chunk-DC7LAFZZ.js +0 -8
  195. package/chunks/chunk-DE3HKC2W.js +0 -9
  196. package/chunks/chunk-EQGA7LH7.js +0 -30
  197. package/chunks/chunk-FPO57O66.js +0 -39
  198. package/chunks/chunk-FWDMPRKU.js +0 -3
  199. package/chunks/chunk-G7R2XEEF.js +0 -7
  200. package/chunks/chunk-GOJCMVJJ.js +0 -8
  201. package/chunks/chunk-GTVCJCHR.js +0 -8
  202. package/chunks/chunk-JCE3JAVC.js +0 -25
  203. package/chunks/chunk-JRECUFB3.js +0 -2630
  204. package/chunks/chunk-KHHJYBR5.js +0 -9
  205. package/chunks/chunk-LJR4RZZ2.js +0 -3
  206. package/chunks/chunk-LUNDTQ3G.js +0 -8
  207. package/chunks/chunk-M53RP3YP.js +0 -31
  208. package/chunks/chunk-MO2HXJG5.js +0 -9
  209. package/chunks/chunk-MTMU7JYZ.js +0 -11
  210. package/chunks/chunk-O44XK65C.js +0 -8
  211. package/chunks/chunk-OA56BXPD.js +0 -3
  212. package/chunks/chunk-PA6532AY.js +0 -6
  213. package/chunks/chunk-PGXQZVLX.js +0 -8
  214. package/chunks/chunk-QKYGQLWC.js +0 -8
  215. package/chunks/chunk-QN6Y6NPA.js +0 -3
  216. package/chunks/chunk-QVCGLQCI.js +0 -32
  217. package/chunks/chunk-S3CWEVTS.js +0 -15
  218. package/chunks/chunk-SDTWBD62.js +0 -8
  219. package/chunks/chunk-T2T2UEPY.js +0 -4
  220. package/chunks/chunk-TISQNFB5.js +0 -3
  221. package/chunks/chunk-U347OO7S.js +0 -9
  222. package/chunks/chunk-UIRBHC5X.js +0 -3
  223. package/chunks/chunk-VI74YQQO.js +0 -8
  224. package/chunks/chunk-VYZOOSMP.js +0 -30
  225. package/chunks/chunk-WC2VTVCE.js +0 -27
  226. package/chunks/chunk-WVY2P6WH.js +0 -26
  227. package/chunks/chunk-WZ75OGYY.js +0 -14
  228. package/chunks/chunk-XMZIY7XX.js +0 -13
  229. package/chunks/chunk-YJAKOETP.js +0 -22
  230. package/chunks/chunk-YV3PUOBU.js +0 -65
  231. package/chunks/contextCommand-DAB3HOHY.js +0 -3
  232. package/chunks/cron-delete-DE6Q2S2L.js +0 -3
  233. package/chunks/cron-list-IAQEJVV7.js +0 -5
  234. package/chunks/de-AQXFJYZI.js +0 -25
  235. package/chunks/dist-7UYRLSLE.js +0 -3
  236. package/chunks/dist-ME6647DQ.js +0 -195
  237. package/chunks/dist-P6SLWL5V.js +0 -42
  238. package/chunks/dist-VG3ZDJ2A.js +0 -28
  239. package/chunks/dist-YTCHM57U.js +0 -23
  240. package/chunks/enterPlanMode-HP35SPLN.js +0 -18
  241. package/chunks/fileFromPath-7UCWPD4W.js +0 -3
  242. package/chunks/fr-6TDHK7F2.js +0 -25
  243. package/chunks/geminiContentGenerator-RJ73DQAP.js +0 -8
  244. package/chunks/glob-QQ6LGKDX.js +0 -22
  245. package/chunks/keychain-token-storage-KQK6MNOJ.js +0 -3
  246. package/chunks/ls-JYJXFSXN.js +0 -15
  247. package/chunks/matildaAgentContentGenerator-YUYS4336.js +0 -8
  248. package/chunks/matildaContentGenerator-O4Z2QPCP.js +0 -8
  249. package/chunks/matildaOAuth2-7COTQQR2.js +0 -3
  250. package/chunks/mcp-client-RXVQU5VI.js +0 -3
  251. package/chunks/monitor-77KXDXPR.js +0 -32
  252. package/chunks/notebook-edit-TKJD2EQZ.js +0 -17
  253. package/chunks/openaiContentGenerator-2EALAM3U.js +0 -3
  254. package/chunks/pt-D6L2QTDM.js +0 -25
  255. package/chunks/read-file-3KUAH6ND.js +0 -3
  256. package/chunks/ripGrep-U2PLKXMY.js +0 -3
  257. package/chunks/ru-BNJCHDYO.js +0 -25
  258. package/chunks/scheduler-J7VU2V5Y.js +0 -8
  259. package/chunks/send-message-P3SMWNEE.js +0 -8
  260. package/chunks/serve-FXH6EBQ6.js +0 -1015
  261. package/chunks/shell-PXR2AXDD.js +0 -3
  262. package/chunks/src-RFAEPLY7.js +0 -3
  263. package/chunks/src-WZTRMETQ.js +0 -5
  264. package/chunks/symbol-search-EAIZPWN7.js +0 -19
  265. package/chunks/task-create-Z3QRCMX4.js +0 -3
  266. package/chunks/task-list-GXAJW3JP.js +0 -9
  267. package/chunks/team-delete-OMYVUAQU.js +0 -8
  268. package/chunks/todoWrite-5NZ7CHTC.js +0 -3
  269. package/chunks/write-file-XDDLTGSG.js +0 -15
@@ -1,528 +0,0 @@
1
- # Commands
2
-
3
- This document details all commands supported by Matilda Code, helping you efficiently manage sessions, customize the interface, and control its behavior.
4
-
5
- Matilda Code commands are triggered through specific prefixes and fall into three categories:
6
-
7
- | Prefix Type | Function Description | Typical Use Case |
8
- | -------------------------- | --------------------------------------------------- | ---------------------------------------------------------------- |
9
- | Slash Commands (`/`) | Meta-level control of Matilda Code itself | Managing sessions, modifying settings, getting help |
10
- | At Commands (`@`) | Quickly inject local file content into conversation | Allowing AI to analyze specified files or code under directories |
11
- | Exclamation Commands (`!`) | Direct interaction with system Shell | Executing system commands like `git status`, `ls`, etc. |
12
-
13
- ## 1. Slash Commands (`/`)
14
-
15
- Slash commands are used to manage Matilda Code sessions, interface, and basic behavior.
16
-
17
- ### 1.1 Session and Project Management
18
-
19
- These commands help you save, restore, and summarize work progress.
20
-
21
- | Command | Description | Usage Examples |
22
- | ---------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------- |
23
- | `/init` | Analyze current directory and create initial context file | `/init` |
24
- | `/summary` | Generate project summary based on conversation history | `/summary` |
25
- | `/compress` | Replace chat history with summary to save Tokens | `/compress` |
26
- | `/compress-fast` | Fast compression without AI — strips old tool outputs and thinking parts | `/compress-fast` |
27
- | `/resume` | Resume a previous conversation session | `/resume` |
28
- | `/recap` | Generate a one-line session recap now | `/recap` |
29
- | `/restore` | Revert project files to the checkpoint before a tool call ran | `/restore` (list) or `/restore <ID>` |
30
- | `/delete` | Delete a previous session | `/delete` |
31
- | `/branch` | Fork the current conversation into a new session | `/branch` |
32
- | `/fork` | Spawn a background agent that inherits the full conversation | `/fork <directive>` |
33
- | `/rewind` | Rewind conversation to a previous turn | `/rewind` or `/rollback` |
34
- | `/export` | Export session history to file | `/export html`, `/export md`, `/export json`, `/export jsonl` |
35
- | `/rename` | Rename or tag the current session | `/rename My Feature` or `/tag` |
36
-
37
- ### 1.2 Interface and Workspace Control
38
-
39
- Commands for adjusting interface appearance and work environment.
40
-
41
- | Command | Description | Usage Examples |
42
- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
43
- | `/clear` | Clear terminal screen content | `/clear` (shortcut: `Ctrl+L`) |
44
- | `/context` | Show context window usage breakdown | `/context` |
45
- | → `detail` | Show per-item context usage breakdown | `/context detail` |
46
- | `/diff` | Open an interactive diff viewer showing uncommitted changes and per-turn diffs. Use ←/→ to switch between current git diff and individual conversation turns, ↑/↓ to browse files | `/diff` |
47
- | `/theme` | Change Matilda Code visual theme | `/theme` |
48
- | `/vim` | Turn input area Vim editing mode on/off | `/vim` |
49
- | `/directory` | Manage multi-directory support workspace | `/dir add ./src,./tests` |
50
- | `/editor` | Open dialog to select supported editor | `/editor` |
51
- | `/statusline` | Open interactive [status line](./status-line.md) preset dialog | `/statusline` |
52
- | `/statusline <text>` | Generate a command-mode [status line](./status-line.md) via agent | `/statusline show model and git branch` |
53
- | `/terminal-setup` | Configure terminal keybindings for multiline input | `/terminal-setup` |
54
-
55
- ### 1.3 Language Settings
56
-
57
- Commands specifically for controlling interface and output language.
58
-
59
- | Command | Description | Usage Examples |
60
- | --------------------- | -------------------------------- | -------------------------- |
61
- | `/language` | View or change language settings | `/language` |
62
- | → `ui [language]` | Set UI interface language | `/language ui zh-CN` |
63
- | → `output [language]` | Set LLM output language | `/language output Chinese` |
64
-
65
- - Available built-in UI languages: `zh-CN` (Simplified Chinese), `en-US` (English), `ru-RU` (Russian), `de-DE` (German), `ja-JP` (Japanese), `pt-BR` (Portuguese - Brazil), `fr-FR` (French), `ca-ES` (Catalan)
66
- - Output language examples: `Chinese`, `English`, `Japanese`, etc.
67
-
68
- ### 1.4 Tool and Model Management
69
-
70
- Commands for managing AI tools and models.
71
-
72
- | Command | Description | Usage Examples |
73
- | ---------------- | --------------------------------------------- | --------------------------------------------- |
74
- | `/mcp` | List configured MCP servers and tools | `/mcp`, `/mcp desc` |
75
- | `/tools` | Display currently available tool list | `/tools`, `/tools desc` |
76
- | `/skills` | List and run available skills | `/skills`, `/skills <name>` |
77
- | `/plan` | Switch to plan mode or exit plan mode | `/plan`, `/plan <task>`, `/plan exit` |
78
- | `/approval-mode` | Change approval mode for tool usage | `/approval-mode <mode (auto-edit)> --project` |
79
- | →`plan` | Analysis only, no execution | Secure review |
80
- | →`default` | Require approval for edits | Daily use |
81
- | →`auto-edit` | Automatically approve edits | Trusted environment |
82
- | →`auto` | Classifier-evaluated approval | Autonomous sessions with safety guardrails |
83
- | →`yolo` | Automatically approve all | Quick prototyping |
84
- | `/model` | Switch model used in current session | `/model` |
85
- | `/model --fast` | Set a lighter model for prompt suggestions | `/model --fast matilda3-coder-flash` |
86
- | `/extensions` | List all active extensions in current session | `/extensions` |
87
- | `/memory` | Open the Memory Manager dialog | `/memory` |
88
- | `/remember` | Save a durable memory | `/remember Prefer terse responses` |
89
- | `/forget` | Remove matching entries from auto-memory | `/forget <query>` |
90
- | `/dream` | Manually run auto-memory consolidation | `/dream` |
91
- | `/hooks` | Manage Matilda Code hooks | `/hooks`, `/hooks list` |
92
- | `/permissions` | Manage permission rules | `/permissions` |
93
- | `/agents` | Manage subagents | `/agents manage`, `/agents create` |
94
- | `/arena` | Manage Arena sessions | `/arena start`, `/arena status` |
95
- | `/goal` | Set a goal — keep working until condition met | `/goal <condition>`, `/goal clear` |
96
- | `/tasks` | List background tasks | `/tasks` |
97
- | `/lsp` | Show LSP server status | `/lsp` |
98
- | `/trust` | Manage folder trust settings | `/trust` |
99
-
100
- ### 1.5 Built-in Skills
101
-
102
- These commands invoke bundled skills that provide specialized workflows.
103
-
104
- | Command | Description | Usage Examples |
105
- | ----------- | ------------------------------------------------------------------- | ------------------------------------------------- |
106
- | `/review` | Review code changes with 5 parallel agents + deterministic analysis | `/review`, `/review 123`, `/review 123 --comment` |
107
- | `/loop` | Run a prompt on a recurring schedule | `/loop 5m check the build` |
108
- | `/simplify` | Review recent changes and apply safe cleanup edits directly | `/simplify`, `/simplify focus on duplication` |
109
- | `/mainy` | Answer questions about Matilda Code usage and configuration | `/mainy how do I configure MCP?` |
110
-
111
- See [Code Review](./code-review.md) for full `/review` documentation.
112
-
113
- ### 1.6 Side Question (`/btw`)
114
-
115
- The `/btw` command allows you to ask quick side questions without interrupting or affecting the main conversation flow.
116
-
117
- | Command | Description |
118
- | ---------------------- | ------------------------------------- |
119
- | `/btw <your question>` | Ask a quick side question |
120
- | `?btw <your question>` | Alternative syntax for side questions |
121
-
122
- **How It Works:**
123
-
124
- - The side question is sent as a separate API call with recent conversation context (up to the last 20 messages)
125
- - The response is displayed above the Composer — you can continue typing while waiting
126
- - The main conversation is **not blocked** — it continues independently
127
- - The side question response does **not** become part of the main conversation history
128
- - Answers are rendered with full Markdown support (code blocks, lists, tables, etc.)
129
-
130
- **Keyboard Shortcuts (Interactive Mode):**
131
-
132
- | Shortcut | Action |
133
- | -------------------- | --------------------------------------------------- |
134
- | `Escape` | Cancel (while loading) or dismiss (after completed) |
135
- | `Space` or `Enter` | Dismiss the answer (when input is empty) |
136
- | `Ctrl+C` or `Ctrl+D` | Cancel an in-flight side question |
137
-
138
- **Example:**
139
-
140
- ```
141
- (While the main conversation is about refactoring code)
142
-
143
- > /btw What's the difference between let and var in JavaScript?
144
-
145
- ╭──────────────────────────────────────────╮
146
- │ /btw What's the difference between let │
147
- │ and var in JavaScript? │
148
- │ │
149
- │ + Answering... │
150
- │ Press Escape, Ctrl+C, or Ctrl+D to cancel│
151
- ╰──────────────────────────────────────────╯
152
- > (Composer remains active — keep typing)
153
-
154
- (After the answer arrives)
155
-
156
- ╭──────────────────────────────────────────╮
157
- │ /btw What's the difference between let │
158
- │ and var in JavaScript? │
159
- │ │
160
- │ `let` is block-scoped, while `var` is │
161
- │ function-scoped. `let` was introduced │
162
- │ in ES6 and doesn't hoist the same way. │
163
- │ │
164
- │ Press Space, Enter, or Escape to dismiss │
165
- ╰──────────────────────────────────────────╯
166
- > (Composer still active)
167
- ```
168
-
169
- **Supported Execution Modes:**
170
-
171
- | Mode | Behavior |
172
- | -------------------- | -------------------------------------------- |
173
- | Interactive | Shows above Composer with Markdown rendering |
174
- | Non-interactive | Returns text result: `btw> question\nanswer` |
175
- | ACP (Agent Protocol) | Returns stream_messages async generator |
176
-
177
- > [!tip]
178
- >
179
- > Use `/btw` when you need a quick answer without derailing your main task. It's especially useful for clarifying concepts, checking facts, or getting quick explanations while staying focused on your primary workflow.
180
-
181
- ### 1.7 Session Recap (`/recap`)
182
-
183
- The `/recap` command generates a short "where you left off" summary of the
184
- current session, so you can resume an old conversation without scrolling
185
- back through pages of history.
186
-
187
- | Command | Description |
188
- | -------- | ------------------------------------------ |
189
- | `/recap` | Generate and show a one-line session recap |
190
-
191
- **How it works:**
192
-
193
- - Uses the configured fast model (`fastModel` setting) when available, falling
194
- back to the main session model. A small, cheap model is enough for a recap.
195
- - The recent conversation (up to 30 messages, text only — tool calls and tool
196
- responses are filtered out) is sent to the model with a tight system prompt.
197
- - The recap is rendered in dim color with a `❯` prefix so it stands apart
198
- from real assistant replies.
199
- - Refuses with an inline error if a model turn is in flight or another command
200
- is processing. If there is no usable conversation, or the underlying
201
- generation fails, `/recap` shows a short info message instead of a recap —
202
- the manual command always responds with something.
203
-
204
- **Auto-trigger when returning from being away:**
205
-
206
- If the terminal is blurred for **5+ minutes** and gets focused again, a recap
207
- is generated and shown automatically (only when no model response is in
208
- progress; otherwise it waits for the current turn to finish and then fires).
209
- Unlike the manual command, the auto-trigger is fully silent on failure: if
210
- generation errors or there is nothing to summarize, no message is added to
211
- the history. Controlled by the `general.showSessionRecap` setting
212
- (default: `false`); the manual `/recap` command always works regardless of
213
- this setting.
214
-
215
- **Example:**
216
-
217
- ```
218
- > /recap
219
-
220
- ❯ Refactoring loopDetectionService.ts to address long-session OOM caused by
221
- unbounded streamContentHistory and contentStats. The next step is to
222
- implement option B (LRU sliding window with FNV-1a) pending confirmation.
223
- ```
224
-
225
- > [!tip]
226
- >
227
- > Configure a fast model via `/model --fast <model>` (e.g.
228
- > `matilda3-coder-flash`) to make `/recap` fast and cheap. Set
229
- > `general.showSessionRecap` to `true` to enable the auto-trigger; the
230
- > manual `/recap` command always works regardless of this setting.
231
-
232
- ### 1.8 Diff Viewer (`/diff`)
233
-
234
- The `/diff` command opens an interactive diff viewer showing uncommitted changes and per-turn diffs. Use ←/→ to switch between the current git diff and individual conversation turns, ↑/↓ to browse files, and Enter to view inline diffs.
235
-
236
- **How it works:**
237
-
238
- In interactive mode, `/diff` opens a dialog with a **source picker** along the top:
239
-
240
- - **Current** — working tree vs HEAD (`git diff HEAD`). Shows all uncommitted changes including staged, unstaged, and untracked files.
241
- - **T1, T2, T3, …** — per-turn diffs, one tab per model turn that modified files. Most recent turns appear first. Each tab shows a preview of the original prompt for context.
242
-
243
- The file list displays per-file stats (lines added/removed) with tags for special states (`new`, `deleted`, `untracked`, `binary`, `truncated`, `oversized`). Press Enter on a file to view its inline diff with syntax-highlighted hunks.
244
-
245
- Per-turn diffs require file checkpointing to be enabled (on by default in interactive mode). When file checkpointing is off, only the "Current" source is available.
246
-
247
- **Keyboard shortcuts:**
248
-
249
- | Key | Action |
250
- | --------- | ------------------------------------------- |
251
- | `←` / `→` | Switch between sources (Current / T1 / T2…) |
252
- | `↑` / `↓` | Navigate file list |
253
- | `j` / `k` | Navigate file list (vim-style) |
254
- | Enter | View inline diff for selected file |
255
- | `←` / Esc | Return to file list from inline diff view |
256
- | Esc | Close the dialog |
257
-
258
- **Example:**
259
-
260
- ```
261
- ┌ /diff · Turn 3 "refactor the auth middleware" ──── 3 files +45 -12 ┐
262
- │ │
263
- │ ◀ Current · T3 · T2 · T1 ▶ │
264
- │ │
265
- │ › src/utils/parser.ts +30 -8 │
266
- │ src/utils/parser.test.ts +12 -2 │
267
- │ README.md +3 -2 │
268
- │ │
269
- │ ←/→ source · ↑/↓ file · Enter view · Esc close │
270
- └─────────────────────────────────────────────────────────────────────┘
271
- ```
272
-
273
- **Non-interactive mode:**
274
-
275
- In headless (`--prompt`) or non-interactive contexts, `/diff` prints a plain-text summary of the working tree vs HEAD. Per-turn navigation is not available.
276
-
277
- ```
278
- 3 files changed, +45 / -12
279
- +30 -8 src/utils/parser.ts
280
- +12 -2 src/utils/parser.test.ts
281
- +3 -2 README.md
282
- ```
283
-
284
- ### 1.9 Information, Settings, and Help
285
-
286
- Commands for obtaining information and performing system settings.
287
-
288
- | Command | Description | Usage Examples |
289
- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
290
- | `/help` | Display help information for available commands | `/help` or `/?` |
291
- | `/status` | Display version information | `/status` or `/about` |
292
- | `/status paths` | Display current session file and log paths | `/status paths` |
293
- | `/stats` | Open interactive usage statistics dashboard with three tabs: Session (live metrics), Activity (heatmap, token trend, project ranking), and Efficiency (cache rate, tool leaderboard, model comparison). Use `tab` to switch tabs, `r` to cycle time ranges, `←→` to pan months, `esc` to close. | `/stats` |
294
- | `/stats model` | Show per-model token breakdown and estimated cost | `/stats model` |
295
- | `/stats tools` | Show per-tool call counts | `/stats tools` |
296
- | `/settings` | Open settings editor | `/settings` |
297
- | `/auth` | Change authentication method | `/auth` |
298
- | `/doctor` | Run installation and environment diagnostics | `/doctor`, `/doctor memory` |
299
- | `/docs` | Open full Matilda Code documentation in browser | `/docs` |
300
- | `/ide` | Manage IDE integration | `/ide status`, `/ide install` |
301
- | `/insight` | Generate programming insights from chat history | `/insight` |
302
- | `/setup-github` | Set up GitHub Actions | `/setup-github` |
303
- | `/bug` | Submit issue about Matilda Code | `/bug Button click unresponsive` |
304
- | `/copy` | Copy AI output to clipboard (`/copy N` = Nth-last AI message) | `/copy` or `/copy 2` |
305
- | `/quit` | Exit Matilda Code immediately | `/quit` or `/exit` |
306
-
307
- ### 1.10 Common Shortcuts
308
-
309
- | Shortcut | Function | Note |
310
- | ------------------ | ----------------------- | ---------------------- |
311
- | `Ctrl/cmd+L` | Clear screen | Equivalent to `/clear` |
312
- | `Ctrl/cmd+T` | Toggle tool description | MCP tool management |
313
- | `Ctrl/cmd+C`×2 | Exit confirmation | Secure exit mechanism |
314
- | `Ctrl/cmd+Z` | Undo input | Text editing |
315
- | `Ctrl/cmd+Shift+Z` | Redo input | Text editing |
316
-
317
- ### 1.11 Authentication Commands
318
-
319
- Use `/auth` inside a Matilda Code session to configure authentication. Use `/doctor` to inspect the current authentication and environment status.
320
-
321
- | Command | Description |
322
- | --------- | ------------------------------------------ |
323
- | `/auth` | Configure authentication interactively |
324
- | `/doctor` | Show authentication and environment checks |
325
-
326
- > [!note]
327
- >
328
- > The standalone `matilda auth` CLI command has been removed. Legacy invocations such as `matilda auth status` print a removal notice with migration guidance. See the [Authentication](../configuration/auth) page for full details.
329
-
330
- ## 2. @ Commands (Introducing Files)
331
-
332
- @ commands are used to quickly add local file or directory content to the conversation.
333
-
334
- | Command Format | Description | Examples |
335
- | ------------------- | -------------------------------------------- | ------------------------------------------------ |
336
- | `@<file path>` | Inject content of specified file | `@src/main.py Please explain this code` |
337
- | `@<directory path>` | Recursively read all text files in directory | `@docs/ Summarize content of this document` |
338
- | Standalone `@` | Used when discussing `@` symbol itself | `@ What is this symbol used for in programming?` |
339
-
340
- Note: Spaces in paths need to be escaped with backslash (e.g., `@My\ Documents/file.txt`)
341
-
342
- ## 3. Exclamation Commands (`!`) - Shell Command Execution
343
-
344
- Exclamation commands allow you to execute system commands directly within Matilda Code.
345
-
346
- | Command Format | Description | Examples |
347
- | ------------------ | ------------------------------------------------------------------ | -------------------------------------- |
348
- | `!<shell command>` | Execute command in sub-Shell | `!ls -la`, `!git status` |
349
- | Standalone `!` | Switch Shell mode, any input is executed directly as Shell command | `!`(enter) → Input command → `!`(exit) |
350
-
351
- Environment Variables: Commands executed via `!` will set the `MATILDA_CODE=1` environment variable.
352
-
353
- ## 4. Custom Commands
354
-
355
- Save frequently used prompts as shortcut commands to improve work efficiency and ensure consistency.
356
-
357
- > [!note]
358
- >
359
- > Custom commands now use Markdown format with optional YAML frontmatter. TOML format is deprecated but still supported for backwards compatibility. When TOML files are detected, an automatic migration prompt will be displayed.
360
-
361
- ### Quick Overview
362
-
363
- | Function | Description | Advantages | Priority | Applicable Scenarios |
364
- | ---------------- | --------------------------------------------- | -------------------------------------- | -------- | ---------------------------------------------------- |
365
- | Namespace | Subdirectory creates colon-named commands | Better command organization | | |
366
- | Global Commands | `~/.matilda/commands/` | Available in all projects | Low | Personal frequently used commands, cross-project use |
367
- | Project Commands | `<project root directory>/.matilda/commands/` | Project-specific, version-controllable | High | Team sharing, project-specific commands |
368
-
369
- Priority Rules: Project commands > User commands (project command used when names are same)
370
-
371
- ### Command Naming Rules
372
-
373
- #### File Path to Command Name Mapping Table
374
-
375
- | File Location | Generated Command | Example Call |
376
- | ------------------------------------------- | ----------------- | --------------------- |
377
- | `~/.matilda/commands/test.md` | `/test` | `/test Parameter` |
378
- | `<project>/.matilda/commands/git/commit.md` | `/git:commit` | `/git:commit Message` |
379
-
380
- Naming Rules: Path separator (`/` or `\`) converted to colon (`:`)
381
-
382
- ### Markdown File Format Specification (Recommended)
383
-
384
- Custom commands use Markdown files with optional YAML frontmatter:
385
-
386
- ```markdown
387
- ---
388
- description: Optional description (displayed in /help)
389
- ---
390
-
391
- Your prompt content here.
392
- Use {{args}} for parameter injection.
393
- ```
394
-
395
- | Field | Required | Description | Example |
396
- | ------------- | -------- | ---------------------------------------- | ------------------------------------------ |
397
- | `description` | Optional | Command description (displayed in /help) | `description: Code analysis tool` |
398
- | Prompt body | Required | Prompt content sent to model | Any Markdown content after the frontmatter |
399
-
400
- ### TOML File Format (Deprecated)
401
-
402
- > [!warning]
403
- >
404
- > **Deprecated:** TOML format is still supported but will be removed in a future version. Please migrate to Markdown format.
405
-
406
- | Field | Required | Description | Example |
407
- | ------------- | -------- | ---------------------------------------- | ------------------------------------------ |
408
- | `prompt` | Required | Prompt content sent to model | `prompt = "Please analyze code: {{args}}"` |
409
- | `description` | Optional | Command description (displayed in /help) | `description = "Code analysis tool"` |
410
-
411
- ### Parameter Processing Mechanism
412
-
413
- | Processing Method | Syntax | Applicable Scenarios | Security Features |
414
- | ---------------------------- | ------------------ | ------------------------------------ | -------------------------------------- |
415
- | Context-aware Injection | `{{args}}` | Need precise parameter control | Automatic Shell escaping |
416
- | Default Parameter Processing | No special marking | Simple commands, parameter appending | Append as-is |
417
- | Shell Command Injection | `!{command}` | Need dynamic content | Execution confirmation required before |
418
-
419
- #### 1. Context-aware Injection (`{{args}}`)
420
-
421
- | Scenario | TOML Configuration | Call Method | Actual Effect |
422
- | ---------------- | --------------------------------------- | --------------------- | ------------------------ |
423
- | Raw Injection | `prompt = "Fix: {{args}}"` | `/fix "Button issue"` | `Fix: "Button issue"` |
424
- | In Shell Command | `prompt = "Search: !{grep {{args}} .}"` | `/search "hello"` | Execute `grep "hello" .` |
425
-
426
- #### 2. Default Parameter Processing
427
-
428
- | Input Situation | Processing Method | Example |
429
- | --------------- | ------------------------------------------------------ | ---------------------------------------------- |
430
- | Has parameters | Append to end of prompt (separated by two line breaks) | `/cmd parameter` → Original prompt + parameter |
431
- | No parameters | Send prompt as is | `/cmd` → Original prompt |
432
-
433
- 🚀 Dynamic Content Injection
434
-
435
- | Injection Type | Syntax | Processing Order | Purpose |
436
- | --------------------- | -------------- | ------------------- | -------------------------------- |
437
- | File Content | `@{file path}` | Processed first | Inject static reference files |
438
- | Shell Commands | `!{command}` | Processed in middle | Inject dynamic execution results |
439
- | Parameter Replacement | `{{args}}` | Processed last | Inject user parameters |
440
-
441
- #### 3. Shell Command Execution (`!{...}`)
442
-
443
- | Operation | User Interaction |
444
- | ------------------------------- | -------------------- |
445
- | 1. Parse command and parameters | - |
446
- | 2. Automatic Shell escaping | - |
447
- | 3. Show confirmation dialog | ✅ User confirmation |
448
- | 4. Execute command | - |
449
- | 5. Inject output to prompt | - |
450
-
451
- Example: Git Commit Message Generation
452
-
453
- ````markdown
454
- ---
455
- description: Generate Commit message based on staged changes
456
- ---
457
-
458
- Please generate a Commit message based on the following diff:
459
-
460
- ```diff
461
- !{git diff --staged}
462
- ```
463
- ````
464
-
465
- #### 4. File Content Injection (`@{...}`)
466
-
467
- | File Type | Support Status | Processing Method |
468
- | ------------ | ---------------------- | --------------------------- |
469
- | Text Files | ✅ Full Support | Directly inject content |
470
- | Images/PDF | ✅ Multi-modal Support | Encode and inject |
471
- | Binary Files | ⚠️ Limited Support | May be skipped or truncated |
472
- | Directory | ✅ Recursive Injection | Follow .gitignore rules |
473
-
474
- Example: Code Review Command
475
-
476
- ```markdown
477
- ---
478
- description: Code review based on best practices
479
- ---
480
-
481
- Review {{args}}, reference standards:
482
-
483
- @{docs/code-standards.md}
484
- ```
485
-
486
- ### Practical Creation Example
487
-
488
- #### "Pure Function Refactoring" Command Creation Steps Table
489
-
490
- | Operation | Command/Code |
491
- | ----------------------------- | -------------------------------------------- |
492
- | 1. Create directory structure | `mkdir -p ~/.matilda/commands/refactor` |
493
- | 2. Create command file | `touch ~/.matilda/commands/refactor/pure.md` |
494
- | 3. Edit command content | Refer to the complete code below. |
495
- | 4. Test command | `@file.js` → `/refactor:pure` |
496
-
497
- ```markdown
498
- ---
499
- description: Refactor code to pure function
500
- ---
501
-
502
- Please analyze code in current context, refactor to pure function.
503
- Requirements:
504
-
505
- 1. Provide refactored code
506
- 2. Explain key changes and pure function characteristic implementation
507
- 3. Maintain function unchanged
508
- ```
509
-
510
- ### Custom Command Best Practices Summary
511
-
512
- #### Command Design Recommendations Table
513
-
514
- | Practice Points | Recommended Approach | Avoid |
515
- | -------------------- | ----------------------------------- | ------------------------------------------- |
516
- | Command Naming | Use namespaces for organization | Avoid overly generic names |
517
- | Parameter Processing | Clearly use `{{args}}` | Rely on default appending (easy to confuse) |
518
- | Error Handling | Utilize Shell error output | Ignore execution failure |
519
- | File Organization | Organize by function in directories | All commands in root directory |
520
- | Description Field | Always provide clear description | Rely on auto-generated description |
521
-
522
- #### Security Features Reminder Table
523
-
524
- | Security Mechanism | Protection Effect | User Operation |
525
- | ---------------------- | -------------------------- | ---------------------- |
526
- | Shell Escaping | Prevent command injection | Automatic processing |
527
- | Execution Confirmation | Avoid accidental execution | Dialog confirmation |
528
- | Error Reporting | Help diagnose issues | View error information |