@maincode-ai/matilda-code 0.21.13 → 0.22.0

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 (252) hide show
  1. package/chunks/agent-IUINB66G.js +3 -0
  2. package/chunks/agent-headless-YA2RKYEZ.js +3 -0
  3. package/chunks/{askUserQuestion-BNSWGD26.js → askUserQuestion-RZYBOPLR.js} +3 -3
  4. package/chunks/ca-JKEHLTNL.js +23 -0
  5. package/chunks/chunk-225CZWD7.js +89 -0
  6. package/chunks/{chunk-MEV5XQI2.js → chunk-2XSB5XHX.js} +1 -1
  7. package/chunks/chunk-453BANK3.js +8 -0
  8. package/chunks/{chunk-6M5G5FBH.js → chunk-4UGPARBR.js} +1 -1
  9. package/chunks/{chunk-RNKDFE2S.js → chunk-5B2QERWR.js} +1 -1
  10. package/chunks/chunk-5ETLURI6.js +3 -0
  11. package/chunks/chunk-6NXVLJ3X.js +56 -0
  12. package/chunks/{chunk-QZI2ZGZY.js → chunk-7B65UIHB.js} +1 -1
  13. package/chunks/{chunk-27Q5KW3A.js → chunk-7E2YCGHS.js} +13 -13
  14. package/chunks/{chunk-DHDD5YJC.js → chunk-ARAB5QTM.js} +69 -69
  15. package/chunks/chunk-DUB7JMQV.js +13 -0
  16. package/chunks/chunk-G3F3ZCH2.js +9 -0
  17. package/chunks/chunk-GT6MSEK4.js +3 -0
  18. package/chunks/chunk-HEJO7OBH.js +3 -0
  19. package/chunks/{chunk-6T2GIM76.js → chunk-IHWAOFCQ.js} +1 -1
  20. package/chunks/chunk-ILHNCXBC.js +8 -0
  21. package/chunks/chunk-J3ZCE3TA.js +8 -0
  22. package/chunks/{chunk-AOOZREGV.js → chunk-LBQNFSZ2.js} +1 -1
  23. package/chunks/{chunk-5OHGYMKP.js → chunk-LM6OIN4B.js} +1 -1
  24. package/chunks/{chunk-EZDV7A76.js → chunk-LMZBADPW.js} +1 -1
  25. package/chunks/chunk-MGRXOZAG.js +8 -0
  26. package/chunks/chunk-NBLBE7PE.js +2609 -0
  27. package/chunks/chunk-POGNX7U3.js +31 -0
  28. package/chunks/chunk-PQZ6HKKW.js +80 -0
  29. package/chunks/chunk-QXSBPCBA.js +8 -0
  30. package/chunks/chunk-RHSUTILA.js +9 -0
  31. package/chunks/{chunk-P5TG5CON.js → chunk-RPXRN7E6.js} +1 -1
  32. package/chunks/chunk-TUKNB5CQ.js +33 -0
  33. package/chunks/chunk-UM6CLO7D.js +7 -0
  34. package/chunks/chunk-V2VUANFI.js +120 -0
  35. package/chunks/chunk-V4VILMIK.js +14 -0
  36. package/chunks/chunk-ZSGBDQXU.js +11 -0
  37. package/chunks/{computer-use-J4GAM4M6.js → computer-use-PBCWDTJR.js} +1 -1
  38. package/chunks/{cron-create-IDWSZENI.js → cron-create-PHQ43NYA.js} +1 -1
  39. package/chunks/cron-delete-7RCQIU2U.js +3 -0
  40. package/chunks/cron-list-KKNLLMNN.js +5 -0
  41. package/chunks/de-GMGNR5CZ.js +23 -0
  42. package/chunks/{devtools-XRQ4YJ5S.js → devtools-7YNCRYZV.js} +1 -1
  43. package/chunks/{chunk-OOEH6ZSV.js → dist-UWUWLWTO.js} +2 -2
  44. package/chunks/{edit-X2S2ZXRN.js → edit-ELHNQB5E.js} +1 -1
  45. package/chunks/en-3NQMLVKW.js +23 -0
  46. package/chunks/{enter-worktree-TUCGNCLO.js → enter-worktree-UZIBOBV3.js} +1 -1
  47. package/chunks/enterPlanMode-UHY3DZXE.js +18 -0
  48. package/chunks/{exit-worktree-7FLITFZI.js → exit-worktree-HLG4PDMX.js} +1 -1
  49. package/chunks/{exitPlanMode-O5UUJ3GM.js → exitPlanMode-V4HYNH3J.js} +2 -2
  50. package/chunks/fr-WS3EBB36.js +23 -0
  51. package/chunks/{getMachineId-bsd-ZYBNK2JG.js → getMachineId-bsd-ETKQTB6C.js} +1 -1
  52. package/chunks/{getMachineId-darwin-CM2MQGUI.js → getMachineId-darwin-AKNRWOWB.js} +1 -1
  53. package/chunks/{getMachineId-linux-SYE2KMCW.js → getMachineId-linux-2QSD7FTP.js} +1 -1
  54. package/chunks/{getMachineId-unsupported-6IHVG2XO.js → getMachineId-unsupported-UXSV7I24.js} +1 -1
  55. package/chunks/{getMachineId-win-S3J3JSUM.js → getMachineId-win-4MTFXGP3.js} +1 -1
  56. package/chunks/glob-C5CTWXLP.js +22 -0
  57. package/chunks/{goal-tools-YQOA6OKU.js → goal-tools-BGIWEJ3K.js} +3 -3
  58. package/chunks/{grep-VAB2VSXM.js → grep-BEFTGKHW.js} +1 -1
  59. package/chunks/ja-GBCDQ43R.js +23 -0
  60. package/chunks/keychain-token-storage-FEJZYJBB.js +3 -0
  61. package/chunks/ls-XH55NAD3.js +15 -0
  62. package/chunks/{lsp-NGLDRHZU.js → lsp-BKDCR37G.js} +1 -1
  63. package/chunks/mcp-client-GAQG7MCT.js +3 -0
  64. package/chunks/monitor-NSVUUKCM.js +32 -0
  65. package/chunks/{multipart-parser-JI75T2O5.js → multipart-parser-FKHYAVGR.js} +1 -1
  66. package/chunks/notebook-edit-AXKYC64C.js +17 -0
  67. package/chunks/openaiContentGenerator-66YY6CIM.js +47 -0
  68. package/chunks/pt-VID6J2CM.js +23 -0
  69. package/chunks/read-file-YFJMLS7V.js +3 -0
  70. package/chunks/ripGrep-BEHEB23R.js +3 -0
  71. package/chunks/ru-EB6V6EAN.js +23 -0
  72. package/chunks/scheduler-GKQOREMS.js +8 -0
  73. package/chunks/send-message-GJSEMAZB.js +8 -0
  74. package/chunks/shell-J5Q2UEXH.js +3 -0
  75. package/chunks/{skill-ETQM5NI3.js → skill-3RWNSUNE.js} +1 -1
  76. package/chunks/src-LZEU4AYF.js +5 -0
  77. package/chunks/symbol-search-4VM6J5Y4.js +19 -0
  78. package/chunks/{syntheticOutput-WZDPECYS.js → syntheticOutput-O7LEF3AM.js} +1 -1
  79. package/chunks/task-create-N4IRJBTF.js +3 -0
  80. package/chunks/{task-detach-TBAVUOTC.js → task-detach-RGNQUX3H.js} +1 -1
  81. package/chunks/task-list-Z7JUB4QK.js +9 -0
  82. package/chunks/{task-stop-HDSARSJ6.js → task-stop-L2OWK2PJ.js} +1 -1
  83. package/chunks/{task-update-MW2VT2XV.js → task-update-H5AXVXDS.js} +1 -1
  84. package/chunks/{team-create-VMYNLZCC.js → team-create-FWTIQ2FT.js} +2 -2
  85. package/chunks/team-delete-D45ALROH.js +8 -0
  86. package/chunks/todoWrite-LCQOQBI7.js +3 -0
  87. package/chunks/{tool-search-WX6FOE35.js → tool-search-X6UUCSPU.js} +1 -1
  88. package/chunks/{web-fetch-CKYBHGLF.js → web-fetch-244KUWSX.js} +17 -17
  89. package/chunks/web-search-YRZ3BZ3X.js +26 -0
  90. package/chunks/{workflow-WBSRQG3N.js → workflow-EP4AFR24.js} +2 -2
  91. package/chunks/write-file-EXWGRN4Q.js +15 -0
  92. package/cli.js +641 -678
  93. package/examples/starter/README.md +0 -3
  94. package/locales/ca.js +3 -87
  95. package/locales/de.js +3 -91
  96. package/locales/en.js +3 -91
  97. package/locales/fr.js +3 -88
  98. package/locales/ja.js +3 -92
  99. package/locales/pt.js +3 -92
  100. package/locales/ru.js +3 -91
  101. package/package.json +2 -2
  102. package/sandbox-macos-permissive-proxied.sb +1 -1
  103. package/sandbox-macos-restrictive-closed.sb +14 -1
  104. package/sandbox-macos-restrictive-open.sb +14 -1
  105. package/sandbox-macos-restrictive-proxied.sb +15 -2
  106. package/bundled/mainy/SKILL.md +0 -157
  107. package/bundled/mainy/docs/_meta.ts +0 -32
  108. package/bundled/mainy/docs/common-workflow.md +0 -571
  109. package/bundled/mainy/docs/configuration/_meta.ts +0 -7
  110. package/bundled/mainy/docs/configuration/auth.md +0 -82
  111. package/bundled/mainy/docs/configuration/matilda-ignore.md +0 -55
  112. package/bundled/mainy/docs/configuration/model-providers.md +0 -516
  113. package/bundled/mainy/docs/configuration/settings.md +0 -818
  114. package/bundled/mainy/docs/configuration/themes.md +0 -199
  115. package/bundled/mainy/docs/configuration/trusted-folders.md +0 -67
  116. package/bundled/mainy/docs/extension/_meta.ts +0 -9
  117. package/bundled/mainy/docs/extension/extension-releasing.md +0 -204
  118. package/bundled/mainy/docs/extension/getting-started-extensions.md +0 -299
  119. package/bundled/mainy/docs/extension/introduction.md +0 -338
  120. package/bundled/mainy/docs/features/_meta.ts +0 -27
  121. package/bundled/mainy/docs/features/approval-mode.md +0 -388
  122. package/bundled/mainy/docs/features/arena.md +0 -219
  123. package/bundled/mainy/docs/features/auto-mode.md +0 -308
  124. package/bundled/mainy/docs/features/channels/_meta.ts +0 -5
  125. package/bundled/mainy/docs/features/channels/overview.md +0 -328
  126. package/bundled/mainy/docs/features/channels/plugins.md +0 -87
  127. package/bundled/mainy/docs/features/channels/telegram.md +0 -120
  128. package/bundled/mainy/docs/features/code-review.md +0 -291
  129. package/bundled/mainy/docs/features/commands.md +0 -528
  130. package/bundled/mainy/docs/features/dual-output.md +0 -627
  131. package/bundled/mainy/docs/features/followup-suggestions.md +0 -109
  132. package/bundled/mainy/docs/features/headless.md +0 -448
  133. package/bundled/mainy/docs/features/hooks.md +0 -1308
  134. package/bundled/mainy/docs/features/language.md +0 -144
  135. package/bundled/mainy/docs/features/lsp.md +0 -496
  136. package/bundled/mainy/docs/features/markdown-rendering.md +0 -183
  137. package/bundled/mainy/docs/features/mcp.md +0 -423
  138. package/bundled/mainy/docs/features/memory.md +0 -185
  139. package/bundled/mainy/docs/features/sandbox.md +0 -249
  140. package/bundled/mainy/docs/features/scheduled-tasks.md +0 -139
  141. package/bundled/mainy/docs/features/skills.md +0 -347
  142. package/bundled/mainy/docs/features/status-line.md +0 -397
  143. package/bundled/mainy/docs/features/structured-output.md +0 -309
  144. package/bundled/mainy/docs/features/sub-agents.md +0 -737
  145. package/bundled/mainy/docs/features/tips.md +0 -54
  146. package/bundled/mainy/docs/features/token-caching.md +0 -29
  147. package/bundled/mainy/docs/features/tool-use-summaries.md +0 -178
  148. package/bundled/mainy/docs/features/worktree.md +0 -343
  149. package/bundled/mainy/docs/ide-integration/_meta.ts +0 -4
  150. package/bundled/mainy/docs/ide-integration/ide-companion-spec.md +0 -182
  151. package/bundled/mainy/docs/ide-integration/ide-integration.md +0 -144
  152. package/bundled/mainy/docs/integration-github-action.md +0 -241
  153. package/bundled/mainy/docs/integration-jetbrains.md +0 -81
  154. package/bundled/mainy/docs/integration-vscode.md +0 -39
  155. package/bundled/mainy/docs/integration-zed.md +0 -72
  156. package/bundled/mainy/docs/matilda-serve-deploy-local.md +0 -221
  157. package/bundled/mainy/docs/matilda-serve.md +0 -661
  158. package/bundled/mainy/docs/overview.md +0 -64
  159. package/bundled/mainy/docs/quickstart.md +0 -234
  160. package/bundled/mainy/docs/reference/_meta.ts +0 -3
  161. package/bundled/mainy/docs/reference/keyboard-shortcuts.md +0 -91
  162. package/bundled/mainy/docs/support/Uninstall.md +0 -65
  163. package/bundled/mainy/docs/support/_meta.ts +0 -6
  164. package/bundled/mainy/docs/support/tos-privacy.md +0 -94
  165. package/bundled/mainy/docs/support/troubleshooting.md +0 -127
  166. package/chunks/agent-SRAIVZEE.js +0 -3
  167. package/chunks/agent-headless-XRDOZESG.js +0 -3
  168. package/chunks/anthropicContentGenerator-LLDIKDMQ.js +0 -39
  169. package/chunks/ca-NPYL24ME.js +0 -25
  170. package/chunks/chunk-27HUYW23.js +0 -22
  171. package/chunks/chunk-2HTPVSGT.js +0 -3
  172. package/chunks/chunk-3B2HABK7.js +0 -30
  173. package/chunks/chunk-3MTZTNAU.js +0 -101
  174. package/chunks/chunk-3YLXGE6T.js +0 -8
  175. package/chunks/chunk-47XR7IMP.js +0 -8
  176. package/chunks/chunk-4F4DA5UI.js +0 -8
  177. package/chunks/chunk-4Q2SNBUH.js +0 -18
  178. package/chunks/chunk-6EQMZNIY.js +0 -8
  179. package/chunks/chunk-6I6VGTKD.js +0 -8
  180. package/chunks/chunk-DC7LAFZZ.js +0 -8
  181. package/chunks/chunk-DE3HKC2W.js +0 -9
  182. package/chunks/chunk-FWDMPRKU.js +0 -3
  183. package/chunks/chunk-G7R2XEEF.js +0 -7
  184. package/chunks/chunk-GOJCMVJJ.js +0 -8
  185. package/chunks/chunk-GTVCJCHR.js +0 -8
  186. package/chunks/chunk-IJEGHQ7Z.js +0 -32
  187. package/chunks/chunk-JCE3JAVC.js +0 -25
  188. package/chunks/chunk-KHHJYBR5.js +0 -9
  189. package/chunks/chunk-LUNDTQ3G.js +0 -8
  190. package/chunks/chunk-LWARA7JY.js +0 -37
  191. package/chunks/chunk-M53RP3YP.js +0 -31
  192. package/chunks/chunk-MTMU7JYZ.js +0 -11
  193. package/chunks/chunk-O44XK65C.js +0 -8
  194. package/chunks/chunk-OA56BXPD.js +0 -3
  195. package/chunks/chunk-PEKAUGYV.js +0 -2621
  196. package/chunks/chunk-PGUG43HG.js +0 -24
  197. package/chunks/chunk-PGXQZVLX.js +0 -8
  198. package/chunks/chunk-QKYGQLWC.js +0 -8
  199. package/chunks/chunk-QN6Y6NPA.js +0 -3
  200. package/chunks/chunk-RI54U73U.js +0 -56
  201. package/chunks/chunk-RPFSFS7Z.js +0 -39
  202. package/chunks/chunk-SDTWBD62.js +0 -8
  203. package/chunks/chunk-SOEIVSM5.js +0 -113
  204. package/chunks/chunk-SVSY6AWS.js +0 -59
  205. package/chunks/chunk-T2T2UEPY.js +0 -4
  206. package/chunks/chunk-TISQNFB5.js +0 -3
  207. package/chunks/chunk-TWJLOEAI.js +0 -31
  208. package/chunks/chunk-VI74YQQO.js +0 -8
  209. package/chunks/chunk-VYZOOSMP.js +0 -30
  210. package/chunks/chunk-W4QSMIWO.js +0 -9
  211. package/chunks/chunk-WC2VTVCE.js +0 -27
  212. package/chunks/chunk-YV3PUOBU.js +0 -65
  213. package/chunks/chunk-ZX34M2GF.js +0 -14
  214. package/chunks/contextCommand-5F5M7NA4.js +0 -3
  215. package/chunks/cron-delete-NQCDZDUI.js +0 -3
  216. package/chunks/cron-list-Z4XMC3TO.js +0 -5
  217. package/chunks/de-34YZHGC6.js +0 -25
  218. package/chunks/dist-7UYRLSLE.js +0 -3
  219. package/chunks/dist-PH6JW7XD.js +0 -42
  220. package/chunks/en-QLGMD6OS.js +0 -25
  221. package/chunks/enterPlanMode-SQEZAAIR.js +0 -18
  222. package/chunks/fileFromPath-7UCWPD4W.js +0 -3
  223. package/chunks/fr-EDNBQACJ.js +0 -25
  224. package/chunks/geminiContentGenerator-FIZFLPU3.js +0 -8
  225. package/chunks/glob-GSFTYAS2.js +0 -22
  226. package/chunks/ja-LV4RLM3M.js +0 -25
  227. package/chunks/keychain-token-storage-KQK6MNOJ.js +0 -3
  228. package/chunks/ls-IZJ3CKZY.js +0 -15
  229. package/chunks/matildaAgentContentGenerator-QQHPCFJ5.js +0 -8
  230. package/chunks/matildaContentGenerator-W7Z33ONU.js +0 -8
  231. package/chunks/matildaOAuth2-7COTQQR2.js +0 -3
  232. package/chunks/mcp-client-DXUNIEIB.js +0 -3
  233. package/chunks/monitor-4PFIGAGG.js +0 -32
  234. package/chunks/notebook-edit-MWJYAATJ.js +0 -17
  235. package/chunks/openaiContentGenerator-NDVJL6QL.js +0 -3
  236. package/chunks/pt-5SQ4DGL7.js +0 -25
  237. package/chunks/read-file-WPZKPXWA.js +0 -3
  238. package/chunks/ripGrep-7LZDZFTX.js +0 -3
  239. package/chunks/ru-7K24S53N.js +0 -25
  240. package/chunks/scheduler-DK2MVKXX.js +0 -8
  241. package/chunks/send-message-TCPX5UDU.js +0 -8
  242. package/chunks/serve-GSZPJI2O.js +0 -1026
  243. package/chunks/shell-PRS47PDP.js +0 -3
  244. package/chunks/src-UB7DZRYK.js +0 -3
  245. package/chunks/src-WZTRMETQ.js +0 -5
  246. package/chunks/symbol-search-HARHZ5AH.js +0 -19
  247. package/chunks/task-create-XRNIDT4T.js +0 -3
  248. package/chunks/task-list-Z6BDZZID.js +0 -9
  249. package/chunks/team-delete-F7QDC2TE.js +0 -8
  250. package/chunks/todoWrite-SCF5M24M.js +0 -3
  251. package/chunks/web-search-67DFNS5V.js +0 -26
  252. package/chunks/write-file-S5FAX4JJ.js +0 -15
@@ -1,571 +0,0 @@
1
- # Common workflows
2
-
3
- > Learn about common workflows with Matilda Code.
4
-
5
- Each task in this document includes clear instructions, example commands, and best practices to help you get the most from Matilda Code.
6
-
7
- ## Understand new codebases
8
-
9
- ### Get a quick codebase overview
10
-
11
- Suppose you've just joined a new project and need to understand its structure quickly.
12
-
13
- **1. Navigate to the project root directory**
14
-
15
- ```bash
16
- cd /path/to/project
17
- ```
18
-
19
- **2. Start Matilda Code**
20
-
21
- ```bash
22
- matilda
23
- ```
24
-
25
- **3. Ask for a high-level overview**
26
-
27
- ```
28
- give me an overview of this codebase
29
- ```
30
-
31
- **4. Dive deeper into specific components**
32
-
33
- ```
34
- explain the main architecture patterns used here
35
- ```
36
-
37
- ```
38
- what are the key data models?
39
- ```
40
-
41
- ```
42
- how is authentication handled?
43
- ```
44
-
45
- > [!tip]
46
- >
47
- > - Start with broad questions, then narrow down to specific areas
48
- > - Ask about coding conventions and patterns used in the project
49
- > - Request a glossary of project-specific terms
50
-
51
- ### Find relevant code
52
-
53
- Suppose you need to locate code related to a specific feature or functionality.
54
-
55
- **1. Ask Matilda Code to find relevant files**
56
-
57
- ```
58
- find the files that handle user authentication
59
- ```
60
-
61
- **2. Get context on how components interact**
62
-
63
- ```
64
- how do these authentication files work together?
65
- ```
66
-
67
- **3. Understand the execution flow**
68
-
69
- ```
70
- trace the login process from front-end to database
71
- ```
72
-
73
- > [!tip]
74
- >
75
- > - Be specific about what you're looking for
76
- > - Use domain language from the project
77
-
78
- ## Fix bugs efficiently
79
-
80
- Suppose you've encountered an error message and need to find and fix its source.
81
-
82
- **1. Share the error with Matilda Code**
83
-
84
- ```
85
- I'm seeing an error when I run npm test
86
- ```
87
-
88
- **2. Ask for fix recommendations**
89
-
90
- ```
91
- suggest a few ways to fix the @ts-ignore in user.ts
92
- ```
93
-
94
- **3. Apply the fix**
95
-
96
- ```
97
- update user.tsto add the null check you suggested
98
- ```
99
-
100
- > [!tip]
101
- >
102
- > - Tell Matilda Code the command to reproduce the issue and get a stack trace
103
- > - Mention any steps to reproduce the error
104
- > - Let Matilda Code know if the error is intermittent or consistent
105
-
106
- ## Refactor code
107
-
108
- Suppose you need to update old code to use modern patterns and practices.
109
-
110
- **1. Identify legacy code for refactoring**
111
-
112
- ```
113
- find deprecated API usage in our codebase
114
- ```
115
-
116
- **2. Get refactoring recommendations**
117
-
118
- ```
119
- suggest how to refactor utils.js to use modern JavaScript features
120
- ```
121
-
122
- **3. Apply the changes safely**
123
-
124
- ```
125
- refactor utils.js to use ES 2024 features while maintaining the same behavior
126
- ```
127
-
128
- **4. Verify the refactoring**
129
-
130
- ```
131
- run tests for the refactored code
132
- ```
133
-
134
- > [!tip]
135
- >
136
- > - Ask Matilda Code to explain the benefits of the modern approach
137
- > - Request that changes maintain backward compatibility when needed
138
- > - Do refactoring in small, testable increments
139
-
140
- ## Use specialized subagents
141
-
142
- Suppose you want to use specialized AI subagents to handle specific tasks more effectively.
143
-
144
- **1. View available subagents**
145
-
146
- ```
147
- /agents
148
- ```
149
-
150
- This shows all available subagents and lets you create new ones.
151
-
152
- **2. Use subagents automatically**
153
-
154
- Matilda Code automatically delegates appropriate tasks to specialized subagents:
155
-
156
- ```
157
- review my recent code changes for security issues
158
- ```
159
-
160
- ```
161
- run all tests and fix any failures
162
- ```
163
-
164
- **3. Explicitly request specific subagents**
165
-
166
- ```
167
- use the code-reviewer subagent to check the auth module
168
- ```
169
-
170
- ```
171
- have the debugger subagent investigate why users can't log in
172
- ```
173
-
174
- **4. Create custom subagents for your workflow**
175
-
176
- ```
177
- /agents
178
- ```
179
-
180
- Then select "create" and follow the prompts to define:
181
-
182
- - A unique identifier that describes the subagent's purpose (for example, `code-reviewer`, `api-designer`).
183
- - When Matilda Code should use this agent
184
- - Which tools it can access
185
- - A system prompt describing the agent's role and behavior
186
-
187
- > [!tip]
188
- >
189
- > - Create project-specific subagents in `.matilda/agents/` for team sharing
190
- > - Use descriptive `description` fields to enable automatic delegation
191
- > - Limit tool access to what each subagent actually needs
192
- > - Know more about [Sub Agents](./features/sub-agents)
193
- > - Know more about [Approval Mode](./features/approval-mode)
194
-
195
- ## Work with tests
196
-
197
- Suppose you need to add tests for uncovered code.
198
-
199
- **1. Identify untested code**
200
-
201
- ```
202
- find functions in NotificationsService.swift that are not covered by tests
203
- ```
204
-
205
- **2. Generate test scaffolding**
206
-
207
- ```
208
- add tests for the notification service
209
- ```
210
-
211
- **3. Add meaningful test cases**
212
-
213
- ```
214
- add test cases for edge conditions in the notification service
215
- ```
216
-
217
- **4. Run and verify tests**
218
-
219
- ```
220
- run the new tests and fix any failures
221
- ```
222
-
223
- Matilda Code can generate tests that follow your project's existing patterns and conventions. When asking for tests, be specific about what behavior you want to verify. Matilda Code examines your existing test files to match the style, frameworks, and assertion patterns already in use.
224
-
225
- For comprehensive coverage, ask Matilda Code to identify edge cases you might have missed. Matilda Code can analyze your code paths and suggest tests for error conditions, boundary values, and unexpected inputs that are easy to overlook.
226
-
227
- ## Create pull requests
228
-
229
- Suppose you need to create a well-documented pull request for your changes.
230
-
231
- **1. Summarize your changes**
232
-
233
- ```
234
- summarize the changes I've made to the authentication module
235
- ```
236
-
237
- **2. Generate a pull request with Matilda Code**
238
-
239
- ```
240
- create a pr
241
- ```
242
-
243
- **3. Review and refine**
244
-
245
- ```
246
- enhance the PR description with more context about the security improvements
247
- ```
248
-
249
- **4. Add testing details**
250
-
251
- ```
252
- add information about how these changes were tested
253
- ```
254
-
255
- > [!tip]
256
- >
257
- > - Ask Matilda Code directly to make a PR for you
258
- > - Review Matilda Code's generated PR before submitting
259
- > - Ask Matilda Code to highlight potential risks or considerations
260
-
261
- ## Handle documentation
262
-
263
- Suppose you need to add or update documentation for your code.
264
-
265
- **1. Identify undocumented code**
266
-
267
- ```
268
- find functions without proper JSDoc comments in the auth module
269
- ```
270
-
271
- **2. Generate documentation**
272
-
273
- ```
274
- add JSDoc comments to the undocumented functions in auth.js
275
- ```
276
-
277
- **3. Review and enhance**
278
-
279
- ```
280
- improve the generated documentation with more context and examples
281
- ```
282
-
283
- **4. Verify documentation**
284
-
285
- ```
286
- check if the documentation follows our project standards
287
- ```
288
-
289
- > [!tip]
290
- >
291
- > - Specify the documentation style you want (JSDoc, docstrings, etc.)
292
- > - Ask for examples in the documentation
293
- > - Request documentation for public APIs, interfaces, and complex logic
294
-
295
- ## Reference files and directories
296
-
297
- Use `@` to quickly include files or directories without waiting for Matilda Code to read them.
298
-
299
- **1. Reference a single file**
300
-
301
- ```
302
- Explain the logic in @src/utils/auth.js
303
- ```
304
-
305
- This includes the full content of the file in the conversation.
306
-
307
- **2. Reference a directory**
308
-
309
- ```
310
- What's the structure of @src/components?
311
- ```
312
-
313
- This provides a directory listing with file information.
314
-
315
- **3. Reference MCP resources**
316
-
317
- ```
318
- Show me the data from @github: repos/owner/repo/issues
319
- ```
320
-
321
- This fetches data from connected MCP servers using the format @server: resource. See [MCP](./features/mcp) for details.
322
-
323
- > [!tip]
324
- >
325
- > - File paths can be relative or absolute
326
- > - @ file references add `MATILDA.md` in the file's directory and parent directories to context
327
- > - Directory references show file listings, not contents
328
- > - You can reference multiple files in a single message (for example, "`@file 1.js` and `@file 2.js`")
329
-
330
- ## Resume previous conversations
331
-
332
- Suppose you've been working on a task with Matilda Code and need to continue where you left off in a later session.
333
-
334
- Matilda Code provides two options for resuming previous conversations:
335
-
336
- - `--continue` to automatically continue the most recent conversation
337
- - `--resume` to display a conversation picker
338
-
339
- **1. Continue the most recent conversation**
340
-
341
- ```bash
342
- matilda --continue
343
- ```
344
-
345
- This immediately resumes your most recent conversation without any prompts.
346
-
347
- **2. Continue in non-interactive mode**
348
-
349
- ```bash
350
- matilda --continue -p "Continue with my task"
351
- ```
352
-
353
- Use `-p` (or `--prompt`) with `--continue` to resume the most recent conversation in non-interactive mode, perfect for scripts or automation.
354
-
355
- **3. Show conversation picker**
356
-
357
- ```bash
358
- matilda --resume
359
- ```
360
-
361
- This displays an interactive conversation selector with a clean list view showing:
362
-
363
- - Session summary (or initial prompt)
364
- - Metadata: time elapsed, message count, and git branch
365
-
366
- Use arrow keys to navigate and press Enter to select a conversation. Press Esc to exit.
367
-
368
- > [!tip]
369
- >
370
- > - Conversation history is stored locally on your machine
371
- > - Use `--continue` for quick access to your most recent conversation
372
- > - Use `--resume` when you need to select a specific past conversation
373
- > - When resuming, you'll see the entire conversation history before continuing
374
- > - The resumed conversation starts with the same model and configuration as the original
375
- >
376
- > **How it works**:
377
- >
378
- > 1. **Conversation Storage**: All conversations are automatically saved locally with their full message history
379
- > 2. **Message Deserialization**: When resuming, the entire message history is restored to maintain context
380
- > 3. **Tool State**: Tool usage and results from the previous conversation are preserved
381
- > 4. **Context Restoration**: The conversation resumes with all previous context intact
382
- >
383
- > **Examples**:
384
- >
385
- > ```bash
386
- > # Continue most recent conversation
387
- > matilda --continue
388
- >
389
- > # Continue most recent conversation with a specific prompt
390
- > matilda --continue -p "Show me our progress"
391
- >
392
- > # Show conversation picker
393
- > matilda --resume
394
- >
395
- > # Continue most recent conversation in non-interactive mode
396
- > matilda --continue -p "Run the tests again"
397
- > ```
398
-
399
- ## Run parallel Matilda Code sessions with Git worktrees
400
-
401
- Suppose you need to work on multiple tasks simultaneously with complete code isolation between Matilda Code instances.
402
-
403
- **1. Understand Git worktrees**
404
-
405
- Git worktrees allow you to check out multiple branches from the same repository into separate directories. Each worktree has its own working directory with isolated files, while sharing the same Git history. Learn more in the [official Git worktree documentation](https://git-scm.com/docs/git-worktree).
406
-
407
- **2. Create a new worktree**
408
-
409
- ```bash
410
- # Create a new worktree with a new branch
411
- git worktree add ../project-feature-a -b feature-a
412
-
413
- # Or create a worktree with an existing branch
414
- git worktree add ../project-bugfix bugfix-123
415
- ```
416
-
417
- This creates a new directory with a separate working copy of your repository.
418
-
419
- **3. Run Matilda Code in each worktree**
420
-
421
- ```bash
422
- # Navigate to your worktree
423
- cd ../project-feature-a
424
-
425
- # Run Matilda Code in this isolated environment
426
- matilda
427
- ```
428
-
429
- **4. Run Matilda Code in another worktree**
430
-
431
- ```bash
432
- cd ../project-bugfix
433
- matilda
434
- ```
435
-
436
- **5. Manage your worktrees**
437
-
438
- ```bash
439
- # List all worktrees
440
- git worktree list
441
-
442
- # Remove a worktree when done
443
- git worktree remove ../project-feature-a
444
- ```
445
-
446
- > [!tip]
447
- >
448
- > - Each worktree has its own independent file state, making it perfect for parallel Matilda Code sessions
449
- > - Changes made in one worktree won't affect others, preventing Matilda Code instances from interfering with each other
450
- > - All worktrees share the same Git history and remote connections
451
- > - For long-running tasks, you can have Matilda Code working in one worktree while you continue development in another
452
- > - Use descriptive directory names to easily identify which task each worktree is for
453
- > - Remember to initialize your development environment in each new worktree according to your project's setup. Depending on your stack, this might include:
454
- > - JavaScript projects: Running dependency installation (`npm install`, `yarn`)
455
- > - Python projects: Setting up virtual environments or installing with package managers
456
- > - Other languages: Following your project's standard setup process
457
-
458
- ## Use Matilda Code as a unix-style utility
459
-
460
- ### Add Matilda Code to your verification process
461
-
462
- Suppose you want to use Matilda Code as a linter or code reviewer.
463
-
464
- **Add Matilda Code to your build script:**
465
-
466
- ```json
467
- // package.json
468
- {
469
- ...
470
- "scripts": {
471
- ...
472
- "lint:Matilda Code": "matilda -p 'you are a linter. please look at the changes vs. main and report any issues related to typos. report the filename and line number on one line, and a description of the issue on the second line. do not return any other text.'"
473
- }
474
- }
475
- ```
476
-
477
- > [!tip]
478
- >
479
- > - Use Matilda Code for automated code review in your CI/CD pipeline
480
- > - Customize the prompt to check for specific issues relevant to your project
481
- > - Consider creating multiple scripts for different types of verification
482
-
483
- ### Pipe in, pipe out
484
-
485
- Suppose you want to pipe data into Matilda Code, and get back data in a structured format.
486
-
487
- **Pipe data through Matilda Code:**
488
-
489
- ```bash
490
- cat build-error.txt | matilda -p 'concisely explain the root cause of this build error' > output.txt
491
- ```
492
-
493
- > [!tip]
494
- >
495
- > - Use pipes to integrate Matilda-Code into existing shell scripts
496
- > - Combine with other Unix tools for powerful workflows
497
- > - Consider using --output-format for structured output
498
-
499
- ### Control output format
500
-
501
- Suppose you need Matilda Code's output in a specific format, especially when integrating Matilda Code into scripts or other tools.
502
-
503
- **1. Use text format (default)**
504
-
505
- ```bash
506
- cat data.txt | matilda -p 'summarize this data' --output-format text > summary.txt
507
- ```
508
-
509
- This outputs just Matilda Code's plain text response (default behavior).
510
-
511
- **2. Use JSON format**
512
-
513
- ```bash
514
- cat code.py | matilda -p 'analyze this code for bugs' --output-format json > analysis.json
515
- ```
516
-
517
- This outputs a JSON array of messages with metadata including cost and duration.
518
-
519
- **3. Use streaming JSON format**
520
-
521
- ```bash
522
- cat log.txt | matilda -p 'parse this log file for errors' --output-format stream-json
523
- ```
524
-
525
- This outputs a series of JSON objects in real-time as Matilda Code processes the request. Each message is a valid JSON object, but the entire output is not valid JSON if concatenated.
526
-
527
- > [!tip]
528
- >
529
- > - Use `--output-format text` for simple integrations where you just need Matilda Code's response
530
- > - Use `--output-format json` when you need the full conversation log
531
- > - Use `--output-format stream-json` for real-time output of each conversation turn
532
-
533
- ## Ask Matilda Code about its capabilities
534
-
535
- Matilda Code has built-in access to its documentation and can answer questions about its own features and limitations.
536
-
537
- ### Example questions
538
-
539
- ```
540
- can Matilda Code create pull requests?
541
- ```
542
-
543
- ```
544
- how does Matilda Code handle permissions?
545
- ```
546
-
547
- ```
548
- what slash commands are available?
549
- ```
550
-
551
- ```
552
- how do I use MCP with Matilda Code?
553
- ```
554
-
555
- ```
556
- how do I configure Matilda Code for Amazon Bedrock?
557
- ```
558
-
559
- ```
560
- what are the limitations of Matilda Code?
561
- ```
562
-
563
- > [!note]
564
- >
565
- > Matilda Code provides documentation-based answers to these questions. For executable examples and hands-on demonstrations, refer to the specific workflow sections above.
566
-
567
- > [!tip]
568
- >
569
- > - Matilda Code always has access to the latest Matilda Code documentation, regardless of the version you're using
570
- > - Ask specific questions to get detailed answers
571
- > - Matilda Code can explain complex features like MCP integration, enterprise configurations, and advanced workflows
@@ -1,7 +0,0 @@
1
- export default {
2
- settings: 'Settings',
3
- auth: 'Authentication',
4
- 'matilda-ignore': 'Ignoring Files',
5
- 'trusted-folders': 'Trusted Folders',
6
- themes: 'Themes',
7
- };
@@ -1,82 +0,0 @@
1
- # Authentication
2
-
3
- Matilda Code's standard sign-in uses your Matilda account. For normal
4
- interactive use, you do not need to create, copy, or export an API key.
5
-
6
- You can also use a Matilda API token (CI/automation) or a third-party /
7
- custom OpenAI-compatible provider via `/auth`.
8
-
9
- ## Sign in
10
-
11
- Install Matilda Code from NPM, then sign in once on the device where you run
12
- the CLI:
13
-
14
- ```bash
15
- npm install -g @maincode-ai/matilda-code@latest
16
- matilda auth login
17
- ```
18
-
19
- The command opens a browser and starts a temporary callback listener on
20
- `127.0.0.1`. Finish the Matilda sign-in in that browser. If it does not open
21
- automatically, paste the URL printed by the CLI into a browser on the same
22
- machine.
23
-
24
- On success, Matilda Code stores a refresh token in
25
- `~/.matilda/matilda-auth.json` with user-only file permissions and refreshes
26
- access tokens automatically. Start coding with:
27
-
28
- ```bash
29
- cd /path/to/your/project
30
- matilda
31
- ```
32
-
33
- Use these commands to manage the local sign-in:
34
-
35
- ```bash
36
- matilda auth status
37
- matilda auth logout
38
- ```
39
-
40
- `logout` removes the local credentials for this device. It does not change your
41
- Matilda account or revoke sessions on other devices.
42
-
43
- ## Access during launch
44
-
45
- All signed-in users follow the same Matilda Code access path during the launch
46
- period. Matilda Code does not ask users to choose a plan.
47
-
48
- ## Automation and CI
49
-
50
- Browser sign-in is for interactive sessions. For CI, containers, and other
51
- non-interactive jobs, provide a Matilda API token through the environment:
52
-
53
- ```bash
54
- export MATILDA_API_KEY="<Matilda API token>"
55
- matilda -p "Explain the changed files"
56
- ```
57
-
58
- Never use a browser session cookie as `MATILDA_API_KEY`, and do not commit API
59
- tokens or `~/.matilda/matilda-auth.json` to source control.
60
-
61
- ## Other model providers
62
-
63
- `/auth` inside an interactive Matilda Code session lets you choose:
64
-
65
- - **Matilda account** or **Matilda API token**
66
- - **Third-party providers** (DeepSeek, OpenRouter, MiniMax, Z.AI, ModelScope, …)
67
- - **Custom Provider** for any OpenAI-compatible endpoint
68
-
69
- For an advanced custom provider configuration, see the
70
- [Model Providers reference](model-providers.md).
71
-
72
- ## Troubleshooting
73
-
74
- - **The browser did not open:** copy the URL printed by `matilda auth login`
75
- into a browser on the same computer.
76
- - **The callback page is blank or stays open:** return to the terminal. A
77
- successful callback prints `Signed in to Matilda.` there. If it does not,
78
- retry `matilda auth login` rather than reusing the old URL.
79
- - **A request returns 401:** run `matilda auth status`, then sign in again with
80
- `matilda auth login` if needed.
81
- - **You are connecting over SSH or a remote environment:** run the CLI on a
82
- machine with a browser for now, or use a Matilda API token for automation.
@@ -1,55 +0,0 @@
1
- # Ignoring Files
2
-
3
- This document provides an overview of the Matilda Ignore (`.matildaignore`) feature of Matilda Code.
4
-
5
- Matilda Code includes the ability to automatically ignore files, similar to `.gitignore` (used by Git). Adding paths to your `.matildaignore` file will exclude them from tools that support this feature, although they will still be visible to other services (such as Git).
6
-
7
- ## How it works
8
-
9
- When you add a path to your `.matildaignore` file, tools that respect this file will exclude matching files and directories from their operations. For example, when you use the [`read_many_files`](../../developers/tools/multi-file) command, any paths in your `.matildaignore` file will be automatically excluded.
10
-
11
- For the most part, `.matildaignore` follows the conventions of `.gitignore` files:
12
-
13
- - Blank lines and lines starting with `#` are ignored.
14
- - Standard glob patterns are supported (such as `*`, `?`, and `[]`).
15
- - Putting a `/` at the end will only match directories.
16
- - Putting a `/` at the beginning anchors the path relative to the `.matildaignore` file.
17
- - `!` negates a pattern.
18
-
19
- You can update your `.matildaignore` file at any time. To apply the changes, you must restart your Matilda Code session.
20
-
21
- ## How to use `.matildaignore`
22
-
23
- | Step | Description |
24
- | ------------------------- | ----------------------------------------------------------------------------------------- |
25
- | **Enable .matildaignore** | Create a file named `.matildaignore` in your project root directory |
26
- | **Add ignore rules** | Open `.matildaignore` file and add paths to ignore, example: `/archive/` or `apikeys.txt` |
27
-
28
- ### `.matildaignore` examples
29
-
30
- You can use `.matildaignore` to ignore directories and files:
31
-
32
- ```
33
- # Exclude your /packages/ directory and all subdirectories
34
- /packages/
35
-
36
- # Exclude your apikeys.txt file
37
- apikeys.txt
38
- ```
39
-
40
- You can use wildcards in your `.matildaignore` file with `*`:
41
-
42
- ```
43
- # Exclude all .md files
44
- *.md
45
- ```
46
-
47
- Finally, you can exclude files and directories from exclusion with `!`:
48
-
49
- ```
50
- # Exclude all .md files except README.md
51
- *.md
52
- !README.md
53
- ```
54
-
55
- To remove paths from your `.matildaignore` file, delete the relevant lines.