mulmoterminal 4.4.0 → 4.5.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 (224) hide show
  1. package/README.md +167 -67
  2. package/common/chromeFromColor.ts +121 -0
  3. package/common/contrast.ts +41 -0
  4. package/common/customAgents.ts +104 -0
  5. package/common/dirConfigSource.ts +22 -2
  6. package/common/dirIcon.ts +65 -0
  7. package/common/guiMcpAgents.ts +44 -0
  8. package/common/iconSizes.ts +20 -0
  9. package/common/launchAgent.ts +1 -1
  10. package/common/repoJson.ts +81 -0
  11. package/common/sessionAgent.ts +9 -2
  12. package/common/worklogInterval.ts +12 -0
  13. package/common/worktreeEnv.ts +106 -0
  14. package/dist/assets/{abnfDiagram-VRR7QNED-RjiYivmv-C43gBAG2.js → abnfDiagram-VRR7QNED-WSmThe6b-DPaEh_gN.js} +1 -1
  15. package/dist/assets/{arc-zT0wd74V-CquvnqHY.js → arc-Op_P1CyZ-BX8g6uBK.js} +1 -1
  16. package/dist/assets/architecture-TIHT7OUA-Cqhmai3f-DCOr0rgu.js +1 -0
  17. package/dist/assets/architectureDiagram-ZJ3FMSHR-Tj3i7Oow-CUD1E04p.js +36 -0
  18. package/dist/assets/{blockDiagram-677ZJIJ3-BPuAJQRW-CM2STruI.js → blockDiagram-677ZJIJ3-c-hNYBhI-oMocpv9s.js} +5 -5
  19. package/dist/assets/c4Diagram-LMCZKHZV-WIGVajf5-DCS5Kt2M.js +10 -0
  20. package/dist/assets/channel-OqG5cGJi-3dRrNd2x.js +1 -0
  21. package/dist/assets/{chunk-32BRIVSS-BRrYpgtb-CoxhWbB9.js → chunk-32BRIVSS-CtSq3QOR-D6jNTV1x.js} +1 -1
  22. package/dist/assets/chunk-52WLFC77-2Up0T-6t-qOt9ZLFS.js +10 -0
  23. package/dist/assets/{chunk-C7G6YPKG-BZEucKEL-P5M5Yvpn.js → chunk-C7G6YPKG-ivengO-7-7utsyMTv.js} +1 -1
  24. package/dist/assets/chunk-EX3LRPZG-BHoWQ6W8-6OAUxLJG.js +231 -0
  25. package/dist/assets/{chunk-FWX5IMBZ-DHLSFw1H-DWcCl8Yk.js → chunk-FWX5IMBZ-PvRXPghr-CoUoZ066.js} +2 -2
  26. package/dist/assets/{chunk-HOUHSVGY-Bhlt8hXJ-vKYnv8Bj.js → chunk-HOUHSVGY-A3_zwY4q-Z32157__.js} +1 -1
  27. package/dist/assets/chunk-ICXQ74PX-vzZqgurQ-4S5Kaqhr.js +2 -0
  28. package/dist/assets/{chunk-MOJQB5TN-CMZRaeqt-gTPiZssc.js → chunk-MOJQB5TN-CorQ_Pl1-BFdYgLZH.js} +4 -4
  29. package/dist/assets/{chunk-OGEWGWER-8Qy4a8b5-C9Osj4JZ.js → chunk-OGEWGWER-BVhfs7WG-EE3Qh8NO.js} +1 -1
  30. package/dist/assets/chunk-PUDLZKDR-CJo7KQJ3-D1PA0tz9.js +156 -0
  31. package/dist/assets/{chunk-Q4XR5HBZ-ZXVGkG8Z-Cco8LyAc.js → chunk-Q4XR5HBZ-DLkq8ZGO-ySWBhGnM.js} +3 -3
  32. package/dist/assets/chunk-RYQCIY6F-CLxhXO9P-bjDO7t1Y.js +1 -0
  33. package/dist/assets/{chunk-V7JOEXUC-DmGdheTX-CL2oW-GL.js → chunk-V7JOEXUC-DqefuUOb-DhSm2NyP.js} +4 -4
  34. package/dist/assets/{chunk-VAUOI2AC-CS9QJ4yz-DhyLweXm.js → chunk-VAUOI2AC-BKx35BBi-B60QprFR.js} +1 -1
  35. package/dist/assets/{chunk-VR4S4FIN-C6a91eNY-kS-cvTnu.js → chunk-VR4S4FIN-DpJgr4Ur-aiw-751p.js} +1 -1
  36. package/dist/assets/chunk-WYO6CB5R-nS6zX9ct-DWK9p9qg.js +127 -0
  37. package/dist/assets/{chunk-XXDRQBXY-DFXH_lWn-3EDWq1FX.js → chunk-XXDRQBXY-DIOdXErg-BaEFQvBN.js} +1 -1
  38. package/dist/assets/{chunk-ZGVPDNZ5-BYwxNFTK-B_5ITunz.js → chunk-ZGVPDNZ5-DNtiHxpJ-cQBGQXJU.js} +5 -5
  39. package/dist/assets/{chunk-ZIRB5QZD-Biy6ZNFG-Cxpu0Ymf.js → chunk-ZIRB5QZD-DRLh0zc1-B04pRyTm.js} +2 -2
  40. package/dist/assets/classDiagram-OUVF2IWQ-C6h0nbT3-he2Qx8Zy.js +1 -0
  41. package/dist/assets/classDiagram-v2-EOCWNBFH-CzsXJ_wA-he2Qx8Zy.js +1 -0
  42. package/dist/assets/cose-bilkent-JH36ORCC-Rn6Qv2B3-BQD8cYke.js +1 -0
  43. package/dist/assets/cynefin-VYW2F7L2-DvSvuXnG-BM05JO9d.js +1 -0
  44. package/dist/assets/cynefinDiagram-TSTJHNR4-969y1qZK-76_lFdlS.js +62 -0
  45. package/dist/assets/cytoscape.esm-C_CQJHFN-D3Xb5zKs.js +321 -0
  46. package/dist/assets/dagre-Iyo00jS2-DhomXx19.js +1 -0
  47. package/dist/assets/{dagre-VKFMJZFB--oJKqXBZ-B_Vz2rxF.js → dagre-VKFMJZFB-CZfgAZFk-BIp6P02L.js} +1 -1
  48. package/dist/assets/defaultLocale-DCiIiYpI-C5Twph8F.js +1 -0
  49. package/dist/assets/{diagram-FQU43EPY-CcJCB9bG-3PKZ2Ka3.js → diagram-FQU43EPY-CSdnleGM-Cfb5V0UI.js} +3 -3
  50. package/dist/assets/{diagram-G47NLZAW-C_o-WGG1-BMfEdJEI.js → diagram-G47NLZAW-DKYe-Mwx-DqsHnBaF.js} +1 -1
  51. package/dist/assets/diagram-NH7WQ7WH-DMasKpwa-CNiFWceN.js +24 -0
  52. package/dist/assets/{diagram-OA4YK3LP-BMzeJ87A-yVWZgC-A.js → diagram-OA4YK3LP-CSyc0BDR-OiAwSIjr.js} +3 -3
  53. package/dist/assets/{diagram-WEI45ONY-D_93NKqo-JY2oY6TV.js → diagram-WEI45ONY-CcJW2fNK-TQf1z8cW.js} +2 -2
  54. package/dist/assets/{dist-B5vu6eeE.js → dist-9wGqhibT.js} +1 -1
  55. package/dist/assets/{dist-CAS06ruL.js → dist-BR8nhjbg.js} +1 -1
  56. package/dist/assets/{dist-cuEw-vsy.js → dist-BezNTABu.js} +1 -1
  57. package/dist/assets/{dist-BQBs5pjy-uaeihEVi.js → dist-Bz_xjr9E-SUsJ4HlM.js} +1 -1
  58. package/dist/assets/{dist-By4s_hax.js → dist-RBakV0o4.js} +1 -1
  59. package/dist/assets/{ebnfDiagram-CCIWWBDH-CVai1Ii9-CSODjPeQ.js → ebnfDiagram-CCIWWBDH-CeBUH2N0-B8mwuH_Q.js} +1 -1
  60. package/dist/assets/{erDiagram-Q63AITRT-CiABnA0s-DMaAYLYB.js → erDiagram-Q63AITRT-1OOp34oV-4zV7QoN3.js} +3 -3
  61. package/dist/assets/eventmodeling-45OFAUF4-jdctDg0T-D7yLQEKX.js +1 -0
  62. package/dist/assets/flowDiagram-23GEKE2U-DK0InIny-XdeCwjZj.js +1 -0
  63. package/dist/assets/ganttDiagram-NO4QXBWP-DQT88dUZ-DmKfWKVt.js +292 -0
  64. package/dist/assets/gitGraph-TEB2WS4Q-C4cKwl5j-CNGA-Dxh.js +1 -0
  65. package/dist/assets/gitGraphDiagram-IHSO6WYX-CeZGS4qi-CPiO74HP.js +106 -0
  66. package/dist/assets/index-B7qYhdzG.js +614 -0
  67. package/dist/assets/index-DnimPwKc.css +1 -0
  68. package/dist/assets/info-DKCQHKI2-DPUCBYWS-DggNvHPl.js +1 -0
  69. package/dist/assets/{infoDiagram-FWYZ7A6U-7UnoB5AP-DCV7LBpV.js → infoDiagram-FWYZ7A6U-BDt8lBTy-BJdFxf7J.js} +1 -1
  70. package/dist/assets/init-DzP_5IO6-C-OQMol4.js +1 -0
  71. package/dist/assets/{ishikawaDiagram-FXEZZL3T-ByUDM_N2-DbEPqoeF.js → ishikawaDiagram-FXEZZL3T-DOHYs_AA-DN4-dfNt.js} +3 -3
  72. package/dist/assets/{journeyDiagram-5HDEW3XC-c5xIah9o-YWImF3-J.js → journeyDiagram-5HDEW3XC-B33IW9yy-D46iXC-G.js} +4 -4
  73. package/dist/assets/{kanban-definition-HUTT4EX6-Cnt6loYD-Cu6iQUPe.js → kanban-definition-HUTT4EX6-Bkdm46eX-DaJbuRjn.js} +11 -11
  74. package/dist/assets/{katex-C_9rYNVQ-c9h6sBOB.js → katex-DImtHWbS-DFcUm9x_.js} +3 -3
  75. package/dist/assets/{lib-D3KO7fnC.js → lib-BD8LgZAH.js} +1 -1
  76. package/dist/assets/line-Dy_Qlcgo-DWmsY6xO.js +1 -0
  77. package/dist/assets/{linear-lrGinF5_-CbzZdnNy.js → linear-DVIrZqkl-BqPv05Mj.js} +1 -1
  78. package/dist/assets/{marp-ssHueLtD.js → marp-CwNmXt5E.js} +1 -1
  79. package/dist/assets/{mermaid-parser.core-DxEa8E3F-CTOK7EeF.js → mermaid-parser.core-C1baW7NG-Bt8E3kO2.js} +25 -25
  80. package/dist/assets/mermaid.core-C09q4TmN-CdpmD79K.js +11 -0
  81. package/dist/assets/{mindmap-definition-LN4V7U3C-CexN3O6L-BAQB7j75.js → mindmap-definition-LN4V7U3C-bfYIhPQ0-C4RQ97Ls.js} +26 -26
  82. package/dist/assets/{ordinal-B9_Llu10-CU85fhaB.js → ordinal-pAvPVbFU-C5B2S93B.js} +1 -1
  83. package/dist/assets/packet-7NZHBO7P-CC7His0F-DIVJjy2R.js +1 -0
  84. package/dist/assets/{path-COivZ1Gw-C5riojK2.js → path-CciMXxPa-COt_16Va.js} +1 -1
  85. package/dist/assets/{pegDiagram-2B236MQR-BiM4G0cW-HDlX2gZc.js → pegDiagram-2B236MQR-CZQOKUMC-BGzTvU6v.js} +1 -1
  86. package/dist/assets/pie-RZYD4A2V-CCrcq2sL-DbntX_Y9.js +1 -0
  87. package/dist/assets/pieDiagram-ENE6RG2P-DiVKPdHE-XKldq1E5.js +39 -0
  88. package/dist/assets/{quadrantDiagram-ABIIQ3AL-BigGVxCR-C0w-ELAc.js → quadrantDiagram-ABIIQ3AL-CbPY3kXI-C5r0a9Sf.js} +4 -4
  89. package/dist/assets/radar-I7S5WNFK-C5TUrpHf-BjpTp9D5.js +1 -0
  90. package/dist/assets/railroad-3IZDKUUU-CGuuFEd8-BgrykldZ.js +1 -0
  91. package/dist/assets/railroad-abnf-AHOZXSZD-DuoCSFZY-4ECSfnJj.js +1 -0
  92. package/dist/assets/railroad-ebnf-EBAXGLYW-ig-DG9e_-DIGuLSDA.js +1 -0
  93. package/dist/assets/railroad-peg-LSFZ7HO6-BkBgpyvu-WBfEJm_q.js +1 -0
  94. package/dist/assets/{railroadDiagram-RFXS5EU6--lNIlG64-CaMY_GQ1.js → railroadDiagram-RFXS5EU6-CFRaQzr0-YImSnBwl.js} +1 -1
  95. package/dist/assets/{requirementDiagram-TGXJPOKE-D-B0Y5Wu-DWHcMDxg.js → requirementDiagram-TGXJPOKE-BiIDduje-CLDWdQ6G.js} +4 -4
  96. package/dist/assets/{rough.esm-wVmwlXu7-CSKSodPl.js → rough.esm-CRiMXkOs-By172zw-.js} +1 -1
  97. package/dist/assets/sankeyDiagram-HTMAVEWB-DcK87A5Y-CzQDWlB1.js +40 -0
  98. package/dist/assets/sequenceDiagram-DBY2YBRQ-DgEQYcvc-Cql9GjHP.js +162 -0
  99. package/dist/assets/src-CvsWqFln-Tc7ZSrRz.js +1 -0
  100. package/dist/assets/{stateDiagram-2N3HPSRC-jf_dXUEU-BcuA2rt-.js → stateDiagram-2N3HPSRC-Bg7EXtW2-CN3bsM_d.js} +1 -1
  101. package/dist/assets/stateDiagram-v2-6OUMAXLB-BjhArXP_-PWEWNNBX.js +1 -0
  102. package/dist/assets/swimlanes-5IMT3BWC-CKORDKr0-cK0-DqfM.js +2 -0
  103. package/dist/assets/swimlanesDiagram-G3AALYLV-CyvIfl1o-DRhfZv9k.js +8 -0
  104. package/dist/assets/{timeline-definition-FHXFAJF6-DYJ4oUm8-_przvOVq.js → timeline-definition-FHXFAJF6-BM3Iky2r-C6aXUCxm.js} +8 -8
  105. package/dist/assets/treeView-QDETBFTQ-CqfT0I1z-C1kvz6Pn.js +1 -0
  106. package/dist/assets/treemap-6X3UGDF4-CiJkiGWo-CWCrFJlO.js +1 -0
  107. package/dist/assets/vennDiagram-L72KCM5P-VNmAhEFP-T681nWRy.js +34 -0
  108. package/dist/assets/wardley-OPB4EBWU-D1tuVHAV-B-2c3CsH.js +1 -0
  109. package/dist/assets/{wardleyDiagram-EHGQE667-BF6c4_CW-CCl9h9eK.js → wardleyDiagram-EHGQE667-BkHQpyFm-D-AfB-NA.js} +2 -2
  110. package/dist/assets/{xychartDiagram-FW5EYKEG-CGiKngj7-B6LaWKwe.js → xychartDiagram-FW5EYKEG-Yz-8aLqK-CNzoNtQE.js} +4 -4
  111. package/dist/index.html +2 -2
  112. package/package.json +3 -3
  113. package/server/agents/antigravity-mcp.ts +9 -41
  114. package/server/agents/antigravity-sessions.ts +5 -5
  115. package/server/agents/git-exclude.ts +29 -0
  116. package/server/agents/grok-args.ts +56 -0
  117. package/server/agents/grok-mcp.ts +138 -0
  118. package/server/agents/grok-session.ts +42 -0
  119. package/server/agents/grok.ts +9 -0
  120. package/server/agents/gui-mcp-bridge.ts +30 -0
  121. package/server/agents/registry.ts +2 -0
  122. package/server/agents/types.ts +1 -1
  123. package/server/backends/remoteHost/terminalScreen.ts +1 -1
  124. package/server/config/app-config.ts +59 -9
  125. package/server/config/config-body.ts +1 -0
  126. package/server/config/config-routes.ts +26 -9
  127. package/server/config/config-schema.ts +85 -1
  128. package/server/config/dir-config.ts +132 -26
  129. package/server/config/dir-icon-detect.ts +114 -0
  130. package/server/config/dir-icon.ts +79 -0
  131. package/server/config/header-config.ts +9 -1
  132. package/server/config/header-context.ts +5 -16
  133. package/server/config/header-resolve.ts +1 -1
  134. package/server/config/repo-json.ts +81 -0
  135. package/server/config/worktree-dir-config.ts +38 -12
  136. package/server/config/worktree-env-log.ts +115 -0
  137. package/server/config/worktree-env.ts +299 -0
  138. package/server/config/worktree-task.ts +22 -0
  139. package/server/git/worktree-routes.ts +7 -1
  140. package/server/git/worktrees.ts +33 -32
  141. package/server/index.ts +9 -0
  142. package/server/infra/canonical-path.ts +36 -0
  143. package/server/infra/mulmoterminal-home.ts +10 -0
  144. package/server/mcp/gui-call-history.ts +6 -4
  145. package/server/routes/app-routes.ts +3 -0
  146. package/server/routes/dir-routes.ts +31 -1
  147. package/server/routes/plugin-routes.ts +32 -20
  148. package/server/routes/routeParams.ts +2 -1
  149. package/server/routes/session-routes.ts +7 -2
  150. package/server/routes/terminal-ws-path.ts +2 -1
  151. package/server/routes/tool-routes.ts +2 -2
  152. package/server/routes/ws-routes.ts +170 -69
  153. package/server/session/{antigravity-conversations.ts → agent-conversations.ts} +19 -17
  154. package/server/session/background-chat.ts +2 -1
  155. package/server/session/custom-agent-command.ts +49 -0
  156. package/server/session/custom-agent-log.ts +60 -0
  157. package/server/session/dir-session.ts +1 -1
  158. package/server/session/lifecycle.ts +3 -0
  159. package/server/session/mcp-config.ts +17 -4
  160. package/server/session/pty-spawn.ts +18 -2
  161. package/server/session/registry.ts +103 -42
  162. package/server/session/session-reads.ts +14 -4
  163. package/server/session/session-settings.ts +0 -9
  164. package/server/session/spawn-antigravity.ts +13 -2
  165. package/server/session/spawn-claude.ts +97 -11
  166. package/server/session/spawn-codex.ts +8 -6
  167. package/server/session/spawn-deps.ts +2 -0
  168. package/server/session/spawn-grok.ts +76 -0
  169. package/server/session/spawn-shell.ts +5 -5
  170. package/server/session/spawners.ts +2 -0
  171. package/server/session/worktree-session-limit.ts +2 -1
  172. package/server/skills/mulmoterminal-config/SKILL.md +95 -9
  173. package/server/skills/mulmoterminal-dirs/SKILL.md +152 -8
  174. package/server/skills/mulmoterminal-keys/SKILL.md +5 -2
  175. package/server/skills/mulmoterminal-model/SKILL.md +111 -3
  176. package/dist/assets/architecture-TIHT7OUA-0NsD2xW1-DRANrMDe.js +0 -1
  177. package/dist/assets/architectureDiagram-ZJ3FMSHR-3nWA91tG-BONcd9-U.js +0 -36
  178. package/dist/assets/c4Diagram-LMCZKHZV-C0LAqQso-B5vNwdXA.js +0 -10
  179. package/dist/assets/channel-7wUqSdoX-qLt0VyIe.js +0 -1
  180. package/dist/assets/chunk-52WLFC77-BJ-ss3Xr-CId6SWzh.js +0 -10
  181. package/dist/assets/chunk-EX3LRPZG-DLS6FBN1-DyLWbVhu.js +0 -231
  182. package/dist/assets/chunk-ICXQ74PX-DwgHBX_g-CS9xzHHA.js +0 -2
  183. package/dist/assets/chunk-PUDLZKDR-DcrWQRYh-CZwJPYWX.js +0 -156
  184. package/dist/assets/chunk-RYQCIY6F-CmHwCv5h-CR7mRx_v.js +0 -1
  185. package/dist/assets/chunk-WYO6CB5R-BlzOfotS-B-BAzlIB.js +0 -127
  186. package/dist/assets/classDiagram-OUVF2IWQ-BYlRi6YQ-ClENF_Zt.js +0 -1
  187. package/dist/assets/classDiagram-v2-EOCWNBFH-BCHaYHxj-ClENF_Zt.js +0 -1
  188. package/dist/assets/cose-bilkent-JH36ORCC-DDu6UbVg-DcuGhn7q.js +0 -1
  189. package/dist/assets/cynefin-VYW2F7L2-CGYr2F6h-Xw6wbIlg.js +0 -1
  190. package/dist/assets/cynefinDiagram-TSTJHNR4-DHA9iPo--CsvHy5QQ.js +0 -62
  191. package/dist/assets/cytoscape.esm-CncKIM2s-CEEOau9_.js +0 -321
  192. package/dist/assets/dagre-CF0ZwvCl-CSPF5CVP.js +0 -1
  193. package/dist/assets/defaultLocale-DUNguUWs-BbDo_yJX.js +0 -1
  194. package/dist/assets/diagram-NH7WQ7WH-CXJCYvY--DMS7vR7_.js +0 -24
  195. package/dist/assets/eventmodeling-45OFAUF4-CWmqhm3a-CDRF15wA.js +0 -1
  196. package/dist/assets/flowDiagram-23GEKE2U-DKSB5AiY-nMfF1thc.js +0 -1
  197. package/dist/assets/ganttDiagram-NO4QXBWP-DQZvdFo1-t6QKW7r_.js +0 -292
  198. package/dist/assets/gitGraph-TEB2WS4Q-BR9qPwdN-BpVP-1CD.js +0 -1
  199. package/dist/assets/gitGraphDiagram-IHSO6WYX-C2ovBouh-8CB_sdi8.js +0 -106
  200. package/dist/assets/index-BfZe-OnL.js +0 -614
  201. package/dist/assets/index-slI4QJ8P.css +0 -1
  202. package/dist/assets/info-DKCQHKI2-Dplx5kMp-ugP0JbLq.js +0 -1
  203. package/dist/assets/init-DEsX3bhM-D6jRqBbL.js +0 -1
  204. package/dist/assets/line-D7ziSjKi-rKNlfotQ.js +0 -1
  205. package/dist/assets/mermaid.core-V0OYwIz3-ikGsVp05.js +0 -11
  206. package/dist/assets/packet-7NZHBO7P-CQI3flND-ChXy_hCK.js +0 -1
  207. package/dist/assets/pie-RZYD4A2V-CnmKE2Wa-DeFim35k.js +0 -1
  208. package/dist/assets/pieDiagram-ENE6RG2P-B_fBBS-2-C7-OBdMS.js +0 -39
  209. package/dist/assets/radar-I7S5WNFK-us6x-Z9R-D-Y4D0Ax.js +0 -1
  210. package/dist/assets/railroad-3IZDKUUU-BKdz6pdN-tvzxXql8.js +0 -1
  211. package/dist/assets/railroad-abnf-AHOZXSZD-m_CSSIfd-CMCeKqcK.js +0 -1
  212. package/dist/assets/railroad-ebnf-EBAXGLYW-Nu3nAG7C-CM7KSH9R.js +0 -1
  213. package/dist/assets/railroad-peg-LSFZ7HO6--Y3mD4R_-Ds4sbE-D.js +0 -1
  214. package/dist/assets/sankeyDiagram-HTMAVEWB-DlutaXDv-BXstTNJK.js +0 -40
  215. package/dist/assets/sequenceDiagram-DBY2YBRQ-BOLgtggH-DNq_A2us.js +0 -162
  216. package/dist/assets/src-Brzfja-q-ch1VcTiG.js +0 -1
  217. package/dist/assets/stateDiagram-v2-6OUMAXLB-CuzgCL2v-CngDb_q-.js +0 -1
  218. package/dist/assets/swimlanes-5IMT3BWC-CYjtALQH-CFAIsGQE.js +0 -2
  219. package/dist/assets/swimlanesDiagram-G3AALYLV-3bmSBtKs-ktA_ajC9.js +0 -8
  220. package/dist/assets/treeView-QDETBFTQ-D27HWG6Q-BVr9yA0C.js +0 -1
  221. package/dist/assets/treemap-6X3UGDF4-CmGIU3H5-dwog38AV.js +0 -1
  222. package/dist/assets/vennDiagram-L72KCM5P-CdKAHoek-nDlMmrar.js +0 -34
  223. package/dist/assets/wardley-OPB4EBWU-CbHWsb2k-BcHLy1xv.js +0 -1
  224. package/server/session/launcher-gui-mcp.ts +0 -126
package/README.md CHANGED
@@ -343,8 +343,8 @@ The launcher detects it and prints the exact, OS-appropriate removal command; ru
343
343
  ┌──────────────────────────────────────┐ ┌─────────────────────────────────────────────┐
344
344
  │ Browser (Vue 3 + xterm.js) │ │ Server (Express + Node) │
345
345
  │ │ │ │
346
- │ Sidebar.vue ──subscribe("sessions")──┼──SIO───►│ socket.io /ws/pubsub ── publish ──┐ │
347
- │ ▲ refetch on any push │ │ │ │
346
+ │ App.vue ──────subscribe("sessions")──┼──SIO───►│ socket.io /ws/pubsub ── publish ──┐ │
347
+ │ ▲ refetch on any push (favicon) │ │ │ │
348
348
  │ └──── GET /api/sessions ─────────┼──HTTP──►│ Express /api/sessions │ │
349
349
  │ │ │ /api/hook ◄──curl── hooks │ │
350
350
  │ Terminal.vue ── ws JSON msgs ────────┼──WS────►│ ws /ws ──► node-pty ─► `claude`──hooks┘
@@ -353,7 +353,8 @@ The launcher detects it and prints the exact, OS-appropriate removal command; ru
353
353
  ```
354
354
 
355
355
  - **Terminal I/O** flows over a raw WebSocket (`/ws`), one PTY per session.
356
- - **Session list** is fetched over HTTP (`/api/sessions`).
356
+ - **Session list** is fetched over HTTP (`/api/sessions`) — by `App.vue` for the tab favicon,
357
+ and by an empty cell's launch form (`?cwd=`) for its resume rows.
357
358
  - **Live activity** is pushed over a Socket.IO pub/sub channel (`/ws/pubsub`);
358
359
  the server learns of activity from **Claude hooks** that POST to `/api/hook`.
359
360
  - **Other terminals** run on their own raw WebSockets: **Codex** sessions on `/ws/codex`,
@@ -385,12 +386,12 @@ SDK; we drive the real interactive CLI and relay its TTY over the WebSocket.
385
386
 
386
387
  ---
387
388
 
388
- ## Agents: Claude, Codex & Antigravity
389
+ ## Agents: Claude, Codex, Antigravity & Grok
389
390
 
390
391
  MulmoTerminal drives **interactive coding-agent CLIs**, not just Claude. An
391
392
  `AgentAdapter` seam abstracts the per-agent bits (which binary to spawn, how it resumes)
392
- so the PTY, grid, persistence, and GUI-panel plumbing stay shared. Three adapters ship
393
- today — **Claude Code** (the default), **Codex**, and **Antigravity** (`agy`).
393
+ so the PTY, grid, persistence, and GUI-panel plumbing stay shared. Four adapters ship
394
+ today — **Claude Code** (the default), **Codex**, **Antigravity** (`agy`), and **Grok**.
394
395
 
395
396
  - **Claude** — spawned as `claude` (override with `CLAUDE_BIN`). The server passes
396
397
  `--session-id <uuid>`, so it knows the live session's id even before its transcript
@@ -403,18 +404,22 @@ today — **Claude Code** (the default), **Codex**, and **Antigravity** (`agy`).
403
404
  cockpit roster next to Claude's. Because Codex only mints its rollout id **after** the first
404
405
  turn, the server watches `~/.codex/sessions/**/rollout-*.jsonl` (home overridable via
405
406
  `CODEX_HOME`) and maps the new rollout to the session — attributed only when it's
406
- unambiguous, never by "newest wins". Resume reattaches a live PTY, adopts a surviving
407
- tmux session, or cold-resumes the rollout id.
407
+ unambiguous, never by "newest wins". That mapping is appended to
408
+ `~/.mulmoterminal/codex-rollouts.jsonl`, so a conversation is still resumable after the server
409
+ restarts — without it a session whose tmux is also gone came back as a fresh codex. Resume
410
+ reattaches a live PTY, adopts a surviving tmux session, or cold-resumes the rollout id.
408
411
  - **Antigravity** — spawned as `agy` (override with `ANTIGRAVITY_BIN`; `ANTIGRAVITY_MODEL` sets
409
412
  `--model`). Antigravity runs on its own WebSocket (`/ws/antigravity`). Like Codex it mints its
410
413
  own conversation id, so the server watches `~/.gemini/antigravity-cli/brain/` (home overridable
411
414
  via `ANTIGRAVITY_HOME`) for the directory the new conversation creates — attributed only when
412
415
  unambiguous — and cold-resumes it with `--conversation <id>`. That mapping is appended to
413
416
  `~/.mulmoterminal/antigravity-conversations.jsonl`, so a conversation is still resumable after
414
- the server restarts.
417
+ the server restarts — the same log Codex keeps, in the same format.
415
418
 
416
- Its **GUI tools work differently**, because `agy` takes no MCP flag: it reads its servers from
417
- `.agents/mcp_config.json` in the working directory. MulmoTerminal writes that file from the
419
+ Its **GUI tools work differently — in the workspace too**, because `agy` takes no MCP flag: it
420
+ reads its servers from `.agents/mcp_config.json` in the working directory. So it never gets the
421
+ workspace's "every tool automatically"; register what it needs with the Canvas switches, wherever
422
+ it runs (see [MCP server ids](#mcp-server-ids-why-a-workspace-cell-and-a-project-cell-disagree)). MulmoTerminal writes that file from the
418
423
  directory's [Canvas switches](#wiki-collections--the-gui-panel) — the same switches Claude's cells read — so
419
424
  one switch serves every agent, and rewrites it whenever a switch flips or an agy session starts.
420
425
  Servers in it that MulmoTerminal did not write are left alone, the file is removed once no group
@@ -424,9 +429,29 @@ today — **Claude Code** (the default), **Codex**, and **Antigravity** (`agy`).
424
429
  per directory and shared by every session running there — and reaches the bridge through the agy
425
430
  process's own environment instead.
426
431
 
427
- **Choosing an agent.** Each grid cell's launch form carries a **Claude / Codex /
428
- Antigravity / Shell** toggle, and the Collections browser a **Claude / Codex /
429
- Antigravity** one (your choice is remembered).
432
+ - **Grok** — spawned as `grok` (override with `GROK_BIN`; `GROK_MODEL` sets `--model`), on its own
433
+ WebSocket (`/ws/grok`). It resumes the way **Claude** does rather than the way Codex and
434
+ Antigravity do: `grok --session-id <uuid>` starts a conversation under an id MulmoTerminal minted,
435
+ so there is no watcher, no attribution guess, and no mapping log — the id the browser holds is
436
+ grok's own. A reconnect passes `--resume <id>` instead, but only once a conversation by that name
437
+ exists on disk: grok writes one under `~/.grok/sessions/<url-encoded cwd>/<id>/` (home overridable
438
+ via `GROK_HOME`) after the first turn, and re-using a `--session-id` that already exists is a hard
439
+ error, which is why the two flags are never sent together.
440
+
441
+ Its **GUI tools work like Antigravity's — in the workspace too** and for the same reason: `grok`
442
+ takes no MCP flag, so it never gets the workspace's "every tool automatically" either, and
443
+ MulmoTerminal registers the bridge in `.grok/config.toml` (grok's project-scope config) from the
444
+ directory's [Canvas switches](#wiki-collections--the-gui-panel), wherever it runs (see
445
+ [MCP server ids](#mcp-server-ids-why-a-workspace-cell-and-a-project-cell-disagree)). That file is TOML and yours, so —
446
+ unlike agy's JSON — MulmoTerminal never rewrites it directly: it drives `grok mcp add -s project` /
447
+ `grok mcp remove -s project`, and only for the server ids it wrote itself. Nothing else in the file
448
+ is touched, a directory already in the right state runs no command at all, and the file is added to
449
+ `.git/info/exclude` only when MulmoTerminal created it. As with agy, the **session id is never
450
+ written into that file** — it reaches the bridge through the grok process's own environment.
451
+
452
+ **Choosing an agent.** Each grid cell's launch form carries the **Agent Picker** — a
453
+ **Claude / Codex / Antigravity / Grok / Shell** toggle — and the Collections browser a **Claude /
454
+ Codex / Antigravity / Grok** one (your choice is remembered).
430
455
  **Shell** is not an agent: it runs your OS default shell (`$SHELL`, or `/bin/sh`) in the
431
456
  chosen directory, with nothing to install and nothing to configure. It starts a launcher
432
457
  cell, so it has no model, no MCP registration, and no worktree — those rows disappear
@@ -520,6 +545,9 @@ the `claude` / `codex` sessions themselves.
520
545
  | `ANTIGRAVITY_BIN` | `agy` | The Antigravity CLI binary to spawn. |
521
546
  | `ANTIGRAVITY_MODEL` | agy default | Model passed to Antigravity as `--model` (unset = agy's own default). |
522
547
  | `ANTIGRAVITY_HOME` | `~/.gemini/antigravity-cli` | Antigravity home directory containing session brain storage. |
548
+ | `GROK_BIN` | `grok` | The Grok CLI binary to spawn. |
549
+ | `GROK_MODEL` | grok default | Model passed to Grok as `--model` (unset = grok's own default). |
550
+ | `GROK_HOME` | `~/.grok` | Grok home directory containing its per-directory session store. |
523
551
  | `MULMOTERMINAL_HOME` | `~/.mulmoterminal` | Root for managed **git worktrees**. |
524
552
  | `CLAUDE_CONFIG_DIR` | `~` | Claude Code's own config directory. `.claude.json` lives **inside** it, so relocating your Claude Code config moves that file too — MulmoTerminal reads it to tell whether the per-project GUI MCP server is registered (`server/infra/gui-mcp-registration.ts`). Leave it unset and `~/.claude.json` is used. |
525
553
  | `MULMOCLAUDE_WORKSPACE_PATH` | `~/mulmoclaude` | Where the managed MulmoClaude workspace lives. MulmoTerminal seeds presets/helps **only** into this directory, so launching in an arbitrary project never writes them there (`server/backends/workspaceSetup.ts`). Set it to the same value MulmoClaude uses. |
@@ -543,7 +571,7 @@ The Settings modal (⚙) persists per-user UI choices to `~/.mulmoterminal/confi
543
571
 
544
572
  ![The Settings modal — theme, notification sound, PR repos, launch commands, and MCP servers](https://raw.githubusercontent.com/receptron/mulmoterminal/main/docs/guide/images/settings.png)
545
573
 
546
- *Open it from the ⚙ button in the toolbar. Pick a **theme**, set the **terminal font size** and **scroll speed**, set a custom **attention sound**, list the repos the cross-repo **PRs & Issues** view should aggregate, add **launch commands** for grid cells, and register your own **MCP servers** — no need to hand-edit the config file. Note that **theme, font size and scroll speed are stored per browser** (they're display preferences, so a phone and a desktop keep their own); the rest live in `~/.mulmoterminal/config.json` and are shared by every client.*
574
+ *Open it from the ⚙ button in the toolbar. Pick a **theme**, set the **terminal font size**, **font** and **scroll speed**, set a custom **attention sound**, list the repos the cross-repo **PRs & Issues** view should aggregate, add **launch commands** for grid cells, register your own **MCP servers**, and turn on the switches for what this app writes on your behalf — **issue work comments**, the **PR clone footer**, the **closing summary**, the **decision digest**, the **dev worklog** — no need to hand-edit the config file. Four settings stay with their skill because a form would be the wrong tool for them (`keymap`, `themes`, `providers`, `buttons`/`chips`); Settings shows what each is doing now and launches that skill. Note that **theme, font size and scroll speed are stored per browser** (they're display preferences, so a phone and a desktop keep their own); the rest live in `~/.mulmoterminal/config.json` and are shared by every client.*
547
575
 
548
576
  | Field | Meaning |
549
577
  | ------------ | ------- |
@@ -552,24 +580,27 @@ The Settings modal (⚙) persists per-user UI choices to `~/.mulmoterminal/confi
552
580
  | `soundKinds` | Which moments beep — see [Notification sounds](#notification-sounds). Defaults to `["finished","waiting"]`; the other kinds are opt-in. |
553
581
  | `sounds` | Per-kind sound: `{ "waiting": "preset:coin" }`. A `preset:<id>` reference or an absolute path; a kind with no entry falls back to `soundFile`. |
554
582
  | `prRepos` | `owner/repo` entries whose open PRs/issues the cross-repo **PRs & Issues** view aggregates, using whichever CLI the host needs — your own `gh` or `glab` login, so no token is stored here. An entry may name its host — `gitlab.com/group/project` is read with `glab`, and work can be started on it, commented on and turned into a merge request. A host that is neither shows a row saying so. |
555
- | `gitlabHosts` | Hosts that run a **self-hosted GitLab**, e.g. `["gitlab.example.com"]`. Nothing in a URL says which forge a host runs, so declaring it is what lets `prRepos` entries on that host be read with `glab` — everything gitlab.com can do, it can do. Needs `glab auth login --hostname <host>`. config.json only (no Settings control), so a hand edit takes effect on the next server start. |
583
+ | `gitlabHosts` | Hosts that run a **self-hosted GitLab**, e.g. `["gitlab.example.com"]`. Nothing in a URL says which forge a host runs, so declaring it is what lets `prRepos` entries on that host be read with `glab` — everything gitlab.com can do, it can do. Needs `glab auth login --hostname <host>`. Editable in Settings → **GitHub and GitLab**; either way it takes effect on the next server start. |
556
584
  | `repoDirs` | `{ "owner/repo": "/abs/path" }` — which local clone work on a repo starts in, when you keep several side by side. Only the *choice* is stored; which clones exist is re-derived from `cwdPresets` on every read, and an entry that no longer names a clone of that repo is ignored. |
557
- | `launchers` | `{ label, command }` entries offered in a grid cell's launcher besides the agents — any interactive command. A plain shell needs no entry: the launch form's **Shell** toggle opens `$SHELL` unconfigured. |
585
+ | `launchers` | `{ label, command }` entries offered in a grid cell's launcher besides the agents — any interactive command. A plain shell needs no entry: the Agent Picker's **Shell** option opens `$SHELL` unconfigured. |
586
+ | `customAgents` | `{ id, label, agent, command }` entries offered in the **Agent Picker** — your own way of starting Claude Code (`ollama launch claude --model … --`, a wrapper script). Unlike a launcher, Claude Code's own argv is **appended** to `command`, so the cell is a real session: resume, cost, context, GUI tools. `agent` says which agent's arguments to append and is required (`"claude"` is the only value today); `command` must stop taking arguments where Claude Code's begin — hence the trailing `--` above. Up to 8. |
558
587
  | `quickCommands` | `{ label, text, agents? }` phrases the **phone** offers as chips on a session's terminal view. Tapping one puts `text` in the input box; it is not sent until you press send. `agents` (`"claude"` / `"codex"` / `"shell"`) scopes a chip to session kinds — omit it to offer the chip everywhere. Empty by default. |
559
- | `userMcpServers` | `{ id, url }` HTTP MCP servers merged into the `--mcp-config` of the Claude sessions that carry the full GUI MCP — a cell whose working directory is the **workspace**, and a session the server starts itself (the phone, a scheduled task) unless it asks for a grid cell's shape, as an issue's seed session does (`issueSpawnOptions`). A cell in a project directory loads its own MCP config instead. Takes effect on the next session. |
588
+ | `userMcpServers` | `{ id, url }` HTTP MCP servers merged into the `--mcp-config` of the **Claude** sessions that carry the full GUI MCP (codex is handed the GUI server alone, `codexGuiMcpServers`) — a cell whose working directory is the **workspace**, and a session the server starts itself (the phone, a scheduled task) unless it asks for a grid cell's shape, as an issue's seed session does (`issueSpawnOptions`). A cell in a project directory does not get this merge; the MCP config the user wrote is read either way. Takes effect on the next session. |
560
589
  | `buttons` | Header action buttons — see [Header buttons](#header-buttons). Omit to keep the defaults; set to replace them. |
561
- | `chips` | Header info chips (`dir` / `git` / `work` / `diff` / `ctx` / `usage` / `status` / `tools`, or custom text). Omit to keep the default set; `[]` hides all built-ins. `work` shows which PR / issue the cell is on (`#977 → #966`) and clears itself when the PR merges — see the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#work-chip). |
590
+ | `chips` | Header info chips (`dir` / `git` / `work` / `diff` / `ctx` / `usage` / `status` / `tools` / `env`, or custom text). `env` shows what this working tree was reserved by [`worktreeEnv`](#per-directory-settings-projectmulmoterminaljson) (`:3010`, clickable) and draws nothing where none is declared. Omit to keep the default set; `[]` hides all built-ins. `work` shows which PR / issue the cell is on (`#977 → #966`) and clears itself when the PR merges — see the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#work-chip). |
562
591
  | `pushEnabled` | `true` to send a **Web Push** to your registered devices. Off by default; only sends while the **RemoteHost** channel is connected (see below). The master switch — `pushKinds` picks which moments. |
563
592
  | `pushKinds` | Which moments push: `"finished"` (a turn ended, ✅) and/or `"waiting"` (the agent stopped to ask — a permission prompt or a question, ❓, **once per prompt**). Omit to keep both; `[]` for none. A kind added in a later version stays off until you tick it. |
564
- | `worklogEnabled` | `true` to run the built-in **dev worklog** batch (see below). Off by default (each run spawns an LLM session, so it costs tokens). |
565
- | `worklogIntervalHours` | Worklog cadence in hours (default `6`, clamped to `1`–`168`). |
566
- | `terminalSubmit` | Which bytes Claude reads as **submit** vs **newline**: `"cr"` (default — Enter submits, Shift+Enter makes a newline) or `"esc-cr"` (for a Claude Code rebound the other way). Applies to the keyboard **and** the phone remote-view submit, for **Claude sessions only** (shell/codex keep plain Enter). See the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#terminal-submit). |
567
- | `copyOnSelect` | `true` puts a **mouse selection on the clipboard the moment it settles**, with no key pressed (the PuTTY / iTerm2 behaviour). **Off by default** — it changes the clipboard when you may only have meant to highlight something. No Settings UI: edit the file and reload the tab. Composes with the `copy` keymap action rather than replacing it. Over plain `http://` the browser gives a page no clipboard access, so a fallback asks xterm to copy instead; see the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#copy-on-select). |
568
- | `decisionDigest` | Keep a **Markdown digest of the decisions this project's sessions asked for**, refreshed at startup and every few hours, so an agent can read what has already been decided before asking something similar. Written to `~/.mulmoterminal/decisions/<project>.md` (never into your repository) and served to agents by the bundled `mulmoterminal-decisions` skill. **Off by default** — it is a vision-stage idea, and it writes a file that would otherwise not exist. The digest holds dated facts, never inferred rules. |
569
- | `issueWorkComments` | Let a cell **comment on the issue it is working on**: **one comment**, posted when the work starts and then **edited** as the PR opens and merges (closing the issue if GitHub has not already), each milestone stamped in UTC. The comment names the working **directory** it happened in — the folder name only, never the path — so a reader can tell which clone, and two terminals do not start the same issue twice. It says it came from MulmoTerminal. CI is deliberately not reported: it is on the PR already, and it flaps. When it **cannot** write — no `gh`, not logged in, or a login without write access — the cell says so next to the work chip rather than doing nothing silently; the work is unaffected either way. **Off by default**; it writes to GitHub, often on somebody else's issue. Needs `gh` logged in **with write access**. See the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#issue-work-comments). |
570
- | `prWorkdirFooter` | Ends a PR body with `work in <clone>` — the directory name of the clone the work happened in, so a PR says which of several side-by-side checkouts produced it. Applies to **both** paths that open PRs here: **⧉ Open PR** appends it to the PR it creates, and every Claude session is told to end the bodies it writes with the same line (the name is resolved by the server, so a session inside a managed worktree still names the main checkout). **On by default**; set `false` to opt out — read per PR and per session spawn, so no restart is needed (there is no Settings control for it). Appending is idempotent: an existing PR never gets a second copy. |
571
- | `appendSystemPrompt` | Whether a spawned Claude session is asked to end a reply with a **closing summary** — what was asked, what was achieved, what was not (see [Closing summary](#closing-summary)). **On by default**; set `false` to opt out, and a directory's `.mulmoterminal.json` outranks this. Read per spawn, so no restart is needed (there is no Settings control for it), though a session already running keeps what it was launched with. `true` / `false` only. |
572
- | `fontFamily` | The **terminal font** every session renders in — a CSS font-family stack, e.g. `"'Cica', 'MS Gothic', monospace"`. No Settings UI: edit the file, then **restart** (this config is read once at startup). Unset uses the built-in stack (JetBrains Mono / Fira Code / Menlo / Consolas, then CJK faces for Japanese, Korean and Chinese). Unlike the per-browser font **size**, this is one value for the whole host — it names fonts, and which fonts exist is a property of the machine. A directory can override it. See the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#font-family). |
593
+ | `worklogEnabled` | `true` to run the built-in **dev worklog** batch (see below). Off by default (each run spawns an LLM session, so it costs tokens). Editable in Settings → **Sessions and background tasks**. |
594
+ | `worklogIntervalHours` | Worklog cadence in hours (default `6`, clamped to `1`–`168`). A stepper in the same Settings section covers the range. |
595
+ | `terminalSubmit` | Which bytes Claude reads as **submit** vs **newline**: `"cr"` (default — Enter submits, Shift+Enter makes a newline) or `"esc-cr"` (for a Claude Code rebound the other way). Applies to the keyboard **and** the phone remote-view submit, for **Claude sessions only** (shell/codex keep plain Enter). See the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#terminal-submit). Settings → **Terminal keys** offers both, worded as behaviour. |
596
+ | `copyOnSelect` | `true` puts a **mouse selection on the clipboard the moment it settles**, with no key pressed (the PuTTY / iTerm2 behaviour). **Off by default** — it changes the clipboard when you may only have meant to highlight something. There is a checkbox in Settings → **Terminal keys**, applied at once; a hand edit of the file needs a **server restart, then a tab reload** (the server reads this file once at startup, and the browser reads the value from it on load). Composes with the `copy` keymap action rather than replacing it. Over plain `http://` the browser gives a page no clipboard access, so a fallback asks xterm to copy instead; see the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#copy-on-select). |
597
+ | `decisionDigest` | Keep a **Markdown digest of the decisions this project's sessions asked for**, refreshed at startup and every few hours, so an agent can read what has already been decided before asking something similar. Written to `~/.mulmoterminal/decisions/<project>.md` (never into your repository) and served to agents by the bundled `mulmoterminal-decisions` skill. **Off by default** — it is a vision-stage idea, and it writes a file that would otherwise not exist. The digest holds dated facts, never inferred rules. Settings → **Sessions and background tasks** has the switch. |
598
+ | `issueWorkComments` | Let a cell **comment on the issue it is working on**: **one comment**, posted when the work starts and then **edited** as the PR opens and merges (closing the issue if the forge has not already), each milestone stamped in UTC. The comment names the working **directory** it happened in — the folder name only, never the path — so a reader can tell which clone, and two terminals do not start the same issue twice. It says it came from MulmoTerminal. CI is deliberately not reported: it is on the PR already, and it flaps. **Off by default**; it writes to the forge, often on somebody else's issue. Needs the matching CLI logged in — `gh` for GitHub, `glab` for gitlab.com and any host declared in `gitlabHosts`. See the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#issue-work-comments). Editable in Settings → **GitHub and GitLab**. |
599
+ | `prWorkdirFooter` | Ends a PR body with `work in <clone>` — the directory name of the clone the work happened in, so a PR says which of several side-by-side checkouts produced it. Applies to **both** paths that open PRs here: **⧉ Open PR** appends it to the PR it creates, and every Claude session is told to end the bodies it writes with the same line (the name is resolved by the server, so a session inside a managed worktree still names the main checkout). **On by default**; set `false` to opt out, from Settings → **GitHub and GitLab** or the file — read per PR and per session spawn, so no restart is needed, and a second MulmoTerminal beside this one sees the change too. Appending is idempotent: an existing PR never gets a second copy. |
600
+ | `appendSystemPrompt` | Whether a spawned Claude session is asked to end a reply with a **closing summary** — what was asked, what was achieved, what was not (see [Closing summary](#closing-summary)). **On by default**; set `false` to opt out, and a directory's `.mulmoterminal.json` outranks this. Settings → **Sessions and background tasks** has the switch. Read per spawn, so no restart is needed, though a session already running keeps what it was launched with. `true` / `false` only. |
601
+ | `autoDirIcon` | Whether a project that sets no `icon` shows the favicon its repository already ships (`public/favicon.svg`, `apple-touch-icon.png`, a web manifest — first hit wins, ordered by how the image survives at 14px). **On by default**; Settings → **Directory appearance** has the switch. A single project opts out with `"icon": false` in its own `.mulmoterminal.json`, which this does not override. A key that was written and got it wrong shows nothing rather than falling back — a broken setting has to look broken. `true` / `false` only. |
602
+ | `cockpitLines` | `{ summary, prompt, response }` — how many lines each **cockpit-roster** row shows before it clamps (default `2` / `2` / `3`, each clamped to `1`–`20`). Raising them trades how many sessions fit on screen for reading a long one in place. Three steppers in Settings → **Waiting rows**. |
603
+ | `fontFamily` | The **terminal font** every session renders in — a CSS font-family stack, e.g. `"'Cica', 'MS Gothic', monospace"`. Set it in Settings → **Terminal font**, applied at once; editing the file instead needs a **restart** (this config is read once at startup). Unset uses the built-in stack (JetBrains Mono / Fira Code / Menlo / Consolas, then CJK faces for Japanese, Korean and Chinese). Unlike the per-browser font **size**, this is one value for the whole host — it names fonts, and which fonts exist is a property of the machine. A directory can override it. See the [Configuration guide](https://receptron.github.io/mulmoterminal/guide/en/config.html#font-family). |
573
604
 
574
605
  Every MulmoTerminal on the machine shares this one file, so an older build could save over a key a
575
606
  newer one wrote. It doesn't: a **top-level key this version doesn't recognise is written back
@@ -681,6 +712,7 @@ malformed file is ignored.
681
712
  ```jsonc
682
713
  {
683
714
  "name": "PROD · payments", // badge shown on this directory's terminals
715
+ "icon": "docs/logo.png", // image on this dir's cells (path here, URL, or data:); omit to use the repo's favicon
684
716
  "badgeColor": "#cf222e", // badge color (hex #rrggbb)
685
717
  "headerColor": "#190a23", // cell header background (hex #rrggbb)
686
718
  "headerTextColor": "#ffffff", // cell header text color (hex #rrggbb)
@@ -695,10 +727,46 @@ malformed file is ignored.
695
727
  "orderPriority": 10, // rank in the grid's "priority" order and the launcher chips (lowest first)
696
728
  "sound": "./.mulmoterminal/alert.mp3", // attention sound, RELATIVE to this directory
697
729
  "sounds": { "command-failed": "preset:gong" }, // per-notification-kind override
698
- "appendSystemPrompt": false // no closing summary here; omit to follow the global setting
730
+ "appendSystemPrompt": false, // no closing summary here; omit to follow the global setting
731
+ "worktreeEnv": { // a port / database name of its own per git worktree
732
+ "PORT": { "kind": "port", "base": 3000 },
733
+ "DB_NAME": { "kind": "slug", "prefix": "myapp_" }
734
+ }
699
735
  }
700
736
  ```
701
737
 
738
+ **Already have a `repo.json`?** MulmoTerminal reads it. It is an
739
+ [open repository-metadata format](https://receptron.github.io/mulmoterminal/repo-json.html) — one
740
+ small file any tool can read — and a project that ships one gets a coloured, named, icon-bearing
741
+ cell without knowing this app exists:
742
+
743
+ ```json
744
+ { "name": "diffusion-lab", "icon": "docs/logo.png", "color": "#7c3aed" }
745
+ ```
746
+
747
+ One colour becomes all seven: the header is it exactly, the badge/border/dot/button/body are
748
+ derived from its hue, and the header text is derived for contrast. Anything this app understands
749
+ but the open format doesn't goes under `extensions.mulmoterminal`.
750
+
751
+ The three files layer, general to specific — **`repo.json` → `.mulmoterminal.json` →
752
+ `.mulmoterminal.local.json`** — replacing whatever keys the one below it set.
753
+
754
+ **Several clones of one repository?** Drop a `.mulmoterminal.local.json` beside it. It is read
755
+ after `.mulmoterminal.json` and **replaces whatever keys it names**, so the shared file holds what
756
+ the project is — name, theme, a colour — and each checkout's local file holds only what makes it
757
+ recognisable:
758
+
759
+ ```jsonc
760
+ // .mulmoterminal.json — the project. Complete on its own, so one clone needs nothing else.
761
+ { "name": "acme-web", "theme": "nord", "badgeColor": "#1b3479", "headerColor": "#2d4ea9", "orderPriority": 30 }
762
+
763
+ // .mulmoterminal.local.json — this checkout only. Gitignore it.
764
+ { "badgeColor": "#27b4a8", "headerColor": "#4ed0c5", "orderPriority": 65 }
765
+ ```
766
+
767
+ Whole keys, not a deep merge: a `colors` block in the local file replaces the shared one entirely.
768
+ Settings → Directory settings names both files and lists which keys the local one took over.
769
+
702
770
  ![Four projects color-coded in the grid, each in its own palette](https://raw.githubusercontent.com/receptron/mulmoterminal/main/docs/guide/images/grid-colors.png)
703
771
 
704
772
  *As cells pile up it gets hard to tell which project is which. Give each repo a **name badge** and its own colors in `.mulmoterminal.json` and they're unmistakable — `headerColor`/`badgeColor` tint the frame, while `colors` reaches all the way into the **terminal's own background and text**. (The example above dresses four repos in Mondrian / van Gogh / Picasso / Matisse palettes.)*
@@ -706,6 +774,7 @@ malformed file is ignored.
706
774
  | Field | Meaning |
707
775
  | ------------ | ------- |
708
776
  | `name` | Label shown as a badge in the terminal/cell header. |
777
+ | `icon` | An **image** marking this directory — shown in the cell header, the cockpit roster, the filmstrip thumbnails and the launcher's directory chips. Either a path **relative to this directory** (an absolute path, or a `../` that escapes it, is rejected), an `http(s)://` URL, or a `data:image/…` URI. PNG / JPEG / **GIF (animated plays)** / WebP / AVIF / SVG / ICO / BMP. Not to be confused with a header **button's** `icon`, which is a Material Symbols name. **Omit it and the repository's own favicon is used** (`public/favicon.svg`, `apple-touch-icon.png`, a web manifest — see `autoDirIcon`); `false` means no icon here and stops that search. |
709
778
  | `badgeColor` | Badge background color (`#rrggbb`); text auto-contrasts. |
710
779
  | `headerColor` | Header **background** color (`#rrggbb`) — the grid cell's header row and the terminal's own header row (grid row 2). While a terminal is working/blocked the status tint still shows; the custom color applies when idle. |
711
780
  | `headerTextColor` | Header **text** color (`#rrggbb`) — the dir path, title, and prompt. |
@@ -716,11 +785,12 @@ malformed file is ignored.
716
785
  | `theme` | xterm palette for terminals in this directory (one of the built-in theme ids). |
717
786
  | `colors` | Per-key xterm palette overrides applied on top of `theme` (or the app theme when `theme` is unset). Keys are xterm `ITheme` names (`background`, `foreground`, `cursor`, `selectionBackground`, the 16 ANSI colors, …); values are hex (`#rgb` / `#rrggbb` / `#rrggbbaa`). Unknown keys / bad values are dropped. |
718
787
  | `fontSize` | Terminal font size in px for this directory (8–32), overriding the Settings value. A size outside the range is clamped; a non-number is ignored. Changing it re-fits the terminal, so the PTY learns the new width — unlike browser zoom, which leaves the two disagreeing. |
719
- | `orderPriority` | This directory's rank in the grid's **priority** ordering — the third mode on the toolbar's ordering button, next to auto (attention-first) and manual (the move buttons). Any integer, **lowest first**; negatives are allowed. Directories that set nothing sort last, keeping their existing order, so adding the key to one project doesn't shuffle the rest. The grid reads it in **priority** mode only; the launcher's directory chips sort by it, so a project sits in the same place on both. The one exception is the **workspace** chip, which always leads the launcher's row regardless of any rank — it is not one of the directories being ranked against each other, and it is the one place every GUI tool is reachable (see [MCP server ids](#mcp-server-ids-why-a-workspace-cell-and-a-project-cell-disagree)). |
788
+ | `orderPriority` | This directory's rank in the grid's **priority** ordering — the third mode on the toolbar's ordering button, next to auto (attention-first) and manual (the move buttons). Any integer, **lowest first**; negatives are allowed. Directories that set nothing sort last, keeping their existing order, so adding the key to one project doesn't shuffle the rest. The grid reads it in **priority** mode only; the launcher's directory chips sort by it, so a project sits in the same place on both. The one exception is the **workspace** chip, which always leads the launcher's row regardless of any rank — it is not one of the directories being ranked against each other, and it is the one place a claude or codex session reaches every GUI tool without registering anything (agy and grok get what the directory registered wherever they run — see [MCP server ids](#mcp-server-ids-why-a-workspace-cell-and-a-project-cell-disagree)). |
720
789
  | `fontFamily` | CSS font-family stack for this directory's terminals, overriding the global `fontFamily`. Use the names as your OS lists them (`"'Cica', 'MS Gothic', monospace"`). An unusable stack is ignored whole rather than half-applied; `monospace` is appended if you name no generic family. Prefer fonts whose fullwidth glyphs are exactly twice the Latin width, or box-drawing frames tear. |
721
790
  | `sound` | Attention sound for this directory's sessions, a path **relative to the directory** (served at `GET /api/dir-sound`). The fallback for every kind. |
722
791
  | `sounds` | Per-kind override of `sound`: `{ "command-failed": "preset:gong" }`. Each value is a `preset:<id>` or a directory-relative path, under the same confinement. |
723
792
  | `appendSystemPrompt` | Whether this directory's Claude sessions are asked to end a reply with a **closing summary** (see [Closing summary](#closing-summary)). Omit to follow the global `appendSystemPrompt`, which is on; `true` / `false` here outranks it. Read per spawn, so a new session in this directory picks up an edit without a restart. |
793
+ | `worktreeEnv` | Values every working tree of this project needs its **own** of — the port its dev server binds, the database its migrations touch. A worktree isolates files, not ports: two trees running `yarn dev` both reach for 3000 and the second one dies. Each variable is `{ "kind": "port", "base": <1024–65215> }` (a free port, `base` + a multiple of 10 — the checkout keeps `base`, its worktrees take the numbers above it) or `{ "kind": "slug", "prefix": "…" }` (a `[a-z0-9_]` name from the tree's task name, ≤ 63 chars, for a database / schema / container). Up to 16, under whatever names the project reads (`PORT`, `VITE_PORT`, …). A value is **reserved once and kept** (`~/.mulmoterminal/worktree-env.jsonl`) for as long as its declaration is unchanged, so a running dev server's port never moves under it; editing `base` re-allocates, renaming or dropping a variable releases what it held, and removing the worktree releases all of them. Set on every terminal in the directory — agent cell, Shell, launcher, Run command — and shown on the header's `env` chip, where a port is a link to `http://localhost:<port>`. MulmoTerminal hands out the name; creating the database is the project's own job. |
724
794
  | `addDirs` | Extra directories this project's Claude sessions may read and edit — the terminal-side equivalent of opening several folders in one VS Code workspace, via Claude Code's `--add-dir`. Relative entries resolve against **this file's directory** (`"../shared-lib"`), a path that doesn't exist is dropped, max 16. Claude only: codex has no equivalent flag and ignores the key. |
725
795
 
726
796
  **Security.** `sound` and every `sounds` entry are directory-relative paths only — absolute
@@ -778,7 +848,9 @@ An empty grid cell's launcher sets the **Working directory** by typing, by a pre
778
848
  chip, or with the **📁 folder button** (a native OS folder dialog). The preset chips are
779
849
  the directories you have launched in; the **workspace** leads them always, labelled
780
850
  **WORKSPACE** and marked with an icon, whether or not you have ever launched there — it is
781
- the one directory where a session reaches every GUI tool, so it is never a click you can
851
+ the one directory where a claude or codex session reaches every GUI tool (agy and grok get
852
+ what the directory registered, there as anywhere — see
853
+ [MCP server ids](#mcp-server-ids-why-a-workspace-cell-and-a-project-cell-disagree)), so it is never a click you can
782
854
  lose. It has no remove button for the same reason. It is named for its role rather than its
783
855
  folder, because the folder name (`~/mulmoclaude` by default, or wherever `CLAUDE_CWD`
784
856
  points) says the least interesting true thing about it; the real path is on its hover.
@@ -786,7 +858,12 @@ points) says the least interesting true thing about it; the real path is on its
786
858
  **The launcher is shorter in the workspace**, because two of its choices do not apply
787
859
  there. The per-directory **Canvas switches** are replaced by a line saying every GUI tool
788
860
  is already available — a session there is handed the whole GUI MCP at spawn, so a switch
789
- would register a group URL that then has nothing left to serve. And the **worktree**
861
+ would register a group URL that then has nothing left to serve. **With Antigravity or Grok
862
+ picked they stay**, in the workspace as everywhere else: neither is handed anything at spawn
863
+ and both read their servers from the directory's file, so the switches are their only route
864
+ to a GUI tool and hiding them would leave the session with none (see
865
+ [MCP server ids](#mcp-server-ids-why-a-workspace-cell-and-a-project-cell-disagree)).
866
+ And the **worktree**
790
867
  section is hidden: a worktree isolates work on one codebase onto a branch, while the
791
868
  workspace is what a session works *from* (the shared wiki, collections and accounting
792
869
  live there), which is precisely what a detached branch would cut it off from. Both come
@@ -803,7 +880,7 @@ different projects' scripts.
803
880
  The same launcher also has an **or launch** row for your configured **launch commands**
804
881
  — any interactive command — set in Settings (⚙) → **Launch commands** as
805
882
  `{ label, command }` (e.g. `htop` → `htop`, `Codex` → `codex`). A plain shell needs no
806
- entry here: the launch form's **Shell** toggle already opens `$SHELL`. Unlike
883
+ entry here: the Agent Picker's **Shell** option already opens `$SHELL`. Unlike
807
884
  a one-shot script, a launcher runs as a **persistent terminal in the cell's directory**:
808
885
  it survives grid page switches and reconnects, and its dot shows running vs. exited (it
809
886
  has no Claude hooks, so no blocked/done states).
@@ -946,16 +1023,20 @@ separate working tree that shares the repo's `.git`, so several agents can work
946
1023
  repo without colliding. Worktrees live under `~/.mulmoterminal/worktrees/` (override with
947
1024
  `MULMOTERMINAL_HOME`), and existing ones are listed below the field.
948
1025
 
949
- **A worktree inherits the project's settings.** `.mulmoterminal.json` is normally gitignored,
950
- so a fresh worktree used to have none — no colours, no name, no model, no grid rank. It is now
951
- given its own copy derived from the project's: `name` / `theme` / `colors` / `fontSize` /
952
- `fontFamily` / `provider` / `model` as written, the seven chrome colours **rotated 12 degrees
953
- further around the hue wheel per worktree** (so a project's trees read as a gradient; a grey like
954
- `#ffffff` has no hue to move and stays put), and `orderPriority` at the project's rank **+ 1**, so
955
- the worktree sorts directly after it. `sound` / `sounds` / `addDirs` are not carried — they name
956
- paths inside the project directory. Written only where git would **ignore** it: an untracked file
957
- in a worktree's `git status` would make it count as dirty, and a dirty worktree is one
958
- MulmoTerminal refuses to remove. An existing config in the worktree is never overwritten.
1026
+ **A worktree inherits the project's settings.** A fresh worktree used to have none — no colours,
1027
+ no name, no model, no grid rank. It is now given its own copy derived from the project's, written
1028
+ to **`.mulmoterminal.local.json`** so it layers over whatever the repository committed: `name` /
1029
+ `theme` / `colors` / `fontSize` / `fontFamily` / `provider` / `model` / `worktreeEnv` as written
1030
+ (the last is a declaration rather than a value — the worktree resolves its own values from it), the
1031
+ seven chrome colours **rotated 12 degrees further around the hue wheel per worktree** (so a
1032
+ project's trees read as a gradient; a grey like `#ffffff` has no hue to move and stays put), and
1033
+ `orderPriority` at the project's rank **+ 1**, so the worktree sorts directly after it. `sound` /
1034
+ `sounds` / `addDirs` are not carried — they name paths inside the project directory. Written only
1035
+ where git would **ignore what it writes**: an untracked file in a worktree's `git status` would
1036
+ make it count as dirty, and a dirty worktree is one MulmoTerminal refuses to remove. The local
1037
+ override is preferred; a repo that ignores `.mulmoterminal.json` instead (the setup this feature
1038
+ shipped with) still gets its colours there. A committed shared config is never written to. A local
1039
+ file the worktree already has is never overwritten.
959
1040
 
960
1041
  **One worktree, one session.** A worktree is tied to a branch, so it is never started
961
1042
  twice: a listed row **resumes** that worktree's session when it has one, and **starts** one
@@ -965,10 +1046,13 @@ the same worktree reached by pasting its path into **WORKING DIRECTORY**, or by
965
1046
  chip, will not launch either — and the **server** refuses the spawn whichever client asks,
966
1047
  so a path spelled another way (a trailing slash, a symlink) does not slip past.
967
1048
 
968
- What the limit covers is an **agent**: Claude, Codex or Antigravity, including an **OR
1049
+ What the limit covers is an **agent**: Claude, Codex, Antigravity or Grok, including an **OR
969
1050
  LAUNCH** command that runs one of them. A **Shell**, and a launcher that runs anything else
970
1051
  (`yarn dev`, `lazygit`, `htop`), stays free — a worktree an agent is working in is exactly
971
- where you want those.
1052
+ where you want those. A project that declares `worktreeEnv` also gets **its own value per
1053
+ worktree** for each variable it declares there — so two dev servers given a port of their own do
1054
+ not both reach for 3000 (see
1055
+ [`worktreeEnv`](https://receptron.github.io/mulmoterminal/guide/en/config.html#worktree-env)).
972
1056
 
973
1057
  The same holds for **OR RESUME HERE**: a session someone is holding is listed with `● open`
974
1058
  and refused, where before it could be confirmed away — which detached whoever had it.
@@ -998,7 +1082,7 @@ Typing a task name yourself keeps the local base it has always used, with no fet
998
1082
 
999
1083
  ![An empty cell's launch form — choose the agent, working directory, or a worktree](https://raw.githubusercontent.com/receptron/mulmoterminal/main/docs/guide/images/grid-launch-form.png)
1000
1084
 
1001
- *Every empty grid cell shows this launch form: toggle **Claude / Codex / Antigravity / Shell**, type a **working directory** (frequent ones autocomplete from your presets), or — in a git repo — name a task under **OR ISOLATE IN A WORKTREE** and hit **+ New worktree** to start the agent on its own isolated branch. **Shell** runs your OS default shell there instead of an agent; **OR LAUNCH** runs one of your configured launch commands.*
1085
+ *Every empty grid cell shows this launch form: pick an agent in the **Agent Picker** (**Claude / Codex / Antigravity / Grok / Shell**), type a **working directory** (frequent ones autocomplete from your presets), or — in a git repo — name a task under **OR ISOLATE IN A WORKTREE** and hit **+ New worktree** to start the agent on its own isolated branch. **Shell** runs your OS default shell there instead of an agent; **OR LAUNCH** runs one of your configured launch commands.*
1002
1086
 
1003
1087
  A worktree cell's header carries a **diff badge** (`+<commits> ●<dirty>`); click it for a
1004
1088
  **Changes vs `<base>`** panel (file list + patch) with actions:
@@ -1106,27 +1190,44 @@ Which route a session takes is decided by `carriesFullGuiMcp()` in
1106
1190
  `server/session/mcp-config.ts` — the single view, a cell-less chat, or anything whose cwd **is**
1107
1191
  the workspace take the first; anything in a project directory takes the second.
1108
1192
 
1109
- **The workspace is agent-agnostic, and so is the way you start a terminal there.** All three
1110
- agents and the launcher chips ask the same predicate, so two terminals in the workspace reach
1111
- the same tools no matter how they were started:
1193
+ **The workspace is agent-agnostic for the agents that can RECEIVE a per-spawn config** — claude and
1194
+ codex ask the same predicate, so two terminals in the workspace reach the same tools no matter which
1195
+ of the two started them. **Antigravity and Grok cannot, and that is the exception you will meet
1196
+ first:**
1112
1197
 
1113
1198
  | Started as | In the workspace | In a project directory |
1114
1199
  |---|---|---|
1115
1200
  | claude cell (including `?gui=0`) | `mt`, every tool | the directory's registered groups |
1116
1201
  | codex cell | `mt`, every tool | the directory's registered groups |
1117
- | launcher chip running `claude` | `mt`, every tool — flags inserted into the command line | nothing injected; its own `.mcp.json` loads |
1118
- | launcher chip running `codex` | `mt`, every tool — `-c` overrides inserted | the directory's registered groups |
1119
- | launcher chip running anything else | untouched | untouched |
1120
-
1121
- A chip is a command line the user wrote, so the injection is a **rewrite of their text** and is
1122
- deliberately narrow: only a bare `claude` or `codex` is recognised, and anything else — a wrapper
1123
- script, `FOO=1 claude` — is passed through unchanged.
1124
-
1125
- A `claude` chip in the workspace is handed the all-tools URL, same as the cell, and like the cell it
1126
- **does not** isolate the session: your own MCP servers and claude.ai connectors load as usual. Where
1127
- a directory also registered per-group URLs in its `.mcp.json`, those groups stand down for that
1128
- session rather than serving a second copy of the same tools — the session already reaches all of
1129
- them under `mt`.
1202
+ | antigravity cell | **the directory's registered groups** — nothing registered means **no GUI tools at all** | the directory's registered groups |
1203
+ | grok cell | **the directory's registered groups** — nothing registered means **no GUI tools at all** | the directory's registered groups |
1204
+ | any launcher chip | untouched | untouched |
1205
+
1206
+ Neither takes an MCP flag: `agy` reads `.agents/mcp_config.json` and `grok` reads `.grok/config.toml`
1207
+ in the working directory, and a file shared by every session in a directory cannot be handed to one
1208
+ session and not another — so there is nothing for "this cwd is the workspace" to change. The
1209
+ membership is `FULL_GUI_MCP_AGENTS` in `common/guiMcpAgents.ts`, in `common/` precisely so the
1210
+ launcher form and the spawn cannot disagree about it
1211
+ ([#1423](https://github.com/receptron/mulmoterminal/issues/1423)).
1212
+
1213
+ The consequence is easy to hit and hard to guess: `presentDocument` works in a project you once
1214
+ flipped **Canvas** on for, and is missing in the workspace where everything else is automatic. Fix it
1215
+ the same way anywhere — pick **Antigravity** or **Grok**, point WORKING DIRECTORY at that directory,
1216
+ flip the **Canvas** switch (it stays visible for both), and start a **new** session; the switch
1217
+ registers the directory, never a session already running. Full procedure:
1218
+ [Antigravity and Grok register everywhere](https://receptron.github.io/mulmoterminal/guide/en/basics.html#antigravity-gui-tools)
1219
+ · [日本語](https://receptron.github.io/mulmoterminal/guide/ja/basics.html#antigravity-gui-tools).
1220
+
1221
+ **A launcher chip is not an agent session — it is a command.** Whatever the command line names,
1222
+ it runs exactly as written: nothing is inserted, and no GUI MCP is attached. A chip running
1223
+ `claude` therefore reads only its directory's own `.mcp.json`, and a chip running `codex` has no
1224
+ Canvas. If you want a chip to reach the GUI tools, put the flags in the command yourself.
1225
+
1226
+ Earlier releases did rewrite a `claude` or `codex` chip to match the cell beside it. That was
1227
+ removed: a chip that silently runs something other than what it says is indistinguishable from
1228
+ the Agent Picker, which is the confusion the two controls exist on either side of. Use the Agent
1229
+ Picker for an agent session — it is also the only one of the two that gives you a resumable
1230
+ transcript, cost and context, and a "waiting for you" status.
1130
1231
 
1131
1232
  **The asymmetry is deliberate.** `mt` is ours to name: nothing on disk holds it, it is
1132
1233
  regenerated on every spawn, so it was shortened to stop paying 17 characters per tool name. The
@@ -1266,7 +1367,7 @@ quietly answering about the **default workspace** (#1151):
1266
1367
 
1267
1368
  | Where | What happens |
1268
1369
  | --- | --- |
1269
- | `/ws`, `/ws/codex`, `/ws/antigravity`, `/ws/launch`, `/ws/run` | The socket is closed with `{ type: "error", message }`, which the terminal shows as a red banner and does not retry. |
1370
+ | `/ws`, `/ws/codex`, `/ws/antigravity`, `/ws/grok`, `/ws/launch`, `/ws/run` | The socket is closed with `{ type: "error", message }`, which the terminal shows as a red banner and does not retry. |
1270
1371
  | A session that is still running (`?session=` names a live PTY or a surviving tmux session) | **Attaches anyway**, with a warning in the server log. Moving or renaming a directory must not shut you out of an agent that is still working in it — and the cwd reported back comes from the running PTY, not from the request. |
1271
1372
  | `GET /api/scripts`, `/api/skills`, `/api/dir-config`, `/api/dir-sound`, `/api/git-status`, `/api/pr-phase`, `/api/header`, `/api/sessions`, `/api/codex/sessions`, `/api/antigravity/sessions`, `/api/session/:id`, `/api/transcript/*`, `/api/cost` | `404 { error, cwd }` — a directory that is not there. |
1272
1373
  | A `?cwd=` that cannot name a directory at all (relative, or repeated as `?cwd=a&cwd=b`) | `400 { error, cwd }`. |
@@ -1767,16 +1868,15 @@ server/
1767
1868
  -header, -keys, -model, -notify, -bug-report, -decisions
1768
1869
  fix-pty-perms.js postinstall: fixes node-pty binary permissions
1769
1870
  src/
1770
- App.vue Layout; owns the active session + single/grid view
1871
+ App.vue Layout; owns the grid, the overlays and the tab favicon
1771
1872
  router/ Vue Router routes (/, /terminals, /collections,
1772
1873
  /accounting, /prs, /files, /wiki, …)
1773
1874
  components/
1774
- Sidebar.vue, SessionTabBar.vue session list + tab bar (pub/sub driven)
1775
1875
  Terminal.vue xterm.js terminal; /ws, /ws/codex, /ws/run
1776
1876
  AppToolbar.vue shared header + toolbar buttons
1777
1877
  GridView.vue, TerminalGrid.vue, TerminalCell.vue, CommandCell.vue, LauncherCell.vue
1778
- CellLaunchForm.vue what an EMPTY cell shows: dir + target + resume /
1779
- scripts / worktrees / tool groups
1878
+ CellLaunchForm.vue what an EMPTY cell shows: Agent Picker + dir +
1879
+ resume / scripts / worktrees / tool groups
1780
1880
  GuiPanel.vue, PluginFrame.vue GUI panel (Canvas) + Shadow-DOM plugin host
1781
1881
  FilesOverlay.vue file browser + CodeMirror editor
1782
1882
  GitBranchChip.vue, ModelContextBadge.vue header chips / badges
@@ -0,0 +1,121 @@
1
+ // One brand colour to the seven chrome colours a cell is painted with (#1442).
2
+ //
3
+ // `repo.json` gives a project one colour; MulmoTerminal paints seven. Rather than ask a repository
4
+ // to describe this app's chrome, the other six are derived — and the derivation is measured, not
5
+ // invented. Against eleven hand-tuned palettes in this author's own projects, deriving from
6
+ // `primary` alone lands within ΔE76 2.5, median 1.9. The median is under 2.3, the threshold where a
7
+ // colour difference becomes noticeable at all; the worst single role sits just above it. One
8
+ // derived value came out byte-identical to the hand-picked one.
9
+ //
10
+ // The measurement's real finding is that ONE rule does not fit every role:
11
+ //
12
+ // - the badge sits RELATIVE to the brand colour — a fixed darkening of whatever it is
13
+ // - the surfaces sit at ABSOLUTE lightness, the same pale values whatever the brand colour is
14
+ //
15
+ // Snapping every role to absolute values drifts by ΔE 20 at the dark end of the hue wheel; making
16
+ // every role a relative offset drifts by ΔE 15 at the pale end. Both were tried; this is the mix
17
+ // that fits. Anyone retuning these numbers should re-measure rather than reason about them.
18
+ import { readableTextColor } from "./contrast.js";
19
+
20
+ export interface ChromeColors {
21
+ badgeColor: string;
22
+ headerColor: string;
23
+ headerTextColor: string;
24
+ cellColor: string;
25
+ cellBorderColor: string;
26
+ dotColor: string;
27
+ buttonColor: string;
28
+ }
29
+
30
+ // Saturation/lightness offsets FROM the brand colour.
31
+ const BADGE_OFFSET = { s: 0.061, l: -0.129 };
32
+ // Absolute saturation/lightness, at the brand colour's hue.
33
+ const SURFACE = { s: 0.53, l: 0.96 };
34
+ const EDGE = { s: 0.6, l: 0.58 };
35
+ const BUTTON = { s: 0.67, l: 0.89 };
36
+
37
+ const clamp01 = (n: number): number => Math.min(1, Math.max(0, n));
38
+
39
+ /** The seven colours for a brand colour, or null when it isn't a colour we can read. */
40
+ export function chromeFromColor(primary: string, background?: string | null): ChromeColors | null {
41
+ const rgb = parseHex(primary);
42
+ if (!rgb) return null;
43
+ const [hue, saturation, lightness] = rgbToHsl(rgb);
44
+ // A grey has no hue to move, so tinting it would INVENT one — every derived role would come out
45
+ // red, since an achromatic colour reports hue 0. Keep an achromatic brand colour achromatic.
46
+ const achromatic = saturation === 0;
47
+ const at = (s: number, l: number): string => hslToHex(hue, achromatic ? 0 : clamp01(s), clamp01(l));
48
+ return {
49
+ badgeColor: at(saturation + BADGE_OFFSET.s, lightness + BADGE_OFFSET.l),
50
+ headerColor: normalizeHex(primary),
51
+ // Never taken from the file — see the spec's "text colour is never declared". Deriving it is
52
+ // also what makes two conforming tools agree.
53
+ headerTextColor: readableTextColor(rgb[0], rgb[1], rgb[2]) === "#000" ? "#1b2430" : "#ffffff",
54
+ // `background` is the surface the brand colour sits on, which is exactly what a cell body is.
55
+ // Gated on it PARSING, not on it being present: an unusable value here used to win the branch,
56
+ // survive as a non-colour, and then be dropped downstream — leaving no surface at all, neither
57
+ // the declared one nor the derived one (Codex on #1445). The spec says a consumer must be able
58
+ // to work from `primary` alone, and a role that didn't parse is a role that wasn't declared.
59
+ cellColor: (background && parseHex(background) && normalizeHex(background)) || at(SURFACE.s, SURFACE.l),
60
+ cellBorderColor: at(EDGE.s, EDGE.l),
61
+ dotColor: at(EDGE.s, EDGE.l),
62
+ buttonColor: at(BUTTON.s, BUTTON.l),
63
+ };
64
+ }
65
+
66
+ // `#rgb` and `#rrggbb` — the two forms the specification allows, and nothing else. Accepting more
67
+ // here would mean this app renders files another conforming tool would reject.
68
+ const HEX_RE = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;
69
+
70
+ export function parseHex(value: string): [number, number, number] | null {
71
+ const hex = value.trim();
72
+ if (!HEX_RE.test(hex)) return null;
73
+ const body = hex.slice(1);
74
+ const full = body.length === 3 ? [...body].map((c) => c + c).join("") : body;
75
+ const channel = (i: number): number => parseInt(full.slice(i, i + 2), 16);
76
+ return [channel(0), channel(2), channel(4)];
77
+ }
78
+
79
+ /** `#rgb` widened to `#rrggbb`, lowercased — the shape the rest of the config expects. */
80
+ export function normalizeHex(value: string): string {
81
+ const rgb = parseHex(value);
82
+ return rgb ? `#${rgb.map((c) => c.toString(16).padStart(2, "0")).join("")}` : value.trim().toLowerCase();
83
+ }
84
+
85
+ // Which sixth of the wheel the colour sits in, given which channel is the largest.
86
+ function hueSextant(rn: number, gn: number, bn: number, max: number, delta: number): number {
87
+ if (max === rn) return (gn - bn) / delta + (gn < bn ? 6 : 0);
88
+ if (max === gn) return (bn - rn) / delta + 2;
89
+ return (rn - gn) / delta + 4;
90
+ }
91
+
92
+ function rgbToHsl([r, g, b]: [number, number, number]): [number, number, number] {
93
+ const [rn, gn, bn] = [r / 255, g / 255, b / 255];
94
+ const max = Math.max(rn, gn, bn);
95
+ const min = Math.min(rn, gn, bn);
96
+ const lightness = (max + min) / 2;
97
+ if (max === min) return [0, 0, lightness];
98
+ const delta = max - min;
99
+ const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
100
+ return [hueSextant(rn, gn, bn, max, delta) / 6, saturation, lightness];
101
+ }
102
+
103
+ function hslToHex(h: number, s: number, l: number): string {
104
+ const channel = (t: number): number => {
105
+ const shifted = ((t % 1) + 1) % 1;
106
+ const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
107
+ const p = 2 * l - q;
108
+ if (shifted < 1 / 6) return p + (q - p) * 6 * shifted;
109
+ if (shifted < 1 / 2) return q;
110
+ if (shifted < 2 / 3) return p + (q - p) * (2 / 3 - shifted) * 6;
111
+ return p;
112
+ };
113
+ const rgb = s === 0 ? [l, l, l] : [channel(h + 1 / 3), channel(h), channel(h - 1 / 3)];
114
+ return `#${rgb
115
+ .map((c) =>
116
+ Math.round(c * 255)
117
+ .toString(16)
118
+ .padStart(2, "0"),
119
+ )
120
+ .join("")}`;
121
+ }