arco-workbench 0.1.8 → 0.2.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 (810) hide show
  1. package/CONTRIBUTING.md +25 -12
  2. package/README.md +12 -8
  3. package/client/dist/THIRD_PARTY_LICENSES.txt +3912 -0
  4. package/client/dist/assets/{PhosphorBackdrop-D7jdAV_G.js → PhosphorBackdrop-9jNRO1ZM.js} +1 -1
  5. package/client/dist/assets/{ThemedBackgroundShaderImpl-DrDm60h8.js → ThemedBackgroundShaderImpl-tUi3k54Y.js} +1 -1
  6. package/client/dist/assets/XtermView-B7BOSnVo.js +10 -0
  7. package/client/dist/assets/{galleryEditor-D951A2sE.js → galleryEditor-Ohc2h9cD.js} +1 -1
  8. package/client/dist/assets/index-CVJVD2Vn.css +1 -0
  9. package/client/dist/assets/index-ILGXWriO.js +638 -0
  10. package/client/dist/index.html +3 -3
  11. package/client/src/App.tsx +44 -9
  12. package/client/src/components/AskUserQuestionNotice.tsx +37 -10
  13. package/client/src/components/AttachmentPill.tsx +3 -2
  14. package/client/src/components/AuthReloginNotice.tsx +25 -6
  15. package/client/src/components/AutomaticMessage.tsx +3 -1
  16. package/client/src/components/CatchMeUp.tsx +4 -1
  17. package/client/src/components/ChatMessage.tsx +76 -13
  18. package/client/src/components/ChatModeView.tsx +21 -3
  19. package/client/src/components/ChatPanel.tsx +5 -0
  20. package/client/src/components/ClusterActivityTab.tsx +9 -3
  21. package/client/src/components/ClusterComposerButtons.tsx +5 -3
  22. package/client/src/components/ClusterPlanTab.tsx +55 -8
  23. package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +38 -99
  24. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +36 -12
  25. package/client/src/components/ClusterRightPanel/MailboxModal.tsx +61 -8
  26. package/client/src/components/ClusterRightPanel/MemberRow.tsx +46 -14
  27. package/client/src/components/ClusterRightPanel/PhoneMemberList.tsx +56 -0
  28. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +38 -9
  29. package/client/src/components/ClusterRightPanel/SkillsControl.tsx +30 -12
  30. package/client/src/components/ClusterRightPanel/index.tsx +188 -39
  31. package/client/src/components/ClusterRightPanel/memberSettings.ts +2 -2
  32. package/client/src/components/ClusterRightPanel/panels.ts +1 -0
  33. package/client/src/components/ClusterRightPanel/types.ts +5 -1
  34. package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +82 -0
  35. package/client/src/components/ClusterTab.tsx +76 -23
  36. package/client/src/components/ClusterTaskBoardTab.tsx +35 -6
  37. package/client/src/components/CodexLateCommand.tsx +34 -0
  38. package/client/src/components/Connections/Connections.tsx +5 -8
  39. package/client/src/components/Connections/model.ts +2 -2
  40. package/client/src/components/DialogShell.tsx +6 -0
  41. package/client/src/components/DirectorContinuePrompt.tsx +56 -0
  42. package/client/src/components/FileExplorer.tsx +54 -1
  43. package/client/src/components/FileViewerModal.tsx +39 -7
  44. package/client/src/components/FirstRun.tsx +3 -2
  45. package/client/src/components/ForwardMessages.tsx +6 -3
  46. package/client/src/components/GateApprovalNotice.tsx +7 -4
  47. package/client/src/components/GeminiSkillNotice.tsx +12 -0
  48. package/client/src/components/GeminiSubagentLine.tsx +5 -0
  49. package/client/src/components/GitDialog.tsx +15 -6
  50. package/client/src/components/GitOtherWork.tsx +2 -1
  51. package/client/src/components/HandoffDialog.tsx +3 -2
  52. package/client/src/components/HeaderVersionBox.tsx +6 -2
  53. package/client/src/components/HistoryTab.tsx +127 -108
  54. package/client/src/components/Home/HomeView.tsx +14 -3
  55. package/client/src/components/Home/ResearchLibrary.tsx +107 -0
  56. package/client/src/components/Home/home.css +6 -0
  57. package/client/src/components/LoginFlow.tsx +12 -5
  58. package/client/src/components/MemberCard.tsx +12 -3
  59. package/client/src/components/MemberPane.tsx +15 -5
  60. package/client/src/components/MobileNotices.tsx +26 -0
  61. package/client/src/components/MobileQuestionBar.tsx +35 -0
  62. package/client/src/components/MobileShell.tsx +811 -0
  63. package/client/src/components/MobileTextSize.tsx +27 -0
  64. package/client/src/components/NativeSubagentControls.tsx +12 -1
  65. package/client/src/components/NorthStarBar.tsx +2 -0
  66. package/client/src/components/NotificationToasts.tsx +6 -2
  67. package/client/src/components/OperatorQuestionNotice.tsx +2 -2
  68. package/client/src/components/PendingQuestionsButton.tsx +44 -5
  69. package/client/src/components/PhoneUpload.tsx +290 -0
  70. package/client/src/components/PlanComposerDialog.tsx +7 -7
  71. package/client/src/components/PrimaryStatus.tsx +14 -6
  72. package/client/src/components/ProjectsSettings.tsx +3 -0
  73. package/client/src/components/ProvidersPopover.tsx +9 -6
  74. package/client/src/components/PurgeConversationModal.tsx +1 -1
  75. package/client/src/components/QueuedMessagesIndicator.tsx +1 -1
  76. package/client/src/components/Recall/RecallView.tsx +31 -8
  77. package/client/src/components/ResearchFolderSetting.tsx +64 -0
  78. package/client/src/components/RightPanel/ActivityTab.tsx +9 -4
  79. package/client/src/components/RightPanel/BlastRadiusTab.tsx +6 -8
  80. package/client/src/components/RightPanel/ConfigTab.tsx +18 -10
  81. package/client/src/components/RightPanel/FilesTab.tsx +34 -19
  82. package/client/src/components/RightPanel/PlanTab.tsx +67 -24
  83. package/client/src/components/RightPanel/UsageTab.tsx +30 -3
  84. package/client/src/components/RightPanel/index.tsx +42 -3
  85. package/client/src/components/RuntimeStateBanner.tsx +13 -0
  86. package/client/src/components/ScratchCloseDialog.tsx +124 -0
  87. package/client/src/components/SettingsPanel.tsx +181 -69
  88. package/client/src/components/SkillActivityIndicator.tsx +93 -0
  89. package/client/src/components/SkillEditorDialog.tsx +2 -2
  90. package/client/src/components/SkillsSettings.tsx +17 -5
  91. package/client/src/components/SystemHeader.tsx +2 -7
  92. package/client/src/components/SystemModal.tsx +37 -45
  93. package/client/src/components/TabBar.tsx +52 -8
  94. package/client/src/components/TabContextMenu.tsx +12 -102
  95. package/client/src/components/TaskCard.tsx +13 -17
  96. package/client/src/components/TaskChildComposer.tsx +24 -0
  97. package/client/src/components/TasksPanel.tsx +7 -17
  98. package/client/src/components/Terminal/FloatingTerminalWindow.tsx +11 -3
  99. package/client/src/components/Terminal/FloatingWindow.tsx +36 -14
  100. package/client/src/components/Terminal/XtermView.tsx +19 -2
  101. package/client/src/components/Terminal/phoneKeys.ts +9 -0
  102. package/client/src/components/TerminalInput.tsx +151 -32
  103. package/client/src/components/TranscriptWorkerDialog.tsx +2 -2
  104. package/client/src/components/UpdateAction.tsx +9 -6
  105. package/client/src/components/UsageBar.tsx +118 -10
  106. package/client/src/components/UserManual/MobileManualContent.tsx +58 -0
  107. package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +8 -5
  108. package/client/src/components/WorkflowCreator/PastChatsList.tsx +3 -1
  109. package/client/src/components/WorkflowCreator/ProjectPicker.tsx +3 -3
  110. package/client/src/components/WorkflowCreator/ResearchStartForm.tsx +335 -0
  111. package/client/src/components/WorkflowCreator/index.tsx +124 -36
  112. package/client/src/components/WorkflowCreator/memberProviders.ts +20 -5
  113. package/client/src/components/WorkflowCreator/pendingTemplateApply.ts +20 -0
  114. package/client/src/components/WorkflowCreator/types.ts +18 -0
  115. package/client/src/components/WorkflowStatusChip.tsx +1 -0
  116. package/client/src/components/WorkflowView.tsx +53 -13
  117. package/client/src/components/chatMessageLabel.ts +4 -0
  118. package/client/src/components/clusterActivity.helpers.ts +5 -1
  119. package/client/src/components/clusterNeedsYou.ts +3 -8
  120. package/client/src/components/clusterSurface.helpers.ts +6 -1
  121. package/client/src/components/composer/submitComposer.ts +7 -1
  122. package/client/src/components/help/HelpBanner.tsx +10 -5
  123. package/client/src/components/help/HelpPopover.tsx +5 -0
  124. package/client/src/components/media/MediaModalHost.tsx +13 -8
  125. package/client/src/components/plans/PhonePlanView.tsx +66 -0
  126. package/client/src/components/plans/phonePlanChecklist.ts +45 -0
  127. package/client/src/components/providerIndicator.ts +83 -0
  128. package/client/src/components/research/AddResearcherSection.tsx +50 -0
  129. package/client/src/components/research/ExportResearchDialog.tsx +52 -0
  130. package/client/src/components/research/QuickResearchOverview.tsx +92 -0
  131. package/client/src/components/research/RerunResearchDialog.tsx +61 -0
  132. package/client/src/components/research/ResearchCloseDialog.tsx +98 -0
  133. package/client/src/components/research/ResearchRemoveDialog.tsx +37 -0
  134. package/client/src/components/research/ResearchReopenDialog.tsx +160 -0
  135. package/client/src/components/research/ResearchResultsTab.css +289 -0
  136. package/client/src/components/research/ResearchResultsTab.tsx +207 -0
  137. package/client/src/components/research/ResearchRoundsStrip.tsx +127 -0
  138. package/client/src/components/research/SavedQuickKeep.tsx +58 -0
  139. package/client/src/components/research/SendResearchDialog.tsx +126 -0
  140. package/client/src/components/research/StartResearchProjectDialog.tsx +108 -0
  141. package/client/src/components/research/researchExports.ts +26 -0
  142. package/client/src/components/research/researchLinks.tsx +30 -0
  143. package/client/src/components/research/researchView.ts +64 -0
  144. package/client/src/components/research/researcherRow.tsx +104 -0
  145. package/client/src/components/settings/AppVersionSection.tsx +2 -0
  146. package/client/src/components/settings/SettingsLayout.tsx +23 -4
  147. package/client/src/components/settings/navigation.ts +4 -4
  148. package/client/src/components/settings/settings.css +18 -0
  149. package/client/src/components/usageVisibility.ts +4 -6
  150. package/client/src/components/workSurface/WorkSurfaceControls.tsx +7 -0
  151. package/client/src/explorer/ArtifactsLens.tsx +37 -28
  152. package/client/src/explorer/ExplorerApp.tsx +5 -4
  153. package/client/src/explorer/StorageLens.tsx +10 -3
  154. package/client/src/explorer/types.ts +8 -3
  155. package/client/src/help/content/chat.tsx +5 -8
  156. package/client/src/help/content/cluster.tsx +79 -29
  157. package/client/src/help/content/composer.tsx +29 -7
  158. package/client/src/help/content/header.tsx +19 -25
  159. package/client/src/help/content/media.tsx +2 -2
  160. package/client/src/help/content/misc.tsx +175 -39
  161. package/client/src/help/content/recall.tsx +2 -2
  162. package/client/src/help/content/rightPanel.tsx +8 -8
  163. package/client/src/help/content/settings.tsx +48 -14
  164. package/client/src/help/content/tabbar.tsx +6 -2
  165. package/client/src/help/manualSections/actions.tsx +7 -2
  166. package/client/src/help/manualSections/chat.tsx +16 -15
  167. package/client/src/help/manualSections/clusters.tsx +351 -69
  168. package/client/src/help/manualSections/configuration.tsx +28 -19
  169. package/client/src/help/manualSections/deepseek.tsx +4 -5
  170. package/client/src/help/manualSections/gettingStarted.tsx +34 -30
  171. package/client/src/help/manualSections/maintenance.tsx +16 -11
  172. package/client/src/help/manualSections/plans.tsx +4 -4
  173. package/client/src/help/manualSections/powerFeatures.tsx +54 -20
  174. package/client/src/help/manualSections/providers.tsx +56 -21
  175. package/client/src/help/manualSections/reference.tsx +6 -6
  176. package/client/src/help/manualSections/strata.tsx +8 -8
  177. package/client/src/help/manualSections/workflows.tsx +3 -3
  178. package/client/src/help/manualSections/workspace.tsx +143 -37
  179. package/client/src/hooks/useWebSocket.ts +21 -4
  180. package/client/src/layout/PhoneBottomSheet.tsx +71 -0
  181. package/client/src/layout/PhonePage.tsx +71 -0
  182. package/client/src/layout/SlideOut.tsx +36 -9
  183. package/client/src/layout/layoutRange.ts +41 -4
  184. package/client/src/layout/phoneChip.ts +14 -0
  185. package/client/src/layout/phoneOverlay.ts +81 -0
  186. package/client/src/layout/phonePageActions.ts +40 -0
  187. package/client/src/stores/appStore.ts +43 -10
  188. package/client/src/stores/appStore.types.ts +33 -3
  189. package/client/src/stores/directorContinueStore.ts +22 -0
  190. package/client/src/stores/draftStore.ts +56 -2
  191. package/client/src/stores/phoneStore.ts +196 -0
  192. package/client/src/stores/terminalStore.ts +8 -0
  193. package/client/src/styles/contextual-help.css +10 -0
  194. package/client/src/styles/global.css +402 -0
  195. package/client/src/themes/apply.ts +9 -1
  196. package/client/src/themes/bootstrap.ts +21 -1
  197. package/client/src/themes/providerThemes.ts +1 -0
  198. package/client/src/utils/codexAccountHome.ts +9 -0
  199. package/client/src/utils/format.ts +8 -2
  200. package/client/src/utils/gitBranchMark.ts +3 -0
  201. package/client/src/utils/homeModel.ts +7 -0
  202. package/client/src/utils/longPress.ts +64 -0
  203. package/client/src/utils/modelCatalog.ts +4 -0
  204. package/client/src/utils/phoneTheme.ts +38 -0
  205. package/client/src/utils/phoneUploadApi.ts +10 -0
  206. package/client/src/utils/providerStatusCheck.ts +30 -0
  207. package/client/src/utils/startupGate.ts +6 -0
  208. package/client/src/ws/handleServerMessage.ts +129 -13
  209. package/docs/ARCHITECTURE.md +63 -37
  210. package/docs/ARCHITECTURE_REVIEW.md +1 -1
  211. package/docs/BACKUP.md +60 -9
  212. package/docs/CHAT.md +15 -11
  213. package/docs/CHECKPOINTS.md +2 -0
  214. package/docs/CLIENT.md +77 -37
  215. package/docs/DEEPSEEK.md +9 -10
  216. package/docs/DIAGNOSTICS.md +8 -7
  217. package/docs/DOCKER.md +16 -2
  218. package/docs/EXTENDING.md +10 -26
  219. package/docs/FEATURES.md +28 -17
  220. package/docs/GENESIS.md +3 -1
  221. package/docs/GETTING_STARTED.md +90 -19
  222. package/docs/GIT_WORKBENCH.md +5 -5
  223. package/docs/GLOSSARY.md +36 -23
  224. package/docs/GOTCHAS.md +102 -67
  225. package/docs/HTTP_API.md +182 -86
  226. package/docs/INDEX.md +2 -1
  227. package/docs/KNOWLEDGE.md +2 -2
  228. package/docs/LOCAL_SERVICES.md +9 -8
  229. package/docs/MCP_REGISTRY.md +18 -13
  230. package/docs/MEDIA_STUDIO.md +7 -11
  231. package/docs/OPERATIONS.md +300 -72
  232. package/docs/OPERATOR_ACTIONS.md +24 -22
  233. package/docs/PERSISTENCE.md +65 -24
  234. package/docs/PHOSPHOR_DEMO.md +1 -4
  235. package/docs/PLAN_OR_BOARD.md +2 -2
  236. package/docs/PRIMITIVES.md +17 -17
  237. package/docs/PROTOCOL.md +60 -9
  238. package/docs/PROTOCOL_CLUSTER.md +100 -22
  239. package/docs/PROTOCOL_PRIMITIVES.md +10 -4
  240. package/docs/PROVIDERS.md +324 -144
  241. package/docs/RECALL.md +40 -31
  242. package/docs/REMOTE_MANAGEMENT.md +27 -51
  243. package/docs/REPO_LAYOUT.md +4 -3
  244. package/docs/RESEARCH.md +189 -0
  245. package/docs/RESUME_INDEX.md +10 -19
  246. package/docs/SERVICE_MODE.md +11 -5
  247. package/docs/SETTINGS.md +22 -15
  248. package/docs/STORAGE_PLAN.md +3 -3
  249. package/docs/STRATA.md +14 -11
  250. package/docs/TASK_LEDGER.md +19 -8
  251. package/docs/TERMINAL.md +14 -10
  252. package/docs/THIRD_PARTY.md +21 -4
  253. package/docs/VOICE.md +16 -28
  254. package/native/darwin-arm64/manifest.json +1 -1
  255. package/native/linux-arm64/manifest.json +1 -1
  256. package/native/linux-x64/manifest.json +1 -1
  257. package/native/win32-x64/manifest.json +1 -1
  258. package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +1 -0
  259. package/node_modules/@arco/shared/dist/clusterCoordination.js +9 -1
  260. package/node_modules/@arco/shared/dist/clusterRolePresets.js +13 -4
  261. package/node_modules/@arco/shared/dist/index.d.ts +1 -0
  262. package/node_modules/@arco/shared/dist/index.js +1 -0
  263. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +7 -0
  264. package/node_modules/@arco/shared/dist/protocol/autoPickup.js +22 -11
  265. package/node_modules/@arco/shared/dist/protocol/chat.d.ts +2 -1
  266. package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
  267. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +18 -3
  268. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +179 -4
  269. package/node_modules/@arco/shared/dist/protocol/clusters.js +48 -2
  270. package/node_modules/@arco/shared/dist/protocol/handoffs.d.ts +1 -0
  271. package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
  272. package/node_modules/@arco/shared/dist/protocol/models.js +4 -3
  273. package/node_modules/@arco/shared/dist/protocol/providers.d.ts +3 -2
  274. package/node_modules/@arco/shared/dist/protocol/providers.js +1 -1
  275. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +39 -3
  276. package/node_modules/@arco/shared/dist/protocol/settings.d.ts +4 -0
  277. package/node_modules/@arco/shared/dist/protocol/settings.js +3 -1
  278. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +42 -0
  279. package/node_modules/@arco/shared/dist/protocol/tasks.js +17 -0
  280. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +5 -0
  281. package/node_modules/@arco/shared/dist/protocol/workflows.js +2 -0
  282. package/node_modules/@arco/shared/dist/researchActivity.d.ts +4 -0
  283. package/node_modules/@arco/shared/dist/researchActivity.js +29 -0
  284. package/node_modules/@arco/shared/package.json +1 -1
  285. package/package.json +3 -2
  286. package/scripts/packaging/services.mjs +19 -2
  287. package/scripts/packaging/update.mjs +9 -0
  288. package/server/dist/arcoHome.js +19 -3
  289. package/server/dist/auth.d.ts +4 -2
  290. package/server/dist/auth.js +42 -4
  291. package/server/dist/authLoginSession.d.ts +2 -1
  292. package/server/dist/authLoginSession.js +13 -3
  293. package/server/dist/capabilities.d.ts +2 -2
  294. package/server/dist/capabilities.js +11 -6
  295. package/server/dist/chatMode.d.ts +3 -0
  296. package/server/dist/chatMode.js +25 -2
  297. package/server/dist/checkedFile.d.ts +1 -1
  298. package/server/dist/checkedFile.js +48 -41
  299. package/server/dist/cliUpdateDecision.js +1 -1
  300. package/server/dist/clusterAutoTurn.d.ts +4 -1
  301. package/server/dist/clusterAutoTurn.js +25 -4
  302. package/server/dist/clusterBusyReminder.js +2 -1
  303. package/server/dist/clusterDirector.js +5 -1
  304. package/server/dist/clusterMailTally.d.ts +11 -0
  305. package/server/dist/clusterMailTally.js +29 -0
  306. package/server/dist/clusterMailbox.d.ts +8 -1
  307. package/server/dist/clusterMailbox.js +53 -4
  308. package/server/dist/clusterOpenWork.d.ts +22 -0
  309. package/server/dist/clusterOpenWork.js +85 -0
  310. package/server/dist/clusterPeerOps.d.ts +32 -5
  311. package/server/dist/clusterPeerOps.js +257 -50
  312. package/server/dist/clusterPlanBridge.d.ts +7 -1
  313. package/server/dist/clusterPlanBridge.js +58 -0
  314. package/server/dist/clusterPlanStore.d.ts +6 -0
  315. package/server/dist/clusterPlanStore.js +58 -0
  316. package/server/dist/clusterPresets.js +23 -3
  317. package/server/dist/clusterProgress.js +2 -2
  318. package/server/dist/clusterRehydrate.js +2 -0
  319. package/server/dist/clusterSkills.js +2 -2
  320. package/server/dist/clusterSnapshots.d.ts +1 -0
  321. package/server/dist/clusterSnapshots.js +7 -1
  322. package/server/dist/clusterStore.d.ts +34 -1
  323. package/server/dist/clusterStore.js +194 -21
  324. package/server/dist/clusterTurnOrigin.d.ts +2 -0
  325. package/server/dist/clusterTurnOrigin.js +19 -0
  326. package/server/dist/connectionCatalog.js +1 -0
  327. package/server/dist/cursorUsage.js +3 -3
  328. package/server/dist/defaults/models.md +11 -14
  329. package/server/dist/directorContinue.d.ts +47 -0
  330. package/server/dist/directorContinue.js +311 -0
  331. package/server/dist/directorContinueHook.d.ts +3 -0
  332. package/server/dist/directorContinueHook.js +16 -0
  333. package/server/dist/effortValidation.d.ts +3 -0
  334. package/server/dist/effortValidation.js +34 -0
  335. package/server/dist/explorerDocs.d.ts +10 -6
  336. package/server/dist/explorerDocs.js +75 -34
  337. package/server/dist/fileAccessPolicy.js +1 -0
  338. package/server/dist/fileFetch.d.ts +7 -1
  339. package/server/dist/fileFetch.js +50 -29
  340. package/server/dist/geminiMembers.d.ts +8 -0
  341. package/server/dist/geminiMembers.js +113 -0
  342. package/server/dist/git.d.ts +3 -0
  343. package/server/dist/git.js +17 -24
  344. package/server/dist/gitOtherWork.js +5 -4
  345. package/server/dist/gitSnapshots.js +66 -5
  346. package/server/dist/http/attachmentUpload.d.ts +13 -0
  347. package/server/dist/http/attachmentUpload.js +38 -0
  348. package/server/dist/http/authLoginRoutes.js +1 -1
  349. package/server/dist/http/browserWorktrees.d.ts +23 -0
  350. package/server/dist/http/browserWorktrees.js +120 -0
  351. package/server/dist/http/clusterRoutes.js +466 -4
  352. package/server/dist/http/diagnosticsRoutes.js +8 -0
  353. package/server/dist/http/fileWriteRoutes.js +11 -3
  354. package/server/dist/http/phoneUploadDrafts.d.ts +13 -0
  355. package/server/dist/http/phoneUploadDrafts.js +125 -0
  356. package/server/dist/http/phoneUploadListener.d.ts +17 -0
  357. package/server/dist/http/phoneUploadListener.js +81 -0
  358. package/server/dist/http/phoneUploadNetwork.d.ts +9 -0
  359. package/server/dist/http/phoneUploadNetwork.js +106 -0
  360. package/server/dist/http/phoneUploadPage.d.ts +2 -0
  361. package/server/dist/http/phoneUploadPage.js +136 -0
  362. package/server/dist/http/phoneUploadRouteHistory.d.ts +4 -0
  363. package/server/dist/http/phoneUploadRouteHistory.js +72 -0
  364. package/server/dist/http/phoneUploadRoutes.d.ts +4 -0
  365. package/server/dist/http/phoneUploadRoutes.js +420 -0
  366. package/server/dist/http/phoneUploadTheme.d.ts +17 -0
  367. package/server/dist/http/phoneUploadTheme.js +96 -0
  368. package/server/dist/http/projectBinding.d.ts +1 -0
  369. package/server/dist/http/projectBinding.js +3 -2
  370. package/server/dist/http/readConfinement.d.ts +11 -0
  371. package/server/dist/http/readConfinement.js +35 -1
  372. package/server/dist/http/recallRoutes.js +1 -1
  373. package/server/dist/http/router.js +61 -35
  374. package/server/dist/http/storageRoutes.js +114 -7
  375. package/server/dist/http/workflowDataRoutes.js +20 -0
  376. package/server/dist/http/writeConfinement.js +31 -3
  377. package/server/dist/index.d.ts +13 -0
  378. package/server/dist/index.js +353 -56
  379. package/server/dist/initialProviders.js +1 -1
  380. package/server/dist/manualCompactCapability.js +1 -1
  381. package/server/dist/mcp/clusterMcpLoopback.d.ts +1 -0
  382. package/server/dist/mcp/clusterMcpLoopback.js +1 -0
  383. package/server/dist/mcp/clusterMcpServer.js +3 -2
  384. package/server/dist/mcp/clusterMcpTools.d.ts +3 -0
  385. package/server/dist/mcp/clusterMcpTools.js +79 -25
  386. package/server/dist/mcp/mcpConfigWriter.d.ts +1 -0
  387. package/server/dist/mcp/mcpConfigWriter.js +2 -0
  388. package/server/dist/mcp/workerMailBridge.d.ts +17 -0
  389. package/server/dist/mcp/workerMailBridge.js +104 -0
  390. package/server/dist/planStore.js +1 -0
  391. package/server/dist/primitives/seedWorker.d.ts +11 -1
  392. package/server/dist/primitives/seedWorker.js +15 -15
  393. package/server/dist/project/taskLedger.d.ts +3 -0
  394. package/server/dist/project/taskLedger.js +16 -0
  395. package/server/dist/providers/{cursor → acp}/acpJsonRpc.js +1 -1
  396. package/server/dist/providers/acp/permissionGate.d.ts +3 -0
  397. package/server/dist/providers/acp/permissionGate.js +46 -0
  398. package/server/dist/providers/antigravity/index.d.ts +15 -0
  399. package/server/dist/providers/antigravity/index.js +251 -0
  400. package/server/dist/providers/antigravity/researchSignIn.d.ts +24 -0
  401. package/server/dist/providers/antigravity/researchSignIn.js +93 -0
  402. package/server/dist/providers/antigravity/status.d.ts +18 -0
  403. package/server/dist/providers/antigravity/status.js +28 -0
  404. package/server/dist/providers/antigravity/usage.d.ts +7 -0
  405. package/server/dist/providers/antigravity/usage.js +35 -0
  406. package/server/dist/providers/claude/researcherFence.d.ts +7 -0
  407. package/server/dist/providers/claude/researcherFence.js +27 -0
  408. package/server/dist/providers/claude-native/catalog.d.ts +2 -1
  409. package/server/dist/providers/claude-native/catalog.js +4 -0
  410. package/server/dist/providers/claude-native/index.d.ts +1 -0
  411. package/server/dist/providers/claude-native/index.js +9 -1
  412. package/server/dist/providers/claude-native/peerTools.d.ts +1 -0
  413. package/server/dist/providers/claude-native/peerTools.js +26 -4
  414. package/server/dist/providers/claude-native/taskAdmission.d.ts +7 -1
  415. package/server/dist/providers/claude-native/taskAdmission.js +30 -8
  416. package/server/dist/providers/claude-native/tools.d.ts +1 -0
  417. package/server/dist/providers/claude-native/tools.js +47 -18
  418. package/server/dist/providers/claude-native/worker.d.ts +22 -1
  419. package/server/dist/providers/claude-native/worker.js +281 -51
  420. package/server/dist/providers/claude-native/workerHelpers.d.ts +5 -0
  421. package/server/dist/providers/claude-native/workerHelpers.js +95 -5
  422. package/server/dist/providers/claude.d.ts +2 -0
  423. package/server/dist/providers/claude.js +194 -22
  424. package/server/dist/providers/clusterTaskToolDefinitions.js +2 -1
  425. package/server/dist/providers/codex-appserver/heldCommands.d.ts +14 -0
  426. package/server/dist/providers/codex-appserver/heldCommands.js +60 -0
  427. package/server/dist/providers/codex-appserver/index.d.ts +61 -2
  428. package/server/dist/providers/codex-appserver/index.js +340 -21
  429. package/server/dist/providers/codex-appserver/lateCommands.d.ts +62 -0
  430. package/server/dist/providers/codex-appserver/lateCommands.js +196 -0
  431. package/server/dist/providers/codex-appserver/modelAvailability.d.ts +20 -0
  432. package/server/dist/providers/codex-appserver/modelAvailability.js +34 -0
  433. package/server/dist/providers/codex-appserver/worker.d.ts +34 -1
  434. package/server/dist/providers/codex-appserver/worker.js +288 -45
  435. package/server/dist/providers/codex.js +3 -2
  436. package/server/dist/providers/codexCodeMode.d.ts +2 -1
  437. package/server/dist/providers/codexCodeMode.js +7 -3
  438. package/server/dist/providers/codexVersion.d.ts +2 -0
  439. package/server/dist/providers/codexVersion.js +8 -0
  440. package/server/dist/providers/codexWebSearch.js +1 -1
  441. package/server/dist/providers/cursor/agentEnv.d.ts +20 -0
  442. package/server/dist/providers/cursor/agentEnv.js +93 -0
  443. package/server/dist/providers/cursor/authState.js +2 -1
  444. package/server/dist/providers/cursor/authToken.d.ts +25 -2
  445. package/server/dist/providers/cursor/authToken.js +118 -27
  446. package/server/dist/providers/cursor/catalog.d.ts +6 -0
  447. package/server/dist/providers/cursor/catalog.js +91 -1
  448. package/server/dist/providers/cursor/chatSandbox.d.ts +3 -1
  449. package/server/dist/providers/cursor/chatSandbox.js +24 -8
  450. package/server/dist/providers/cursor/isolated.d.ts +6 -0
  451. package/server/dist/providers/cursor/isolated.js +313 -0
  452. package/server/dist/providers/cursor/isolatedVersion.d.ts +6 -0
  453. package/server/dist/providers/cursor/isolatedVersion.js +35 -0
  454. package/server/dist/providers/cursor/modelMap.js +9 -5
  455. package/server/dist/providers/cursor/print.js +10 -8
  456. package/server/dist/providers/cursor/worker.js +8 -3
  457. package/server/dist/providers/index.js +10 -2
  458. package/server/dist/providers/llamacpp.js +3 -2
  459. package/server/dist/providers/ollama.d.ts +3 -2
  460. package/server/dist/providers/ollama.js +29 -10
  461. package/server/dist/providers/ollamaTools.d.ts +3 -0
  462. package/server/dist/providers/ollamaTools.js +31 -29
  463. package/server/dist/research/exportResults.d.ts +15 -0
  464. package/server/dist/research/exportResults.js +60 -0
  465. package/server/dist/research/isolatedArtifact.d.ts +4 -0
  466. package/server/dist/research/isolatedArtifact.js +56 -0
  467. package/server/dist/research/quickPromotion.d.ts +27 -0
  468. package/server/dist/research/quickPromotion.js +402 -0
  469. package/server/dist/research/quickResearchChat.d.ts +4 -0
  470. package/server/dist/research/quickResearchChat.js +187 -0
  471. package/server/dist/research/researchClose.d.ts +31 -0
  472. package/server/dist/research/researchClose.js +373 -0
  473. package/server/dist/research/researchCopy.d.ts +16 -0
  474. package/server/dist/research/researchCopy.js +180 -0
  475. package/server/dist/research/researchCreate.d.ts +40 -0
  476. package/server/dist/research/researchCreate.js +334 -0
  477. package/server/dist/research/researchDoctrine.d.ts +2 -0
  478. package/server/dist/research/researchDoctrine.js +26 -0
  479. package/server/dist/research/researchFolder.d.ts +23 -0
  480. package/server/dist/research/researchFolder.js +191 -0
  481. package/server/dist/research/researchLibrary.d.ts +54 -0
  482. package/server/dist/research/researchLibrary.js +281 -0
  483. package/server/dist/research/researchRetry.d.ts +25 -0
  484. package/server/dist/research/researchRetry.js +96 -0
  485. package/server/dist/research/researchRounds.d.ts +108 -0
  486. package/server/dist/research/researchRounds.js +996 -0
  487. package/server/dist/research/researchState.d.ts +112 -0
  488. package/server/dist/research/researchState.js +191 -0
  489. package/server/dist/research/researchTools.d.ts +57 -0
  490. package/server/dist/research/researchTools.js +57 -0
  491. package/server/dist/research/researchTripwires.d.ts +18 -0
  492. package/server/dist/research/researchTripwires.js +196 -0
  493. package/server/dist/research/resultSelection.d.ts +27 -0
  494. package/server/dist/research/resultSelection.js +161 -0
  495. package/server/dist/research/savedQuickPromotion.d.ts +19 -0
  496. package/server/dist/research/savedQuickPromotion.js +259 -0
  497. package/server/dist/research/sendToProject.d.ts +36 -0
  498. package/server/dist/research/sendToProject.js +293 -0
  499. package/server/dist/server/broadcast.d.ts +5 -1
  500. package/server/dist/server/broadcast.js +45 -5
  501. package/server/dist/server/updateCheck.js +1 -0
  502. package/server/dist/settings.js +27 -3
  503. package/server/dist/skillActivity.d.ts +11 -0
  504. package/server/dist/skillActivity.js +33 -0
  505. package/server/dist/smartPickup.d.ts +1 -0
  506. package/server/dist/smartPickup.js +12 -4
  507. package/server/dist/smartPickupAdapters.js +3 -2
  508. package/server/dist/smartPickupEvaluator.d.ts +1 -0
  509. package/server/dist/smartPickupObserver.js +47 -14
  510. package/server/dist/storageActions.d.ts +9 -0
  511. package/server/dist/storageActions.js +5 -0
  512. package/server/dist/storageOverview.d.ts +1 -0
  513. package/server/dist/storageOverview.js +12 -5
  514. package/server/dist/taskDispatcher.js +3 -2
  515. package/server/dist/toolboxWorkflow.js +2 -1
  516. package/server/dist/updateCheck.d.ts +3 -2
  517. package/server/dist/updateCheck.js +39 -1
  518. package/server/dist/workers/StreamParser.d.ts +1 -0
  519. package/server/dist/workers/StreamParser.js +23 -1
  520. package/server/dist/workers/WorkerManager.d.ts +5 -0
  521. package/server/dist/workers/WorkerManager.js +6 -1
  522. package/server/dist/workers/antigravityIsolatedLaunch.d.ts +25 -0
  523. package/server/dist/workers/antigravityIsolatedLaunch.js +88 -0
  524. package/server/dist/workers/checkedLinuxWorker.d.ts +38 -0
  525. package/server/dist/workers/checkedLinuxWorker.js +192 -0
  526. package/server/dist/workers/claudeAccessLease.d.ts +24 -0
  527. package/server/dist/workers/claudeAccessLease.js +157 -0
  528. package/server/dist/workers/claudeAccessSource.d.ts +2 -0
  529. package/server/dist/workers/claudeAccessSource.js +27 -0
  530. package/server/dist/workers/claudeIsolatedLaunch.d.ts +19 -0
  531. package/server/dist/workers/claudeIsolatedLaunch.js +104 -0
  532. package/server/dist/workers/cliResearcherDoctrine.d.ts +4 -0
  533. package/server/dist/workers/cliResearcherDoctrine.js +20 -0
  534. package/server/dist/workers/codexAccessLease.d.ts +26 -0
  535. package/server/dist/workers/codexAccessLease.js +208 -0
  536. package/server/dist/workers/codexIsolatedLaunch.d.ts +21 -0
  537. package/server/dist/workers/codexIsolatedLaunch.js +95 -0
  538. package/server/dist/workers/codexIsolatedPolicy.d.ts +5 -0
  539. package/server/dist/workers/codexIsolatedPolicy.js +49 -0
  540. package/server/dist/workers/cursorIsolatedLaunch.d.ts +37 -0
  541. package/server/dist/workers/cursorIsolatedLaunch.js +178 -0
  542. package/server/dist/workers/isolatedCliHome.d.ts +4 -0
  543. package/server/dist/workers/isolatedCliHome.js +107 -0
  544. package/server/dist/workers/limits.js +1 -1
  545. package/server/dist/workers/linuxWorkerSandbox.d.ts +48 -0
  546. package/server/dist/workers/linuxWorkerSandbox.js +192 -0
  547. package/server/dist/workers/processKill.d.ts +11 -1
  548. package/server/dist/workers/processKill.js +54 -12
  549. package/server/dist/workers/providerRuntimeDiscovery.d.ts +13 -0
  550. package/server/dist/workers/providerRuntimeDiscovery.js +126 -0
  551. package/server/dist/workers/researchSandboxAvailability.d.ts +3 -0
  552. package/server/dist/workers/researchSandboxAvailability.js +78 -0
  553. package/server/dist/workers/workerAccessPass.d.ts +12 -0
  554. package/server/dist/workers/workerAccessPass.js +123 -0
  555. package/server/dist/workers/workerHiddenDirectories.d.ts +3 -0
  556. package/server/dist/workers/workerHiddenDirectories.js +16 -0
  557. package/server/dist/workers/workerSocketDirectory.d.ts +2 -0
  558. package/server/dist/workers/workerSocketDirectory.js +16 -0
  559. package/server/dist/workers/workerWebProxy.d.ts +28 -0
  560. package/server/dist/workers/workerWebProxy.js +206 -0
  561. package/server/dist/workflowMeta.d.ts +5 -0
  562. package/server/dist/workflowMeta.js +7 -3
  563. package/server/dist/workflowStore.js +43 -25
  564. package/server/dist/workflows/purgeWorkflow.js +15 -0
  565. package/server/dist/workflows/types.d.ts +6 -0
  566. package/server/dist/workspace.d.ts +1 -0
  567. package/server/dist/workspace.js +8 -0
  568. package/server/dist/ws/clusterHandlers.d.ts +5 -0
  569. package/server/dist/ws/clusterHandlers.js +373 -26
  570. package/server/dist/ws/clusterMembers.d.ts +5 -0
  571. package/server/dist/ws/clusterMembers.js +15 -5
  572. package/server/dist/ws/compactHandlers.js +43 -8
  573. package/server/dist/ws/compareHandlers.d.ts +12 -0
  574. package/server/dist/ws/compareHandlers.js +32 -14
  575. package/server/dist/ws/handoffHandlers.js +41 -3
  576. package/server/dist/ws/operatorQuestionHandlers.d.ts +5 -0
  577. package/server/dist/ws/operatorQuestionHandlers.js +17 -2
  578. package/server/dist/ws/taskLedgerHandlers.js +1 -0
  579. package/server/dist/ws/taskLifecycle.d.ts +25 -1
  580. package/server/dist/ws/taskLifecycle.js +53 -1
  581. package/server/dist/ws/turnEngine.d.ts +18 -1
  582. package/server/dist/ws/turnEngine.js +298 -52
  583. package/server/dist/ws/turnPrompt.js +3 -1
  584. package/server/dist/ws/updatePrimaryConfig.js +11 -3
  585. package/server/dist/ws/workflowHandlers.js +17 -4
  586. package/server/package.json +1 -1
  587. package/server/src/arcoHome.ts +16 -3
  588. package/server/src/auth.ts +50 -6
  589. package/server/src/authLoginSession.ts +10 -5
  590. package/server/src/capabilities.ts +13 -8
  591. package/server/src/chatMode.ts +24 -2
  592. package/server/src/checkedFile.ts +42 -31
  593. package/server/src/cliUpdateDecision.ts +1 -1
  594. package/server/src/clusterAutoTurn.ts +29 -5
  595. package/server/src/clusterBusyReminder.ts +2 -1
  596. package/server/src/clusterDirector.ts +5 -1
  597. package/server/src/clusterMailTally.ts +28 -0
  598. package/server/src/clusterMailbox.ts +49 -4
  599. package/server/src/clusterOpenWork.ts +94 -0
  600. package/server/src/clusterPeerOps.ts +242 -53
  601. package/server/src/clusterPlanBridge.ts +54 -1
  602. package/server/src/clusterPlanStore.ts +59 -0
  603. package/server/src/clusterPresets.ts +17 -3
  604. package/server/src/clusterProgress.ts +2 -2
  605. package/server/src/clusterRehydrate.ts +2 -0
  606. package/server/src/clusterSkills.ts +2 -2
  607. package/server/src/clusterSnapshots.ts +7 -1
  608. package/server/src/clusterStore.ts +192 -20
  609. package/server/src/clusterTurnOrigin.ts +19 -0
  610. package/server/src/connectionCatalog.ts +1 -0
  611. package/server/src/cursorUsage.ts +3 -3
  612. package/server/src/defaults/models.md +11 -14
  613. package/server/src/directorContinue.ts +309 -0
  614. package/server/src/directorContinueHook.ts +15 -0
  615. package/server/src/effortValidation.ts +31 -0
  616. package/server/src/explorerDocs.ts +75 -34
  617. package/server/src/fileAccessPolicy.ts +1 -0
  618. package/server/src/fileFetch.ts +47 -29
  619. package/server/src/geminiMembers.ts +116 -0
  620. package/server/src/git.ts +20 -22
  621. package/server/src/gitOtherWork.ts +5 -4
  622. package/server/src/gitSnapshots.ts +53 -5
  623. package/server/src/http/attachmentUpload.ts +49 -0
  624. package/server/src/http/authLoginRoutes.ts +2 -2
  625. package/server/src/http/browserWorktrees.ts +124 -0
  626. package/server/src/http/clusterRoutes.ts +314 -6
  627. package/server/src/http/diagnosticsRoutes.ts +9 -0
  628. package/server/src/http/fileWriteRoutes.ts +13 -5
  629. package/server/src/http/phoneUploadDrafts.ts +118 -0
  630. package/server/src/http/phoneUploadListener.ts +96 -0
  631. package/server/src/http/phoneUploadNetwork.ts +117 -0
  632. package/server/src/http/phoneUploadPage.ts +137 -0
  633. package/server/src/http/phoneUploadRouteHistory.ts +73 -0
  634. package/server/src/http/phoneUploadRoutes.ts +399 -0
  635. package/server/src/http/phoneUploadTheme.ts +97 -0
  636. package/server/src/http/projectBinding.ts +3 -2
  637. package/server/src/http/readConfinement.ts +35 -1
  638. package/server/src/http/recallRoutes.ts +1 -1
  639. package/server/src/http/router.ts +54 -35
  640. package/server/src/http/storageRoutes.ts +86 -7
  641. package/server/src/http/workflowDataRoutes.ts +20 -0
  642. package/server/src/http/writeConfinement.ts +23 -3
  643. package/server/src/index.ts +295 -18
  644. package/server/src/initialProviders.ts +1 -1
  645. package/server/src/manualCompactCapability.ts +1 -1
  646. package/server/src/mcp/clusterMcpLoopback.ts +2 -0
  647. package/server/src/mcp/clusterMcpServer.ts +3 -2
  648. package/server/src/mcp/clusterMcpTools.ts +83 -27
  649. package/server/src/mcp/mcpConfigWriter.ts +4 -0
  650. package/server/src/mcp/workerMailBridge.ts +99 -0
  651. package/server/src/planStore.ts +1 -0
  652. package/server/src/primitives/seedWorker.ts +21 -14
  653. package/server/src/project/taskLedger.ts +23 -0
  654. package/server/src/providers/{cursor → acp}/acpJsonRpc.ts +3 -3
  655. package/server/src/providers/acp/permissionGate.ts +47 -0
  656. package/server/src/providers/antigravity/index.ts +187 -0
  657. package/server/src/providers/antigravity/researchSignIn.ts +76 -0
  658. package/server/src/providers/antigravity/status.ts +24 -0
  659. package/server/src/providers/antigravity/usage.ts +29 -0
  660. package/server/src/providers/claude/researcherFence.ts +25 -0
  661. package/server/src/providers/claude-native/catalog.ts +5 -0
  662. package/server/src/providers/claude-native/index.ts +8 -1
  663. package/server/src/providers/claude-native/peerTools.ts +24 -4
  664. package/server/src/providers/claude-native/taskAdmission.ts +35 -9
  665. package/server/src/providers/claude-native/tools.ts +39 -19
  666. package/server/src/providers/claude-native/worker.ts +270 -52
  667. package/server/src/providers/claude-native/workerHelpers.ts +88 -5
  668. package/server/src/providers/claude.ts +160 -22
  669. package/server/src/providers/clusterTaskToolDefinitions.ts +2 -1
  670. package/server/src/providers/codex-appserver/heldCommands.ts +62 -0
  671. package/server/src/providers/codex-appserver/index.ts +306 -20
  672. package/server/src/providers/codex-appserver/lateCommands.ts +226 -0
  673. package/server/src/providers/codex-appserver/modelAvailability.ts +40 -0
  674. package/server/src/providers/codex-appserver/worker.ts +240 -46
  675. package/server/src/providers/codex.ts +3 -2
  676. package/server/src/providers/codexCodeMode.ts +8 -3
  677. package/server/src/providers/codexVersion.ts +9 -0
  678. package/server/src/providers/codexWebSearch.ts +1 -1
  679. package/server/src/providers/cursor/agentEnv.ts +103 -0
  680. package/server/src/providers/cursor/authState.ts +2 -1
  681. package/server/src/providers/cursor/authToken.ts +137 -31
  682. package/server/src/providers/cursor/catalog.ts +89 -1
  683. package/server/src/providers/cursor/chatSandbox.ts +20 -8
  684. package/server/src/providers/cursor/isolated.ts +282 -0
  685. package/server/src/providers/cursor/isolatedVersion.ts +33 -0
  686. package/server/src/providers/cursor/modelMap.ts +9 -5
  687. package/server/src/providers/cursor/print.ts +10 -8
  688. package/server/src/providers/cursor/worker.ts +8 -3
  689. package/server/src/providers/index.ts +10 -2
  690. package/server/src/providers/llamacpp.ts +3 -1
  691. package/server/src/providers/ollama.ts +30 -11
  692. package/server/src/providers/ollamaTools.ts +33 -27
  693. package/server/src/research/exportResults.ts +47 -0
  694. package/server/src/research/isolatedArtifact.ts +48 -0
  695. package/server/src/research/quickPromotion.ts +325 -0
  696. package/server/src/research/quickResearchChat.ts +147 -0
  697. package/server/src/research/researchClose.ts +340 -0
  698. package/server/src/research/researchCopy.ts +170 -0
  699. package/server/src/research/researchCreate.ts +306 -0
  700. package/server/src/research/researchDoctrine.ts +27 -0
  701. package/server/src/research/researchFolder.ts +202 -0
  702. package/server/src/research/researchLibrary.ts +306 -0
  703. package/server/src/research/researchRetry.ts +86 -0
  704. package/server/src/research/researchRounds.ts +891 -0
  705. package/server/src/research/researchState.ts +309 -0
  706. package/server/src/research/researchTools.ts +59 -0
  707. package/server/src/research/researchTripwires.ts +158 -0
  708. package/server/src/research/resultSelection.ts +127 -0
  709. package/server/src/research/savedQuickPromotion.ts +174 -0
  710. package/server/src/research/sendToProject.ts +220 -0
  711. package/server/src/server/broadcast.ts +39 -5
  712. package/server/src/server/updateCheck.ts +1 -0
  713. package/server/src/settings.ts +22 -5
  714. package/server/src/skillActivity.ts +35 -0
  715. package/server/src/smartPickup.ts +14 -4
  716. package/server/src/smartPickupAdapters.ts +3 -2
  717. package/server/src/smartPickupEvaluator.ts +3 -0
  718. package/server/src/smartPickupObserver.ts +38 -12
  719. package/server/src/storageActions.ts +6 -0
  720. package/server/src/storageOverview.ts +13 -6
  721. package/server/src/taskDispatcher.ts +3 -1
  722. package/server/src/toolboxWorkflow.ts +2 -1
  723. package/server/src/updateCheck.ts +31 -3
  724. package/server/src/workers/StreamParser.ts +20 -1
  725. package/server/src/workers/WorkerManager.ts +12 -1
  726. package/server/src/workers/antigravityIsolatedLaunch.ts +82 -0
  727. package/server/src/workers/checkedLinuxWorker.ts +212 -0
  728. package/server/src/workers/claudeAccessLease.ts +122 -0
  729. package/server/src/workers/claudeAccessSource.ts +20 -0
  730. package/server/src/workers/claudeIsolatedLaunch.ts +91 -0
  731. package/server/src/workers/cliResearcherDoctrine.ts +20 -0
  732. package/server/src/workers/codexAccessLease.ts +146 -0
  733. package/server/src/workers/codexIsolatedLaunch.ts +72 -0
  734. package/server/src/workers/codexIsolatedPolicy.ts +38 -0
  735. package/server/src/workers/cursorIsolatedLaunch.ts +159 -0
  736. package/server/src/workers/isolatedCliHome.ts +75 -0
  737. package/server/src/workers/limits.ts +1 -1
  738. package/server/src/workers/linuxWorkerSandbox.ts +193 -0
  739. package/server/src/workers/processKill.ts +69 -9
  740. package/server/src/workers/providerRuntimeDiscovery.ts +108 -0
  741. package/server/src/workers/researchSandboxAvailability.ts +68 -0
  742. package/server/src/workers/workerAccessPass.ts +96 -0
  743. package/server/src/workers/workerHiddenDirectories.ts +16 -0
  744. package/server/src/workers/workerSocketDirectory.ts +13 -0
  745. package/server/src/workers/workerWebProxy.ts +194 -0
  746. package/server/src/workflowMeta.ts +10 -3
  747. package/server/src/workflowStore.ts +39 -26
  748. package/server/src/workflows/purgeWorkflow.ts +18 -0
  749. package/server/src/workflows/types.ts +13 -0
  750. package/server/src/workspace.ts +8 -0
  751. package/server/src/ws/clusterHandlers.ts +302 -26
  752. package/server/src/ws/clusterMembers.ts +15 -5
  753. package/server/src/ws/compactHandlers.ts +37 -5
  754. package/server/src/ws/compareHandlers.ts +34 -11
  755. package/server/src/ws/handoffHandlers.ts +38 -3
  756. package/server/src/ws/operatorQuestionHandlers.ts +14 -2
  757. package/server/src/ws/taskLedgerHandlers.ts +1 -0
  758. package/server/src/ws/taskLifecycle.ts +58 -4
  759. package/server/src/ws/turnEngine.ts +280 -49
  760. package/server/src/ws/turnPrompt.ts +3 -1
  761. package/server/src/ws/updatePrimaryConfig.ts +10 -3
  762. package/server/src/ws/workflowHandlers.ts +15 -4
  763. package/shared/dist/clusterCoordination.d.ts +1 -0
  764. package/shared/dist/clusterCoordination.js +9 -1
  765. package/shared/dist/clusterRolePresets.js +13 -4
  766. package/shared/dist/index.d.ts +1 -0
  767. package/shared/dist/index.js +1 -0
  768. package/shared/dist/protocol/autoPickup.d.ts +7 -0
  769. package/shared/dist/protocol/autoPickup.js +22 -11
  770. package/shared/dist/protocol/chat.d.ts +2 -1
  771. package/shared/dist/protocol/checkpoints.d.ts +1 -0
  772. package/shared/dist/protocol/clientMessages.d.ts +18 -3
  773. package/shared/dist/protocol/clusters.d.ts +179 -4
  774. package/shared/dist/protocol/clusters.js +48 -2
  775. package/shared/dist/protocol/handoffs.d.ts +1 -0
  776. package/shared/dist/protocol/models.d.ts +6 -1
  777. package/shared/dist/protocol/models.js +4 -3
  778. package/shared/dist/protocol/providers.d.ts +3 -2
  779. package/shared/dist/protocol/providers.js +1 -1
  780. package/shared/dist/protocol/serverMessages.d.ts +39 -3
  781. package/shared/dist/protocol/settings.d.ts +4 -0
  782. package/shared/dist/protocol/settings.js +3 -1
  783. package/shared/dist/protocol/tasks.d.ts +42 -0
  784. package/shared/dist/protocol/tasks.js +17 -0
  785. package/shared/dist/protocol/workflows.d.ts +5 -0
  786. package/shared/dist/protocol/workflows.js +2 -0
  787. package/shared/dist/researchActivity.d.ts +4 -0
  788. package/shared/dist/researchActivity.js +29 -0
  789. package/shared/src/clusterCoordination.ts +12 -1
  790. package/shared/src/clusterRolePresets.ts +13 -4
  791. package/shared/src/index.ts +2 -0
  792. package/shared/src/protocol/autoPickup.ts +28 -11
  793. package/shared/src/protocol/chat.ts +2 -1
  794. package/shared/src/protocol/checkpoints.ts +1 -0
  795. package/shared/src/protocol/clientMessages.ts +14 -0
  796. package/shared/src/protocol/clusters.ts +235 -10
  797. package/shared/src/protocol/handoffs.ts +1 -0
  798. package/shared/src/protocol/models.ts +11 -4
  799. package/shared/src/protocol/providers.ts +6 -3
  800. package/shared/src/protocol/reviews.ts +2 -2
  801. package/shared/src/protocol/serverMessages.ts +38 -2
  802. package/shared/src/protocol/settings.ts +14 -1
  803. package/shared/src/protocol/tasks.ts +73 -0
  804. package/shared/src/protocol/workflows.ts +12 -0
  805. package/shared/src/researchActivity.ts +23 -0
  806. package/client/dist/assets/XtermView-BGFujb1e.js +0 -10
  807. package/client/dist/assets/index-CsVy3eZm.js +0 -612
  808. package/client/dist/assets/index-DD9kFGsF.css +0 -1
  809. package/client/src/components/HeaderAuthChip.tsx +0 -207
  810. /package/server/dist/providers/{cursor → acp}/acpJsonRpc.d.ts +0 -0
package/docs/PROVIDERS.md CHANGED
@@ -4,9 +4,9 @@ Native and local-model file tools read inside the project folder and refuse link
4
4
 
5
5
  **Status:** Guided first-run Connections setup and recovery remain in progress. See [Development status](DEVELOPMENT_STATUS.md).
6
6
 
7
- Per-provider deep dive. The generally available providers are **Claude**, **Codex**, **Ollama**, **LM Studio**, **llama.cpp**, and **Cursor**. Two optional integrations, **Strata** and **DeepSeek through Xolotl**, require separately installed external services that Arco does not distribute. All configured providers can act as primaries and reviewers. They differ in spawn mechanism, session resume, auth, and capability detection; this doc tracks each one's particulars. Two providers run multiple transports side-by-side, picked per-tab from the CONFIG tab: **Claude** has `cli` (per-turn `claude` subprocess) and `native` (long-lived in-process Anthropic-API worker via `@anthropic-ai/sdk`); **Codex** has `exec` (per-turn `codex exec` subprocess) and `appserver` (long-lived `codex app-server` child). **Cursor** also has two - `acp` (long-lived) and `print` (stateless one-shot) - but the choice is routed automatically (`sandbox: 'read-only'` -> `print`), not toggled.
7
+ Per-provider deep dive. The generally available providers are **Claude**, **Codex**, **Ollama**, **LM Studio**, **llama.cpp**, **Cursor**, and **Gemini through Antigravity CLI**. Two optional integrations, **Strata** and **DeepSeek through Xolotl**, require separately installed external services that Arco does not distribute. Antigravity CLI is available for primary conversations and cluster members, but not reviewers. They differ in spawn mechanism, session resume, auth, and capability detection; this doc tracks each one's particulars. Two providers run multiple transports side-by-side, picked per-tab from the CONFIG tab: **Claude** has `cli` (per-turn `claude` subprocess) and `native` (long-lived in-process Anthropic-API worker via `@anthropic-ai/sdk`); **Codex** has `exec` (per-turn `codex exec` subprocess) and `appserver` (long-lived `codex app-server` child). **Cursor** also has two - `acp` (long-lived) and `print` (stateless one-shot) - but the choice is routed automatically (`sandbox: 'read-only'` -> `print`), not toggled.
8
8
 
9
- Chat tabs support Claude, Codex, Cursor, Ollama, llama.cpp, and LM Studio; Optional Strata and DeepSeek integrations are available when their external services are installed. See the contract below and [`CHAT.md`](CHAT.md).
9
+ Chat tabs support Claude, Codex, Cursor, Antigravity CLI, Ollama, llama.cpp, and LM Studio; Optional Strata and DeepSeek integrations are available when their external services are installed. See the contract below and [`CHAT.md`](CHAT.md).
10
10
 
11
11
  For the abstract interface, see `server/src/providers/types.ts`. For when these are invoked in the broader lifecycle, see [`PRIMITIVES.md`](PRIMITIVES.md). For protocol-level message shapes, see [`PROTOCOL.md`](PROTOCOL.md).
12
12
 
@@ -14,7 +14,7 @@ For the abstract interface, see `server/src/providers/types.ts`. For when these
14
14
 
15
15
  ## Child process input failures
16
16
 
17
- If a provider CLI, sign-in process, language server or MCP server closes its input early, Arco handles the input-stream error and stays running. Existing exit reporting and request timeouts still apply; failed requests are not automatically resent.
17
+ If a provider CLI, sign-in process, language server or MCP server closes its input early, Arco handles the input-stream error and stays running. Existing exit reporting and request timeouts still apply; failed requests are not automatically resent. A revoked Claude CLI OAuth token can also arrive inside a successful-looking result; Arco shows the sign-in recovery notice instead of treating that message as an answer.
18
18
 
19
19
  ## Diagnostic executable lookup
20
20
 
@@ -38,6 +38,7 @@ other providers retain their own effort values.
38
38
  | [Claude](#claude) |
39
39
  | [Codex](#codex) |
40
40
  | [Cursor](#cursor) |
41
+ | [Antigravity CLI](#antigravity-cli) |
41
42
  | [Ollama](#ollama) |
42
43
  | [LM Studio](#lm-studio) |
43
44
  | [Strata](#strata) |
@@ -56,25 +57,26 @@ other providers retain their own effort values.
56
57
  |---|---|---|---|---|
57
58
  | Claude | `cli` (alternate; also reviewers and handoff seeds) | low / medium / high / xhigh / max | UUID-based (`--session-id` / `--resume`) | Picker: `opus` / `sonnet` family aliases plus pinned ids (Opus 5.5, Fable 5.2 / 5.1, Sonnet 5, Opus 5, Opus 4.8, ...). Per-turn `claude` CLI spawn. Full two-way interop with terminal `claude`. Chat renders from `~/.claude/projects/<cwd-hash>/<sessionId>.jsonl`. Auto-handoff supported. |
58
59
  | Claude | `native` (new-home default) | low / medium / high / xhigh / max | Replay from `events.jsonl` (Arco-internal; no terminal resume) | Long-lived in-process `@anthropic-ai/sdk` worker, no CLI spawn. OAuth subscription auth + pinned Claude Code wire fingerprint. Append-only request prefix with preserved thinking (required by Fable 5.2 / 5.1 and Mythos 5.2 / 5.1 / Opus 5.5). Ships its own Bash / Read / Edit / Grep / Glob / Task tools, Claude-Code-compatible hooks runner, server-side `compact` + auto-handoff + deterministic Fold, operator-armed plan-mode, parallel `Task` subagent fan-out (depth-1 cap), output-style picker (normal / plain / terse), and posture-based toolsets (operator cycles a full / coding / review / chat posture that scopes exposed tools).
59
- | Codex | `exec` (alternate; also reviewers and handoff seeds) | model/catalog-driven; Astra / Sol: low through ultra, Luna: through max | UUID-based (`codex exec resume`) | Default model GPT-6 Astra (Sol and Luna also in the cold-catalog fallback; the live `model/list` catalog is authoritative). MAX context by default. Per-turn `codex exec` spawn. Full two-way interop with terminal `codex`. Supported effort values pass through; older models are not widened to Astra-only levels. Reviewer runs `-s read-only`. Transcript hydration on Resume for unclaimed rollouts. |
60
+ | Codex | `exec` (alternate; also reviewers and handoff seeds) | model/catalog-driven; Astra / Sol: low through ultra, Luna: through max | UUID-based (`codex exec resume`) | The cold-catalog fallback defaults to GPT-6.2 Sol; the live `model/list` catalog supplies its own default and availability. MAX context by default. Per-turn `codex exec` spawn. Full two-way interop with terminal `codex`. Supported effort values pass through; older models are not widened to Astra-only levels. Reviewer runs `-s read-only`. Transcript hydration on Resume for unclaimed rollouts. |
60
61
  | Codex | `app-server` (new-home default) | model/catalog-driven (same as `exec`) | UUID-based (rollouts in `~/.codex/sessions/`) | Long-lived `codex app-server` per tab. Structured `turn/interrupt` cancel + non-destructive `turn/steer` mid-turn input + `localImage` attachments + crash-recovery circuit breaker + output-style picker + native compact with context-signal reset. Reviewers / handoff seeds always run on `exec`. |
61
- | Cursor | `acp` (default) + `print` | baked into the model id (`-low` / `-high` / `-xhigh` / `-max`) | `session/load` (loadSession capability) | Long-lived `cursor-agent acp` ACP worker; ~153 models incl. Grok. Steer / cancel / session resume / live model-swap via `session/set_model`. No per-turn token signal (the Usage tab is dashboard-polled). Cluster member via an in-process loopback HTTP MCP server. Read-only reviewer / primitives run a stateless `cursor-agent -p --mode ask` one-shot. |
62
- | Ollama | (single) | per model - graded thinking: `low` = thinking off (`think:false` + `/no_think`) plus the model's own levels from `/api/show` `thinking.values` (e.g. supported levels from `/api/show`); boolean-only models keep low / high | None | No native session concept; each turn is a fresh context. Tool use + large context + image attachments + web tools (SearXNG search, fetch with Camoufox stealth fallback). Mid-turn steer supported. Override base URL with `OLLAMA_URL_BASE` (default `http://localhost:11434`). |
62
+ | Cursor | `acp` (default) + `print` | baked into the model id (`-low` / `-high` / `-xhigh` / `-max`) | `session/load` (loadSession capability) | Long-lived `cursor-agent acp` ACP worker; models come from Cursor. Steer / cancel / session resume / live model-swap via `session/set_model`. No per-turn token signal (the Usage tab is dashboard-polled). Cluster member via an in-process loopback HTTP MCP server. Read-only reviewer / primitives run a stateless `cursor-agent -p --mode ask` one-shot. |
63
+ | Antigravity CLI | `agy acp` | low / medium / high / xhigh | `session/load` | Gemini Agent tabs, saved Chats and cluster members; reviewers and automatic turns are unavailable. See [Antigravity CLI](#antigravity-cli). |
64
+ | Ollama | (single) | per model - graded thinking: `low` = thinking off (`think:false` + `/no_think`) plus the model's own levels from `/api/show` `thinking.values` (e.g. supported levels from `/api/show`); boolean-only models keep low / high | None | No native session concept; each turn is a fresh context. Tool use + large context + image attachments + web tools (SearXNG search, guarded direct fetch). Mid-turn steer supported. Override base URL with `OLLAMA_URL_BASE` (default `http://localhost:11434`). |
63
65
  | llama.cpp | (single) | low / high (`low` = `/no_think`) | None | Operator-managed GGUF catalog at `~/.arco/llamacpp.json`. Singleton `llama-server` process owned by Arco (`llamacppManager`); switching aliases SIGTERMs the old server and warms the new one. OpenAI-compatible chat-completions + SSE streaming. Same tool-loop runtime as Ollama, with in-place auto-recovery (reasoning runaway / stream stall / tool-cap / context fill). Override binary with `ARCO_LLAMACPP_BIN`. |
64
66
  | LM Studio | (single) | low / high (`low` = `/no_think`) | None | LM Studio reached via its **OpenAI-compatible** HTTP API (`/v1/chat/completions`, `/v1/models`) - not the native SDK. Joins ollama / llama.cpp on the serial local queue, same tool-loop runtime + recovery. Whatever model is loaded in the LM Studio app is the active model. Override base URL with `LMSTUDIO_URL_BASE` (default `http://localhost:1234`). |
65
67
  | DeepSeek / Xolotl | HTTP + guarded user services | none / low / medium / high | Transcript replay | Configured profiles with model-specific context, image, and tool capabilities, guarded loading and unloading, and source-version tracking; see [`docs/DEEPSEEK.md`](DEEPSEEK.md). |
66
- | Strata | (single HTTP worker + optional registered user services) | none / low / medium / high (`none` disables reasoning; high maps to Qwen xhigh) | Transcript replay | Standalone OpenAI-compatible service at `http://127.0.0.1:8081/v1`. The service reports installed model IDs, context and capabilities; one profile is resident at a time. Streaming reasoning, tools, image input, Chat web-only toggle, native tok/s, FREE VRAM and release notices. [Runbook](STRATA.md). |
68
+ | Strata | (single HTTP worker + optional registered user services) | none / low / medium / high (`none`, `low` and `medium` pass through; any higher effort is sent as `high`) | Transcript replay | Standalone OpenAI-compatible service at `http://127.0.0.1:8081/v1`. The service reports installed model IDs, context and capabilities; one profile is resident at a time. Streaming reasoning, tools, image input, Chat web-only toggle, native tok/s, FREE VRAM and release notices. [Runbook](STRATA.md). |
67
69
 
68
- All configured providers can act as reviewers or primary agents. Local reviewers (Ollama, llama.cpp, LM Studio, Strata) get a prompt addendum reminding them to use their read-only tools to verify diff claims against the live tree. Cross-family reviewer pairings are the most useful.
70
+ Antigravity CLI is unavailable for reviewers. Local reviewers (Ollama, llama.cpp, LM Studio, Strata and DeepSeek) get a prompt addendum reminding them to use their read-only tools to verify diff claims against the live tree. Cross-family reviewer pairings are the most useful.
69
71
 
70
72
  The utility agent and the Smart AUTO-PICKUP evaluator are narrower: only Claude
71
- with Native sign-in, Cursor, Codex and Ollama can serve. Claude CLI alone cannot
73
+ with Native sign-in, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata and DeepSeek through Xolotl can serve. Claude CLI alone cannot
72
74
  make a tool-less one-shot. Codex runs as a locked-down one-shot app-server
73
75
  (read-only sandbox, no MCP servers, web search off, any tool item ends it).
74
76
  See [Settings: Utility agent](SETTINGS.md#utility-agent) and
75
77
  [SECURITY.md](../SECURITY.md#utility-agent-and-smart-auto-pickup-evaluator-requests).
76
78
 
77
- Auth is per-service: browser OAuth for Claude (CLI login, plus a separate OAuth flow for Native); terminal-launched TUI for Codex; `gh auth token` for GitHub; Ollama / LM Studio / Strata probe their HTTP endpoints (prepared local Strata profiles can also start on demand); llama.cpp probes for the binary + reads `~/.arco/llamacpp.json`; Cursor uses its own `cursor-agent login`. The auth overlay blocks app use only when no primary-capable provider is authed.
79
+ Auth is per-service: browser OAuth for Claude (CLI login, plus a separate OAuth flow for Native); in-app device sign-in for Codex; `gh auth token` for GitHub; Ollama / LM Studio / Strata probe their HTTP endpoints (prepared local Strata profiles can also start on demand); llama.cpp probes for the binary + reads `~/.arco/llamacpp.json`; Cursor uses its own `cursor-agent login`. The auth overlay blocks app use only when no primary-capable provider is authed.
78
80
 
79
81
  ### Background programs
80
82
 
@@ -82,6 +84,42 @@ ACTIVITY > BACKGROUND lists programs the agent started through a shell tool and
82
84
 
83
85
  The tracker matches shell-tool commands to process arguments and follows their known children. Claude CLI, Codex exec and app-server, and Cursor ACP supply these events. Providers without a discoverable child-process id do not feed this process tracker. Native and local tool execution keep their existing task reporting.
84
86
 
87
+
88
+ When a Codex app-server turn ends with a shell command still running, the Arco
89
+ turn is not over. The tab and cluster member card stay WORKING and name the
90
+ command. When the command ends, Arco starts the next Codex turn on the same
91
+ thread with the command, its run time, exit code and the last 4,000 characters
92
+ of output. Chat shows one short count when Codex continues; ACTIVITY keeps each
93
+ command, known exit code and elapsed time, with output shortened to 240 characters.
94
+ To the operator it is one turn.
95
+ This does not depend on AUTO-PICKUP and is never charged as a wake.
96
+
97
+ - One continuation when the last waited-on command ends, or at once when one
98
+ fails. Ends within two seconds of each other go into the same continuation;
99
+ a result that arrives while a Codex turn is running is added to that turn.
100
+ - Limits per Arco turn: 30 minutes of waiting in total and 20 continuations.
101
+ At either limit the turn ends with one line naming what still runs.
102
+ - STOP ends the wait at once and nothing continues afterwards. The command is
103
+ left running; its row in ACTIVITY still records how it ends.
104
+ - A message the operator sends during the wait, or an explicit nudge, ends the
105
+ wait: a steering message becomes the next Codex turn at once, a queued
106
+ follow-up runs next as its own turn and that turn receives the result.
107
+ Peer mail stays in the mailbox as during any turn; AUTO-PICKUP considers it
108
+ once the turn has ended.
109
+ - A program meant to keep running is not waited on: one the shell puts in the
110
+ background (`&`, `nohup`) ends its shell at once, and a known server or
111
+ watcher started in the foreground (`npm run dev`, `vite`, `uvicorn`,
112
+ `python -m http.server`, `--watch`, `tail -f`, `docker compose up` without
113
+ `-d`) is shown as running without holding the turn. Codex is told to start
114
+ such programs in the background.
115
+ - Losing the Codex connection, or Codex closing the thread, ends the wait with
116
+ the existing lost-result line.
117
+
118
+ A command that is not waited on keeps the "still running" line for up to five
119
+ minutes after the turn; ACTIVITY keeps its later exit on the original command.
120
+ The wait applies only to the app-server transport; `codex exec` ends its
121
+ process with the turn.
122
+
85
123
  ## The provider abstraction
86
124
 
87
125
  Every provider implements `ProviderProcess` from `server/src/providers/types.ts`:
@@ -193,22 +231,38 @@ Native Task model overrides are applied to the child workflow configuration befo
193
231
 
194
232
  Settings - Agents and clusters supplies `nativeSubagents` defaults; a tab's CONFIG values override individual fields. `maxRunning` defaults to 4 (range 1-32), `maxStarts` to 8 per parent turn (range 1-128), and `model` to Agent's choice. Both finite limits apply to existing installs on the next parent turn. Blank limits inherit Settings in a tab or the defaults in Settings. Settings changes apply next turn.
195
233
 
196
- Agent's choice preserves the existing rule: use the parent's model unless the agent names another. A selected catalog model overrides the agent's requested model, including after hooks. An unavailable selection is refused instead of substituted. This does not bound token use or spending; no ask-first or pricing control is included.
234
+ Agent's choice uses the parent's model unless the agent names another. A selected catalog model overrides the agent's request. Before a batch crosses four starts in one turn, or uses a model whose relative cost is unknown, the parent asks once. ALLOW uses the proposed models; ALLOW ON ANOTHER MODEL uses the selected model for this batch only; DENY starts none. Arco compares the request and effective model with the parent's model. Different models currently require approval because their relative cost is not known to Arco. Model availability is checked again before the batch starts; an unavailable model is refused instead of substituted. This does not bound token use or spending.
235
+
236
+ The question waits until answered or the turn is cancelled. All open pages share one decision. STOP cancels the pending batch. After a restart an unfinished approval closes, and the next resumed Native turn reports that no child was started from it. A hook or review gate that changes a Task after the batch decision causes that Task to be refused. The running and start limits remain separate from the approval threshold.
237
+
238
+ Each parent has a FIFO running limit and a cumulative start budget across all tool rounds. Admitted extra Tasks wait with a QUEUED row and no child workflow yet. Queued tasks reserve budget places; cancellation before start refunds the reservation. A started child counts even if it fails or is cancelled. Calls beyond the budget return a plain refusal telling the agent not to retry unless requested. A new parent turn resets the budget. Queued and running tasks can be cancelled individually; parent cancellation (STOP) stops both, background children included. Individual CANCEL tells the parent that the operator cancelled that sub-agent, asks it not to start a replacement unless the operator requests one, and asks it to count the task as cancelled. These are model instructions, not an additional admission limit. Chat, cluster members and depth-capped Task children are refused at dispatch and again before child creation.
239
+
240
+ The SUB-AGENTS row above the parent message box opens a list of Task children. VIEW IN TAB opens the same child; closing that view hides it and returns to the parent. CANCEL stops one child and CANCEL ALL stops the pending children. A running Native child can receive a text steer that may change its result. A draft stays in the child view until the server confirms receipt. Receipt clears the draft but does not confirm delivery to the child. If delivery is unconfirmed, check the conversation before sending again; Arco does not resend it automatically. A steer not delivered before completion, or whose delivery could not be confirmed, is reported in the child conversation; completed children are read-only. The parent remains responsible for every child.
197
241
 
198
- Each parent has a FIFO running limit and a cumulative start budget across all tool rounds. Admitted extra Tasks wait with a QUEUED row and no child workflow yet. Queued tasks reserve budget places; cancellation before start refunds the reservation. A started child counts even if it fails or is cancelled. Calls beyond the budget return a plain refusal telling the agent not to retry unless requested. A new parent turn resets the budget. Queued and running tasks can be cancelled individually; parent cancellation stops both. Individual CANCEL tells the parent that the operator cancelled that sub-agent, asks it not to start a replacement unless the operator requests one, and asks it to count the task as cancelled. These are model instructions, not an additional admission limit. Chat, cluster members and depth-capped Task children are refused at dispatch and again before child creation.
242
+ Inline and TASKS rows retain the effective model through event replay, including the concrete model when reported by the child. Older rows use saved child metadata or show Model not recorded. The silence strip says Waiting for N sub-agents while Tasks remain pending. A `Task` call without `run_in_background` waits for the child's final reply.
199
243
 
200
- Inline and TASKS rows retain the effective model through event replay, including the concrete model when reported by the child. Older rows use saved child metadata or show Model not recorded. The silence strip says Waiting for N sub-agents while Tasks remain pending. The parent still waits for final Task replies; this is not background execution.
244
+ ### Background sub-agents
201
245
 
202
- | Provider | Sub-agent enforcement in this release |
203
- | --- | --- |
204
- | Claude Native | Arco enforces the running limit, per-turn start budget and selected model for ordinary Agent tabs outside clusters. |
205
- | Claude CLI | Provider-owned Agent and ultracode Workflow calls; Native limits/model do not apply. Existing `--tools`/`--disallowedTools` remove tools but do not impose these limits. No new switches are applied. |
206
- | Codex exec and app-server | Provider-owned harness; Native limits/model do not apply. Installed feature switches `multi_agent` and `multi_agent_v2` exist but alone do not prove all code-mode spawning routes absent. No new Agent switches are applied. |
207
- | Cursor ACP/print | Provider-owned Agent tools; no child count/model control established by installed help. Ordinary print Chat keeps its existing empty tool allowlist. |
208
- | Local providers | No built-in Arco Task/spawn tool. Peer messages address existing members. These limits do not cover shell-launched programs or third-party MCP tools. |
246
+ `Task` takes `run_in_background` (default false). With it, the call returns at once with the task id, and the parent keeps working. `TaskOutput` reads the child's progress; a child still waiting for a running place reads `[queued]`. The SUB-AGENTS row labels the child BACKGROUND.
247
+
248
+ - **Lifetime:** a background child belongs to the parent tab, not the turn. A new parent turn, a notice turn and INTERRUPT & SEND leave it running. STOP on the parent, the row's CANCEL or CANCEL ALL, and closing the tab end it. A server restart ends it, and after a reload its row reads `Stopped by restart.` The parent's next turn records that status once and carries one notice per restart (several stopped children share it) saying the result was not received; the notice does not start a turn by itself.
249
+ - **Notice:** when a background child finishes, fails or is cancelled from its row, its final text (up to 16 KB, with a pointer to `TaskOutput` and the child tab for the rest) reaches the parent as an automatic message of kind `subagent`. While a parent turn runs, the notice is a steer read at the next tool round; an idle parent starts one turn for it. Children settling within two seconds of each other, or while a notice still waits in the queue, share one notice. A STOP or a tab close sends none.
250
+ - **Limits:** the batch question and the start budget apply to background calls as to any `Task` call, in the turn that starts them. A background child holds its running place until it ends, so it counts against `maxRunning` in later turns as well.
251
+ - **Setting:** `nativeSubagents.background` (Settings - Agents and clusters - Claude Native sub-agents - Background sub-agents: Allowed, the default, or Off; a tab can override it). Off makes every call wait for its result, and the result says so.
252
+
253
+ | Provider | Start | Limit and model choice | Cancel | Progress |
254
+ | --- | --- | --- | --- | --- |
255
+ | Claude Native | Arco's Task tool in ordinary Agent tabs outside clusters | Arco enforces the batch decision, running and per-turn start limits, and selected model. | Individual or all Tasks; parent STOP cancels pending Tasks. | SUB-AGENTS rows and child conversations. |
256
+ | Claude CLI | Provider-owned Agent and ultracode Workflow calls | Provider controls; Native limits and model override do not apply. Existing `--tools`/`--disallowedTools` remove tools but do not impose these limits. | Parent STOP; child-specific control is not established. | Reported tool activity; ultracode also has a fleet view. |
257
+ | Codex exec and app-server | Provider-owned harness | Provider controls; Native limits and model override do not apply. Installed `multi_agent` and `multi_agent_v2` switches alone do not prove all code-mode spawning routes absent. | Parent STOP; child-specific control is not established. | Provider tool activity; child activity rows are not guaranteed. |
258
+ | Cursor ACP/print | Provider-owned Agent tools | Child count and model controls are not established by installed help. | Parent STOP; child-specific control is not established. | Provider-reported tool activity. |
259
+ | Antigravity CLI | Provider-owned `invoke_subagent`. | Model and child-count controls are not established. | Parent STOP; child-specific control is not established. | Provider-reported tool activity. Antigravity CLI 1.5.15 or later keeps the turn open while sub-agents finish. Earlier versions can end before results arrive; update from the Versions menu. |
260
+ | Local providers | No built-in Arco Task/spawn tool; peer mail addresses existing members. | These limits do not cover shell-launched programs or third-party MCP tools. | Parent STOP. | Provider-reported tool activity. |
209
261
 
210
262
  Missing CLI, Codex or Cursor child-specific settings remain unconfirmed, not established as unsupported. Provider-owned children are not converted into Native task rows by these controls.
211
263
 
264
+ On Antigravity CLI 1.5.15 or later, the parent turn stays open while sub-agents finish. Earlier versions can end before results arrive; update from the Versions menu. A sub-agent's own tool calls are not shown over ACP and are not gated by SAFE permission requests.
265
+
212
266
 
213
267
  Spawn from a HISTORY point reads the selected earlier prefix even when it is outside the recent replay tail. Cancelled handoffs leave prior Native context intact, including the older-history summary. A cancellation or failure during pre-warm revokes an earlier prepared artifact for replay; a successful fallback after a failed reflection remains valid. Derived summary caches from the earlier replay rule are rebuilt automatically; original events remain unchanged.
214
268
 
@@ -226,11 +280,10 @@ Registry MCP schemas keep their definitions and validation metadata, including l
226
280
 
227
281
  ### Chat-mode execution contract
228
282
 
229
- `WorkerConfig.interactionMode:'chat'` is a hard tool boundary shared by the
230
- supported providers (not Claude-specific; it lives here because Claude was
231
- first). The one exception is the per-tab web toggle - `chatWebArmed()` in
232
- `server/src/chatMode.ts` decides, and every transport states the mode
233
- explicitly instead of inheriting a provider default:
283
+ Most Chat transports enforce a restricted tool boundary. `chatWebArmed()` in
284
+ `server/src/chatMode.ts` selects the per-tab web tools where supported.
285
+ Antigravity CLI is an exception: it uses its own tools and Arco file and plan
286
+ tools in a separate working folder, which is not a security fence.
234
287
 
235
288
  - **Claude Native** - empty `tools`, or `buildChatWebTools()` (server
236
289
  `web_search` + `web_fetch` and portable `read_url`, deliberately no `code_execution`) when armed;
@@ -250,11 +303,12 @@ explicitly instead of inheriting a provider default:
250
303
  in plan-review turns, even with AUTO on.
251
304
  - **Cursor** - each Chat turn runs `-p --mode ask` in a private folder under
252
305
  the selected Arco home, removed when the turn ends. Startup removes abandoned
253
- turn folders without following links. Cursor Chat has no web access; its
254
- header shows `NO WEB` and offers no web toggle. It receives no project
255
- plugin, additional read folders or `--force`. Explicit permissions deny all
256
- reads, writes, shell, web fetches and MCP tools, including previously approved
257
- servers. An empty `--allowed-tools` list excludes every built-in tool family;
306
+ turn folders without following links. WEB arms Cursor's search and fetch;
307
+ WEB OFF uses an empty tool allowlist. When WEB is armed, `--force` applies
308
+ only with the two web tool families allowed. It receives no project plugin
309
+ or additional read folders. Explicit permissions deny all reads, writes,
310
+ shell and MCP tools, including previously approved servers; WEB OFF also
311
+ denies web fetches. The allowlist excludes all other built-in tool families;
258
312
  indexing, semantic search and lint context are disabled. Workspace context
259
313
  comes from the private turn folder; the restricted workspace-exclusion flag
260
314
  is not used. Account, team or model refusals appear as one plain sentence
@@ -295,8 +349,8 @@ Unicode before MCP serialization; a truncated emoji previously wedged this path.
295
349
  non-persistence. Claude CLI receives no session id and therefore emits
296
350
  `--no-session-persistence`; Codex is forced off app-server onto one-shot
297
351
  `exec --ephemeral` (Computer alone uses a verified ephemeral app-server thread). Stateless turns receive a deterministic transcript
298
- from `WorkflowState.incognitoEvents`. Cursor is excluded from incognito because
299
- its CLI exposes resumable chats but no ephemeral-session flag. llama.cpp is
352
+ from `WorkflowState.incognitoEvents`. Cursor and Antigravity CLI are excluded from incognito because
353
+ their CLIs retain session history. llama.cpp is
300
354
  also excluded because the shared Arco-managed `llama-server` writes an
301
355
  unavoidable `~/.arco/llamacpp.log`. Claude's incognito system/history prefix
302
356
  rides stdin rather than argv or an append-system-prompt temp file; direct CLI
@@ -344,12 +398,14 @@ claude
344
398
  [--session-id <uuid>] # first turn (Arco pre-mints)
345
399
  [--resume <uuid>] # subsequent turns
346
400
  [--no-session-persistence] # neither id set (workers, incognito)
347
- [--dangerously-skip-permissions] # AUTO mode
401
+ [--dangerously-skip-permissions] # AUTO mode (not for isolated members, whose launcher adds its own sandbox)
402
+ [--allowedTools <rules>] # SAFE mode: the built-in skills read rule; Chat with web access: WebSearch WebFetch
348
403
  [--system-prompt <p>]
349
404
  [--append-system-prompt <s>] # small values (inline string)
350
405
  [--append-system-prompt-file <fp>] # large values switch to this separate flag; see GOTCHA
351
406
  [--tools <csv>] # absent = full CLI toolset; Chat passes "" or WebSearch,WebFetch
352
407
  [--strict-mcp-config] # Chat only
408
+ [--settings '{"disableAllHooks":true}'] # Chat with provider hooks disabled
353
409
  [--fallback-model <m>]
354
410
  [--add-dir <paths>]
355
411
  [--mcp-config <fp>] # cluster / registry MCP
@@ -405,7 +461,7 @@ API-key fallback: if `ANTHROPIC_API_KEY` is set in the spawned process env, the
405
461
  - **Throttle detection** - stderr regexes catch "usage limit reached", "try again at HH:MM", "resets at <ISO>". Translated to `quota.markThrottled('claude', errorText, resetsAt)`.
406
462
  - **Output cap** - accumulated text is capped at `MAX_WORKER_OUTPUT_BYTES = 50 MB` (override via `ARCO_MAX_WORKER_OUTPUT_BYTES` env). Beyond that, Arco emits a truncation notice and forces the worker to settle. The 32 GB tree-RSS guard handles actual memory runaways; the text cap is the secondary safety net for "model went berserk printing forever."
407
463
  - **Attachments** - fitted images use stream-json `content` blocks. Documents and notebooks provide decoded text, while other binaries provide a note. Agent labels identify the source path alongside its decoded content; Chat labels use the attachment name.
408
- - **Concurrent-writer guard** - the JSONL watcher inspects new entries' `entrypoint` field. If a foreign (`!= 'sdk-cli'`) entrypoint appears, Arco fires `[WARN] Concurrent writer detected on session <uuid>...` and refuses new turns for 60 seconds. Operator must Handoff to recover.
464
+ - **Concurrent-writer guard** - the JSONL watcher inspects new entries' `entrypoint` field. If a foreign (`!= 'sdk-cli'`) entrypoint appears, Arco shows a `[CONCURRENT NATIVE SESSION]` notice and refuses new turns with `[TURN BLOCKED]` until 60 seconds after the last foreign write (`FOREIGN_WRITE_BLOCK_MS`); closing the terminal clears it on its own. Handoff remains the clean escape.
409
465
 
410
466
  ### Ultracode (sticky, CLI-only)
411
467
 
@@ -421,11 +477,11 @@ A per-tab sticky mode (`WorkflowConfig.ultracode`, default off) that puts the ta
421
477
  When a CLI tab is a cluster member (`clusterStore.getClusterIdForWorkflow(workflowId) !== undefined`), every `claude` spawn picks up four extra inputs:
422
478
 
423
479
  1. **`--mcp-config <abs-path>`.** `mcpConfigWriter.writeFor(cwd, workflowId, clusterId, port)` writes a per-workflow `.arco/<wfid>/mcp-config.json` containing one `mcpServers.arco-cluster` entry. The CLI spawns a per-spawn stdio MCP child from that entry - one child per `claude` invocation, NOT per-cluster by design.
424
- 2. **Plan block** appended to `--append-system-prompt`. The cluster's shared `plan.md` (≤8 KB) rendered as `--- Shared cluster plan ---\n<body>`.
480
+ 2. **Plan block** appended to `--append-system-prompt`. The cluster's shared plan (up to 32 KB, outlined when the transport budget requires it) rendered as `--- Shared cluster plan ---\n<body>`.
425
481
  3. **Role block** appended after the plan. `Your role in this cluster: <role>` when this member's role hint is set in `clusterStore.memberRoles`.
426
- 4. **Peer-mailbox prologue** prepended ahead of plan + role. Drained from the recipient's mailbox at turn start (same path Native uses - `drainPeerMailbox` in `seedWorker.ts`), emitting `peer_message_received` per drained item BEFORE the operator's `user_message_echo` (events.jsonl ordering rule).
482
+ 4. **Peer-mailbox notice** prepended ahead of plan + role when mail is pending. It reports only the count and tells the worker to call `peer_read`; the mail is not drained at turn start, and `peer_message_received` is recorded when `peer_read` takes the messages (same path Native uses).
427
483
 
428
- Order is **peer prologue → plan → role → operator's existing appendSystemPrompt content** so the model reads urgent peer context first, reference plan second, framing role third (parity with Native's `buildSystemBlocks`). Combined `finalAppend` is soft-capped at 16 KB for the CLI path; the existing 64 KB tmpfile fallback (`--append-system-prompt-file`) handles overflow either way.
484
+ Order is **peer notice → plan → role → operator's existing appendSystemPrompt content** so the model reads urgent peer context first, reference plan second, framing role third (parity with Native's `buildSystemBlocks`). Combined `finalAppend` is soft-capped at 16 KB for the CLI path; the existing 64 KB tmpfile fallback (`--append-system-prompt-file`) handles overflow either way.
429
485
 
430
486
  `mcp-config.json` shape (verified against Claude CLI 2.1.138 in the smoke environment):
431
487
 
@@ -446,7 +502,7 @@ Order is **peer prologue → plan → role → operator's existing appendSystemP
446
502
  }
447
503
  ```
448
504
 
449
- In production builds (`NODE_ENV=production`), `command` is `node` and `args[0]` is `<abs>/server/dist/mcp/clusterMcpServer.js` - no leading `tsx`. The dev path uses `tsx` so an operator running `npm run dev:server` doesn't need a separate build step.
505
+ A compiled server selects the JavaScript MCP child; a source server uses `tsx` with the TypeScript child. Selection follows the running build rather than `NODE_ENV`.
450
506
 
451
507
  **Why stdio, not SSE.** Anthropic's Claude CLI accepts both stdio and SSE MCP transports via `mcp-config.json`. Stdio is simpler (no port allocation, no auth, no lifecycle management beyond claude's own child-process supervision) and the per-spawn child is short-lived so the SSE benefits (one long-lived server) don't apply. The CLI handles all child-process lifecycle: spawn at claude start, kill at claude exit.
452
508
 
@@ -458,7 +514,7 @@ In production builds (`NODE_ENV=production`), `command` is `node` and `args[0]`
458
514
 
459
515
  ### Registry MCP
460
516
 
461
- Beyond the built-in `arco-cluster` + `codebase-memory` entries, CLI Claude also gets the operator-curated **MCP registry** servers a tab has enabled. They are merged into the same `.arco/<wfid>/mcp-config.json` (via `McpConfigOptions.registryServers`, namespaced `reg-<id8>` so they can't collide with the built-ins). The **dangerous-tool denylist is ENFORCED here**: dangerous-and-unticked tools of enabled servers are appended as `--disallowedTools "mcp__<key>__<tool>,..."`. **Verified** (Claude CLI 2.1.160): `--disallowedTools` composes with `--dangerously-skip-permissions` - the named tool is removed from the model's available set entirely, while non-listed tools of the same server still work. The operator's per-tab `disabledTools` (DD11b) ride the same `--disallowedTools` flag - a disabled tool the operator never probed (so it's not in the cached tool list) is still added by name so it can't slip through. Full model + storage + protocol detail: `docs/MCP_REGISTRY.md`.
517
+ Beyond the built-in `arco-cluster` + `codebase-memory` entries, CLI Claude also gets the operator-curated **MCP registry** servers a tab has enabled. They are merged into the same `.arco/<wfid>/mcp-config.json` (via `McpConfigOptions.registryServers`, namespaced `reg-<id8>` so they can't collide with the built-ins). The **dangerous-tool denylist is ENFORCED here**: dangerous-and-unticked tools of enabled servers are appended as `--disallowedTools "mcp__<key>__<tool>,..."`. `--disallowedTools` combines with `--dangerously-skip-permissions`: the named tool is removed from the available set, while non-listed tools of the same server remain available. The operator's per-tab `disabledTools` (DD11b) ride the same `--disallowedTools` flag - a disabled tool the operator never probed (so it's not in the cached tool list) is still added by name so it can't slip through. Full model + storage + protocol detail: `docs/MCP_REGISTRY.md`.
462
518
 
463
519
  ### Native transport
464
520
 
@@ -466,7 +522,7 @@ Beyond the built-in `arco-cluster` + `codebase-memory` entries, CLI Claude also
466
522
 
467
523
  `server/src/providers/claude-native/` - long-lived per-workflow worker that talks directly to Anthropic's Messages API via `@anthropic-ai/sdk@^0.91.1` (Pi-pinned). The agent loop runs in Arco's process so the mid-turn steer hook fires between tool-result append and the next API round-trip.
468
524
 
469
- **File layout (post-P0 carve-out).** `worker.ts` holds the `ClaudeNativeWorker` class and the turn/stream/error loop. To keep it under the 2000-line cap, the *stateless* leaf helpers live in siblings and are re-exported from `worker.ts` so existing `from './worker.js'` import paths still resolve:
525
+ **File layout.** `worker.ts` holds the `ClaudeNativeWorker` class and the turn/stream/error loop. It is longer than 2,000 lines. The stateless leaf helpers live in siblings and are re-exported from `worker.ts` so existing `from './worker.js'` import paths still resolve:
470
526
  - `modelParams.ts` - token ceilings (`adaptiveMaxTokensForModel`, `chooseMaxTokens`), thinking/effort params (`buildThinkingParams`, `shouldSendInterleavedThinkingBeta`), context-window lookup (`lookupCtx`).
471
527
  - `contentBlocks.ts` - content-block types (`AnyContentBlock`, `ToolUseBlock`, `MessageParam`, ...), image/user-message assembly (`buildUserMessageContent`), server-tool defs (`CLAUDE_CODE_SERVER_TOOLS`), context-management edits (`buildContextManagementEditsForRequest`), the tool-loop predicate (`shouldContinueNativeToolLoop`), and the trailing-thinking stripper (`stripTrailingThinkingFromContent`).
472
528
  - `workerHelpers.ts` - `replayMessagesFromEvents`, `mergeUsage`, `truncateOutput`, `planParserAdvisories`, `sleepWithSignal`.
@@ -509,24 +565,24 @@ The first system block is hardcoded to `"You are Claude Code, Anthropic's offici
509
565
 
510
566
  #### Thinking visibility (adaptive-thinking display)
511
567
 
512
- Per-tab `WorkflowConfig.claudeNativeThinkingDisplay` (`'omitted'` default | `'summarized'` | `'updates'`, Native-only). `buildThinkingParams(model, effort, display)` stamps `thinking: { type: 'adaptive', display }` on adaptive-thinking models. `omitted` is Claude-Code parity, but a multi-minute Opus/Fable adaptive think then streams only `ping` events - nothing bumps `lastPrimaryEventAt`, so the client's 30s stuck banner fires on a healthy worker (547s of legitimate silence observed with Fable 5 @ high). The CONFIG-tab **THINKING VISIBILITY** picker flips to `summarized`, streaming thinking deltas into the Activity tab (which also refresh the stuck clock). The round-trip stderr label reads `adaptive(effort,display)`. Primitives leave it unset ⇒ `omitted`; **Task children inherit** the parent's value.
568
+ Per-tab `WorkflowConfig.claudeNativeThinkingDisplay` (`'omitted'` default | `'summarized'` | `'updates'`, Native-only). `buildThinkingParams(model, effort, display)` stamps `thinking: { type: 'adaptive', display }` on adaptive-thinking models. `omitted` is Claude-Code parity, but a multi-minute Opus/Fable adaptive think then streams only `ping` events - nothing bumps `lastPrimaryEventAt`, so the client's 30s stuck banner fires on a healthy worker (even while the provider is working). The CONFIG-tab **THINKING VISIBILITY** picker flips to `summarized`, streaming thinking deltas into the Activity tab (which also refresh the stuck clock). The round-trip stderr label reads `adaptive(effort,display)`. Primitives leave it unset ⇒ `omitted`; **Task children inherit** the parent's value.
513
569
 
514
570
  **Thinking display is not retention.** `updates` requests short progress notes on
515
571
  supported models (Fable 5 / 5.1 / 5.2, Mythos 5.1 / 5.2, Opus 5.5) but cannot guarantee them:
516
- the 2026-09-01 Fable 5.1 Native acceptance emitted none. On Opus 5.5 the notes Opus 5
572
+ a request can return none. On Opus 5.5 the notes Opus 5
517
573
  returned as `text` arrive as thinking blocks, so `omitted` hides them - prefer
518
574
  `summarized` there. Binding-enforcing Fable/Mythos 5.2 / 5.1 and Opus 5.5 keep thinking
519
575
  and an append-only prefix regardless of display mode. See `FABLE_51_APPEND_ONLY_PLAN.md`.
520
576
 
521
577
  #### Tool surface (7a)
522
578
 
523
- Read / Write / Edit / Bash / Grep / Glob / KillShell / TodoWrite. Path validation reuses `resolveWithinCwd`. Per-tool output cap 64 KB; Read gets 256 KB (looser than Ollama's 32 KB - Claude windows are larger). Edit refuses if the target file wasn't Read in this turn (Claude Code parity). Bash registers each spawned shell against the worker's per-turn shell map so KillShell + cancel can target it; `run_in_background:true` returns a `shellId` immediately. Closing or handing off the tab ends background shells still running (SIGTERM, then SIGKILL after 2 s; `taskkill` on Windows), and the worker waits until they have ended.
579
+ Read / Write / Edit / Bash / Grep / Glob / KillShell / TodoWrite. Path validation reuses `resolveWithinCwd`. Per-tool output cap 64 KB; Read gets 256 KB (looser than Ollama's 32 KB - Claude windows are larger). Edit refuses if the target file wasn't Read in this turn (Claude Code parity). Bash registers each spawned shell against the worker's per-turn shell map so KillShell + cancel can target it; `run_in_background:true` returns a `shellId` immediately. Closing or handing off the tab ends background shells still running (SIGTERM, then SIGKILL after 2 s; `taskkill` on Windows), and the worker waits for their shell processes. If a background process keeps output open after the shell exits, the result warns that it was left running.
524
580
 
525
581
  CLI version and help probes stop after five seconds and cap output at 2 MB. Unanswered Codex app-server RPC requests expire after 30 seconds; interrupt and compaction deadlines also cover the initial acknowledgement.
526
582
 
527
583
  **Edit apply.** `replace_all` selects non-overlapping matches from left to right, including when whitespace normalization is needed; unmatched lines remain unchanged. When the exact `old_string` match fails, `Edit` (`editApply.ts`) falls through an ordered set of fuzzy strategies - `escape-drift` → `trailing-ws` → `indent` - each of which must resolve to exactly one location unless `replace_all`; an ambiguous fuzzy match is refused with a `closestLinesHint` rather than guessed. **Bash output** is bounded-tail: the model sees the last ~64 KB of combined chronological stdout+stderr through one accumulator, while the COMPLETE output spills to a per-run tempfile so a noisy command can't evict context. **File mutations** are serialized through a module-level per-realpath queue (`file-mutation-queue.ts`, keyed by `realpath` so symlink aliases share one queue) - this closes the silent edit-loss window when two Native workers on one cwd (e.g. cluster members) write the same file; a write that actually had to wait emits `file_mutation_queued`.
528
584
 
529
- Native also advertises Anthropic server-side `web_search_20260209` and `web_fetch_20260309` tools as `web_search` / `web_fetch`, plus `code_execution_20260120` so Anthropic's 2026 server-tool dynamic filtering path is available. These are not Arco-local tools: Anthropic executes them server-side and returns `server_tool_use` plus `web_search_tool_result` / `web_fetch_tool_result` content blocks. The Native worker surfaces the invocation in activity, but never routes it through `executeNativeTool()`. After the final answer, retained Native history is pruned of completed server-tool evidence, citation metadata, and hidden thinking; the model has already integrated the useful findings, and the next-turn prompt should not retain hundreds of KB of raw server-search evidence.
585
+ Native also advertises Anthropic server-side `web_search_20260209` and `web_fetch_20260309` tools as `web_search` / `web_fetch`, plus `code_execution_20260120` so Anthropic's 2026 server-tool dynamic filtering path is available. These are not Arco-local tools: Anthropic executes them server-side and returns `server_tool_use` plus `web_search_tool_result` / `web_fetch_tool_result` content blocks. The Native worker surfaces the invocation in activity, but never routes it through `executeNativeTool()`. After the final answer, eligible Native histories are pruned of completed server-tool evidence and citation metadata; retained thinking is kept. The latest assistant message and its matching calls stay intact, and binding-enforcing models skip this prune.
530
586
 
531
587
  **Per-turn web budget (`max_uses`).** Each turn `buildClaudeServerTools()` (`contentBlocks.ts`) stamps a `max_uses` on the `web_search` / `web_fetch` defs - an **Arco-set per-turn ceiling, not an Anthropic account limit**. When a turn exhausts it the model reports web access ran out; it resets next turn. The default is `DEFAULT_WEB_TOOL_MAX_USES = 15`; operators raise/lower it per-tab via CONFIG → **WEB LOOKUPS / TURN** (`WorkflowConfig.webSearchMaxUses`, clamped server-side to `[1, 50]`, persisted in `meta.json`). Deep Research overrides the same field per-spawn with the run's `maxRounds`. CLI transport ignores all this - it routes web tooling through the `claude` binary, which budgets itself.
532
588
 
@@ -546,16 +602,16 @@ The Native worker is a first-class MCP host for the operator's enabled-and-allow
546
602
 
547
603
  After a successful `Write`/`Edit`, the tool calls a **fire-and-forget** `ctx.onFileWritten?.(abs)` hook (wrapped in `try/catch` - a diagnostics failure must NEVER break the write; the write path is P0). The worker wires it to the `lspManager` subsystem (`server/src/lsp/`), which lazy-spawns the project's language server (`typescript-language-server` / `pyright` / `gopls` / `rust-analyzer`, whichever is on PATH), opens the changed file, and forwards the server's `publishDiagnostics` to the client as a workflow-scoped `diagnostics {file, items[]}` message (rendered as a count badge + list on the Activity tab). Absent server ⇒ silent no-op (operator installs the LSP server themselves - bring-your-own-upstream). Lifecycle mirrors `llamacppManager` (one server per `(cwd, languageId)`, dedup, idle-reap, shutdown-kill). **Full detail: `docs/LSP.md`.**
548
604
 
549
- ** (WebFetch / WebSearch) - server-side.** The plan-doc spec called for ~150 LOC of local WebFetch + WebSearch with SSRF guard, Camoufox stealth fallback, and pluggable Brave/Tavily/Kagi/SearXNG providers. Not needed: Native authenticates as Claude Code (OAuth + the pinned `claude-cli/<version>` user-agent from `wireFingerprint.ts`) and advertises Anthropic's server-side web tools. Anthropic executes calls server-side. The separate `read_url` companion uses Arco's public URL reader for file links.
605
+ **WebFetch / WebSearch - server-side.** Native authenticates as Claude Code and advertises Anthropic's server-side web tools. Anthropic executes those calls. The separate `read_url` companion uses Arco's public URL reader for file links.
550
606
 
551
607
  #### Tool surface (7b - Arco-integrated)
552
608
 
553
609
  | Tool | Behavior | Edge cases |
554
610
  |---|---|---|
555
- | `EnterPlanMode` | Records the plan body to a real plan file under `.arco/plans/` (title = first non-empty line, fallback "Native plan"), attaches it to the workflow (the PLAN tab renders it via the existing plan-attach pipeline), broadcasts `plan_set { workflowId, plan, source: 'native-tool', planId }`, and sets `worker.planMode = true`. While plan mode is active, `Write` and `Edit` short-circuit with `[error] write tools disabled until ExitPlanMode`. The plan body is dry-run through the same `parsePlan` invariants ([Gotchas: Plan-review parsing invariants](GOTCHAS.md#plan-review-parsing-invariants)) and any advisories return as part of the tool result so the model can correct on the next turn - never rejected. A second `EnterPlanMode` while already in plan mode replaces the body. |
611
+ | `EnterPlanMode` | In a standalone workflow, records the plan body to a real plan file under `.arco/plans/` (title = first non-empty line, fallback "Native plan"), attaches it to the workflow (the PLAN tab renders it via the existing plan-attach pipeline), broadcasts `plan_set { workflowId, plan, source: 'native-tool', planId }`, and sets `worker.planMode = true`. While plan mode is active, `Write` and `Edit` short-circuit with `[error] write tools disabled until ExitPlanMode`. The plan body is dry-run through the same `parsePlan` invariants ([Gotchas: Plan-review parsing invariants](GOTCHAS.md#plan-review-parsing-invariants)) and any advisories return as part of the tool result so the model can correct on the next turn - never rejected. A second `EnterPlanMode` while already in plan mode replaces the body. For a cluster member, the draft is offered for review and does not attach without operator action. |
556
612
  | `ExitPlanMode` | Clears `worker.planMode`. Broadcasts `plan_exited { workflowId, summary? }`. The plan stays attached to the workflow. |
557
613
  | `AskUserQuestion` | Emits a `system_notice` with `[ASK:claude-native:<questionId>] <question>` (and `[ASK_OPTIONS:opt1 \| opt2]` line when `options` is set). The `AskUserQuestionNotice` component detects the sentinel and renders an inline reply form (text input or option chips). The operator's reply rides the `ask_user_question_reply` WS message; the worker resolves the awaiting Promise and the agent loop continues. **One open question per worker** - a second call while one is pending returns `[error] another question is awaiting response`. **No timeout** - the question stays open until answered or the turn is cancelled. Cancel rejects the awaiting Promise cleanly. |
558
- | `Task` | Mints a child workflow (its own visible tab cloned from the parent's config), seeds with `prompt`, runs one primary turn, and returns the child's final assistant text as the tool result. Transport, output style, and thinking-visibility inherited (Native parent → Native child). The child config **unconditionally** pins `claudeTransport: 'native'` - the Task tool only exists on Native, and the old `=== 'native'` gate missed tabs riding the settings cascade, dropping their children onto the per-turn CLI where they failed closed with `Not logged in`. H30 also fixed a prior drop where the child ignored the parent's output-style pick. The tool description carries the **self-report doctrine** - the child is instructed to END with a concise, verifiable report (what it changed, what it ran to verify, what's left uncertain) so the parent can trust the result without re-deriving it. **Depth-1 only** - the child carries `claudeNativeTaskDisabled` so its tool registry drops `Task`; a recursive call returns `[error] Task is depth-capped at 1`. Cancel of the parent cascades into `childManager.killAll` and rejects the awaiting Promise with an AbortError-style result. SubagentStop hook fires from the worker on settle (success or error). |
614
+ | `Task` | Mints a child workflow (viewable in a tab on request), seeds with `prompt`, runs one primary turn, and returns the child's final assistant text as the tool result. Transport, output style, and thinking-visibility inherited (Native parent → Native child). The child config **unconditionally** pins `claudeTransport: 'native'` - the Task tool only exists on Native, and the old `=== 'native'` gate missed tabs riding the settings cascade, dropping their children onto the per-turn CLI where they failed closed with `Not logged in`. H30 also fixed a prior drop where the child ignored the parent's output-style pick. The tool description carries the **self-report doctrine** - the child is instructed to END with a concise, verifiable report (what it changed, what it ran to verify, what's left uncertain) so the parent can trust the result without re-deriving it. **Depth-1 only** - the child carries `claudeNativeTaskDisabled` so its tool registry drops `Task`; a recursive call returns `[error] Task is depth-capped at 1`. Cancel of the parent cascades into `childManager.killAll` and rejects the awaiting Promise with an AbortError-style result. SubagentStop hook fires from the worker on settle (success or error). |
559
615
  | `TaskOutput` | Reads the in-flight or final accumulated text of a Task-spawned child. Result is prefixed with `[in-flight]` or `[settled]` so the model can decide whether to keep waiting. Output is tail-capped at 64 KB. **Only the spawning parent can read its children** - the `tasksByTaskId` map is per-worker; cross-tab `TaskOutput` requests return `[error] no such task`. The map entry is dropped on parent dispose. |
560
616
 
561
617
  Plan-mode write gating applies to `Write`, `Edit`, and - via **DD11a** - registry MCP tools: while `planMode` is on, `registryToolDefs(..., planMode: true)` OMITS every non-read-only MCP tool from the toolset entirely, so the model can't mutate state through an MCP server during a plan turn (closing the gap where a model could route a write around the local write-tool short-circuit). **`Bash` is not gated** - detecting write-intent in arbitrary shell commands generically isn't worth the false-positive cost; operators relying on plan mode as a hard write barrier should rely on the surrounding sandbox / CI contract instead.
@@ -567,8 +623,8 @@ The new WS messages are minimal: `plan_set`, `plan_exited`, and `ask_user_questi
567
623
  When the Native worker is a cluster member (`config.clusterId` set), `getPeerToolDefinitions()` (`server/src/providers/claude-native/peerTools.ts`) registers up to 17 additional tool descriptors directly into the in-process `tools[]` array - no MCP child, no `--mcp-config` - the 11 `cluster_task_*` board tools are filtered out unless a task board is attached (`ctx.taskBoardAttached`):
568
624
 
569
625
  - `peer_list` - return roster of cluster peers with displayName + role.
570
- - `peer_send` - `{to, content}` (≤16 KB; 15 sends per sender per operator turn). Recipient sees the message as a system block prepended to their next operator turn (or, with operator-armed AUTO-PICKUP on, fires a turn on the idle recipient).
571
- - `peer_read` - drain own mailbox mid-turn (consumes the same messages that would otherwise auto-inject on the next operator turn).
626
+ - `peer_send` - `{to, content}` (≤16 KB; the configurable guard defaults to Warn only at 15 sends per sender per turn). The message waits in the recipient's mailbox; the recipient's next turn starts with a notice of the pending count and the recipient reads it with `peer_read` (or, with operator-armed AUTO-PICKUP on, a turn starts on the idle recipient).
627
+ - `peer_read` - drain own mailbox; this is the only way mail is delivered, and `peer_message_received` is recorded at the call.
572
628
  - `cluster_plan_read` - return the full canonical shared-plan body (`{title, body, updatedAt, byteLength}`). Read-only pull channel: the per-turn injected copy may be a truncated outline for oversize plans.
573
629
  - `cluster_plan_tick` - flip a single `[ ]` ↔ `[x]` checkbox in the shared cluster plan by `taskText` substring or `lineIndex`. Returns before/after state.
574
630
  - `cluster_plan_write` - write the shared cluster plan body (≤32 KB markdown). Convention: only the cluster director calls this. Model-driven writes are additive once a plan exists: the server rejects writes that remove existing checkbox tasks or change their `[ ]` / `[x]` status. Use `cluster_plan_tick` for status changes; destructive replace/clear remains operator-only through the PLAN tab.
@@ -578,17 +634,16 @@ Plus 11 board-gated `cluster_task_*` task-board tools (list / show / create / cl
578
634
  **Restricted cluster members.** A BLIND member keeps its project cwd but the
579
635
  turn engine withholds the normal cluster plan/board/roster/role/focus/
580
636
  efficiency/progress context and registers only `peer_send` / `peer_read` from
581
- the cluster surface. llama.cpp and LM Studio advertise only those cluster tools to BLIND members. ISOLATED is a stricter Claude-Native-only bootstrap: the
637
+ the cluster surface. llama.cpp and LM Studio advertise only those cluster tools to BLIND members. ISOLATED uses a private workspace with Claude Native, or a checked Linux sandbox with Claude CLI, Codex or Cursor. The
582
638
  worker cwd becomes
583
- `~/.arco/clusters/<clusterId>/isolates/<wfid>/workspace`; Bash, KillShell,
584
- Task, project prompt/resource discovery, attachments, hooks, skills,
639
+ `~/.arco/clusters/<clusterId>/isolates/<wfid>/workspace`; Native omits shell tools and CLI providers keep a sandboxed shell. Task, project prompt/resource discovery, attachments, hooks, skills,
585
640
  knowledge/goal/codebase memory, and registry MCPs are omitted. The worker can
586
641
  export bounded scratch files only through `peer_send artifact_paths`, which
587
642
  copies them across the boundary on mailbox drain. Because a previously
588
643
  informed session cannot be made blind retroactively, entering ISOLATED always
589
644
  creates a fresh or replacement workflow and rejects history/task transfer.
590
645
 
591
- CLI Claude and both Codex transports get the same peer surface via a stdio MCP child (`server/src/mcp/clusterMcpServer.ts`); Cursor gets it via an in-process loopback StreamableHTTP MCP server (`server/src/mcp/clusterMcpLoopback.ts`, ACP honors http/sse only) - see [Cluster mode](#cluster-mode) below and the [Cursor](#cursor) section. Wire-name parity: Native sees bare `peer_list`/`peer_send`/`peer_read`/etc.; CLI Claude sees the MCP-namespaced `mcp__arco-cluster__peer_list` shape. Function signatures match so the model treats them identically.
646
+ CLI Claude and both Codex transports get the same peer surface via a stdio MCP child (`server/src/mcp/clusterMcpServer.ts`); Cursor and Antigravity CLI get it via an in-process loopback StreamableHTTP MCP server (`server/src/mcp/clusterMcpLoopback.ts`, ACP honors http/sse only) - see [Cluster mode](#cluster-mode) below and the [Cursor](#cursor) section. Wire-name parity: Native sees bare `peer_list`/`peer_send`/`peer_read`/etc.; CLI Claude sees the MCP-namespaced `mcp__arco-cluster__peer_list` shape. Function signatures match so the model treats them identically.
592
647
 
593
648
  #### Hooks
594
649
 
@@ -668,13 +723,13 @@ When the filter actually shrinks output, the worker writes the pre-filter raw by
668
723
 
669
724
  **In-turn auto-compaction (Claude Native).** A single long turn (hundreds of tool calls) can fill the window before the turn ends, and the between-turn policy never gets a turn boundary. Arco runs the Native request loop itself, so the worker also checks after each tool round: when the round's measured prompt size (see "Context size from usage" below; never the summed usage of a round that ran web search, web fetch or code execution) is at least the threshold of the model's context window, it compacts before the next request and continues the same turn. A round whose size cannot be measured is skipped, never compacted. The threshold is the tab's or cluster's AUTO-COMPACTION threshold when one is set, 70% under Provider; Off means off; with Claude API compaction (beta) on, Arco does not compact in the turn. The check runs at a clean boundary: every `tool_use` of the round has its `tool_result` and no request is in flight. The history before that round is summarized with the same summarizer and projection as COMPACT (recent user and assistant text kept verbatim through `projectKeptTail`); the round itself is kept raw (the assistant message with its thinking and `tool_use` blocks, and the user message with every `tool_result`), after a user note saying the compaction was automatic and to continue the task. The request that started the turn is always kept word for word: its text and attachment references are placed before the automatic note unless a kept-tail message already carries that text; a request over `KEPT_REQUEST_MAX_BYTES` (128,000 UTF-8 bytes) is never cut, the in-turn compaction is deferred for that turn and one notice says why; `native_compacted` persists it as `keptRequest` and replay rebuilds the same user text from it. The kept tail alone does not guarantee this: in a long turn it holds tool rounds, and when the model wrote no text between tool calls a later steer or mail message collapses the opening request out of the tail. If the summary request would not fit the window, the prefix is summarized in parts, oldest first. Every part stays within its estimated input budget, including the carried summary and any leading context note; a single message larger than a part is cut into consecutive slices, so nothing is dropped. At most one in-turn compaction runs per threshold crossing: if the next request is still at or above the threshold, one notice says so and Arco does not compact again until a request falls below it. A failed summary leaves the history unchanged, posts a notice and the turn continues. CANCEL during the summary ends the turn the usual way with the history unchanged. Cancellation is latched for the whole compaction, including between summary parts and before a new summary request; later parts are not started. A later explicit compaction starts a fresh operation. A steer that arrives meanwhile is delivered after the compacted history. Events: `native_compacting` and `native_compacted` carry `trigger: 'auto-in-turn'`, `percent` and `thresholdPercent`; `native_compacted` also carries `inTurn`, the `continueNote` (replay rebuilds it so the rest of the turn pairs with it) and, when `count_tokens` answers, `promptTokensAfter` with `contextWindow`, which refresh CTX at once. Chat shows `Compacting automatically (context N%)` and then `Compacted, continuing`; there is no takeover and no COMPACTED: CONTINUE. The compaction counts for auto-handoff like any other.
670
725
 
671
- **Context size from usage (Claude Native).** A response that ran server tools (web search, web fetch, code execution) is sampled several times inside one request, and its top-level `usage` fields are the sum over those passes: right for billing, wrong as a prompt size. One research round with eleven passes of about 90k tokens reads as 97% of a 1M window while the real context is under 30%. `server/src/providers/claude-native/usageContext.ts` holds the rule every context decision uses: the last `message` entry of `usage.iterations` when the API sends it (its `input_tokens` plus cache read and cache creation); otherwise the top-level usage, but only for a round with no `server_tool_use` block or server tool result; otherwise no figure. The in-turn check measures an unmeasured round with `count_tokens` on the history as it stands and skips the decision when that fails. `count_tokens` leaves out the server-tool definitions (web search, web fetch, code execution: a few hundred tokens together, under 0.5% of any window), so the count sits marginally under the next request's size; the threshold is unaffected. The end-of-turn `lastPromptTokens` (which drives `context_usage`, `context_budget`, the between-turn auto-compaction and auto-handoff readings and the CTX meter) is `count_tokens` first and the single-pass usage second; a final round that ran server tools without `usage.iterations` and without a count reports no context figure for that turn rather than an inflated one. USAGE totals keep summing every pass; when `usage.iterations` lists a `compaction` pass, which the top-level fields leave out, the billed round is the sum over all entries. Displays follow the same rule: the CTX meter and the ACTIVITY session line show the measured context size or `-`, and Claude helper usage totals are not context readings; the worker context badge remains `-` until a separate measurement is available. Turn usage is never labelled as context. Anthropic's documentation states that `usage.iterations` is present when a compaction ran during the request; whether it is also sent for plain server-tool rounds is not documented, so the fallbacks above are the normal path and the console records which one measured a round.
726
+ **Context size from usage (Claude Native).** A response that ran server tools (web search, web fetch, code execution) is sampled several times inside one request, and its top-level `usage` fields are the sum over those passes: right for billing, wrong as a prompt size. Summing multiple passes can overstate the retained prompt size. `server/src/providers/claude-native/usageContext.ts` holds the rule every context decision uses: the last `message` entry of `usage.iterations` when the API sends it (its `input_tokens` plus cache read and cache creation); otherwise the top-level usage, but only for a round with no `server_tool_use` block or server tool result; otherwise no figure. The in-turn check measures an unmeasured round with `count_tokens` on the history as it stands and skips the decision when that fails. `count_tokens` leaves out the server-tool definitions (web search, web fetch, code execution: a few hundred tokens together, under 0.5% of any window), so the count sits marginally under the next request's size; the threshold is unaffected. The end-of-turn `lastPromptTokens` (which drives `context_usage`, `context_budget`, the between-turn auto-compaction and auto-handoff readings and the CTX meter) is `count_tokens` first and the single-pass usage second; a final round that ran server tools without `usage.iterations` and without a count reports no context figure for that turn rather than an inflated one. USAGE totals keep summing every pass; when `usage.iterations` lists a `compaction` pass, which the top-level fields leave out, the billed round is the sum over all entries. Displays follow the same rule: the CTX meter and the ACTIVITY session line show the measured context size or `-`, and Claude helper usage totals are not context readings; the worker context badge remains `-` until a separate measurement is available. Turn usage is never labelled as context. Anthropic's documentation states that `usage.iterations` is present when a compaction ran during the request; whether it is also sent for plain server-tool rounds is not documented, so the fallbacks above are the normal path and the console records which one measured a round.
672
727
 
673
728
  Saved in-turn summaries also include the verbatim assistant narration of the retained round. The live worker keeps that round raw instead, so each representation retains the narration once. Rebuilt workers recover that text through the existing text-only replay; tool protocol blocks are not added to replay. The marker schema is unchanged.
674
729
 
675
730
  **Auto-continue.** COMPACTION AUTO-CONTINUE applies only to automatic compactions between turns. The manual COMPACT button never sends a continue message; the composer offers COMPACTED: CONTINUE instead. An in-turn compaction needs no continue message, because the turn itself goes on.
676
731
 
677
- **Output style.** A per-tab picker on the CONFIG tab, in the New workflow and cluster creator, and in the cluster member settings (ADD WORKERS, REPLACE). Three levels:
732
+ **Output style.** A per-tab picker on the CONFIG tab, in the New workflow and cluster creator, and in the cluster member settings (ADD WORKERS, REPLACE). It is not offered for Antigravity. Three levels:
678
733
 
679
734
  - `normal`: no addendum.
680
735
  - `plain` (the default): full sentences with articles, short where possible (long ones are split, with no word limit), the answer first, one name per thing, no filler or hedging, and no repeating of earlier messages. The final reply of every turn is complete: what was done, what was checked and how, what was found with exact numbers, assumptions, risks, what is left with the next step, and anything that needs the operator.
@@ -682,7 +737,7 @@ Saved in-turn summaries also include the verbatim assistant narration of the ret
682
737
 
683
738
  Both addenda keep every negation (not, never, no, only, except), number and unit, keep code, commands, paths, identifiers and error text verbatim, and say that text which persists outside the chat (code, comments, commits, docs, plans, board tasks and comments, mail to other agents, skills, memory files) follows the project's conventions and is never compressed. Both also keep the operator's language (or the one asked for; quoted text never switches it), show a code change as the changed lines with one or two lines of context unless the whole file is asked for, new or mostly changed, and quote only the shortest decisive error line. During tool runs both ask for one short line per phase; Plain also asks for the reason when the approach changes. No saving is claimed: current models already answer concisely, so the levels are about readability.
684
739
 
685
- `DEFAULT_OUTPUT_STYLE` (`shared/src/outputStyle.ts`) is the one default. A tab, member, preset or template with no saved style uses it; an explicit `normal` stays `normal`. A saved `lite` (before 0.1.5) reads as `plain` and `caveman` (before 2026-05-10) as `terse`, on every read path (`normalizeOutputStyle`). The default is stored as unset. `outputStyleAddendum(level)` (`server/src/providers/outputStyle.ts`) returns the fixed text; it is a constant, so the prompt prefix stays byte-identical from turn to turn. Switching takes effect on the next turn.
740
+ `DEFAULT_OUTPUT_STYLE` (`shared/src/outputStyle.ts`) is the one default. A tab, member, preset or template with no saved style uses it; an explicit `normal` stays `normal`. A saved `lite` (before 0.1.5) reads as `plain` and `caveman` (before 2026-05-10) as `terse`, on every read path (`normalizeOutputStyle`). The default is stored as unset. `outputStyleAddendum(level)` (`server/src/providers/outputStyle.ts`) returns the fixed text; it is a constant, so the prompt prefix stays byte-identical from turn to turn. Switching takes effect on the next turn. OUTPUT STYLE is not offered for Antigravity CLI.
686
741
 
687
742
  Where each provider puts it:
688
743
 
@@ -693,6 +748,7 @@ Where each provider puts it:
693
748
  | Codex app-server | yes | End of the stable prompt prefix, before the `---` separator. |
694
749
  | Codex exec | yes | End of the prompt prefix on stdin, before the `---` separator. |
695
750
  | Cursor (ACP and print) | yes | End of the prompt prefix, after the north star, before the `---` separator. |
751
+ | Antigravity CLI | no | OUTPUT STYLE is not offered. |
696
752
  | Ollama, llama.cpp | yes | End of the system message; `/no_think` stays first on low effort. |
697
753
  | LM Studio, Strata, DeepSeek | yes | End of the system message (the shared OpenAI-compatible worker). |
698
754
 
@@ -727,7 +783,7 @@ Anthropic's `/v1/models` exposes three context-management capabilities. Arco kee
727
783
  | `compact_20260112` (server-managed summarization at threshold) | off for Native | CONFIG > ADVANCED "Claude API compaction (beta)" toggle (`WorkflowConfig.claudeNativeCompact`; explicit `true` enables) |
728
784
  | Auto-handoff (Arco starts a fresh session after N compactions, default 5) | opt-in (default `false` for new tabs) | CONFIG-tab "AUTO-HANDOFF" Hand off after N compactions (`WorkflowConfig.autoHandoff.enabled`, `afterCompactions`) |
729
785
 
730
- `clear_thinking` and `clear_tool_uses` ship behind `anthropic-beta: context-management-2025-06-27` if they are ever used, but Native deliberately does not send that beta or those edits by default. The 2026-05-31 Opus 4.8 A/B test showed that `clear_tool_uses` can replace live web-search evidence with `Search result was cleared`, causing repeated searches and stale-source answers. Compact rides on `compact-2026-01-12` and is emitted only when the operator has explicitly enabled the per-tab toggle and the active model's cached `/v1/models` catalog entry advertises `compact_20260112`. An unrecognized model conservatively skips all betas rather than risk a 400. Compaction is `{ type: 'compact_20260112' }` in `context_management.edits`, not a sibling `context_management.compact` object. Per-request beta-header override is set on the SDK call so a live model swap mid-tab re-evaluates capabilities cleanly. The `Claude API compaction (beta)` toggle is only rendered when `transport === 'native'` and the active model's catalog entry has `compact_20260112: { supported: true }`; missing `WorkflowConfig.claudeNativeCompact` means disabled, and explicit `true` is the durable enable.
786
+ `clear_thinking` and `clear_tool_uses` ship behind `anthropic-beta: context-management-2025-06-27` if they are ever used, but Native deliberately does not send that beta or those edits by default. `clear_tool_uses` can replace live web-search evidence with `Search result was cleared`, so later requests may lack that evidence. Compact rides on `compact-2026-01-12` and is emitted only when the operator has explicitly enabled the per-tab toggle and the active model's cached `/v1/models` catalog entry advertises `compact_20260112`. An unrecognized model conservatively skips all betas rather than risk a 400. Compaction is `{ type: 'compact_20260112' }` in `context_management.edits`, not a sibling `context_management.compact` object. Per-request beta-header override is set on the SDK call so a live model swap mid-tab re-evaluates capabilities cleanly. The `Claude API compaction (beta)` toggle is only rendered when `transport === 'native'` and the active model's catalog entry has `compact_20260112: { supported: true }`; missing `WorkflowConfig.claudeNativeCompact` means disabled, and explicit `true` is the durable enable.
731
787
 
732
788
  #### Arco-side context tools (Fold / eviction / budget meter)
733
789
 
@@ -742,9 +798,9 @@ Distinct from the Anthropic server-side edits above - these are Arco-owned, dete
742
798
 
743
799
  #### Live model catalog
744
800
 
745
- `server/src/catalog.ts` polls `https://api.anthropic.com/v1/models` (using the worker's OAuth tokens + standard wire fingerprint), distills the wire shape to the picker's camelCase form via `distillCatalogModel()`, and caches the result for one hour (`REFRESH_INTERVAL_MS = 60 * 60 * 1000`). Refresh is lazy - the next request after expiry triggers it; `?force=1` on `GET /api/claude-native/catalog` bypasses the cache. Capability flags (`clearThinking`, `clearToolUses`, `compact`) are derived from the catalog entry's `supportedFeatures`, but only `compact` is consumed by the worker by default. The CONFIG-tab model picker uses `compact` to gate the CONFIG > ADVANCED Claude API compaction (beta) toggle, and `getCachedModelCapabilities(modelId)` is called per Native request to decide whether to send `compact-2026-01-12` + `{ type: 'compact_20260112' }`. Cold-start, fetch failure, or an unrecognized id (operator typo, picker out of sync) all return `null` and the worker conservatively skips the beta - the `[claude-native:<wfid>] → messages.create ... ctx_mgmt=compact` log line shows what actually went out. Static fallbacks still need to be updated when a new family ships: `supportsClaudeAdaptiveThinking()` / `CLAUDE_MODEL_EFFORTS` control effort semantics, `adaptiveMaxTokensForModel()` controls output cap, and `contextEstimator.ts` controls the CTX denominator before the live catalog can help.
801
+ `server/src/providers/claude-native/catalog.ts` polls `https://api.anthropic.com/v1/models` (using the worker's OAuth tokens + standard wire fingerprint), distills the wire shape to the picker's camelCase form via `distillCatalogModel()`, and caches the result for one hour (`REFRESH_INTERVAL_MS = 60 * 60 * 1000`). Refresh is lazy - the next request after expiry triggers it; `?force=1` on `GET /api/claude-native/catalog` bypasses the cache. Capability flags (`clearThinking`, `clearToolUses`, `compact`) are derived from the catalog entry's `supportedFeatures`, but only `compact` is consumed by the worker by default. The CONFIG-tab model picker uses `compact` to gate the CONFIG > ADVANCED Claude API compaction (beta) toggle, and `getCachedModelCapabilities(modelId)` is called per Native request to decide whether to send `compact-2026-01-12` + `{ type: 'compact_20260112' }`. Cold-start, fetch failure, or an unrecognized id (operator typo, picker out of sync) all return `null` and the worker conservatively skips the beta - the `[claude-native:<wfid>] → messages.create ... ctx_mgmt=compact` log line shows what actually went out. Static fallbacks still need to be updated when a new family ships: `supportsClaudeAdaptiveThinking()` / `CLAUDE_MODEL_EFFORTS` control effort semantics, `adaptiveMaxTokensForModel()` controls output cap, and `contextEstimator.ts` controls the CTX denominator before the live catalog can help.
746
802
 
747
- Compaction handles context fill; auto-handoff counts compactions (`native_compacted`, automatic and COMPACT) and starts a fresh session after N of them in one conversation. On Claude Native it needs Arco's auto-compaction on; Claude API compaction (`compact_20260112`) is not counted. See plan-doc 15 for the full combination matrix and the resolved beta-header strings.
803
+ Compaction handles context fill; auto-handoff counts compactions (`native_compacted`, automatic and COMPACT) and starts a fresh session after N of them in one conversation. On Claude Native it needs Arco's auto-compaction on; Claude API compaction (`compact_20260112`) is not counted.
748
804
 
749
805
  #### Operator in-place compact (`⊟ COMPACT` / `native_compacted`)
750
806
 
@@ -882,18 +938,22 @@ codex
882
938
  --json
883
939
  --color never
884
940
  --skip-git-repo-check
885
- -s <sandbox> # 'read-only' | 'workspace-write' | 'danger-full-access'
886
- -m <model>
887
- [-i <image>]... # image attachments
888
- [-c reasoning_effort="<e>"] # 1:1, catalog-clamped (see Effort mapping)
941
+ -c features.view_image=<bool> # or tools.view_image on older CLIs; false in ordinary Chat
942
+ [--strict-config -c <chat overrides>] # ordinary Chat only
943
+ [--ignore-user-config --ignore-rules] # Chat (also on resume)
944
+ -c web_search="live|disabled" # Agent: live; Chat and cluster web access off: disabled
889
945
  [-c model_context_window=<n>] # MAX context policy (default)
890
- [-c web_search="live|disabled"] # Chat only
891
946
  [--ephemeral] # Incognito only
892
- [-c mcp_servers.<key>....] # cluster / registry MCP
947
+ -s <sandbox> # 'read-only' | 'workspace-write' | 'danger-full-access'
948
+ -m <model>
949
+ [-i <image>]... # image attachments
950
+ [-c model_reasoning_effort="<e>"] # 1:1, catalog-clamped (see Effort mapping)
951
+ [--add-dir <dir>]... # additional directories
893
952
  [-C <cwd>]
953
+ [-c mcp_servers.<key>....] # cluster / registry MCP
894
954
  ```
895
955
 
896
- `<sandbox>` is the Codex permissions level. Reviewers always get `read-only`. Primaries default to `read-only` but can be set to `workspace-write` or `danger-full-access` via `WorkerConfig.sandbox`.
956
+ `<sandbox>` is the Codex permissions level. Reviewers always get `read-only`. Without an explicit sandbox, primary turns use `workspace-write` in SAFE and `danger-full-access` in AUTO. `WorkerConfig.sandbox` can select a mode explicitly.
897
957
 
898
958
  #### Argv (resume)
899
959
 
@@ -902,18 +962,18 @@ codex
902
962
  exec
903
963
  resume
904
964
  <uuid>
905
- <prompt>
965
+ [options]
906
966
  ```
907
967
 
908
- **GOTCHA - narrower flag surface on resume.** `codex exec resume` does **not** accept `--color`, `-s <mode>`, `-C <cwd>`, or `--add-dir`. `buildArgs` branches on `isResume` and drops them. Sandbox maps to:
909
- - `workspace-write` → `--full-auto`
968
+ **GOTCHA - narrower flag surface on resume.** `codex exec resume` does **not** accept `--color`, `-s <mode>`, `-C <cwd>`, or `--add-dir`, and Arco omits `--ephemeral` there. `buildArgs` branches on `isResume` and drops them. Sandbox maps to:
969
+ - `read-only` or `workspace-write` → `-c sandbox_mode="<mode>"`
910
970
  - `danger-full-access` → `--dangerously-bypass-approvals-and-sandbox`
911
971
 
912
972
  `cwd` rides on `spawn({ cwd })` since `-C` is rejected.
913
973
 
914
974
  #### Stdin
915
975
 
916
- The full prompt (with any prepended transcript / attachments / appendSystemPrompt) is the last positional argument. Codex doesn't have a native `--system-prompt` or `--append-system-prompt` flag, so the framing is always inline.
976
+ The full prompt, including any prepended context and decoded attachments, is written to stdin. Codex does not have a native `--system-prompt` or `--append-system-prompt` flag, so the framing is included in that input.
917
977
 
918
978
  #### Event parsing
919
979
 
@@ -938,13 +998,13 @@ UUID-based via thread_id. Captured from the `thread.started` init event on first
938
998
 
939
999
  #### Auth
940
1000
 
941
- `codex login status` → `{ loggedIn, email, accountType }`. `POST /api/auth-login?provider=codex` opens a terminal emulator with `codex login` for the interactive OAuth flow.
1001
+ `codex login status` reports whether the default account is signed in. In SETTINGS > AUTHENTICATION, CODEX (OPENAI) offers LOG IN through an in-app device flow. MORE ACCOUNTS holds optional separate account profiles; a profile without a custom CODEX_HOME uses the Arco data folder. The terminal command remains available as a fallback.
942
1002
 
943
1003
  API-key fallback: `OPENAI_API_KEY` env var.
944
1004
 
945
1005
  #### Capability detection
946
1006
 
947
- `codex --version`. `capabilities.ts` parses for supported efforts and models. Codex's current binding includes `none|minimal|low|medium|high|xhigh|max|ultra`; Arco's picker offers only the selected model's supported operator levels. Astra is the current Arco default and advertises low through ultra; GPT-6 Sol (2026-09-22) does too, and GPT-6 Luna stops at `max`. The live catalog (`codex-appserver/catalog.ts`) is the authoritative source - see [Live model catalog](#live-model-catalog-1) below.
1007
+ `codex --version`. `capabilities.ts` parses for supported efforts and models. Codex's current binding includes `none|minimal|low|medium|high|xhigh|max|ultra`; Arco's picker offers only the selected model's supported operator levels. The cold fallback defaults to GPT-6.2 Sol. The GPT-6.2 Sol and Astra entries advertise low through ultra; GPT-6 Luna stops at `max`. The live catalog (`codex-appserver/catalog.ts`) is the authoritative source - see [Live model catalog](#live-model-catalog-1) below.
948
1008
 
949
1009
  #### Quirks
950
1010
 
@@ -957,7 +1017,7 @@ API-key fallback: `OPENAI_API_KEY` env var.
957
1017
  - **Context-window policy + reporting.** Codex's account-scoped `models_cache.json` carries `context_window`, `max_context_window`, and `effective_context_window_percent`. Arco defaults `WorkflowConfig.codexContextPolicy` to `max` and passes the selected model/account's live `max_context_window` as `model_context_window` on both transports; `standard` omits that override. The CONFIG tab shows both effective values. Missing or malformed catalog metadata fails safe to Codex's default. Codex then emits the authoritative operational window via either `turn.completed` or `event_msg::token_count.info.model_context_window`; the ContextMeter prefers this reported value, then the account catalog estimate, then static metadata. At the 2026-09-11 catalog values, Astra's STANDARD is 258.4K effective (272K × 95%) and MAX is 828.4K effective (872K × 95%). Auto-handoff reads the latest rollout snapshot, and compact clears stale local context signals.
958
1018
  - **Token usage - rich Codex fields.** Beyond `input`, `output`, and `cacheRead`, Codex's `turn.completed.usage` may also carry `reasoning_output_tokens` (subset of output: hidden reasoning trace, rolls forward into next turn's prompt) and `total_tokens` (provider-reported total). Both surface on `TokenUsage.reasoningOutput` and `TokenUsage.total` and appear in the ContextMeter hover and the per-worker `tokenHoverTitle`.
959
1019
  - **Rollout-file tail capture (post-settle).** `codex exec --json`'s `turn.completed.usage` aggregates across internal LLM calls within one operator turn - useful for billing, misleading for context-window-fill. Server tails the workflow's rollout file (`~/.codex/sessions/<y>/<m>/<d>/rollout-*-<thread_id>.jsonl`) after each turn settles, parses the latest `event_msg::token_count.info`, and broadcasts a `codex_token_snapshot` with the per-call `last_token_usage` plus `model_context_window`. Client uses these to override `lastTurnTokens` (so the CTX bar reflects the per-call reality) and to populate `modelContextWindow` (so the dot flips ●). `totalTokens` cumulative is left alone - it stays the billing-accurate aggregated number. Code: `server/src/workflows/transcripts.ts` wrapping `server/src/codexRolloutTokens.ts`; post-turn threshold refresh lives in `server/src/ws/turnEngine.ts`.
960
- - **No concurrent-writer guard (yet).** Probe (2026-04-26) showed every rollout filename carries a unique UUID - strong evidence that `codex exec` and `exec resume` create new rollout files rather than appending. Risk is treated as low; the Claude-style guard is documented as the port target if a real corruption surfaces. Details in [`GOTCHAS.md`](GOTCHAS.md).
1020
+ - **No concurrent-writer guard (yet).** Arco does not provide a concurrent-writer guard for Codex. Close the other session before resuming the same conversation. Details in [`GOTCHAS.md`](GOTCHAS.md).
961
1021
  - **Tool verbs.** Codex emits snake_case item names (`apply_patch`, `shell_call`, `function_call`, `update_plan`, etc.); `command_execution` is normalized to `Bash` upstream in `codex-stream.ts`. The Activity tab's `TOOL_VERBS` map (`PrimaryStatus.tsx`) covers both naming conventions, so live status reads naturally on Codex tabs (`Patching`, `Running`, `Calling`, `Planning`, ...) instead of the raw snake_case fallback.
962
1022
 
963
1023
  ### `app-server` transport
@@ -977,7 +1037,7 @@ voice MCP configuration are unchanged.
977
1037
 
978
1038
  `server/src/providers/codex-appserver/` - + 6b adds the long-lived transport alongside the per-turn `exec` worker; Arco ships the CONFIG-tab toggle. Unlocks non-destructive mid-turn steer (`turn/steer`) and structured cancel (`turn/interrupt`).
979
1039
 
980
- Bindings pinned against **codex-cli 0.128.0** (the installed CLI is newer - 0.156.x as of 2026-09; new fields are validated against it before use). Vendored TS bindings under `server/src/providers/codex-appserver/bindings/` are regenerated via `codex app-server generate-ts --out ... --experimental` - see plan doc 11.
1040
+ Vendored TS bindings under `server/src/providers/codex-appserver/bindings/` are regenerated via `codex app-server generate-ts --out ... --experimental`. Validate new fields against the supported CLI before use.
981
1041
 
982
1042
  #### Lifecycle
983
1043
 
@@ -1038,7 +1098,7 @@ Isolation invariant (load-bearing): because the `Turn` binding has no `turnKind`
1038
1098
  **`imageGeneration`.** When Codex runs an `image_generation_call`, the app-server surfaces an `imageGeneration` item (`{ status, revisedPrompt, result, savedPath? }` - `result` is base64 image bytes; `savedPath`, when present, is an absolute path the app-server already wrote). Handling:
1039
1099
 
1040
1100
  - `emitToolUseFromItem` surfaces only a **`started`** `image_generation` tool_use (Activity-tab visibility).
1041
- - On `item/completed`, the handler kicks off `handleImageGeneration(item)` **fire-and-forget** (`void` - never awaited) *before* `tryDrainSteer()`, so the persist's async fs work runs out-of-band and **the drain hook fires synchronously, unchanged**. The persist is purely additive - it touches no lifecycle / cancel / steer / drain code.
1101
+ - On `item/completed`, the handler kicks off `handleImageGeneration(item)` **fire-and-forget** (`void` - never awaited) *before* `tryDrainSteer()`, so the persist's async fs work runs out-of-band and **the drain hook fires synchronously, unchanged**. The persist is tracked by the turn; settlement waits for pending artifacts while the steer drain remains synchronous.
1042
1102
  - `handleImageGeneration` calls the pure `resolveGeneratedImageTarget(cwd, item)` (`codex-appserver/imageGen.ts`): an in-cwd `savedPath` is surfaced as-is; otherwise the base64 `result` is decoded and written to `codex-image-<shortId>.png` confined with `resolveWithinCwd`. An escaping `savedPath` falls back to decoding the bytes in-cwd - it never surfaces an out-of-cwd path. Pure fs (`wx` write, suffix-bumped on collision); no subprocess. On success it emits a `primary_artifact` (`kind:'image'`, cwd-relative `path`, `openInEditor:true`) + a terminal `completed` tool_use; on any failure it emits a `failed` tool_use + a `system_notice` and never throws out of the notification handler.
1043
1103
 
1044
1104
  **Live-shape caveat:** the `image_generation_call` RPC shape is flagged "unproven" upstream. The handler is coded against the vendored binding and **validated against a synthetic fixture** (`scripts/smoke/image-gen-codex.ts` drives `resolveGeneratedImageTarget` + an fs write), **not** a live Codex generation - live-shape validation is pending an operator running a real Codex image-gen turn. See [Media studio: H4](MEDIA_STUDIO.md#h4-image-generation-codex-only-route-shipped).
@@ -1069,7 +1129,9 @@ The first-time-enable warning is a global flag - `settings.codex.appserverWarnin
1069
1129
 
1070
1130
  `server/src/providers/codex-appserver/catalog.ts` mirrors the Claude catalog pattern: spawns a short-lived `codex app-server` once an hour to call the JSON-RPC `model/list` method, distills the response into a flat picker shape (`supportedReasoningEfforts` ascending, `description`, `defaultReasoningEffort`, `supportsImageInput`, `supportsPersonality`, `additionalSpeedTiers`), and caches in-memory for `REFRESH_INTERVAL_MS = 60 * 60 * 1000`. Refresh is lazy (next request after expiry); `?force=1` on `GET /api/codex/catalog` bypasses the cache. A change to that account's `models_cache.json` also invalidates the snapshot on the next request, so a catalog refreshed by the Codex CLI does not wait for the hourly TTL. Failed refreshes retain the prior snapshot without renewing its timestamp.
1071
1131
 
1072
- **Per-account (multi-profile).** Codex is the only provider with per-account auth profiles (HOME / WORK), and model *availability* is entitlement-gated per account - a higher-tier WORK plan sees e.g. `gpt-5.6-sol` where HOME sees only Terra/Luna. So the cache is a `Map` keyed by `codexHome`: each profile is fetched by spawning app-server with that `CODEX_HOME` (the same seam `probeCodexLoggedIn` and both turn transports use). `GET /api/codex/catalog?account=<profileId>` resolves via `resolveProviderAccount('codex', id)` → `codexHome` (omit → ambient `~/.codex`; unknown id → first configured account). Client-side, `App.tsx` polls each configured profile into the `codexCatalogByAccount` store map; account-aware pickers read it via the `useCodexCatalogFor(accountRef)` hook (ConfigTab, TerminalInput, SpawnDialog, WorkflowCreator, AddWorkerSection), so flipping the ACCOUNT PROFILE toggle re-filters the model list live. The plain `codexCatalog` slice remains the default-account fallback for account-less surfaces (Handoff / Review / RunAs / TabContextMenu). Model *capabilities* (efforts, image input) are account-independent, so `getCachedCodexModelCapabilities` unions across every cached snapshot.
1132
+ Codex answers `model/list` per account and per CLI version: an older Codex CLI does not offer newer models, and a turn sent on one fails with `model_not_found` (`model_not_in_accessible_catalog`), whatever the sign-in type. A saved model can come from another install, a newer Codex or a model later withdrawn. When an app-server worker starts, it asks its own app-server for `model/list` (`chooseTurnModel` in `codex-appserver/worker.ts`, rules in `codex-appserver/modelAvailability.ts`; it waits at most 3 seconds and keeps the saved model when there is no answer or an empty list). If the list does not contain the saved model, the worker's turns run on Codex's default visible model and the chat shows one notice naming the Codex version, the missing model and the model used, with the advice to choose a model or update Codex. The saved model is not changed. When Codex still refuses a model (no list was available), the turn's error is that same sentence instead of the raw JSON.
1133
+
1134
+ **Per-account (multi-profile).** Codex supports account profiles, and model availability can differ by account. So the cache is a `Map` keyed by `codexHome`: each profile is fetched by spawning app-server with that `CODEX_HOME` (the same seam `probeCodexLoggedIn` and both turn transports use). `GET /api/codex/catalog?account=<profileId>` resolves via `resolveProviderAccount('codex', id)` → `codexHome` (omit → ambient `~/.codex`; unknown id → first configured account). Client-side, `App.tsx` polls each configured profile into the `codexCatalogByAccount` store map; account-aware pickers read it via the `useCodexCatalogFor(accountRef)` hook (ConfigTab, TerminalInput, SpawnDialog, WorkflowCreator, AddWorkerSection), so flipping the ACCOUNT PROFILE toggle re-filters the model list live. The plain `codexCatalog` slice remains the default-account fallback for account-less surfaces (Handoff / Review / RunAs / TabContextMenu). Model *capabilities* (efforts, image input) are account-independent, so `getCachedCodexModelCapabilities` unions across every cached snapshot.
1073
1135
 
1074
1136
  The cold fallback includes `gpt-6.2-sol` and `gpt-6.2-astra`; Sol is the cold default, while a live account catalog supplies its own default and availability. Both currently advertise low through ultra effort and image input. The observed standard/MAX context values are 500,000/872,000 for Sol and 272,000/872,000 for Astra, with a 95% effective margin. Existing MAX policy, runtime window reporting and code-mode detection read these values without a model-name special case. The browser continues to poll every 30 minutes; reloading the page requests the catalog sooner without restarting Arco.
1075
1137
 
@@ -1112,7 +1174,7 @@ For Codex cluster members, the stable operator-assigned role, code-mode tool map
1112
1174
 
1113
1175
  #### Code-mode models (gpt-5.6 and GPT-6 families) - cluster addendum
1114
1176
 
1115
- The gpt-5.6 models (sol / terra / luna) and the GPT-6 models (astra / sol / luna) run OpenAI's own multi-agent "code mode" harness: the model is `/root` in a team of agents, gets native `spawn_agent` / `send_message` tools, and its tool surface becomes a JS `exec` code cell. The arco-cluster MCP tools survive but move INSIDE the exec cell's `tools` namespace under `tools.mcp__arco_cluster__<tool>` - note **dash → underscore**, unlike Claude CLI's `mcp__arco-cluster__peer_send` wire name. A code-mode member told "use peer_send" can't find any such tool and defaults to the harness's own coordination surface. Fix: `turnEngine` folds `codexCodeModeClusterAddendum()` (`server/src/providers/codexCodeMode.ts`) into the cluster blocks for Codex members whose model the codex catalog (`$CODEX_HOME/models_cache.json` `tool_mode` / `multi_agent_version`) marks as code-mode - catalog-driven, fail-open on unknown. App-server additionally sets the role/tool mapping as developer instructions, preventing Codex's `/root` framing from outranking the Arco role. Verified prompt contract: `npm run smoke:astra-cluster-director`. Full original investigation + repro: `docs/CODEX_GPT56_CLUSTER_INCOMPAT.md`.
1177
+ The gpt-5.6 models (sol / terra / luna) and the GPT-6 models (astra / sol / luna) run OpenAI's own multi-agent "code mode" harness: the model is `/root` in a team of agents, gets native `spawn_agent` / `send_message` tools, and its tool surface becomes a JS `exec` code cell. The arco-cluster MCP tools survive but move INSIDE the exec cell's `tools` namespace under `tools.mcp__arco_cluster__<tool>` - note **dash → underscore**, unlike Claude CLI's `mcp__arco-cluster__peer_send` wire name. A code-mode member told "use peer_send" can't find any such tool and defaults to the harness's own coordination surface. Fix: `turnEngine` folds `codexCodeModeClusterAddendum()` (`server/src/providers/codexCodeMode.ts`) into the cluster blocks for Codex members whose model the codex catalog (`$CODEX_HOME/models_cache.json` `tool_mode` / `multi_agent_version`) marks as code-mode - catalog-driven, fail-open on unknown. App-server additionally sets the role/tool mapping as developer instructions, preventing Codex's `/root` framing from outranking the Arco role. Verified prompt contract: `npm run smoke:astra-cluster-director`. See `docs/CODEX_GPT56_CLUSTER_INCOMPAT.md` for the integration contract.
1116
1178
 
1117
1179
  #### Acceptance
1118
1180
 
@@ -1153,6 +1215,22 @@ Validation: `test:operator-questions`, `test:operator-questions-ui`, and
1153
1215
  inference). Browser acceptance: `scripts/smoke/operator-questions-browser.py`
1154
1216
  against isolated Vite with all API/WebSocket traffic stubbed.
1155
1217
 
1218
+ ## Antigravity CLI
1219
+
1220
+ Antigravity CLI runs the installed `agy acp` program for an interactive Agent tab or a saved Chat that uses tools. Enable it in Settings, then use LOG IN under Authentication or Connections. The provider owns one account-wide Google sign-in used by its tabs. The in-app flow shows the CLI's link and accepts the authorization code or return URL. A successful login command updates the sign-in status; after a server restart the status remains unknown until another login or successful turn. Incognito is unavailable because the CLI retains its own conversation history.
1221
+
1222
+ Arco sends the submitted text and attachments. When a plan is attached, it adds a visible line naming the plan and its file; the line notes edits since the last successful turn. The first turn also lists available Arco skills and their files in a collapsed conversation line; expand it to read the full list. Each Gemini sub-agent start appears as a compact conversation line with its role and prompt. The CLI loads the project's `AGENTS.md` and `GEMINI.md` and its installed skills itself. TUNE MD defaults to `AGENTS.md`. Arco's workflow-scoped file and plan tools are available through MCP in Agent tabs, saved Chats and cluster members; members also get the cluster tools. Use the CLI's native skill installation to add skills. Arco skill picks, tab pins and cluster pins are not sent to Gemini.
1223
+
1224
+ NORTH STAR and GOAL RUN are not offered for Antigravity; its turns do not use them. The /goal composer command reports that they are unavailable.
1225
+
1226
+ Only Gemini models advertised by the CLI are offered. Effort uses the ACP thinking level. Permission requests follow the tab's AUTO or SAFE setting. AUTO approves once; SAFE asks. Tool activity appears in the conversation. Scheduling is not offered in Arco's command menu, and a scheduling permission request is refused. The CLI can perform operations without a permission request according to its own configuration, so Arco cannot promise to stop every unattended action.
1227
+
1228
+ For a saved Antigravity Chat, the working folder is `ARCO_HOME/chat-workspaces/<chat-id>`, separate from Chat history. OPEN FOLDER shows its files. Deleting the Chat also deletes this working folder; save wanted files elsewhere first. An Agent tab starts in its chosen working folder. The folder is a starting location, not a security boundary: with AUTO, tools can reach what the user's account can reach.
1229
+
1230
+ The Versions menu shows the installed Antigravity CLI version and its latest available version. Selecting the row runs `agy update`. Hover or focus G to open usage; touch or click also opens it. Each opening reads usage again, and REFRESH also reads it. The previous reading remains visible while it updates. It shows the available model pools as percentage-used bars and reset times, or a fallback when usage is unavailable. COMPACT sends `/compact` to the current Gemini session and reports the context size when available.
1231
+
1232
+ Arco does not copy this sign-in or call Google for quota. ACP token and context usage are shown; remaining quota comes from the CLI usage command. A Gemini model can be a cluster member in any role; mail to or from it waits for the operator's NUDGE on the recipient, and AUTO-PICKUP skips it (see [Gemini members](PROTOCOL_CLUSTER.md#gemini-members)). It can be a Research Director, and on Linux a researcher inside the worker sandbox with the separate GEMINI FOR RESEARCH sign-in, whose file Arco copies into the researcher's private home for each turn (see [Gemini researchers](RESEARCH.md#gemini-researchers)). This provider is not offered for reviewers or automatic turns. Handoff to Antigravity saves the document and places an editable line in the composer; review and send it to start the new session. The older `antigravity` provider remains retired and its saved work is not silently changed.
1233
+
1156
1234
  ## Cursor
1157
1235
 
1158
1236
  In the PROVIDERS panel, clicking CURSOR runs the existing `cursor-agent update`
@@ -1172,19 +1250,60 @@ published version can be compared and confirms it.
1172
1250
  ACP and print output decode UTF-8 across pipe chunks, preserving multibyte text and filenames. Cancelling native compression finishes its cancellation wait when compression settles; its fallback timer cannot kill a later turn.
1173
1251
 
1174
1252
  `server/src/providers/cursor/` - a long-lived per-workflow ACP worker (`worker.ts`) driving
1175
- `cursor-agent acp` over JSON-RPC (`acpJsonRpc.ts`), a per-turn wrapper + worker cache (`index.ts`),
1253
+ `cursor-agent acp` over the shared JSON-RPC transport (`providers/acp/acpJsonRpc.ts`), a per-turn wrapper + worker cache (`index.ts`),
1176
1254
  a `cursor-agent models` catalog (`catalog.ts`), and a stateless `cursor-agent -p --mode ask` one-shot
1177
- for read-only primitives (`print.ts`). Cursor is a metered subscription fronting ~150 models across
1178
- every major lab behind one login. **This section covers auth recovery, usage, compression, the model picker and cluster membership.**
1255
+ for read-only primitives (`print.ts`). Cursor offers models through its own CLI. **This section covers auth recovery, usage, compression, the model picker and cluster membership.**
1179
1256
  Chat tabs route Cursor to the `print` transport with transcript replay; Cursor is refused for
1180
1257
  Incognito (its CLI has no ephemeral-session flag). Attachments: the ACP worker sends native `image`
1181
1258
  content blocks when `initialize` advertises `promptCapabilities.image` (cursor-agent 2026.09 does);
1182
- `print` (Chat + read-only primitives) has no image flag, so it passes path refs and `--add-dir`s the
1183
- upload dir so ask-mode's read tool can open them. Non-images are path refs on both.
1259
+ `print` Chat uses fitted image copies through `--image`; documents arrive as decoded text.
1260
+
1261
+ ### Sandboxed researchers and isolated members
1262
+
1263
+ Cursor applies its own sandbox only in print mode; its ACP mode ignores it. Researchers and
1264
+ ISOLATED members on Cursor therefore never use the ACP worker: `providers/index.ts` routes them to
1265
+ `isolated.ts`, which runs one `cursor-agent --print --output-format stream-json --trust --sandbox enabled`
1266
+ process per turn inside Arco's checked Linux fence (`workers/cursorIsolatedLaunch.ts`) and continues the
1267
+ conversation with `--resume <session>`. If a saved session cannot be resumed, the turn starts a new one
1268
+ once and says so; a failed fence self-check never retries.
1269
+
1270
+ - **Settings.** The member's private home holds `CURSOR_CONFIG_DIR` (`~/.cursor`), rewritten before each
1271
+ turn with `sandbox: { mode: enabled, readBoundary: workspace, networkAccess: enabled }`, an allowlist of
1272
+ the two mailbox tools and a deny rule for `WebFetch(*)`. Cursor's sandbox keeps shell writes inside the
1273
+ workspace, and print mode rejects file-tool writes elsewhere. Cursor applies `readBoundary: workspace`
1274
+ only when one of its server-side feature flags is on and already loaded; otherwise its shell and Read
1275
+ tool can read everything the fence shows, including the member's private home with Cursor's settings
1276
+ (which name the Cursor account) and its own conversation store.
1277
+ - **Approval.** No `--force`, `--yolo`, `--auto-review` or `--approve-mcps`; print mode cannot ask, so any
1278
+ tool call that is not allowed is rejected. The launcher accepts only `--model` and `--resume`.
1279
+ - **Mailbox.** The scoped mailbox is a user-level `~/.cursor/mcp.json` in the private home. Cursor does
1280
+ not ask to approve user-level servers, and the sandboxed agent cannot change the file.
1281
+ - **Web.** Cursor's web search runs on Cursor's servers and would bypass Arco's web filter, so
1282
+ `autoAcceptWebSearch` is on only while the member's web switch is on. Web fetch stays denied; pages are
1283
+ fetched with the shell through the filtered proxy. With web off the proxy admits only `api2.cursor.sh`
1284
+ and subdomains of `cursor.sh`.
1285
+ - **Sign-in.** Cursor issues one 60-day session token, stored as both access and refresh token. The pass
1286
+ is a read-only copy of that token in a mounted directory. Cursor reads it once at start; when the agent
1287
+ reports its start, before the model can call a tool, Arco empties the pass, and a failure stops the turn.
1288
+ The token then remains only in the agent process's memory, which its tools cannot read.
1289
+ - **Fence.** The fence hides `newuidmap` and `newgidmap`, which cannot work inside it and make Cursor's
1290
+ sandbox helper fail. The preflight also starts the helper with a workspace-only policy and requires it
1291
+ to deny reads outside the workspace before the agent starts; this proves the sandbox works in the fence,
1292
+ not which read boundary Cursor chooses. Cursor 2026.11.22 or later is required; because Cursor updates
1293
+ itself, the preflight before every turn is the guard that fails closed, not an exact version.
1294
+ - **Sub-agents.** A `Task` sub-agent runs inside the same fence, and Cursor applies its sandbox to
1295
+ the sub-agent's shell. The sandbox permits workspace writes and restricts home writes, outer-home access
1296
+ and web access when web is off.
1184
1297
 
1185
1298
  ### Auth and stale ACP recovery
1186
1299
 
1187
- `GET /api/auth-status` reads `~/.config/cursor/auth.json` fresh, while each workflow's long-lived
1300
+ `GET /api/auth-status` reads the Cursor session fresh (`providers/cursor/authToken.ts`): the CLI's own
1301
+ `auth.json` first (`$XDG_CONFIG_HOME/cursor` on Linux, `%APPDATA%\Cursor` on Windows, `~/.cursor` on
1302
+ macOS), then `~/.config/cursor/auth.json`; on Linux, when that file holds only
1303
+ `{"storedIn":"os-secret-store"}`, the desktop keyring through `secret-tool search` (service
1304
+ `cursor-credentials`, account `cursor-user`, never unlocking, nothing cached); on macOS, the login
1305
+ keychain. A locked or unreadable keyring sets `probeFailed`, so the status reads unknown, not signed
1306
+ out, and the top-bar X opens Connections. Each workflow's long-lived
1188
1307
  `cursor-agent acp` child keeps the credentials and CLI binary it started with. A successful
1189
1308
  `cursor-agent login` or CLI update therefore does not repair an already-running ACP process by itself.
1190
1309
  Cursor reports this condition as the ordinary assistant text `Please sign in to continue`, not as an
@@ -1194,9 +1313,29 @@ cached worker. After the operator completes login and resends, `acquireWorker` s
1194
1313
  with the current credentials and attempts the normal `session/load` resume. Any longer answer that only
1195
1314
  mentions signing in falls through as normal assistant text.
1196
1315
 
1197
- Connections > Cursor runs `cursor-agent login` inside Arco (`authLoginSession.ts`, with
1316
+ Connections > Cursor, and LOG IN on the CURSOR (ACP) row in Settings, run `cursor-agent login` inside Arco (`authLoginSession.ts`, with
1198
1317
  `NO_OPEN_BROWSER=1`) and shows the link it prints; the CLI finishes on its own once the page confirms.
1199
- `POST /api/auth-login?provider=cursor` still returns the terminal command as a fallback.
1318
+ When the Settings flow finishes, Arco runs the same explicit check as Connections
1319
+ (`client/src/utils/providerStatusCheck.ts`) and publishes it to the shared status.
1320
+ `POST /api/auth-login?provider=cursor` still returns the terminal command as a fallback; on Linux
1321
+ it is `env -u DISPLAY -u WAYLAND_DISPLAY NO_OPEN_BROWSER=1 cursor-agent login`, so a desktop terminal
1322
+ writes the sign-in to `auth.json` instead of the keyring. The RE-LOGIN card in a conversation requests
1323
+ `inApp=1` and shows the same in-app flow (sign-in link, progress, terminal command behind a toggle). It
1324
+ leaves the original conversation and its draft untouched and replays nothing.
1325
+
1326
+ On Linux, `cursor-agent` reads the keyring only when its process has a session bus and `DISPLAY` or
1327
+ `WAYLAND_DISPLAY`; otherwise it reads `auth.json` alone and reports "Not logged in". An Arco service
1328
+ usually has a bus and no display, so any `cursor-agent` use in a desktop terminal, which moves the
1329
+ sign-in into the keyring, used to break Cursor in Arco. `providers/cursor/agentEnv.ts` now builds the
1330
+ environment of every signed-in `cursor-agent` child (ACP workers, print turns, the catalog,
1331
+ `cursor-agent status`, the Cursor Smart pickup evaluator). When `auth.json` says `storedIn`, a session
1332
+ bus exists and no display is set, it adds the display of this user's own running desktop session: the
1333
+ lowest `wayland-N` socket owned by the user under `XDG_RUNTIME_DIR`, else the lowest `/tmp/.X11-unix/XN`
1334
+ socket owned by the user. Only a display name is passed, never a token. A sign-in kept in `auth.json`
1335
+ gets no display, so Arco never makes `cursor-agent` move file tokens into the keyring. When the sign-in
1336
+ is in the keyring and no desktop session is found, the Cursor status reads not signed in with a message
1337
+ that offers LOG IN. Isolated members and researchers are unaffected: they receive the token through the
1338
+ pass-through file and run `cursor-agent` in file mode.
1200
1339
 
1201
1340
  A readable token is not proof of a working sign-in. `providers/cursor/authState.ts` remembers the last
1202
1341
  rejection (`Authentication required` from `session/new`, the sign-in reply above, a `401` from the usage
@@ -1235,13 +1374,12 @@ otherwise.
1235
1374
 
1236
1375
  Cursor's ACP `result` carries **no per-turn tokens**, so Cursor never emits `primary_turn_token_usage`
1237
1376
  and never appears in the per-project Usage aggregation. Instead `server/src/cursorUsage.ts` polls the
1238
- **authed dashboard API** (`GET /api/cursor-usage`, 3-min cache; reads `~/.config/cursor/auth.json` fresh
1239
- each poll, decodes the JWT `sub`, builds the `WorkosCursorSessionToken` cookie) for month-to-date charged-$
1377
+ **authed dashboard API** (`GET /api/cursor-usage`, 3-min cache; reads the session fresh each poll as in Auth above, decodes the JWT `sub`, builds the `WorkosCursorSessionToken` cookie) for month-to-date charged-$
1240
1378
  + token totals + per-`kind` counts + the `get-hard-limit` `hardCapped` flag. The client polls it into the
1241
1379
  `cursorUsage` store field and renders `CursorUsageCard` at the top of the Usage tab - it shows even when
1242
1380
  the per-project aggregation is empty (Cursor-only projects have no per-turn events). The card is labelled
1243
1381
  "· polled · not live" so a blank in-tab live meter reads as expected, not broken. `401/403` →
1244
- `needsLogin` + a `cursor-agent login` nudge.
1382
+ `needsLogin` + a pointer to sign in from Connections.
1245
1383
 
1246
1384
  The worker header deliberately renders **`CTX: Cursor-managed`**, not an invented percentage. Cursor's
1247
1385
  ACP adapter currently returns only `{ stopReason }` from `session/prompt` and emits neither per-turn
@@ -1272,22 +1410,22 @@ bar in BOTH the Usage-tab card and the header-dot hover. The bar fill uses Curso
1272
1410
  `totalPercentUsed` (Cursor weights first-party vs API differently - it is NOT `used/limit`), so the gauge
1273
1411
  matches cursor.com exactly rather than a synthesized percentage. The compact header-dot variant additionally
1274
1412
  shows Cursor's **Other Models** quota as a separate bar driven directly by `apiPercentUsed`. Absent (endpoint drift) → the card falls
1275
- back to the charged-$/hard-cap line. The other candidate endpoints don't exist for individual accounts
1276
- (`get-hard-limit` returns only `noUsageBasedAllowed`; the legacy `/api/usage` `maxRequestUsage` is `null`
1277
- on usage-based plans) - `/api/usage-summary` is the one that carries the real allocation denominator.
1413
+ back to the charged-$/hard-cap line. The allocation denominator comes from `/api/usage-summary`.
1278
1414
 
1279
1415
  ### Model catalog & family × effort picker
1280
1416
 
1281
- `cursor-agent models` returns ~189 ids that are really **family × effort × flag** permutations dumped
1282
- flat (`gpt-5.3-codex-high-fast`, `claude-opus-4-8-thinking-xhigh`, ...). Rather than a 189-option wall,
1283
- the picker groups by family and offers only the efforts/flags that exist for the chosen family. The
1417
+ `cursor-agent models` returns **family × effort × flag** permutations as a flat list
1418
+ (e.g. `gpt-5.3-codex-high-fast`, `claude-opus-4-8-thinking-xhigh`).
1419
+ The picker groups by family and offers only the efforts/flags that exist for the chosen family. The
1284
1420
  grammar is genuinely irregular - do not "simplify" the parser without re-checking `cursor-agent models`:
1285
1421
  effort is a trailing token OR absent (bare id = the family's default slot); `gpt-5.5` spells extra-high
1286
1422
  as two tokens `-extra-high`; `-fast` is trailing everywhere except grok (`grok-4.5-fast-xhigh`, mid-id);
1287
1423
  `-thinking` sits before the effort for opus-4-8 but after it for sonnet-4.6; a family name can itself end
1288
1424
  in an effort word (`gpt-5.1-codex-max` is a family, `-max-low` = that family at low), so only ONE
1289
1425
  trailing effort token is ever stripped; `(NO ZDR)` is a per-family display property (fable), not a
1290
- selectable variant.
1426
+ selectable variant. `minimal` counts as an effort (`muse-spark-1.3-minimal` belongs to the Muse Spark family).
1427
+
1428
+ **Models the text list leaves out.** `cursor-agent models` can omit models that Cursor sessions offer. Each ACP session's `availableModels` is passed to `catalog.ts` (`noteAcpModels`) and saved as `cursor-acp-models.json` in the Arco home. `getCursorCatalog` adds every advertised model with no variant in the text list as one entry: its ACP base name as the id (`glm-5p3`, which `modelMap.ts` resolves to the advertised `glm-5p3[reasoning=high]`) and a readable name (`GLM 5.3`). No ACP session is started only to read the list, so such a model appears once a Cursor session has run on the machine. When names are compared, a leading `cursor` word is ignored on both sides: the text list writes `cursor-grok-4.6-high`, ACP writes `grok-4.6[...]`.
1291
1429
 
1292
1430
  - **Parser (`shared/src/protocol/models.ts`).** `parseCursorModelId(id) → {family, effort, fast,
1293
1431
  thinking}` (pure, total - unknown ids degrade, never throw); `buildCursorModelIndex(models)` groups the
@@ -1316,9 +1454,7 @@ Cursor is a `ClusterMemberProvider` - a Cursor member can hold any role at any m
1316
1454
  ride a mechanism unique among the providers: an **in-process loopback StreamableHTTP MCP server**, not
1317
1455
  the stdio child Claude-CLI/Codex members spawn. Cursor ACP advertises `mcpCapabilities:{http:true,
1318
1456
  sse:true}` and **no stdio** (spike-8; a stdio `mcpServers` entry was accepted but never called), so a
1319
- network transport is mandatory. An SSE micro-probe (`scripts/cursor-sse-mcp-probe.ts`, throwaway)
1320
- confirmed a loopback MCP's tools appear + are callable over ACP on both streamable-HTTP and legacy SSE;
1321
- streamable-HTTP is the chosen transport.
1457
+ network transport is mandatory. The bridge uses streamable HTTP.
1322
1458
 
1323
1459
  - **Shared tool factory.** The arco-cluster tool set (6 peer/plan tools + 11 board-gated task tools)
1324
1460
  was extracted from the stdio child into `server/src/mcp/clusterMcpTools.ts`
@@ -1355,6 +1491,8 @@ listener down).
1355
1491
 
1356
1492
  ## Ollama
1357
1493
 
1494
+ Settings > Providers and models > Sign-in, accounts and local endpoints offers an off-by-default small-context tool selection for all Ollama cluster members. It retains file, shell, mailbox, cluster plan reading and board reading. It omits WebSearch and WebFetch, board and plan changes, and other tools; the member receives a notice on each affected turn. Standalone Agent tabs and Chats keep their existing tools. The setting takes effect on the next turn.
1495
+
1358
1496
  Stateless local replay keeps the brief and later exchanges after a completed handoff, without reintroducing the archived prefix. Failed or cancelled handoffs preserve earlier context. Messages containing literal USER or AGENT role labels use a tagged JSON-string representation internally so those lines, their whitespace and their backslashes stay inside the original message. Existing plain rendered transcripts remain readable.
1359
1497
 
1360
1498
  `server/src/providers/ollama.ts` + `server/src/providers/ollamaTools.ts`. Pure HTTP, no subprocess.
@@ -1405,7 +1543,7 @@ Each backend: `{ baseUrl, weight?, enable?, label?, tailscaleHost? }`. **Back-co
1405
1543
 
1406
1544
  **Retry/failover** (`backoffMs`): on a retryable error, re-select. **Instant zero backoff when a healthy peer exists**; jittered exponential (`0.5·2^n` cap 8s + ≤0.75s jitter) only when forced onto the last/only host. Retryability table (`classifyOllamaError`): conn errors (refused/timeout/reset/DNS) + 5xx/429 = retryable+cool; 4xx incl. 400 context-overflow = neither (400 is the transcript's fault - context-window fallback owns it, not a cooldown). A mid-stream drop *after bytes were emitted* does NOT fail over (would double-emit) - it surfaces as terminal.
1407
1545
 
1408
- **Connect timeout** (`OLLAMA_CONNECT_TIMEOUT_MS`, default 3s, env `ARCO_OLLAMA_CONNECT_TIMEOUT_MS`): a second AbortController aborts if response *headers* don't arrive in time, then is cleared once streaming starts (decode stays unbounded). A dead host fails in ~3s instead of hanging. The timeout abort carries `CONNECT_TIMEOUT_MARKER` so it's classified retryable, distinct from operator abort.
1546
+ **Connect and stream-start timeouts:** before each chat request Arco probes `GET /api/version` under `OLLAMA_CONNECT_TIMEOUT_MS` (default 3 s; `ARCO_OLLAMA_CONNECT_TIMEOUT_MS` accepts 500-30000). A dead host fails in about 3 s instead of hanging. Once the daemon answers, the `/api/chat` response headers get `OLLAMA_STREAM_START_TIMEOUT_MS` (default 180 s; `ARCO_OLLAMA_STREAM_START_TIMEOUT_MS` accepts 5000-600000), long enough for a cold model load. Decoding is not time-limited after the headers arrive. Both timeout aborts carry `CONNECT_TIMEOUT_MARKER`, so they are classified retryable and stay distinct from an operator abort.
1409
1547
 
1410
1548
  **Tailscale fallback (BEST-EFFORT):** on a DNS failure (`ENOTFOUND`), `resolveViaTailscale` shells out (`execFile`, argv-only, no shell) to `tailscale status --json` to resolve the host to its tailnet IP and retries once against the IP. **Cross-platform:** tries `tailscale` on PATH + `/usr/bin/tailscale` (Linux) + the macOS app-bundle path; tight 2.5s timeout; **fails soft** - a missing/erroring Tailscale never breaks normal operation. Loopback hosts are never tailscale-resolved.
1411
1549
 
@@ -1414,7 +1552,7 @@ Each backend: `{ baseUrl, weight?, enable?, label?, tailscaleHost? }`. **Back-co
1414
1552
  `server/src/providers/ollamaParams.ts` is the typed cast/allowlist boundary every request's params flow through (ported from open-webui `apply_model_params_to_body_ollama`). A persisted `ollamaParams` blob lives on `WorkflowConfig` / `WorkerConfig` / `WorkflowMeta` and rides `UpdatePrimaryConfigMessage`, so an operator's per-tab params survive restarts and live-edit from CONFIG without a respawn. Absorbs Hardening (`num_ctx`).
1415
1553
 
1416
1554
  - **`OLLAMA_PARAM_SPEC`** - the allowlist table. Each key carries a `placement` (`'options'` vs request `'root'`) and a fail-closed `coerce`. Allowed keys: `num_ctx, keep_alive, num_gpu, temperature, top_p, top_k, min_p, num_predict, repeat_penalty, repeat_last_n, seed, num_batch, num_thread, num_keep` (plus `stop`). Anything unmapped is **dropped** (prevents Ollama "invalid option" warnings); a value that fails to coerce is dropped, not guessed. `keep_alive` lifts to the request root; sampler/`num_ctx` keys go under `options`.
1417
- - **Trusted-only `num_ctx` (`clampNumCtx`).** The operator may type any `num_ctx` in the UI, but it is **clamped to the model's probed `/api/show` Modelfile ceiling** - guessing high risks daemon OOM, guessing low truncates. If no trusted probe exists, `num_ctx` is **omitted entirely** and the daemon's 2048 default applies (the conservative arm of the trusted-only rule). multi-backend routing re-probes this ceiling on the *chosen* backend per turn.
1555
+ - **Trusted-only `num_ctx` (`clampNumCtx`).** The operator may type `num_ctx` in the UI, but it is **clamped to the probed Modelfile ceiling**, or the architecture maximum when no Modelfile value is available. If neither trusted ceiling is known, the override is **omitted entirely** and the daemon chooses its value. multi-backend routing re-probes this ceiling on the *chosen* backend per turn.
1418
1556
  - **CONFIG-tab ADVANCED PARAMS.** Collapsed-by-default section exposing the `OLLAMA_PRESET_UI_KEYS` menu (`num_ctx`, `keep_alive`, `num_gpu`, `temperature`); the rest live in the raw JSON blob for power users. Each turn emits a `system_notice` of the effective keys so the applied preset is visible in `events.jsonl`.
1419
1557
 
1420
1558
  The applied `options` envelope is the **single insertion point** and is prefix-cache-load-bearing - see GOTCHAS.
@@ -1440,17 +1578,19 @@ The applied `options` envelope is the **single insertion point** and is prefix-c
1440
1578
 
1441
1579
  `server/src/providers/ollamaRecovery.ts` ports `llamacppRecovery.ts`'s auto-compaction to Ollama, adapted to the stateless-per-turn worker shape. Persists an `ollama_compacted` event (before/after byte + token counts) to `events.jsonl` so replay re-seeds correctly and transcript review shows where history was cut.
1442
1580
 
1443
- - **Gates.** Hard compact at **0.85** fill (`ARCO_OLLAMA_COMPACT_THRESHOLD`), early **0.75** warn-only `system_notice` (`ARCO_OLLAMA_COMPACT_WARN`) suggesting Handoff before the lossy local summary fires, max **1** auto-compaction per operator turn. Because the Ollama worker is stateless per turn, `maybeCompact` fires at the **front edge** of `run()` (before the tool-loop). (llama.cpp no longer compacts; it only warns.)
1444
- - **Transform.** Keep the leading system block + current turn + last-10 messages verbatim (`ARCO_OLLAMA_COMPACT_KEEP_LAST`); summarize the older half on the utility-model summarization seam (`runUtilitySummaryJob`); deterministic structural digest (`deterministicDigest`) when the summary call returns `null` - **fails open, never closed**.
1581
+ - **Legacy gates.** Without the durable replay policy, hard compact at **0.85** fill (`ARCO_OLLAMA_COMPACT_THRESHOLD`), early **0.75** warn-only `system_notice` (`ARCO_OLLAMA_COMPACT_WARN`) suggesting Handoff before the lossy local summary fires, max **1** auto-compaction per operator turn. Because the Ollama worker is stateless per turn, `maybeCompact` fires at the **front edge** of `run()` (before the tool-loop). (llama.cpp no longer compacts; it only warns.)
1582
+ - **Legacy transform.** Keep the leading system block + current turn + last-10 messages verbatim (`ARCO_OLLAMA_COMPACT_KEEP_LAST`); summarize the older half on the utility-model summarization seam (`runUtilitySummaryJob`); deterministic structural digest (`deterministicDigest`) when the summary call returns `null` - **fails open, never closed**.
1445
1583
  - **Tool-message invariants (load-bearing - see GOTCHAS).** `sanitizeToolMessages` repairs/drops the orphaned `role:'tool'` / dangling `tool_calls` a front-cut creates (Ollama pairs positionally - no `tool_call_id`). `truncateToolCallArgs` shrinks an oversized single tool turn to a `{_truncated_for_context: N}` placeholder, preserving name/type so pairing survives.
1446
1584
  - Scoped **out** of utility JSON formatting one-shots; defers to context-window fallback on unknown-window or at-keep-tail-floor.
1447
1585
 
1586
+ The current worker and cluster auto-compaction policy uses its configured threshold and durable summary boundary; see [Auto-compaction policy](SETTINGS.md#auto-compaction-policy).
1587
+
1448
1588
  ### Context-window fallback
1449
1589
 
1450
1590
  `server/src/providers/ollamaCtxFallback.ts` `planCtxEscalation` - on a detected overflow, re-dispatch to a larger window instead of failing. Builds on multi-backend routing. Emits a `context_window_fallback` `system_notice` (from→to). **Escalate, don't re-compact** - context compaction owns the transcript; this is the escape hatch when even compaction isn't enough or a bigger window exists.
1451
1591
 
1452
1592
  - **Order:** (1) `numctx_bump` - same backend/model, request the **full probed ceiling**, only when it's `>` the failing window; (2) `peer_backend` - a different backend whose probed window for the same model is known-larger.
1453
- - Reuses multi-backend routing's `contextOverflow` classification (only explicit context-overflow detail in a 400 triggers widening; unrelated 400 errors remain validation failures). Bounded re-dispatch (max 2 hops, `MAX_CTX_ESCALATIONS`, no re-pick), with a mid-stream guard so a re-dispatch can't double-emit.
1593
+ - Reuses multi-backend routing's `contextOverflow` classification (only explicit context-overflow detail in a 400 triggers widening; unrelated 400 errors remain validation failures). Bounded re-dispatch (default 2 hops, `MAX_CTX_ESCALATIONS`; `ARCO_OLLAMA_CTX_MAX_ESCALATIONS` accepts 1-4; no re-pick), with a mid-stream guard so a re-dispatch can't double-emit.
1454
1594
 
1455
1595
  ### Relevant-tool subsetting
1456
1596
 
@@ -1499,7 +1639,7 @@ Turns "why did my model unload / why is VRAM full" into visible operator state.
1499
1639
 
1500
1640
  **`runUtilityJob({ job, system?, prompt?|messages?, format?, maxTokens?, windowMessages?, maxInputBytes?, onNotice? })`** - one round-trip, **`stream:false`**, **`think:false`** (a thinking-capable model left to its default would burn the whole `num_predict` budget on `message.thinking`), a hard **`num_predict`** OUTPUT cap (default 512, ceiling 4096), a **windowed INPUT** (last-N messages + a total-byte cap, oldest dropped first; a leading system message is exempt), and an optional JSON-schema **`format`** (JSON-format reuse - the result is parsed and handed back as `json`). **Two-stage timeout:** a cheap **liveness probe** (`/api/version` under the short connect timeout) fast-fails a dead/hung host before committing to the generous **180 s total round-trip budget** - that budget must cover a COLD model load PLUS the full non-streaming generation (with `stream:false` Ollama sends nothing until the whole answer is ready, so the interactive 3 s connect timeout can't apply). **Fail-soft**: never throws; a down/erroring backend ⇒ `{ ok:false, reason:'error' }`. **Visible**: every invocation emits a `system_notice` (job name, model, backend, in/out token counts) → `events.jsonl`.
1501
1641
 
1502
- **Why this is NOT a `distill` (CLAUDE.md fence):** operator-configured + opt-in (OFF by default), bounded by deterministic rules (cap + window + single shot), per-call-logged, reversible (unset the model ⇒ gone). It runs for discrete, NAMED jobs - never an automatic per-turn pass.
1642
+ **Utility jobs:** operator-configured and opt-in (off by default), bounded by deterministic caps, logged per call and reversible by clearing the model. They run for named jobs, not as an automatic per-turn pass.
1503
1643
 
1504
1644
  **utility-model summary seam:** `runUtilitySummaryJob({ messages, maxTokens?, framing?, onNotice? }) → Promise<string | null>`. Context compaction passes the **pre-sliced older-half messages** + a cap; this returns the summary text, or `null` when the utility model is unconfigured/failed. **Context compaction supplies the deterministic fallback** (a structural digest) for the `null` case - this seam never invents one, so the "never fails closed" guarantee lives in context compaction.
1505
1645
 
@@ -1507,6 +1647,28 @@ Turns "why did my model unload / why is VRAM full" into visible operator state.
1507
1647
 
1508
1648
  **Session titles (opt-in, 2026-09-29):** `settings.ollama.utility.titles: true` (default OFF - arming the utility model for compaction does NOT arm titles) makes `workflows/modelTitles.ts` generate a 5-8-word RESUME-picker title after a workflow's turns: one-shot per session, first ≤4 operator messages, 32-token cap, job `session-title` (visible `system_notice`), applied through `applyModelTitle` (logged to `title-events.jsonl`; an operator rename always outranks). Fire-and-forget after the session-index upsert in `writeMeta`; failure leaves the derived title. Tab labels (`config.name`) are operator-owned and never touched. `npm run test:model-titles`.
1509
1649
 
1650
+ ### Environment overrides
1651
+
1652
+ Read from the server's environment at start. A value outside its range is ignored and the default applies.
1653
+
1654
+ | Var | Default | Purpose |
1655
+ |---|---|---|
1656
+ | `OLLAMA_URL_BASE` | `http://localhost:11434` | Daemon endpoint when `settings.ollama` sets none |
1657
+ | `ARCO_OLLAMA_CONNECT_TIMEOUT_MS` | `3000` | `/api/version` liveness probe; 500-30000 |
1658
+ | `ARCO_OLLAMA_STREAM_START_TIMEOUT_MS` | `180000` | Wait for chat response headers; 5000-600000 |
1659
+ | `ARCO_OLLAMA_MAX_TOOL_TURNS` | `50` | Tool-loop iterations per operator turn; 1-200 |
1660
+ | `ARCO_OLLAMA_TOOL_MODE` | `auto` | `auto`, `native` or `fenced` |
1661
+ | `ARCO_OLLAMA_TOOL_SUBSET` | on | `0`, `off`, `false` or `no` advertises every tool |
1662
+ | `ARCO_OLLAMA_TOOL_CAP` | `9` | Advertised tool cap; from the core tool count to 50 |
1663
+ | `ARCO_OLLAMA_AUTO_COMPACT` | `true` | Auto-compaction on or off |
1664
+ | `ARCO_OLLAMA_COMPACT_THRESHOLD` | `0.85` | Context fill that compacts; 0.5-0.99 |
1665
+ | `ARCO_OLLAMA_COMPACT_WARN` | `0.75` | Context fill that warns; 0.4-0.98 |
1666
+ | `ARCO_OLLAMA_MAX_COMPACTIONS` | `1` | Auto-compactions per operator turn; 0-10 |
1667
+ | `ARCO_OLLAMA_COMPACT_KEEP_LAST` | `10` | Recent messages kept verbatim; 2-100 |
1668
+ | `ARCO_OLLAMA_COMPACT_MAX_ARG_CHARS` | `8000` | Largest tool-call argument kept; 500-200000 |
1669
+ | `ARCO_OLLAMA_COMPACT_SUMMARY_TOKENS` | `1024` | Summary output cap; 128-4096 |
1670
+ | `ARCO_OLLAMA_CTX_MAX_ESCALATIONS` | `2` | Context-window escalations per turn; 1-4 |
1671
+
1510
1672
  ### Request shape
1511
1673
 
1512
1674
  ```json
@@ -1532,7 +1694,7 @@ Turns "why did my model unload / why is VRAM full" into visible operator state.
1532
1694
  2. `WorkerConfig.appendSystemPrompt` (the rendered `USER:`/`AGENT:` transcript) → `parseRenderedTranscript()` walks it back into structured `user`/`assistant` messages.
1533
1695
  3. The new turn's user prompt + safety footer → final `{role:'user'}`.
1534
1696
 
1535
- Items 1 and 2 must be byte-stable across turns within a workflow - Ollama's prefix cache hits on `(1)+(2)` and only re-prefills the new tail. Inline sampler/`num_ctx` overrides are intentionally **not** plumbed (would invalidate the cache); those live in the operator-side Modelfile.
1697
+ Items 1 and 2 must be byte-stable across turns within a workflow - Ollama's prefix cache hits on `(1)+(2)` and only re-prefills the new tail. Per-tab sampler and `num_ctx` overrides are available through ADVANCED PARAMS; changes can invalidate the prefix cache.
1536
1698
 
1537
1699
  ### Event parsing
1538
1700
 
@@ -1564,7 +1726,7 @@ The v1 allowlist (`server/src/providers/ollamaTools.ts`):
1564
1726
  | `Write` | `file_path`, `content` | mkdir -p parents, refuses to clobber a directory. |
1565
1727
  | `Bash` | `command`, optional `description` / `timeout` | `/bin/sh -c` (Git Bash on Windows, see `commandShell.ts`; on Windows without Git Bash it is the `PowerShell` tool, as in Claude Code) in the workflow cwd. Stdin closed (no hangs). Combined stdout+stderr cap 64 KB, default 60s timeout, hard ceiling 600s. Spawned `detached:true` so timeout / abort / output-cap kills the whole process tree. Footer reminders apply. |
1566
1728
  | `WebSearch` | `query`, optional `max_results` (1-10, default 5) | Hits the operator's local SearXNG instance (`ARCO_SEARXNG_URL`, default `http://127.0.0.1:8888`). Returns a markdown list of `title - url\n snippet`. SearXNG bang syntax (`!g foo`) routes to specific engines. 10s timeout. |
1567
- | `WebFetch` | `url`, optional `mode` (`auto` / `fast` / `stealth`) | Fast path: native `fetch()` with browser UA, 10s timeout, HTML→text strip. Stealth path: shells out to `/opt/camoufox/bin/python` (configurable via `ARCO_CAMOUFOX_PYTHON`) and uses Camoufox's `inner_text("body")`, 30s timeout. Auto mode tries fast, falls back to stealth on Cloudflare/403/empty signals. SSRF guard blocks loopback / RFC1918 / link-local hosts (`127.0.0.0/8`, `10/8`, `172.16/12`, `192.168/16`, `169.254/16`, IPv6 loopback / unique-local / link-local). |
1729
+ | `WebFetch` | `url`, optional `mode` (`auto` / `fast` / `stealth`) | Uses guarded direct HTTP for every mode. Browser fallback is unavailable; sites requiring browser execution may not load. Public addresses and redirects are checked before connection. |
1568
1730
 
1569
1731
  STOP ends the active local Bash tree. Closing or handing off its tab also ends active local shells and drains tree cleanup and pipe closure for up to 15 seconds. This runtime is shared by Ollama, llama.cpp, LM Studio, Strata and DeepSeek; it does not expose Native's `run_in_background` API. A fully redirected background job whose command has already returned is outside this active-shell tracking.
1570
1732
 
@@ -1593,7 +1755,7 @@ the model to that obsolete state.
1593
1755
 
1594
1756
  ### Session resume
1595
1757
 
1596
- **None.** Ollama is stateless; each turn is a fresh HTTP request. Multi-turn memory comes from `appendSystemPrompt` carrying the rendered workflow transcript - the prefix cache hits cleanly and only the new turn pays prefill cost. Verified ~5500 → +275 input-token delta on a real 3-turn run (see plan 12 History).
1758
+ **None.** Ollama is stateless; each turn is a fresh HTTP request. Multi-turn memory comes from `appendSystemPrompt` carrying the rendered workflow transcript - the prefix cache hits cleanly and only the new turn pays prefill cost.
1597
1759
 
1598
1760
  ### Auth
1599
1761
 
@@ -1614,7 +1776,7 @@ None. Ollama is a local daemon - Arco just probes `${OLLAMA_URL_BASE}/api/tags`
1614
1776
  - **Cache invariance.** Anything that mutates the system prompt, transcript bytes, or `options` between turns flushes the prefix cache. Don't inject timestamps / random ids into system prompts.
1615
1777
  - **Think handling, two paths.** Native-parser models (qwen3.5/3.6 with RENDERER+PARSER qwen3.5, qwen3-vl-thinking, deepseek3, gpt-oss) emit reasoning into `message.thinking`; ThinkSplitter is a fallback for legacy `<think>`-in-content models (heretic-tools, qwopus). Request body must send `think` for native-parser models - `ollama.ts` sends `ollamaThinkParam(effort, levels)` (a boolean, or a level string on level-capable models). Don't ship a hand-rolled TEMPLATE that omits the qwen3.5 RENDERER/PARSER directives or capability detection breaks (`thinking` won't be advertised) and reasoning silently disappears.
1616
1778
  - **Max output cap.** Same `MAX_WORKER_OUTPUT_BYTES` ceiling (50 MB default). Output beyond cap aborts the stream with a truncation notice.
1617
- - **No retry / throttle.** Local daemon doesn't rate-limit; no quota tracking or system_notice retry path.
1779
+ - **Retry / throttle.** Retryable connection errors, 5xx and 429 responses use the backend failover and cooldown policy above. A drop after streaming starts is surfaced rather than replayed.
1618
1780
 
1619
1781
  ### Endpoint auto-discovery
1620
1782
 
@@ -1658,9 +1820,21 @@ One streaming `POST ${baseUrl}/chat/completions` per turn (SSE `data:` lines, `[
1658
1820
 
1659
1821
  `getLmstudioBase()` resolves `settings.lmstudio.baseUrl`, then `LMSTUDIO_URL_BASE`, then defaults to `http://localhost:1234/v1`. The configured value supports DD12 config-value interpolation (`!cmd ...` and `${ENV}`) through `resolveConfigValue` before `normalizeBase`. A bare `host:port` gets `/v1` appended; for example, `http://localhost:1234` works.
1660
1822
 
1823
+ ### Environment overrides
1824
+
1825
+ These apply to LM Studio, Strata and DeepSeek, which share the same HTTP loop.
1826
+
1827
+ | Var | Default | Purpose |
1828
+ |---|---|---|
1829
+ | `ARCO_LMSTUDIO_MAX_TOOL_TURNS` | `25` | Tool-loop iterations per operator turn; 1-200 |
1830
+ | `ARCO_LMSTUDIO_STALL_TIMEOUT_MS` | `120000` | A stream that sends no event for this long is stopped and the turn fails with a plain error; minimum 1000 |
1831
+ | `ARCO_LMSTUDIO_TOOL_HEAD_BYTES` | `4096` | Characters kept from the start of a long tool result for LM Studio (Strata and DeepSeek keep full runtime results) |
1832
+ | `ARCO_LMSTUDIO_TOOL_TAIL_BYTES` | `2048` | Characters kept from the end of such a result |
1833
+ | `ARCO_LMSTUDIO_THINKING_FLUSH_MS` | `100` | Interval at which reasoning deltas are coalesced; 0-5000 |
1834
+
1661
1835
  ### Capability detection
1662
1836
 
1663
- `probeLmstudio()` hits `/v1/models` to populate the CONFIG-tab model dropdown (this also fixed a latent empty-dropdown gap on the llama.cpp path). **The OpenAI `/v1/models` surface omits vision/tool/ctx capability metadata** - a thin optional `lms`-CLI probe could enrich those flags later; that enrichment is **stubbed today** (documented follow-up).
1837
+ `probeLmstudio()` hits `/v1/models` to populate the CONFIG-tab model dropdown (this also fixed a latent empty-dropdown gap on the llama.cpp path). The OpenAI `/v1/models` response supplies model IDs. When available, the native `/api/v1/models` response adds vision, trained-for-tool-use and context metadata; unknown metadata remains conservative.
1664
1838
 
1665
1839
  ### Registration
1666
1840
 
@@ -1668,7 +1842,7 @@ One streaming `POST ${baseUrl}/chat/completions` per turn (SSE `data:` lines, `[
1668
1842
 
1669
1843
  ### Not a cluster member
1670
1844
 
1671
- LM Studio is **not** wired as a cluster member, unlike Ollama and llama.cpp (which run peer tools in-process, capped per cluster by the local runtime capacity setting in Connections, default one member). Cluster peer tools are not registered for it. It is supported in Chat (including Incognito).
1845
+ LM Studio is not offered when creating a new cluster member. Existing standard local members can receive cluster context and board tools where available. LM Studio is supported in Chat, including Incognito.
1672
1846
 
1673
1847
  ---
1674
1848
 
@@ -1723,9 +1897,10 @@ configuration and stays outside Git.
1723
1897
  **Transport.** Reuses `OpenAIHttpWorkerProcess` in `lmstudio.ts`: streaming SSE,
1724
1898
  fragmented indexed tool calls, usage, image data URLs, transcript replay and a
1725
1899
  bounded server-side tool loop. `reasoning_content` streams to thinking and is
1726
- preserved inside tool-call round trips. Strata exposes `none`, `low`, `medium`, and `high` directly; `none`
1727
- disables reasoning and Strata maps `high` to Qwen xhigh. Legacy higher effort
1728
- values normalize to `high`. Final usage carries the discovered context and last prompt tokens.
1900
+ preserved inside tool-call round trips. Arco sends `none`, `low` and `medium` as
1901
+ `reasoning_effort`. Any higher effort, including `high`, is sent as `high`.
1902
+ Arco does not send xhigh. `none` disables reasoning. Context and vision come
1903
+ from the prepared profile. Final usage carries the discovered context and last prompt tokens.
1729
1904
  One serial Strata slot avoids concurrent Arco requests to the single-request
1730
1905
  engine. Cancel aborts HTTP and settles the worker; Strata remains running.
1731
1906
  The shared loop's `ARCO_LMSTUDIO_*` turn/stall bounds apply to both HTTP
@@ -1787,12 +1962,15 @@ gets only its armed web pair. Strict Incognito, clusters and Computer selection
1787
1962
  are not enabled. Prepared vision configs forward native OpenAI image parts;
1788
1963
  text-only configs reject images before loading. Live modality readiness must
1789
1964
  match the prepared profile. The native reasoning
1790
- channel and assistant reasoning for tool rounds are preserved; request effort
1791
- is none/low/medium/high, with an 8192 thinking budget and 16384 total output cap.
1792
- Context size comes from the configured service model and includes input, history,
1793
- thinking and output. The worker uses runtime timings and the final round's prompt
1965
+ channel and assistant reasoning for tool rounds are preserved. Arco sends
1966
+ none, low and medium as `reasoning_effort`. Any higher effort, including high,
1967
+ is sent as high. Each request sends `reasoning_budget_tokens` 8192 and
1968
+ `max_tokens` 16384. Registration requires a 262144-token context, covering
1969
+ input, history, thinking and output. The worker uses runtime timings and the final round's prompt
1794
1970
  count for measured context and rates.
1795
1971
 
1972
+ The environment overrides in the LM Studio section (`ARCO_LMSTUDIO_*`) also apply to DeepSeek.
1973
+
1796
1974
  **Discovery/auth.** `settings.deepseek.baseUrl` → `DEEPSEEK_URL_BASE` →
1797
1975
  `http://127.0.0.1:8150/v1`. A matching validated operator registry populates
1798
1976
  `authStatus.deepseek` and both Exact/Light labels/capabilities while stopped;
@@ -1835,7 +2013,7 @@ Endpoint overrides in `extraArgs`, including the suggested `--port 8081` fix, us
1835
2013
 
1836
2014
  Supported in Chat (tools omitted) but rejected for Incognito: the shared daemon always writes `~/.arco/llamacpp.log`.
1837
2015
 
1838
- Why this provider exists alongside Ollama: vision-capable architectures often land in `llama.cpp` weeks before Ollama wires up the multimodal projector path. Qwen3.6 was the motivating case (Ollama issue 14730: `unknown model architecture: 'qwen35moe'` on the multimodal path). The text-only ergonomic edge of Ollama is unchanged; llama.cpp is the escape hatch when you need a feature Ollama hasn't shipped yet.
2016
+ llama.cpp supports operator-declared model and projector loadouts, independent of Ollama.
1839
2017
 
1840
2018
  **Fit engine.** The fit engine sizes GGUF models against *detected* hardware - `server/src/hardware/fit.ts` estimates VRAM (weights + KV-cache + overhead), the max context that fits, throughput, and a fit verdict/score for a given `{params, quant, arch}` on the box's probed GPU(s)/VRAM. On Apple Silicon the engine derives the Metal GPU's bandwidth from the probed GPU-core count against published unified-memory figures and sizes against a unified-memory VRAM budget, so a Metal GPU now scores a real verdict instead of an automatic `NO`.
1841
2019
 
@@ -1850,7 +2028,7 @@ Catalog edits and deletions use the version that was reviewed. Duplicate aliases
1850
2028
 
1851
2029
  ### Spawn
1852
2030
 
1853
- `POST /v1/chat/completions` with `stream: true`. OpenAI SSE format (not Ollama NDJSON). Workers always go through `llamacppManager.ensureLoaded(alias)` first, which blocks 20-30s on the cold-start of a 17GB GGUF and is a no-op once loaded.
2031
+ `POST /v1/chat/completions` with `stream: true`. OpenAI SSE format (not Ollama NDJSON). Workers always go through `llamacppManager.ensureLoaded(alias)` first, which waits for a cold load and is a no-op once loaded.
1854
2032
 
1855
2033
  ### Lifecycle manager
1856
2034
 
@@ -1920,7 +2098,7 @@ OpenAI fragment-assembly: tool calls arrive across multiple SSE events, partial
1920
2098
 
1921
2099
  **XML tool-call fallback.** Some Qwen builds emit `<tool_call>{...}</tool_call>` XML markup in `reasoning_content` instead of structured `delta.tool_calls[]`. The provider sniffs for this fallback and parses the XML payload as a synthetic tool call so the loop still progresses. Without this fallback the model would emit a tool-shaped reasoning block and then hang waiting on a tool result that never comes.
1922
2100
 
1923
- **Thinking coalescing.** `reasoning_content` deltas can fire many times per second; we coalesce them on a `~ARCO_LLAMACPP_THINKING_FLUSH_MS` interval before emitting `primary_thinking_chunk` events to avoid saturating the WebSocket send buffer.
2101
+ **Thinking coalescing.** `reasoning_content` deltas can fire many times per second; we coalesce them on an `ARCO_LLAMACPP_THINKING_FLUSH_MS` interval (default 100 ms) before emitting `primary_thinking` messages to avoid saturating the WebSocket send buffer.
1924
2102
 
1925
2103
  **Reviewer-mode tool allowlist.** When `runReviewer.ts` dispatches a llama.cpp reviewer, it injects `READ_ONLY_LLAMACPP_TOOLS` (Read, Grep, Glob, WebSearch, WebFetch - same shape as Ollama's READ_ONLY_OLLAMA_TOOLS) instead of the full primary-mode set. Plus a `LOCAL_REVIEWER_ADDENDUM` framing addendum explicitly tells the reviewer to use those tools to verify diff claims against the live tree, not just opine on the diff text. See [Primitives: Review Local-reviewer addendum](PRIMITIVES.md#local-reviewer-addendum).
1926
2104
 
@@ -1943,18 +2121,18 @@ binary or model is installed or loaded.
1943
2121
 
1944
2122
  ### Quirks
1945
2123
 
1946
- - **Cold-start latency.** First turn after a switch is 20-30s for a 17GB GGUF (mmap + VRAM transfer). UI shows nothing useful during this window today; status is queryable via `GET /api/llamacpp-live`.
2124
+ - **Cold-start latency.** The first turn after a switch waits for the model to load. Status is available via `GET /api/llamacpp-live`.
1947
2125
  - **One model at a time.** Switching aliases mid-workflow forces a kill + reload. Operators who want concurrent models should run multiple Arco-external `llama-server` instances; this manager owns exactly one.
1948
2126
  - **`--jinja` always on.** Required for OpenAI-style tool calling. Cheap on non-tool turns; mandatory on tool turns. Not configurable.
1949
2127
  - **Effort mapping.** `low` prepends `/no_think` to the system prompt (same Qwen-family convention as Ollama). Other efforts leave native thinking on. The two-value picker (`low` / `high`) matches Ollama's.
1950
- - **CPU fallback.** If Vulkan / CUDA isn't available at runtime, `llama-server` falls back to CPU silently. Inference will be unusably slow; check `~/.arco/llamacpp.log` if a model loads but each turn takes minutes.
2128
+ - **CPU fallback.** If Vulkan / CUDA isn't available at runtime, `llama-server` falls back to CPU silently. Performance depends on the model and host; check `~/.arco/llamacpp.log` if a model loads but turns are slow.
1951
2129
  - **Vision projector compatibility.** mmproj files are model-specific. The Qwen3.6 mmproj won't work with Qwen3-VL or any other model. Pull the projector from the same HuggingFace repo as the GGUF.
1952
- - **No retry / throttle.** Same as Ollama - local backend, no quota tracking.
2130
+ - **Recovery / throttle.** The local backend has no quota tracking. The bounded auto-recovery paths are described below.
1953
2131
  - **Mid-turn steer.** Same hook shape as the Ollama path. `LlamacppWorkerProcess.run` calls `WorkerConfig.drainSteer` after `messages.push(...toolResults); toolTurn++;` and *before* the recovery checks (tool-loop coach termination, tool-cap auto-continue). Drains the whole steering bucket each fire; follow-up bucket is left alone. Recovery arms above the hook (reasoning runaway / stall / wall_clock / empty completion) `continue` from their own arms and never reach the hook within their iteration - by design; they are conversation-repair flows that own their own injected user message. Tool-cap auto-continue sits below the hook and runs on the same iteration if both fire, so the steer + recap both reach the next call. The drain is destructive (splice), so a same-iteration re-call returns `[]` - no double-deliver under any retry path.
1954
2132
 
1955
2133
  ### Auto-recovery
1956
2134
 
1957
- Local thinking models fail in three specific ways that the lifecycle alone can't handle: reasoning runaway (model emits `reasoning_content` for minutes without ever committing), tool-cap exhaustion (25-turn cap fires on legitimately long work), and context fill (96K cap is small compared to Claude). The provider runs an in-place auto-recovery system that keeps the conversation going without operator intervention.
2135
+ Local thinking models fail in three specific ways that the lifecycle alone can't handle: reasoning runaway (model emits `reasoning_content` for minutes without ever committing), tool-cap exhaustion (25-turn cap fires on legitimately long work), and context fill (a local window is small compared to Claude's). The provider runs an in-place auto-recovery system that keeps the conversation going without operator intervention.
1958
2136
 
1959
2137
  Distinct from the heavyweight Handoff primitive (which spawns a fresh workflow with a chosen summarizer model - tuned for Claude/Codex flows). Auto-recovery operates inside the same worker on the same workflow, just intelligently resetting the in-memory message stack when something goes sideways.
1960
2138
 
@@ -1980,15 +2158,18 @@ The context-fill path only warns and suggests Handoff. It does not make a compac
1980
2158
 
1981
2159
  | Var | Default | Purpose |
1982
2160
  |---|---|---|
1983
- | `ARCO_LLAMACPP_BIN` | `/usr/local/bin/llama-server` | Binary path (for other installs) |
2161
+ | `ARCO_LLAMACPP_BIN` | unset: `llama-server` (`llama-server.exe` and the other `PATHEXT` names on Windows) is looked up on `PATH` | Full path to the binary. It must be an existing file; if it is not, llama.cpp counts as not installed and `PATH` is not searched |
1984
2162
  | `ARCO_LLAMACPP_PORT` | `8923` | Port the manager spawns llama-server on |
1985
2163
  | `ARCO_LLAMACPP_HOST` | `127.0.0.1` | Bind host |
1986
2164
  | `ARCO_LLAMACPP_KEEPALIVE_MS` | `600000` (10 min) | Idle eviction window. `0` = never evict. |
1987
- | `ARCO_LLAMACPP_MAX_TOOL_TURNS` | `25` | Tool-loop iterations per operator turn before recovery (or failure if recovery exhausted) |
1988
- | `ARCO_LLAMACPP_AUTO_RECOVER` | `true` | Enable recovery attempts; `off` still enforces the time limits |
1989
- | `ARCO_LLAMACPP_REASONING_BUDGET` | `4000` | Reasoning tokens before runaway intervention |
1990
- | `ARCO_LLAMACPP_COMPACT_THRESHOLD` | `0.85` | Context fill fraction that raises the suggest-Handoff notice |
1991
- | `ARCO_LLAMACPP_MAX_RECOVERIES` | `1` | Total auto-recovery actions per operator turn |
2165
+ | `ARCO_LLAMACPP_MAX_TOOL_TURNS` | `25` | Tool-loop iterations per operator turn before recovery (or failure if recovery exhausted); 1-200 |
2166
+ | `ARCO_LLAMACPP_AUTO_RECOVER` | `true` | Enable recovery attempts; `false`, `0`, `no` or `off` disables them and still enforces the time limits |
2167
+ | `ARCO_LLAMACPP_REASONING_BUDGET` | `4000` | Reasoning tokens before runaway intervention; 100-100000 |
2168
+ | `ARCO_LLAMACPP_COMPACT_THRESHOLD` | `0.85` | Context fill fraction that raises the suggest-Handoff notice; 0.5-0.99 |
2169
+ | `ARCO_LLAMACPP_MAX_RECOVERIES` | `1` | Total auto-recovery actions per operator turn; 0-10 |
2170
+ | `ARCO_LLAMACPP_TOOL_HEAD_BYTES` | `4096` | Characters kept from the start of a long tool result other than `Read` (a `Read` result over 250 lines keeps its first and last 100 lines) |
2171
+ | `ARCO_LLAMACPP_TOOL_TAIL_BYTES` | `2048` | Characters kept from the end of such a result |
2172
+ | `ARCO_LLAMACPP_THINKING_FLUSH_MS` | `100` | Interval at which reasoning deltas are coalesced before they are sent; 0-5000, `0` sends every delta |
1992
2173
  | `ARCO_LLAMACPP_STALL_TIMEOUT_MS` | `90000` | No stream data limit, enforced even with recovery off; range 10000-600000 ms |
1993
2174
  | `ARCO_LLAMACPP_TURN_BUDGET_MS` | `120000` | Wall-clock limit per reply, enforced even with recovery off; range 10000-1800000 ms |
1994
2175
  | `ARCO_LOOP_COACH_THRESHOLD` | `2` | Identical (tool, args) calls before loop coach fires (shared with Ollama) |
@@ -1997,7 +2178,7 @@ The context-fill path only warns and suggests Handoff. It does not make a compac
1997
2178
 
1998
2179
  ## External MCP integrations
1999
2180
 
2000
- External MCP servers that Arco surfaces as operator-attachable per-tab options. CONFIG > MCP SERVERS is available on Claude Native and CLI, Codex exec and app-server, Cursor Agent, Ollama, llama.cpp, LM Studio, Strata and DeepSeek Agent tabs. The registry list is shared across tabs; enablement and tool choices belong to each tab. Standard and BLIND cluster members have the same controls. Chat tabs and isolated members do not receive configured servers and do not show this section. Unlike the in-process per-cluster MCP server (Cluster + scope), these are operator-installed binaries running on the same machine. Arco's job is the UX (toggle, status, re-index button) + persistence of intent + spawn-time wiring to inject the server entry into the worker's `--mcp-config`.
2181
+ External MCP servers that Arco surfaces as operator-attachable per-tab options. CONFIG > MCP SERVERS is available on Claude Native and CLI, Codex exec and app-server, Cursor and Antigravity CLI Agent tabs, Ollama, llama.cpp, LM Studio, Strata and DeepSeek Agent tabs. The registry list is shared across tabs; enablement and tool choices belong to each tab. Standard and BLIND cluster members have the same controls. Chat tabs and isolated members do not receive configured servers and do not show this section. Unlike the in-process per-cluster MCP server (Cluster + scope), these are operator-installed binaries running on the same machine. Arco's job is the UX (toggle, status, re-index button) + persistence of intent + spawn-time wiring to inject the server entry into the worker's `--mcp-config`.
2001
2182
 
2002
2183
  Each entry below follows the same shape: install path → operator surface → fences → persistence shape.
2003
2184
 
@@ -2005,17 +2186,17 @@ Each entry below follows the same shape: install path → operator surface → f
2005
2186
 
2006
2187
  Tree-sitter → SQLite knowledge graph (Cypher-ish queries + BM25 + vector). 14 MCP tools including `search_graph`, `detect_changes` (git-diff blast radius), and `manage_adr`. **Deterministic, no LLM in the server itself** - the binary's value is structural code understanding, not curated memory. The only LLM-write surface in the entire package is `manage_adr`, and it is operator-prompted only (the model writes an ADR when the operator types "make an ADR for this") - passing the no-LLM-curated-memory test.
2007
2188
 
2008
- **Install path.** Single static binary. Operator-installed once per machine; see `docs/OPERATIONS.md`. **Hard invariant**: Arco ALWAYS invokes the binary with `--skip-config` because the binary's default install/run behavior auto-edits agent config files (`~/.claude/settings.json` and similar). The flag is wired into the one-shot reindex spawn at `server/src/index.ts` and must persist into the deferred F9 spawn-site wiring.
2189
+ **Install path.** Single static binary. Operator-installed once per machine; see `docs/OPERATIONS.md`. **Hard invariant**: Arco ALWAYS invokes the binary with `--skip-config` because the binary's default install/run behavior auto-edits agent config files (`~/.claude/settings.json` and similar). The flag is wired into the one-shot reindex spawn and the attached MCP server configuration.
2009
2190
 
2010
2191
  **Operator surface.**
2011
2192
  - **CONFIG tab → `INDEXES & MEMORY` section** (`client/src/components/RightPanel/CodebaseMemorySection.tsx`). Per-tab "Attach codebase memory" checkbox, operator-typed index-path field (defaults to the workflow's cwd), status line, "Re-index now" button.
2012
- - **FILES tab → `BLAST RADIUS` sub-tab** (`client/src/components/RightPanel/BlastRadiusTab.tsx`). Shown only when memory is attached. Renders `detect_changes` output for the current `git diff` against the index (full rendering ships with the F9 follow-up - placeholder today).
2193
+ - **FILES tab → `BLAST RADIUS` sub-tab** (`client/src/components/RightPanel/BlastRadiusTab.tsx`). Shown only when memory is attached. Shows the index status. Ask a supported agent to use `detect_changes` to inspect the current changes.
2013
2194
 
2014
2195
  **Wire shape.** Three WS messages - `attach_codebase_memory { workflowId, indexPath? }` / `detach_codebase_memory { workflowId }` (client→server), and `codebase_memory_state { workflowId, attached, indexPath?, lastIndexedAt?, fileCount? }` (server→client, fires on attach / detach / reindex). One HTTP route: `POST /api/workflows/:wfId/codebase-memory/reindex { indexPath? }` → 200 with `{ lastIndexedAt, fileCount? }` on success, 503 `binary_not_installed` when the binary isn't on PATH.
2015
2196
 
2016
2197
  **Persistence.** `WorkflowConfig.codebaseMemory` + `WorkflowMeta.codebaseMemory` (same shape) carry the operator's intent across server restart. Detach retains `indexPath` so re-attaching is one click.
2017
2198
 
2018
- **Spawn-site wiring (deferred - F9).** The actual `--mcp-config` write-in at CLI spawn time piggybacks on Cluster Arco's `mcpConfigWriter`. 's attach toggle records intent only; the worker never invokes the MCP today. This spawn-site wiring remains deferred.
2199
+ **Spawn-site wiring.** Claude CLI and Codex Agent turns receive the attached server through `mcpConfigWriter`. Chat tabs and isolated members do not receive it. The panel shows index status rather than tool output.
2019
2200
 
2020
2201
  **Hard fences (autonomy four-question test).** (1) Operator-initiated - every action is a click. (2) Deterministic - tree-sitter + BM25 + SQL queries; no LLM in the loop on Arco's side. (3) Visible in `events.jsonl` - `codebase_memory_state` rides `broadcastWorkflow` which seq-stamps + persists. (4) Reversible - detach toggle is one click; the on-disk index is operator-managed.
2021
2202
 
@@ -2038,18 +2219,18 @@ Future entries (e.g. operator-installed Linear / Jira MCPs) should follow the sa
2038
2219
  | Effort levels | up to 5 | up to 5 | model/catalog-driven; Astra: low through ultra | model/catalog-driven; Astra: low through ultra | per model (low=off + `thinking.values` levels; else low / high) | 2 (low / high) | 2 (low / high) |
2039
2220
  | Auth | subscription / API key | OAuth subscription (`~/.arco/auth.json`) | subscription / API key | subscription / API key | none | none | none |
2040
2221
  | Throttle detection | yes (regex + Retry-After) | yes (structured Anthropic error envelope) | yes (30 min cooldown) | yes (`error.codexErrorInfo`) | n/a | n/a | n/a |
2041
- | Retry on transient errors | yes (15/30/60s) | yes (header-aware `retry-after`, 15/30/60s fallback) | no | no | no | no | no |
2222
+ | Retry on transient errors | yes (15/30/60s) | yes (header-aware `retry-after`, 15/30/60s fallback) | no | no | bounded pre-stream failover | bounded recovery | bounded recovery |
2042
2223
  | Mid-turn cancel | yes (SIGKILL) | yes (loop-abort, in-process) | yes (SIGKILL) | yes (`turn/interrupt` + 5s ack; SIGKILL fallback) | yes (abort fetch) | yes (abort fetch) | yes (abort fetch) |
2043
2224
  | Mid-turn steer | post-turn drain | drain hook between tool-result append + next API call | post-turn drain | `turn/steer` RPC (precondition: `expectedTurnId`) | yes (between tool-loop iterations) | yes (between tool-loop iterations) | yes (between tool-loop iterations) |
2044
2225
  | Concurrent-writer guard | yes | n/a (Arco-internal session) | no | no | n/a | n/a | n/a |
2045
2226
  | Auto-handoff support (after N compactions) | yes (CLI `compact_boundary`) | yes (`native_compacted`; needs auto-compaction) | no (exec reports no compactions) | yes (`contextCompaction` / `thread/compacted`) | yes (durable compaction; needs auto-compaction) | no - in-place auto-recovery instead (context fill / stall / tool-cap / reasoning runaway) | no |
2046
2227
  | Server-side context-mgmt | n/a | operator-armed (`compact` OFF by default - CONFIG ADVANCED Claude API compaction (beta) toggle, gated on catalog support; `clear_thinking` / `clear_tool_uses` intentionally off) | n/a | n/a | n/a | n/a | n/a |
2047
2228
  | Cluster peer tools | per-spawn stdio MCP child via `--mcp-config` | registered in-process | per-turn stdio MCP child via `-c mcp_servers.*` TOML overrides | per-appserver-process stdio MCP child via `-c mcp_servers.*` TOML overrides | in-process tool registry (`localClusterCapacity`, default 1) | in-process tool registry (`localClusterCapacity`, default 1) | no |
2048
- | Chat tabs | yes (+ web) | yes (+ web) | yes (+ web) | yes (+ web) | yes (+ web) | yes (not Incognito) | yes |
2229
+ | Chat tabs | yes (+ web) | yes (+ web) | yes (+ web) | uses exec (+ web) | yes (+ web) | yes (not Incognito) | yes |
2049
2230
  | Single-consumer | no | no | no | no | no | one model at a time per Arco (manager-owned) | no |
2050
2231
  | Best at | long sessions, terminal interop, reviewers, handoff destinations | low-latency tool-loop work, server-side context mgmt, plan-mode + sandbox tools, Task fan-out | second-opinion review, primary work | primary work with mid-turn steer + structured cancel | local single-shot, sub-tasks | local multimodal, architectures Ollama hasn't shipped yet | local models via the LM Studio runtime (OpenAI-compat) |
2051
2232
 
2052
- **Cursor** (one of the eight primary providers) is likewise not a matrix column: a long-lived per-workflow ACP worker (`server/src/providers/cursor/`) driving `cursor-agent acp` - subprocess long-lived, JSON-RPC/ACP stream, `session/load` resume, `session/set_model` live swap, `session/cancel` + 5s hard-kill, post-turn steer drain, no per-turn tokens on the wire (Usage tab is authoritative). It IS a cluster member (`cursor` ∈ `ClusterMemberProvider`) - **cluster peer tools: in-process loopback StreamableHTTP MCP server** (Cursor ACP honors http/sse only, not stdio; fresh-only membership). See the [Cursor](#cursor) section above.
2233
+ **Cursor** and **Antigravity CLI** are not matrix columns. Cursor is a long-lived per-workflow ACP worker (`server/src/providers/cursor/`) driving `cursor-agent acp` - subprocess long-lived, JSON-RPC/ACP stream, `session/load` resume, `session/set_model` live swap, `session/cancel` + 5s hard-kill, post-turn steer drain, no per-turn tokens on the wire (Usage tab is authoritative). It IS a cluster member (`cursor` ∈ `ClusterMemberProvider`) - **cluster peer tools: in-process loopback StreamableHTTP MCP server** (Cursor ACP honors http/sse only, not stdio; fresh-only membership). See the [Cursor](#cursor) and [Antigravity CLI](#antigravity-cli) sections above.
2053
2234
 
2054
2235
  ---
2055
2236
 
@@ -2170,7 +2351,7 @@ accounts per leg and drops a leg it can't authenticate).
2170
2351
  - Every advance is **logged** (`provider_fell_back` → `events.jsonl`).
2171
2352
  - The chain is **operator-opted-in** (hand-configured) and **reversible**
2172
2353
  (remove the chain → fallback stops; a failed run still surfaces the last leg's
2173
- error). Clears the four-question test in `CLAUDE.md`.
2354
+ error).
2174
2355
 
2175
2356
  Smoke: `npm run smoke:fallback` (pure unit - no WS, no server boot, no live
2176
2357
  providers; stubs a throttle on leg 0 and asserts leg 1 runs + one
@@ -2196,7 +2377,7 @@ not the app tag; current details are in [STRATA.md](STRATA.md#engine-and-compone
2196
2377
 
2197
2378
  ## Retired provider history
2198
2379
 
2199
- Z.ai, Antigravity, and Gemini support have been removed. Existing workflow
2380
+ Z.ai, the older Antigravity provider, and the dedicated Gemini provider have been removed. Existing workflow
2200
2381
  metadata, transcripts, artifacts and provider identity remain readable through
2201
2382
  the normal history tools. A retired provider cannot start or resume work; choose
2202
2383
  a supported provider explicitly for new work. Arco does not uninstall external
@@ -2239,7 +2420,7 @@ Automatic Claude CLI calibration starts only while the same session remains idle
2239
2420
 
2240
2421
  STOP also revokes a normal message still preparing prompt or file context. It cannot enter a queue or start a provider turn after that cancellation.
2241
2422
 
2242
- A busy message resolves its selected one-shot skills before entering the queue. The same skill context is delivered once whether the provider consumes it as mid-turn steering or the queue runs it after the turn.
2423
+ For supported providers, a busy message resolves its selected one-shot skills before entering the queue. The same skill context is delivered once whether the provider consumes it as mid-turn steering or the queue runs it after the turn. Antigravity CLI does not receive picked or pinned Arco skill bodies.
2243
2424
 
2244
2425
  ## Local-model recovery and cluster tools
2245
2426
 
@@ -2259,7 +2440,7 @@ Claude Native and local-model Glob can return a directory alias for a directory-
2259
2440
 
2260
2441
  ## Reading files and attachments
2261
2442
 
2262
- Arco's file tools read inside the project folder. Files elsewhere reach the model only when the operator attaches them to the message.
2443
+ Arco-managed file tools read inside the project folder. Files elsewhere can be attached to the message. Provider-owned CLI tools follow their own permissions and are not confined by the Arco file-tool boundary.
2263
2444
 
2264
2445
  Arco decodes file contents before sending them to a model. Local providers use
2265
2446
  this reader for `Read`; Claude CLI, Codex and Cursor can use the read-only
@@ -2322,8 +2503,7 @@ The direct reader accepts HTTP(S), checks every resolved address and rechecks
2322
2503
  each redirect before following it. Loopback, private and link-local targets are
2323
2504
  refused. Text downloads have a 128 KiB budget; media and document sources have
2324
2505
  the shared 512 MiB limit. The direct request and decoding deadline is 10,000 ms.
2325
- Cancellation releases the response reader. Local WebFetch can use its existing
2326
- browser fallback for bot-protected text pages.
2506
+ Cancellation releases the response reader. Local WebFetch uses direct HTTP for all mode values; pages that require a browser may not load.
2327
2507
 
2328
2508
  Native `read_url` returns PDF text and scanned-page images by default. Use `pdf_mode: "visual"` with `pages` for selected native PDF pages. It follows
2329
2509
  Chat web access and the agent tool posture. WEB LOOKUPS / TURN also sets its
@@ -2333,7 +2513,7 @@ the source URL and a receipt so the model can call `read_url` again.
2333
2513
 
2334
2514
  ### Local cluster board tools
2335
2515
 
2336
- Ollama, llama.cpp, LM Studio, Strata and DeepSeek expose all eleven `cluster_task_*` tools to standard-access cluster members with an attached task board. These tools list, show, create, claim, update, heartbeat, comment, link, unlink, block and submit completion reports through the existing cluster board API. Completion submits to review; done and archived remain operator-only.
2516
+ Ollama, llama.cpp, LM Studio, Strata and DeepSeek expose all eleven `cluster_task_*` tools to standard-access cluster members with an attached task board. These tools list, show, create, claim, update, heartbeat, comment, link, unlink, block and submit completion reports through the existing cluster board API. Completion submits to review. A Director met sign-off closes a task when Board auto-done is on; direct done and archived changes remain operator-only.
2337
2517
 
2338
2518
  The BOARD mode takes effect on the next turn. Detached boards and BLIND members receive no board tools, and execution repeats those checks. Local execution still requires AUTO mode and a workflow folder. Explicit tool allowlists still apply. Ollama models without native tools use the existing fenced-call protocol. LM Studio history requires the selected model to report `trained_for_tool_use` in its [native model metadata](https://lmstudio.ai/docs/developer/rest/list); false or missing metadata leaves history unattached. This does not change the older server's other tools. Ollama keeps attached board tools in its coordination core, outside relevance trimming; its tool cap grows by the attached coordination-tool count. Native and local providers share the board descriptions and argument schemas.
2339
2519