arco-workbench 0.2.2 → 0.2.5

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 (276) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/THIRD_PARTY_NOTICES +2 -2
  3. package/client/dist/assets/{PhosphorBackdrop-BbR3xmfD.js → PhosphorBackdrop-CLILIwOQ.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-UMjbs9ZN.js → ThemedBackgroundShaderImpl-B87chcb5.js} +1 -1
  5. package/client/dist/assets/{XtermView-n135qz-f.js → XtermView-BP_j7WSN.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-CFSke4by.js → galleryEditor-B90phoBI.js} +1 -1
  7. package/client/dist/assets/{index-DeoJbjI3.js → index-BfPp1Oup.js} +270 -270
  8. package/client/dist/index.html +1 -1
  9. package/client/dist/manifest-mobile.webmanifest +1 -0
  10. package/client/src/App.tsx +2 -2
  11. package/client/src/components/AuthReloginNotice.tsx +7 -6
  12. package/client/src/components/ChatMessage.tsx +41 -29
  13. package/client/src/components/ChatPanel.tsx +17 -4
  14. package/client/src/components/ClaudeNativeAccountPicker.tsx +32 -0
  15. package/client/src/components/ClaudeNativeAuthRow.tsx +71 -19
  16. package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +11 -281
  17. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +1 -1
  18. package/client/src/components/ClusterRightPanel/FreshMemberForm.tsx +315 -0
  19. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +17 -7
  20. package/client/src/components/ClusterRightPanel/index.tsx +1 -1
  21. package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +6 -4
  22. package/client/src/components/ClusterTab.tsx +2 -2
  23. package/client/src/components/Connections/Connections.tsx +7 -11
  24. package/client/src/components/Connections/model.ts +3 -1
  25. package/client/src/components/FileViewerModal.tsx +54 -17
  26. package/client/src/components/GitHubPanel/index.tsx +9 -5
  27. package/client/src/components/HandoffDialog.tsx +5 -3
  28. package/client/src/components/MobileShell.tsx +1 -33
  29. package/client/src/components/OperatorQuestionNotice.tsx +5 -4
  30. package/client/src/components/ProvidersPopover.tsx +6 -2
  31. package/client/src/components/RightPanel/ActivityTab.tsx +2 -1
  32. package/client/src/components/RightPanel/ConfigTab.tsx +23 -5
  33. package/client/src/components/RightPanel/OutputsPanel.tsx +21 -9
  34. package/client/src/components/RightPanel/outputsReconcile.ts +31 -0
  35. package/client/src/components/SettingsPanel.tsx +7 -10
  36. package/client/src/components/SpawnDialog.tsx +14 -3
  37. package/client/src/components/TabBar.tsx +2 -2
  38. package/client/src/components/TabContextMenu.tsx +73 -133
  39. package/client/src/components/TerminalInput.tsx +4 -3
  40. package/client/src/components/TranscriptWorkerDialog.tsx +14 -4
  41. package/client/src/components/UsageBar.tsx +37 -18
  42. package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +29 -3
  43. package/client/src/components/WorkflowCreator/index.tsx +29 -15
  44. package/client/src/components/WorkflowView.tsx +1 -1
  45. package/client/src/components/providerIndicator.ts +7 -3
  46. package/client/src/components/research/QuickResearchOverview.tsx +7 -3
  47. package/client/src/components/research/SavedQuickKeep.tsx +7 -3
  48. package/client/src/components/settings/GitHubAuthRow.tsx +34 -0
  49. package/client/src/explorer/ArtifactsLens.tsx +17 -8
  50. package/client/src/explorer/ExplorerApp.tsx +3 -3
  51. package/client/src/explorer/types.ts +3 -1
  52. package/client/src/help/content/cluster.tsx +10 -4
  53. package/client/src/help/content/composer.tsx +3 -2
  54. package/client/src/help/content/header.tsx +6 -3
  55. package/client/src/help/content/misc.tsx +9 -7
  56. package/client/src/help/content/rightPanel.tsx +11 -6
  57. package/client/src/help/content/settings.tsx +14 -3
  58. package/client/src/help/content/tabbar.tsx +1 -1
  59. package/client/src/help/manualSections/actions.tsx +5 -1
  60. package/client/src/help/manualSections/clusters.tsx +21 -15
  61. package/client/src/help/manualSections/configuration.tsx +6 -4
  62. package/client/src/help/manualSections/gettingStarted.tsx +4 -2
  63. package/client/src/help/manualSections/maintenance.tsx +24 -0
  64. package/client/src/help/manualSections/powerFeatures.tsx +4 -2
  65. package/client/src/help/manualSections/providers.tsx +11 -4
  66. package/client/src/help/manualSections/workspace.tsx +3 -3
  67. package/client/src/hooks/useClaudeNativeCatalog.ts +26 -0
  68. package/client/src/hooks/useClaudeNativeLogin.ts +16 -11
  69. package/client/src/hooks/useWebSocket.ts +4 -2
  70. package/client/src/layout/layoutRange.ts +14 -5
  71. package/client/src/main.tsx +2 -0
  72. package/client/src/questions/waitingQuestion.ts +2 -0
  73. package/client/src/stores/appStore.ts +5 -1
  74. package/client/src/stores/appStore.types.ts +2 -0
  75. package/client/src/stores/replayContext.ts +20 -0
  76. package/client/src/utils/chatFileLinks.ts +34 -3
  77. package/client/src/utils/claudeAuth.ts +9 -1
  78. package/client/src/ws/handleServerMessage.ts +11 -3
  79. package/docs/ARCHITECTURE.md +3 -3
  80. package/docs/BACKUP.md +1 -1
  81. package/docs/CHECKPOINTS.md +67 -3
  82. package/docs/CLIENT.md +11 -6
  83. package/docs/EXTENDING.md +1 -1
  84. package/docs/FEATURES.md +3 -3
  85. package/docs/GETTING_STARTED.md +5 -4
  86. package/docs/GIT_WORKBENCH.md +8 -0
  87. package/docs/GLOSSARY.md +2 -2
  88. package/docs/GOTCHAS.md +4 -4
  89. package/docs/HTTP_API.md +63 -30
  90. package/docs/OPERATIONS.md +11 -0
  91. package/docs/OPERATOR_ACTIONS.md +2 -2
  92. package/docs/OUTPUTS.md +48 -6
  93. package/docs/PERSISTENCE.md +1 -1
  94. package/docs/PRIMITIVES.md +4 -2
  95. package/docs/PROTOCOL_CLUSTER.md +12 -6
  96. package/docs/PROTOCOL_PRIMITIVES.md +1 -1
  97. package/docs/PROVIDERS.md +47 -10
  98. package/docs/RESEARCH.md +3 -3
  99. package/docs/SETTINGS.md +9 -4
  100. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +15 -3
  101. package/node_modules/@arco/shared/dist/protocol/clusters.js +1 -1
  102. package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
  103. package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +2 -1
  104. package/node_modules/@arco/shared/dist/protocol/settings.d.ts +3 -0
  105. package/node_modules/@arco/shared/dist/protocol/settings.js +5 -0
  106. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
  107. package/node_modules/@arco/shared/dist/protocol/workflows.js +0 -2
  108. package/node_modules/@arco/shared/package.json +1 -1
  109. package/package.json +2 -2
  110. package/scripts/packaging/services.mjs +20 -1
  111. package/scripts/packaging/update.mjs +37 -2
  112. package/server/dist/attention.d.ts +6 -0
  113. package/server/dist/attention.js +6 -0
  114. package/server/dist/auth.d.ts +5 -0
  115. package/server/dist/auth.js +31 -20
  116. package/server/dist/clusterAutoTurn.d.ts +5 -1
  117. package/server/dist/clusterAutoTurn.js +31 -9
  118. package/server/dist/clusterPresets.js +3 -3
  119. package/server/dist/effortValidation.d.ts +2 -2
  120. package/server/dist/effortValidation.js +4 -4
  121. package/server/dist/explorerArtifacts.d.ts +1 -0
  122. package/server/dist/explorerArtifacts.js +12 -1
  123. package/server/dist/explorerDocs.d.ts +1 -0
  124. package/server/dist/explorerDocs.js +4 -4
  125. package/server/dist/geminiMembers.d.ts +7 -1
  126. package/server/dist/geminiMembers.js +28 -14
  127. package/server/dist/gitSnapshots.d.ts +1 -0
  128. package/server/dist/gitSnapshots.js +547 -83
  129. package/server/dist/http/clusterRoutes.js +9 -3
  130. package/server/dist/http/conversationFiles.d.ts +36 -0
  131. package/server/dist/http/conversationFiles.js +222 -0
  132. package/server/dist/http/fileBytes.d.ts +3 -0
  133. package/server/dist/http/fileBytes.js +33 -0
  134. package/server/dist/http/fileContentRoute.d.ts +2 -0
  135. package/server/dist/http/fileContentRoute.js +139 -0
  136. package/server/dist/http/fileRead.d.ts +54 -2
  137. package/server/dist/http/fileRead.js +31 -24
  138. package/server/dist/http/outputRoutes.js +14 -21
  139. package/server/dist/http/readConfinement.d.ts +0 -11
  140. package/server/dist/http/readConfinement.js +4 -30
  141. package/server/dist/http/router.js +41 -66
  142. package/server/dist/index.js +26 -12
  143. package/server/dist/management/initHubLink.js +1 -1
  144. package/server/dist/outputs.js +8 -0
  145. package/server/dist/primitives/exportContext.d.ts +2 -0
  146. package/server/dist/primitives/exportContext.js +13 -2
  147. package/server/dist/primitives/runCompare.d.ts +7 -1
  148. package/server/dist/primitives/runCompare.js +44 -20
  149. package/server/dist/project/taskLedger.js +46 -34
  150. package/server/dist/providerAccounts.d.ts +4 -0
  151. package/server/dist/providerAccounts.js +20 -1
  152. package/server/dist/providers/antigravity/artifacts.d.ts +23 -0
  153. package/server/dist/providers/antigravity/artifacts.js +140 -0
  154. package/server/dist/providers/antigravity/index.js +85 -7
  155. package/server/dist/providers/antigravity/questions.d.ts +2 -0
  156. package/server/dist/providers/antigravity/questions.js +58 -0
  157. package/server/dist/providers/claude-native/auth.d.ts +9 -8
  158. package/server/dist/providers/claude-native/auth.js +50 -58
  159. package/server/dist/providers/claude-native/authStatus.d.ts +2 -2
  160. package/server/dist/providers/claude-native/authStatus.js +9 -7
  161. package/server/dist/providers/claude-native/catalog.d.ts +6 -5
  162. package/server/dist/providers/claude-native/catalog.js +50 -39
  163. package/server/dist/providers/claude-native/oauth.d.ts +10 -9
  164. package/server/dist/providers/claude-native/oauth.js +120 -96
  165. package/server/dist/providers/claude-native/worker.d.ts +1 -0
  166. package/server/dist/providers/claude-native/worker.js +38 -23
  167. package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -3
  168. package/server/dist/providers/codex-appserver/operatorQuestions.js +27 -13
  169. package/server/dist/providers/codexChatBoundary.js +6 -1
  170. package/server/dist/research/quickPromotion.d.ts +3 -0
  171. package/server/dist/research/quickPromotion.js +26 -9
  172. package/server/dist/research/savedQuickPromotion.js +2 -11
  173. package/server/dist/server/broadcast.js +6 -0
  174. package/server/dist/settings.d.ts +1 -0
  175. package/server/dist/settings.js +39 -7
  176. package/server/dist/skills.js +1 -1
  177. package/server/dist/smartPickupAdapters.d.ts +1 -0
  178. package/server/dist/smartPickupAdapters.js +2 -2
  179. package/server/dist/smartPickupObserver.js +8 -5
  180. package/server/dist/thirdPartySkills.js +11 -5
  181. package/server/dist/turnChanges.d.ts +1 -1
  182. package/server/dist/turnChanges.js +5 -4
  183. package/server/dist/usage.d.ts +1 -1
  184. package/server/dist/usage.js +39 -27
  185. package/server/dist/workers/WorkerManager.d.ts +1 -0
  186. package/server/dist/workers/WorkerManager.js +1 -0
  187. package/server/dist/workers/processKill.js +37 -24
  188. package/server/dist/workflowMeta.js +2 -2
  189. package/server/dist/ws/clusterHandlers.d.ts +2 -2
  190. package/server/dist/ws/clusterHandlers.js +127 -113
  191. package/server/dist/ws/clusterMembers.d.ts +1 -1
  192. package/server/dist/ws/clusterMembers.js +34 -4
  193. package/server/dist/ws/compactHandlers.js +30 -14
  194. package/server/dist/ws/compareHandlers.js +53 -21
  195. package/server/dist/ws/gateHandlers.js +2 -0
  196. package/server/dist/ws/genesisHandlers.js +5 -3
  197. package/server/dist/ws/handoffHandlers.d.ts +1 -1
  198. package/server/dist/ws/handoffHandlers.js +115 -39
  199. package/server/dist/ws/transcriptWorkerHandlers.js +7 -2
  200. package/server/dist/ws/turnEngine.js +37 -19
  201. package/server/dist/ws/updatePrimaryConfig.d.ts +3 -2
  202. package/server/dist/ws/updatePrimaryConfig.js +236 -133
  203. package/server/dist/ws/workflowHandlers.js +21 -4
  204. package/server/package.json +1 -1
  205. package/server/src/attention.ts +7 -0
  206. package/server/src/auth.ts +33 -20
  207. package/server/src/clusterAutoTurn.ts +31 -11
  208. package/server/src/clusterPresets.ts +2 -2
  209. package/server/src/effortValidation.ts +4 -4
  210. package/server/src/explorerArtifacts.ts +12 -1
  211. package/server/src/explorerDocs.ts +5 -5
  212. package/server/src/geminiMembers.ts +26 -15
  213. package/server/src/gitSnapshots.ts +538 -82
  214. package/server/src/http/clusterRoutes.ts +10 -3
  215. package/server/src/http/conversationFiles.ts +231 -0
  216. package/server/src/http/fileBytes.ts +34 -0
  217. package/server/src/http/fileContentRoute.ts +123 -0
  218. package/server/src/http/fileRead.ts +30 -25
  219. package/server/src/http/outputRoutes.ts +13 -13
  220. package/server/src/http/readConfinement.ts +3 -30
  221. package/server/src/http/router.ts +39 -62
  222. package/server/src/index.ts +27 -18
  223. package/server/src/management/initHubLink.ts +1 -1
  224. package/server/src/outputs.ts +8 -0
  225. package/server/src/primitives/exportContext.ts +14 -2
  226. package/server/src/primitives/runCompare.ts +73 -46
  227. package/server/src/project/taskLedger.ts +47 -30
  228. package/server/src/providerAccounts.ts +20 -1
  229. package/server/src/providers/antigravity/artifacts.ts +121 -0
  230. package/server/src/providers/antigravity/index.ts +64 -6
  231. package/server/src/providers/antigravity/questions.ts +52 -0
  232. package/server/src/providers/claude-native/auth.ts +45 -60
  233. package/server/src/providers/claude-native/authStatus.ts +9 -8
  234. package/server/src/providers/claude-native/catalog.ts +52 -35
  235. package/server/src/providers/claude-native/oauth.ts +101 -77
  236. package/server/src/providers/claude-native/worker.ts +38 -22
  237. package/server/src/providers/codex-appserver/operatorQuestions.ts +26 -12
  238. package/server/src/providers/codexChatBoundary.ts +6 -1
  239. package/server/src/research/quickPromotion.ts +24 -6
  240. package/server/src/research/savedQuickPromotion.ts +2 -8
  241. package/server/src/server/broadcast.ts +4 -0
  242. package/server/src/settings.ts +36 -8
  243. package/server/src/skills.ts +1 -1
  244. package/server/src/smartPickupAdapters.ts +3 -2
  245. package/server/src/smartPickupObserver.ts +8 -5
  246. package/server/src/thirdPartySkills.ts +11 -5
  247. package/server/src/turnChanges.ts +5 -4
  248. package/server/src/usage.ts +30 -22
  249. package/server/src/workers/WorkerManager.ts +2 -0
  250. package/server/src/workers/processKill.ts +37 -23
  251. package/server/src/workflowMeta.ts +2 -2
  252. package/server/src/ws/clusterHandlers.ts +107 -104
  253. package/server/src/ws/clusterMembers.ts +25 -6
  254. package/server/src/ws/compactHandlers.ts +29 -15
  255. package/server/src/ws/compareHandlers.ts +59 -25
  256. package/server/src/ws/gateHandlers.ts +2 -0
  257. package/server/src/ws/genesisHandlers.ts +5 -4
  258. package/server/src/ws/handoffHandlers.ts +105 -37
  259. package/server/src/ws/transcriptWorkerHandlers.ts +6 -2
  260. package/server/src/ws/turnEngine.ts +36 -18
  261. package/server/src/ws/updatePrimaryConfig.ts +230 -132
  262. package/server/src/ws/workflowHandlers.ts +20 -4
  263. package/shared/dist/protocol/clusters.d.ts +15 -3
  264. package/shared/dist/protocol/clusters.js +1 -1
  265. package/shared/dist/protocol/models.d.ts +6 -1
  266. package/shared/dist/protocol/operatorQuestions.d.ts +2 -1
  267. package/shared/dist/protocol/settings.d.ts +3 -0
  268. package/shared/dist/protocol/settings.js +5 -0
  269. package/shared/dist/protocol/workflows.d.ts +1 -0
  270. package/shared/dist/protocol/workflows.js +0 -2
  271. package/shared/src/protocol/clusters.ts +23 -5
  272. package/shared/src/protocol/compare.ts +2 -2
  273. package/shared/src/protocol/models.ts +8 -4
  274. package/shared/src/protocol/operatorQuestions.ts +2 -1
  275. package/shared/src/protocol/settings.ts +8 -1
  276. package/shared/src/protocol/workflows.ts +1 -1
@@ -866,13 +866,13 @@ Right-clicking a cluster-capable tab opens `TabContextMenu` with three modes:
866
866
 
867
867
  - **CREATE WITH EXISTING** - multi-pick other cluster-capable tabs in the same cwd; dispatches `cluster_create` with `[anchor,...selected]`.
868
868
  - **ADD TO EXISTING** - only enabled when same-cwd clusters exist AND the anchor isn't already a member. Radio-pick which cluster; dispatches `cluster_member_add { clusterId, workflowId }`.
869
- - **CREATE WITH FRESH** - pick N (1-4) and an optional name; dispatches `cluster_create_with_fresh_workers { sourceWorkflowId, additionalCount, name? }`. Server creates N new workflows (cwd + primary inherited from source) via `createBlankNativeWorkflow`, then calls `clusterStore.createCluster`.
869
+ - **CREATE WITH FRESH** - the default mode, with 1 worker. Pick N (1-4), configure each worker on its own card and set an optional cluster name; dispatches `cluster_create_with_fresh_workers { sourceWorkflowId, additionalCount, name?, members }`. Server checks each entry, creates N new workflows (cwd + primary inherited from source, each entry applied) via `createBlankNativeWorkflow`, then calls `clusterStore.createCluster`.
870
870
 
871
871
  The membership fence (`assertAllMembersClaudeOrCodex` in `server/src/index.ts`, an older name) is enforced server-side in every mode; despite the name it now admits every `CLUSTER_MEMBER_PROVIDERS` entry - `claude` (cli + native), `codex` (exec + appserver), `ollama`, `llamacpp`, `cursor` (fresh-only membership), `antigravity-cli` - and rejects others with `member_not_supported`. The `isolated` access mode supports Claude Native or sandboxed Claude CLI, Codex and Cursor on supported Linux hosts. ClusterRightPanel's new `REVIEWS` sub-tab aggregates `job.reviews[]` across all members for the operator working from inside the cluster tab.
872
872
 
873
873
  ### Cluster-attached plan + role hints
874
874
 
875
- The shared plan and role supply context to standard members. Native and CLI transports use system blocks or string-form folds; Antigravity CLI receives a visible plan reminder and its first NUDGE includes its role.
875
+ The shared plan and role supply context to standard members. Native and CLI transports use system blocks or string-form folds; Antigravity CLI receives a visible plan reminder and the first turn of a standard member includes its role.
876
876
 
877
877
  **Shared cluster plan.** One plan per cluster: a normal plan file `<cwd>/.arco/plans/<planId>.md` whose id is stored in the cluster's `meta.json` (`server/src/clusterPlanBridge.ts`). Three operator entry points:
878
878
 
@@ -1006,6 +1006,8 @@ Send ONE prompt to N providers concurrently, stream each answer into its own pan
1006
1006
 
1007
1007
  The `⚖ SECOND OPINION` button near the composer (formerly COMPARE; internal ids, routes and message names keep the `compare` name) (`client/src/components/TerminalInput.tsx`; the handler is factored into `client/src/components/terminalInput/compare.ts` - the button only calls `openCompareDialog(job.id)`). The button is store-driven (no prop): it flips `compareStore.dialogOpen`. The globally-mounted `CompareDialogHost` renders `CompareDialog` - one prompt textarea, 2..`COMPARE_MAX_LEGS` legs each picked via the shared **RUN AS** picker (seeded with the current primary + one "other" default), and a **blind** checkbox (default on). Confirm dispatches `compare_request` and the results stream into the globally-mounted `CompareOverlay`.
1008
1008
 
1009
+ A Claude leg bound to a Native account uses that account for its draft and for **SYNTHESIZE**. Turn off **Let the models read project files** when such a leg is included. A Codex leg uses its own login or selected Codex account.
1010
+
1009
1011
  ### Server-side flow
1010
1012
 
1011
1013
  `handleCompareRequest` (`server/src/ws/compareHandlers.ts`) clamps the leg count to `[COMPARE_MIN_LEGS=2, COMPARE_MAX_LEGS=6]`, resolves each Codex leg's account positionally (CODEX_HOME, like the reviewer path, but per leg), seeds an in-memory `CompareRecord` (kept alive past settle for the vote/synthesize join), and calls `runCompare`. `runCompare` fans **N independent `WorkerManager.spawn` calls**, each with a **unique worker id** (`<compareId>-leg<i>`) and **NO shared session**: there is no `resumeSessionId`/`sessionId`, no transcript prepend, and the prompt is each leg's *entire* input - the legs never see each other. Each leg is **read-only / no-tools by default** (empty `tools` allowlist for every leg unless a reply draft turns on file access, which gives Read, Grep and Glob; Codex / Ollama / llama.cpp / LM Studio are additionally gated by `sandbox: 'read-only'`, and Ollama runs with `skipPermissions: true`; `outputStyle: 'normal'` forced) - stricter than the reviewer's read-only set, because the race is meant to be a cheap, side-effect-free answer comparison, not a tool-using agent run. Each leg's `worker_text` is streamed out as a `compare_leg_delta` keyed by `legIndex`, accumulated into the record's `answers`, and finalized with `compare_leg_complete`. One failed leg never blocks the others (`Promise.all` over per-leg promises that each resolve to ok/fail). When all settle, `compare_complete` carries `succeededLegs`.
@@ -252,7 +252,7 @@ The operator picked "ADD TO EXISTING" in the `TabContextMenu`. Server validates:
252
252
 
253
253
  ### `cluster_create_with_fresh_workers` ->
254
254
 
255
- The operator picked "CREATE WITH FRESH" in the `TabContextMenu`. The picker shares provider availability, account-specific models, model defaults and effort rules with ADD FRESH, including the Gemini NUDGE notice. Server: validates the source via `assertAllMembersClaudeOrCodex`; creates `additionalCount` new workflows (clamped to 1-4) each inheriting the source's cwd + primary config; calls `clusterStore.createCluster` with `[sourceWorkflowId,...newWorkflowIds]`; optionally `renameCluster` if `name` is non-empty. Each fresh workflow fires `workflow_created`; the cluster fires `cluster_created` on the originating socket only.
255
+ The operator picked "CREATE WITH FRESH" in the `TabContextMenu`, which opens on that mode with one worker. Each worker card is a `FreshMemberForm`, the form ADD FRESH uses, so it shares provider availability, account-specific models, model defaults, effort rules, access, name, role, work size, focus and member settings, including the Gemini NUDGE notice. The client sends `members`, one `ClusterFreshMemberSpec` per worker; `members.length` must equal `additionalCount` (1-4), and the single `provider`/`model`/`effort`/`providerAccountRef` fields are refused alongside it (`members_with_shared_choice`). Without `members` (older clients) every worker uses those single fields. Server: validates the source via `assertAllMembersClaudeOrCodex`; checks every worker with the ADD WORKERS checks (`member[i] <code>` on refusal) and allows at most one Director before creating anything; creates the new workflows, each inheriting the source's cwd + primary config with its own entry applied, and saves access mode and web access at creation and role, work size and focus right after; calls `clusterStore.createCluster` with `[sourceWorkflowId,...newWorkflowIds]`; optionally `renameCluster` if `name` is non-empty. Each fresh workflow fires `workflow_created`; the cluster fires `cluster_created` on the originating socket only.
256
256
 
257
257
  ```ts
258
258
  {
@@ -376,7 +376,11 @@ with the director workflow id and goal. The client starts a tool-free
376
376
  `plan-review` turn and captures its reply for explicit review. It does not
377
377
  send `cluster_plan_set` until the operator chooses to attach the draft.
378
378
 
379
- Cluster presets (operator-saved snapshots) are persisted at `~/.arco/cluster-presets.json` and consumed by the CLUSTER-mode WorkflowCreator - see `ClusterPreset` / `ClusterPresetMember` in [`shared/src/protocol/clusters.ts`](../shared/src/protocol/clusters.ts). Presets are project-agnostic (cwd is intentionally NOT part of a preset); the cluster-create path validates models against the live catalog at apply time.
379
+ Cluster presets (operator-saved snapshots) are persisted at `~/.arco/cluster-presets.json` and consumed by the CLUSTER-mode WorkflowCreator - see `ClusterPreset` / `ClusterPresetMember` in [`shared/src/protocol/clusters.ts`](../shared/src/protocol/clusters.ts). Presets are project-agnostic (cwd is intentionally NOT part of a preset); the cluster-create path validates models against the live catalog on submit.
380
+ For Claude, a recognized family alias such as `sonnet` is accepted when its
381
+ resolved model appears in the available catalog. The new workflow retains the
382
+ alias so it can follow the family. A saved concrete model ID still selects
383
+ that model, and a model from another provider is refused.
380
384
 
381
385
  ### `cluster_add_fresh_workers` ->
382
386
 
@@ -874,6 +878,8 @@ Existing cooldown and rate guards and the chain-depth default support environmen
874
878
 
875
879
  Rule-based pickup ignores batches containing only short, unambiguous acknowledgements; the mail remains pending. A later actionable message wakes the recipient with the full batch. Rule limits default to four alternating wakes for a pair, six wakes per member per rolling hour, 40 wakes per arming, and depth eight. A pair pause clears on an operator message to either member, NUDGE, re-arming, or mail from a third member. A board or plan change breaks an unpaused alternating sequence. Reaching the arming total stops pickup and RESET BUDGET starts a fresh total; the hourly member cap remains. Limits are adjustable in the AUTO-PICKUP dialog. Rule guard counters and pair pauses are stored in the cluster ledger and survive a server restart.
876
880
 
881
+ Neither Rule-based nor Smart pickup wakes a member whose last turn ended in a terminal `request_too_large` (the conversation is too large for the provider): Rule-based skips with `member_blocked` and a recovery notice, Smart reports `member_blocked` and keeps the wake owed. The mail stays unread and other members are unaffected. The same stop applies to the provider's other size rejections (Anthropic's total-text-bytes limit and context-window overflows). The stop clears when a turn for that member ends without error, when an in-place HANDOFF or FOLD of the member completes (the workflow id is unchanged and its mail stays), or when the member is replaced (REPLACE gives the slot a new workflow id). The stop is held in memory, so a server restart allows one more failed wake before it returns.
882
+
877
883
  Chain depth is carried on `peer_message_sent.chainDepth` (see below); operator-initiated peer-sends ride at depth 0, so the first auto-turn lands at depth 1.
878
884
 
879
885
  Turn boundaries reach the detector from both fan-out paths (`send()` for turns run by the turn engine, `broadcastWorkflow` for the rest) through one function in `server/src/server/broadcast.ts`; a start or end carried twice (STOP sends its own end) is handled once. On a member's `primary_turn_started` the idle nudger marks it busy and resets its per-turn nudge count. On `primary_turn_ended` the nudger stamps the idle time, the artifact size check runs, the chain-depth marker clears, and the member's waiting mail is re-checked (Rule-based or Smart). The detector remembers the highest chain depth of mail a member has not acted on; the turn-end re-check and the periodic resume sweep (`ARCO_CLUSTER_AUTO_TURN_SWEEP_INTERVAL_MS`, default 5000) use that depth, not 0, so mail held by the depth cap stays held until the member's next turn reads it. A `peer_send` writes the mail file before it broadcasts `peer_message_sent`, and only the broadcast records the depth; mail found in between counts at the depth of its sender's running turn (`heldMailDepth()` in `server/src/clusterAutoTurn.ts`), so a recipient whose turn ends in that gap is not woken at depth 0. The remembered depth clears when the member's turn starts or an auto-turn fires for it.
@@ -964,7 +970,7 @@ Server-side detector emitted on every fire-path (`fired: true`) AND on every gua
964
970
  sender: string, // sender workflowId of the triggering peer_message_sent
965
971
  chainDepth: number, // depth this auto-turn lands at (sender's + 1 on fire; reported as-is on skip)
966
972
  reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled'
967
- | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail',
973
+ | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail' | 'member_blocked',
968
974
  notice?: string, // operator-facing pause notice
969
975
  fired: boolean, // true -> a turn was dispatched; false -> guard refused
970
976
  }
@@ -1199,11 +1205,11 @@ A new cluster or preset may have at most one director. Role text beginning with
1199
1205
 
1200
1206
  ## Gemini members
1201
1207
 
1202
- Gemini (the `antigravity-cli` provider) can be a cluster member in any role, including Director, chosen at cluster creation, + ADD FRESH or REPLACE. Gemini members are not isolated outside research. A Gemini Research Director is allowed, and on Linux a Gemini researcher runs inside the worker sandbox (see [RESEARCH.md](RESEARCH.md#gemini-researchers)). A Gemini replacement starts with no history.
1208
+ Gemini (the `antigravity-cli` provider) can be a cluster member in any role, including Director, chosen at cluster creation, + ADD FRESH or REPLACE. Gemini members are not isolated outside research. A Gemini Research Director is allowed, and on Linux a Gemini researcher runs inside the worker sandbox (see [RESEARCH.md](RESEARCH.md#gemini-researchers)). REPLACE defaults to NO HISTORY. RECENT HISTORY and FULL HISTORY send the previewed history as the first turn in a new Gemini session.
1203
1209
 
1204
- A Gemini member takes a turn only from the operator's NUDGE on it or a message the operator types in its composer. Both arrive as a WebSocket `user_message`; the server issues a single-use ticket bound to that member and the exact text, and `handleUserMessage` starts a Gemini member turn only with a valid ticket, checked again and consumed when a queued message is taken. AUTO-PICKUP, Smart pickup, busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers, retries and other automatic turns carry no ticket and start nothing. Rule-based AUTO-PICKUP records the skip with reason `operator_send_only`, Smart pickup records it without asking its evaluator, and a broadcast reports the member as `gemini_review`. Prompt templates, `@` references and picked skills are not applied to a Gemini message.
1210
+ A Gemini member starts from an operator's NUDGE, a typed message in its composer, or an admitted Rule-based or Smart AUTO-PICKUP wake in an ordinary cluster. REPLACE with history authorizes its exact opening text. A manual HANDOFF starts a new session with the saved document. Arco issues a single-use ticket for the exact message and member. Before accepting a pickup it checks the active mode, pause state and member access mode. Smart Observe-only records its proposal without starting a turn. SAFE can ask before Gemini reads the mail. Busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers, retries and Research delivery remain operator-held. Prompt templates, @ references and picked skills are not applied to Gemini messages.
1205
1211
 
1206
- The first NUDGE of a Gemini member, sent before its first turn, starts with its role and the cluster instructions as visible text, followed by the available skill list and the nudge; the conversation shows that full text. Every nudge asks the member to read the current plan and mail before acting. COMPACT on a Gemini member is the operator's own action: it sends `/compact` to the member's session in its working folder without a ticket, and Arco's automatic compaction stays off for Gemini. The cluster and research screens show a notice above the conversation that names every Gemini member and says that a turn starts only from NUDGE or the member's own composer, and that incoming mail waits until then. The cluster bar's Auto-compaction control names the Gemini members it skips and tells the operator to send `/compact` in the member's session; the server returns before the automatic compaction policy for `antigravity-cli`. This is display only. The cluster bar no longer shows a separate SKIPS GEMINI mark beside AUTO-PICKUP. During its turns the member reads its mail with `peer_read` and uses `peer_send`, the board and the plan through Arco's MCP bridge, as other members do.
1212
+ The first NUDGE of a Gemini member, sent before its first turn, starts with its role and the cluster instructions as visible text, followed by the available skill list and the nudge; the conversation shows that full text. Every NUDGE and AUTO-PICKUP wake asks the member to read the current plan and mail before acting. COMPACT sends `/compact` to the same session and working folder, under the member's existing access rules. The conversation reports the result Gemini returns. The cluster and research screens show a notice above the conversation that names every Gemini member and explains how to start a turn. AUTO-COMPACTION sends the same command when a finished turn reports retained context at or above the effective threshold. Arco waits for a fresh reading more than five percentage points below the threshold before another attempt in that session. An isolated Gemini researcher uses manual COMPACT inside its sandbox. Provider and Off use Gemini's usual automatic compaction. The cluster bar no longer shows a separate SKIPS GEMINI mark beside AUTO-PICKUP. During its turns the member reads its mail with `peer_read` and uses `peer_send`, the board and the plan through Arco's MCP bridge, as other members do.
1207
1213
 
1208
1214
  Mail a Gemini member sends is stored with `fromGemini: true` and also waits for the operator. AUTO-PICKUP, Smart pickup and busy reminders never wake a recipient for it; Rule-based AUTO-PICKUP records reason `gemini_mail` and Smart pickup records `gemini_mail` once per session when only such mail is waiting. The mailbox drain delivers it only in a turn started by the operator's NUDGE or typed message: a `peer_read` in an automatic turn returns the other mail and leaves it waiting.
1209
1215
 
@@ -564,7 +564,7 @@ Fires after the new session is pre-warmed and the old session is archived in `me
564
564
  sessionId: string,
565
565
  turnCount: number,
566
566
  },
567
- draft?: string, // Antigravity CLI only: composer text that points the agent at the saved handoff document
567
+ draft?: string, // older saved events only: text staged in the composer
568
568
  newSessionId?: string, // optional for providers without native session ids
569
569
  completedAt: number,
570
570
  }
package/docs/PROVIDERS.md CHANGED
@@ -60,7 +60,7 @@ other providers retain their own effort values.
60
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. |
61
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`. |
62
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). |
63
+ | Antigravity CLI | `agy acp` | low / medium / high / xhigh | `session/load` | Gemini Agent tabs, saved Chats and cluster members; ordinary cluster AUTO-PICKUP is available. See [Antigravity CLI](#antigravity-cli). |
64
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`). |
65
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`. |
66
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`). |
@@ -290,7 +290,7 @@ tools in a separate working folder, which is not a security fence.
290
290
  only the chat system block.
291
291
  - **Claude CLI** - `--tools ""`, or `--tools WebSearch,WebFetch` when armed, WEB grants permission for exactly `WebSearch` and `WebFetch` with `--allowedTools`, so the non-interactive CLI can run the enabled pair.
292
292
  plus `--strict-mcp-config`.
293
- - **Codex** - ordinary Chat always runs on `exec`, including saved tabs configured for app-server. Saved app-server conversations resume the same Codex session ID on exec, preserving provider history. Start and resume disable command execution, local image reading, apps, plugins, remote plugins, subagents, image generation, memories and hooks, plus skills and project documents. `--ignore-user-config --ignore-rules` keep user tools and rules out. Chat additionally disables agents and goals and excludes the host's builtin functions namespace, which contains patch tools. Strict startup validation refuses unsupported controls before a model turn. The lowest tested compatible Codex version is `0.167.0`; its strict startup check accepts both WEB policies. WEB keeps the exec host enabled for live web tools while command execution, local image readers and extension restrictions stay in force; WEB off disables that host. A cached installed-capability probe refuses unsupported versions before a model turn. The read-only sandbox is additional protection, not a disk-read boundary. Documents arrive as inline text and images through explicit `-i` inputs; `web_search="live"|"disabled"` follows WEB. The header shows EXEC. There is no mid-turn steering; send the next message after the reply. Native compaction and structured questions remain Agent app-server features. Computer mode keeps its separate privileged transport.
293
+ - **Codex** - ordinary Chat always runs on `exec`, including saved tabs configured for app-server. Saved app-server conversations resume the same Codex session ID on exec, preserving provider history. Start and resume disable command execution, local image reading, apps, plugins, remote plugins, subagents, image generation, memories and hooks, plus skills and project documents. `--ignore-user-config --ignore-rules` keep user tools and rules out. Chat additionally disables agents and goals and excludes the host's builtin functions namespace, which contains patch tools. Strict startup validation refuses unsupported controls before a model turn. The lowest tested compatible Codex version is `0.167.0`; its strict startup check accepts both WEB policies. WEB keeps the exec host enabled for live web tools while command execution, local image readers and extension restrictions stay in force; WEB off disables that host. A cached installed-capability probe refuses unsupported versions before a model turn. Optional features reported as deprecated or removed pass only when the probe sees them disabled and strict configuration still passes. The same checks apply when a Codex original-worker handoff runs its tool-free reflection. The read-only sandbox is additional protection, not a disk-read boundary. Documents arrive as inline text and images through explicit `-i` inputs; `web_search="live"|"disabled"` follows WEB. The header shows EXEC. There is no mid-turn steering; send the next message after the reply. Native compaction and structured questions remain Agent app-server features. Computer mode keeps its separate privileged transport.
294
294
  - **Ollama** - no tools, or exactly `WebSearch` / `WebFetch` (local SearXNG +
295
295
  fetch) when armed, re-checked at dispatch by `ollamaToolCallAllowed()` so a
296
296
  hallucinated known tool name cannot cross the boundary.
@@ -367,10 +367,28 @@ presence, refresh needs, read failures or an authentication problem; an unexpire
367
367
  explicitly unverified for execution. CLI warnings name the CLI and use its sign-in command. Native
368
368
  warnings open the Claude sign-in group in Settings. Neither status recovery nor a usage-limits failure switches
369
369
  the selected transport. An unavailable usage limits meter does not invalidate execution credentials.
370
- Native uses one credential store per Arco home; named account/profile labels do not create separate
371
- Native credentials. Connection checks remain metadata checks without a model turn.
372
-
373
- Reviewers and handoff seed turns always run on `cli` regardless of the tab's transport - Native is per-workflow long-lived and Arco-internal-only, so any path that needs a `~/.claude/projects/<sid>.jsonl` rollout (handoff destinations, reviewer recovery) goes through the CLI provider. After `handoff_complete`, the dispatcher disposes the cached Native worker so the next operator turn rebuilds the messages array from the post-handoff transcript.
370
+ Open Connections > Claude or Settings > Providers and models > Sign-in, accounts and local endpoints.
371
+ The Default Native sign-in keeps the existing credentials. Use ADD NATIVE ACCOUNT, enter a name, then
372
+ use LOGIN for that row in a browser signed into the intended Claude account. RENAME ACCOUNT keeps the
373
+ same account selected in existing tabs. LOGOUT clears only the selected row's stored credentials.
374
+ The Claude CLI has its own sign-in.
375
+
376
+ Choose CLAUDE NATIVE ACCOUNT when creating a tab or cluster member. The selection stays with the
377
+ workflow on reopen. CONFIG changes it for an idle tab. Arco checks any accompanying model and effort
378
+ against the selected account and applies the accepted settings together before the next turn. Existing
379
+ Native tabs with no account selection keep Default. An old label or an unavailable account requires
380
+ a selection in CONFIG. A signed-out account offers sign-in for that account before Arco sends a
381
+ Native request. The model catalog, usage limits where available, compaction, Native handoff,
382
+ Genesis Assist and Native Task children use the workflow's selected account. A Native leg in
383
+ SECOND OPINION keeps its selected account for drafting and synthesis when file access is off. The general Claude usage view keeps
384
+ its attributed CLI fallback when no account has been selected.
385
+
386
+ Native's original Default credentials remain in the Arco auth store. Additional credentials use
387
+ separate protected stores. Workflow metadata and settings keep the profile ID and display name.
388
+ Connection checks read local status. A short turn checks that the selected sign-in can execute.
389
+
390
+ After `handoff_complete`, the dispatcher disposes the cached Native worker so the next turn
391
+ rebuilds its messages from the post-handoff transcript. CLI-only review paths keep the CLI sign-in.
374
392
 
375
393
  ### Native transport - append-only prefix (2026-09-01)
376
394
 
@@ -534,7 +552,7 @@ OAuth subscription flow adapted from `earendil-works/pi`:
534
552
 
535
553
  - `CLIENT_ID = 9d1c250a-e61b-44d9-88ed-5944d1962f5e` (stored as base64 + `atob` at module load - minor protection against repo scrapes; not a security boundary).
536
554
  - OAuth state and the PKCE verifier are independent random values. The authorization URL carries state and the S256 challenge; the callback carries code and state; the verifier stays server-side until the token exchange. Callback `127.0.0.1:53692/callback` (overridable via `ARCO_OAUTH_CALLBACK_HOST`). On `EADDRINUSE` we fall back to manual-paste mode automatically.
537
- - Tokens persist to `~/.arco/auth.json` under `claude.native` - mode 0600, parent dir 0700, atomic tmp+rename, `proper-lockfile` around the read-refresh-write cycle. Lock is **not** held across the SDK call.
555
+ - Default tokens use `~/.arco/auth.json` under `claude.native`. Additional Native accounts use `provider-accounts/claude-<id>/auth.json` under the Arco data folder. Each store uses mode 0600, parent mode 0700, atomic writes and a separate lock for refresh. Model requests run after release of the lock.
538
556
  - Refresh runs 30s ahead of expiry. On `400 invalid_grant`, the loop emits `[AUTH:claude]` system_notice and fails the turn; after three consecutive auth failures within the workflow the notice escalates and auto-retry stops until the operator re-logs in.
539
557
  - Re-login goes through `POST /api/auth/claude-native/login` (returns the authorize URL + a `manualFallback` flag); the callback is captured by the local server or accepted via `POST /api/auth/claude-native/callback` (`{ url }` body) for headless / port-blocked operators.
540
558
 
@@ -681,7 +699,9 @@ A hook that runs in PowerShell only because Git Bash is missing carries `shellNo
681
699
 
682
700
  **The shell tool on Windows without Git Bash.** As in Claude Code, the model then gets a `PowerShell` tool instead of `Bash` (`shellToolName()`), so hooks matching `PowerShell` fire for it and `Bash` matchers do not. The other name is an unknown tool, refused before any hook. Every check keyed on Bash treats it the same (`isShellToolName()` in `shared/src/shellTool.ts`): the hardline floor (which also knows the PowerShell and cmd forms of its hazards), the review gate, tool postures, isolated members, the output filter, eviction, Fold and resume digests, the tool-call counter and the tool cards. The local-model Bash tool keeps its name.
683
701
 
684
- Default hook timeout 600 s (30 s on UserPromptSubmit); per-hook `timeout` field overrides. Timed-out hooks get SIGTERM then SIGKILL after 2s grace; the output is discarded. On Windows `taskkill /T /F` ends the tree at once; with Git Bash the child also carries `ARCO_PROCESS_TREE` in its environment, and the kill first lists every MSYS process holding it through Git Bash's `/proc`, because a background job (`cmd &`) loses its Windows parent and `/T` alone misses it (`spawnShellChild()` and `signalChildTree()` in `server/src/workers/processKill.ts`, used by hooks, both Bash tools and sandbox shell scripts). Git Bash commands are passed in MSYS quoting on a verbatim command line, so backslashes (a JSON hook output with a Windows path) arrive unchanged. `CLAUDE_PROJECT_DIR=cfg.cwd` is set on the subprocess env; the per-event JSON payload is written to stdin. Inherited env minus any `ARCO_*` debug flags. Hook subprocesses register against the per-turn shell map so cancel + KillShell tear them down; background hooks end when the worker is disposed.
702
+ Default hook timeout 600 s (30 s on UserPromptSubmit); per-hook `timeout` field overrides. Timed-out hooks get SIGTERM then SIGKILL after 2s grace; the output is discarded. On Windows `taskkill /T /F` ends the tree at once; with Git Bash the child also carries `ARCO_PROCESS_TREE` in its environment, and the kill first lists every MSYS process holding it through Git Bash's `/proc`, because a background job (`cmd &`) can lose its Windows parent and `/T` alone can miss it (`spawnShellChild()` and `signalChildTree()` in `server/src/workers/processKill.ts`, used by hooks, both Bash tools and sandbox shell scripts). Git Bash commands are passed in MSYS quoting on a verbatim command line, so backslashes (a JSON hook output with a Windows path) arrive unchanged. `CLAUDE_PROJECT_DIR=cfg.cwd` is set on the subprocess env; the per-event JSON payload is written to stdin. Inherited env minus any `ARCO_*` debug flags. Hook subprocesses register against the per-turn shell map so cancel + KillShell tear them down; background hooks end when the worker is disposed.
703
+
704
+ The Git Bash scan handles failed process entries separately. It keeps matching descendants found before and after the failed entry, and sends only Windows process IDs to taskkill. The scan records failed lookups by process ID and exit status. If the scan stops early, the last probes show which file was being read. Environment values are never logged.
685
705
 
686
706
  Reading `updatedInput` is the load-bearing piece for using rtk (`rtk-ai/rtk`) on Native: drop rtk into `~/.claude/settings.json` once and Native + CLI both apply its tool_input rewrites; each rewrite emits a `hook_rewrote_input` event so transcript review can attribute it.
687
707
 
@@ -1221,15 +1241,32 @@ Antigravity CLI runs the installed `agy acp` program for an interactive Agent ta
1221
1241
 
1222
1242
  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
1243
 
1244
+ For an optional native skill, review this example and save it as `.agents/skills/arco-cluster-tools/SKILL.md` in the project using [Antigravity's workspace skill layout](https://antigravity.google/docs/skills). It gives a member a short reference when asked to use the cluster tools.
1245
+
1246
+ ```markdown
1247
+ ---
1248
+ name: arco-cluster-tools
1249
+ description: Use when asked to read Arco cluster mail or work with the shared plan or board.
1250
+ ---
1251
+
1252
+ Follow the role shown in the conversation. Use peer_read for assigned mail,
1253
+ cluster_plan_read for shared requirements, and cluster_task_list for the
1254
+ board. If a tool is unavailable, report which operation it prevented.
1255
+ ```
1256
+
1257
+ When Gemini asks a supported clarification in an Agent tab, saved Chat or regular cluster member, the question card pauses the turn. Pick or type an answer and select SEND ANSWERS to resume it. Optional fields can be left blank, including when every field is optional. DISMISS declines the question. STOP cancels the turn.
1258
+
1224
1259
  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
1260
 
1226
1261
  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
1262
 
1263
+ After each turn, Arco records the finished filenames for that workflow and ACP session. On Linux, macOS and Windows, Outputs, ARTIFACTS and conversation links read the original on demand. Use Download in Outputs to keep a copy. Transcripts, uploads, scratch files, metadata sidecars, links and other sessions are excluded. See [Workspace Outputs](OUTPUTS.md).
1264
+
1228
1265
  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
1266
 
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.
1267
+ The ANTIGRAVITY row in Versions shows the installed and latest versions. Latest unavailable means the public release number could not be read. Selecting the row runs `agy update` and checks the installed version again. 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 provider's reply and context size when available. For Agent tabs, including regular cluster members, AUTO-COMPACTION sends the same command when a finished turn reports retained context at or above the selected threshold. After an attempt, Arco waits for a fresh reading more than five percentage points below the threshold before it can compact automatically in that session again. An isolated Gemini researcher uses manual COMPACT in its sandbox. Provider and Off leave the CLI's own policy in use.
1231
1268
 
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.
1269
+ 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; AUTO-PICKUP can wake it for eligible incoming mail in ordinary clusters. Mail from it waits for NUDGE (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. HANDOFF sends the saved document as the opening turn of a new Gemini ACP session. For ORIGINAL WORKER, the same Gemini model writes from the saved transcript in a fresh reply-only session. FRESH SUMMARIZER can also select Gemini. The writer runs in a temporary folder without Arco tools. The older `antigravity` provider remains retired and its saved work is not silently changed.
1233
1270
 
1234
1271
  ## Cursor
1235
1272
 
package/docs/RESEARCH.md CHANGED
@@ -109,7 +109,7 @@ A research project opens in an ordinary cluster tab (`ClusterTab`) with these ad
109
109
 
110
110
  - **Rounds strip** (`client/src/components/research/ResearchRoundsStrip.tsx`) above the member cards: the project name, saved folder and `OPEN FOLDER`, the default location in Settings > Projects > Research folder, `BRIEF` to show the brief, Blind, Revealed or Not blind, `REVEAL` while blind, and one row per round (latest three, `ALL N ROUNDS` for the rest) with each researcher's state and the elapsed time. A row expands to each outcome, "taken from final reply", the failure reason, the deadline and the count of targeted messages; in a released round each replied line opens that researcher's `report-<letter>.md` in the file viewer. It replaces the empty-plan hint. The question expands when chosen; `REVEAL` asks in an Arco confirmation; actions are at least 44 px square.
111
111
  - **Member cards** keep their live state and `STOP`. A researcher's card shows a markdown link to a path inside its sandbox (`/work/...`) as the link text only. It adds one wrapping line: letter, provider and model, isolation, web searches counted once per call from its loaded tool activity, and its state in the latest round. The operator always sees provider and model; blind applies to the Director.
112
- - **Controls:** the research cluster bar offers Auto-compaction and SKILLS. With a Gemini member, a notice above the conversation names it and says it takes a turn only from NUDGE or its own composer; Auto-compaction names it as skipped, and `/compact` in its session compacts it. PLAN lets the Research Director attach and edit the project plan; researchers cannot read or change it. Generic member add, replacement and detachment, board controls, cluster snapshots, and unrelated coordination controls are not offered. The server refuses ordinary member additions, access-mode changes, board changes and hidden coordination settings for research projects. Member settings and the per-member web switch remain available in CONFIG and MEMBERS. FILES shows the research folder without the Git sub-tabs or researcher-private locations.
112
+ - **Controls:** the research cluster bar offers Auto-compaction and SKILLS. With a Gemini member, a notice above the conversation names it and says it takes a turn only from NUDGE or its own composer; An isolated Gemini researcher uses manual COMPACT in its own sandbox. Arco does not apply an automatic threshold to that researcher. PLAN lets the Research Director attach and edit the project plan; researchers cannot read or change it. Generic member add, replacement and detachment, board controls, cluster snapshots, and unrelated coordination controls are not offered. The server refuses ordinary member additions, access-mode changes, board changes and hidden coordination settings for research projects. Member settings and the per-member web switch remain available in CONFIG and MEMBERS. FILES shows the research folder without the Git sub-tabs or researcher-private locations.
113
113
  - **Narrow layout:** the member rail labels the Director `RD` and researchers by letter. The rounds strip is at the top of the member list (☰), and the right strip shows `RESULTS` in place of `BOARD`. A stored `BOARD` tab opens as `RESULTS` in a research project.
114
114
  - **Right panel:** `RESULTS` (new, `ResearchResultsTab.tsx`) opens `brief.md`, `synthesis.md`, `director-log.md`, `exports.md`, each round's `round.md` and the released reports in the file viewer. RESULTS is laid out as bordered cards in the style of the cluster ACTIVITY pane. The project card holds the file links as chips and, once a round exists, a project action row: `Rerun` always, `Start project` and `Chat` when a released summary exists (`Start project` also when every normal round is released), and `Send project` and `Export` only when every normal round is released. Each round or catch-up is one card, newest first: its heading, `Record` (the round's `round.md`) and `Summary` chips, the release time and, on the right, an `Actions` button; an independence or sandbox warning is one tagged line inside the card. Each researcher is one row in the card: the name in its ACTIVITY colour, `Report`, `Files (n)`, a `Late` tag or the outcome when there is no report, and an `Actions` button. `Actions` opens the send, start, chat (summaries only) and export choices under its row; Escape closes them and returns focus to `Actions`. `Files (n)` opens under its row the files that researcher returned in that round, by their original names, opening the copies in `sources/`; a report with no returned files has no `Files` control. Catch-ups and late reports from RETRY are listed the same way. In a narrow panel a researcher is named by letter and the release time is left out. Both RESULTS and the rounds strip name a researcher by letter only while reports are blind, and add provider and model after REVEAL or when the project is not blind. `RESULTS` is first in a research project; `BOARD` and `PLAN` are hidden there, and `RESULTS` is hidden in every other cluster. Each round links its summary (`syntheses/round-N.md`, or `synthesis.md` for the latest round), read from `GET /api/research/<clusterId>/summaries`; the Summary chip in the project card says Awaiting summary until `synthesis.md` exists.
115
115
  - **Send to a project:** `Send report`, `Send summary` and `Send project` choose released material, including catch-up reports from researchers who were later removed. The dialog opens with a project folder already chosen: the folder this research was last sent to or started a project in, read from `exports.md`, otherwise the project the research was started from, and never the research folder itself. With neither it asks for the folder; `CHANGE FOLDER` replaces it. Then independently choose a new copy under `research/`, a reference in an existing plan in that folder, or `Attach to conversation draft`, which shows the list of open conversations only while ticked. `SEND` is available as soon as a folder is chosen. The draft is not sent. A plan reference owns its linked files beside it; deleting the reference removes those files. A Research Director can propose a selection with `research_send_to_project`; `REVIEW SEND` lets the operator choose its destination. Successful destinations are recorded in `exports.md`; partial copies and receipt failures are reported separately. Existing files are not overwritten.
@@ -137,9 +137,9 @@ A research project opens in an ordinary cluster tab (`ClusterTab`) with these ad
137
137
 
138
138
  Quick research starts from Past Chats or the research start form. It runs one round in Arco without choosing a research folder. The brief and researcher rows appear above the Research Director conversation; select a row for its read-only activity. Follow-up messages go to the Director. RESULTS opens the released material.
139
139
 
140
- KEEP AS PROJECT chooses the configured research folder, or asks for one. A request waits while members work and follow-up messages remain available during the wait. Once members are idle, Arco copies the work and opens it as a research project without rerunning the round. If the copy cannot complete, Quick research stays open. Closing unpromoted Quick research saves the Director conversation in Past Chats and offers to attach unsent researcher files before removing researcher workspaces.
140
+ KEEP AS PROJECT uses the configured research folder. If the folder was removed, the folder picker opens and the Quick research stays open. Choose an existing folder and select KEEP HERE to save the new location for future research. A request waits while members work and follow-up messages remain available during the wait. Once members are idle, Arco copies the work and opens it as a research project without rerunning the round. If the copy cannot complete, Quick research stays open. Closing unpromoted Quick research saves the Director conversation in Past Chats and offers to attach unsent researcher files before removing researcher workspaces.
141
141
 
142
- The saved Chat also offers KEEP AS PROJECT. It keeps the research as a closed project and includes the saved conversation in `saved-chat.md`; reopen the project from the Research library to continue. Deleting the saved Chat removes its Quick research record and sources. A project already kept has its own copy and remains available.
142
+ The saved Chat also offers KEEP AS PROJECT and the same folder recovery. It keeps the research as a closed project and includes the saved conversation in `saved-chat.md`; reopen the project from the Research library to continue. Deleting the saved Chat removes its Quick research record and sources. A project already kept has its own copy and remains available.
143
143
 
144
144
  At `/mobile`, the directory lists research projects separately and Quick research with Chats. A project opens on the Director with the member strip; PANELS offers RESULTS, ACTIVITY and PLAN. Quick research shows its brief, researcher rows and the Director conversation.
145
145
 
package/docs/SETTINGS.md CHANGED
@@ -60,7 +60,7 @@ Sections: 29.
60
60
  | `phosphor` | Appearance | Phosphor effects and softness | Global | Phosphor glow, effects and softness (shown with a Phosphor theme) |
61
61
  | `font-pack-override` | Appearance | Font pack override | Global | Font pack selector; default Victor Mono |
62
62
  | `interface-text-size` | Appearance | Interface text size | Global | 90% to 150%; fresh installs default to 110%, existing installs keep their size |
63
- | `layout` | Appearance | Layout | Global (this browser) | Automatic (default: Narrow under 1500, Compact from 1500, Standard from 2000 interface pixels), Standard, Compact or Narrow. Fixed choices apply at every width. Top-bar switch and command palette make the same choice |
63
+ | `layout` | Appearance | Layout | Global (this browser) | Automatic (default: Narrow under 1200, Compact from 1200, Standard from 1380 interface pixels), Standard, Compact or Narrow. Fixed choices apply at every width. Top-bar switch and command palette make the same choice |
64
64
  | `message-box-size` | Appearance | Message box size | Global (this browser) | Small (default), Medium or Large starting height for every message box |
65
65
  | `theme-brightness` | Appearance | Background and text brightness | Global | Background brightness, text brightness (default +25) |
66
66
  | `crisp-text` | Appearance | Crisp text | Global | Crisp text toggle |
@@ -69,7 +69,7 @@ Sections: 29.
69
69
  | `projects` | Projects | Project locations and bookmarks | Global | Project locations with folded Add/Edit and duplicate/alias rename feedback; Bookmarked folders for optional Bookmark folder/Remove bookmark controls; Research folder (`researchFolder`, where each research project gets its dated subfolder; affects only new projects); Research time limit (`researchTimeLimitMinutes`, 30 to 240 minutes, default 45, for each new round or catch-up); Advanced folder options for independent browsing defaults; non-destructive multi-location Run setup again |
70
70
  | `project-trust` | Projects | Project trust | Project, rules kept globally | Searchable, scrollable trusted and blocked project list, default trust |
71
71
  | `enabled-providers` | Providers and models | Enabled providers | Global | Per-provider on/off toggles |
72
- | `authentication` | Providers and models | Sign-in, accounts and local endpoints | Global | Provider sign-in, status and endpoint controls appear only for enabled providers: Claude group (Native sign-in first, then CLI sign-in), Codex accounts and profiles, Cursor, Antigravity CLI and GEMINI FOR RESEARCH (separate sign-in for Gemini researchers, shown when Antigravity CLI is enabled and its sandbox check passes; on Windows and macOS a note says Gemini for Research is Linux-only), Ollama endpoint and discovery, LM Studio endpoint, Strata endpoint, DeepSeek through Xolotl, and the Ollama, llama.cpp, LM Studio and Strata rows. Always shown: Ollama compaction utility model (compaction summaries, session titles) and the GitHub row; the Ollama endpoint also stays shown while an enabled Ollama utility model is configured with Ollama off |
72
+ | `authentication` | Providers and models | Sign-in, accounts and local endpoints | Global | Provider sign-in, status and endpoint controls appear only for enabled providers: Claude group (Default and additional Native accounts, then CLI sign-in), Codex accounts and profiles, Cursor, Antigravity CLI and GEMINI FOR RESEARCH (separate sign-in for Gemini researchers, shown when Antigravity CLI is enabled and its sandbox check passes; on Windows and macOS a note says Gemini for Research is Linux-only), Ollama endpoint and discovery, LM Studio endpoint, Strata endpoint, DeepSeek through Xolotl, and the Ollama, llama.cpp, LM Studio and Strata rows. Always shown: Ollama compaction utility model (compaction summaries, session titles) and the GitHub row; the Ollama endpoint also stays shown while an enabled Ollama utility model is configured with Ollama off |
73
73
  | `llamacpp-catalog` | Providers and models | llama.cpp model registry | Global | llama.cpp registry editor and preload (shown when llama.cpp is enabled and installed) |
74
74
  | `catalog` | Providers and models | Model catalog | Global | Model catalog editor |
75
75
  | `native-subagents` | Agents and clusters | Claude Native sub-agents | Global defaults, including existing workflows | Maximum running at once, maximum starts per turn, sub-agent model and Background sub-agents (Allowed or Off); each control opens this section from contextual help |
@@ -86,6 +86,11 @@ Sections: 29.
86
86
  | `app-window-browser` | Advanced | App window browser | Global | Automatic (first found, preserving the existing preference), a detected installation/channel, or another program name or path; used by `arco open`, the Arco shortcut and the explorer window; a missing choice falls back to Automatic |
87
87
  | `cli-versions` | Advanced | CLI and runtime versions | Global | Arco running version, latest release, CHECK NOW, update action or copyable command, Check for new releases, Updating Arco link; Claude, Codex CLI and Ollama daemon versions, plus the providers popover for available provider updates |
88
88
 
89
+ Claude Native profiles are available in this Settings group and in Connections > Claude.
90
+ Use ADD NATIVE ACCOUNT and SAVE ACCOUNT, then use LOGIN for that profile. Use RENAME ACCOUNT
91
+ to change its display name and LOGOUT to sign out of it. In a Native tab or cluster member,
92
+ CLAUDE NATIVE ACCOUNT selects the sign-in. Existing unbound Native tabs keep Default.
93
+
89
94
  ## Phone view
90
95
 
91
96
  The phone view at `/mobile` has one setting of its own: **THIS PHONE**, shown after the category list in Settings on a phone. It sets the text size of the phone view (100%, 110% or 120%) for this browser only; the workbench's Interface text size does not apply there. See [Use Arco from a phone](GETTING_STARTED.md#use-arco-from-a-phone).
@@ -158,7 +163,7 @@ folders, files, saved sessions or trust decisions. Missing locations stay listed
158
163
 
159
164
  ## Auto-compaction policy
160
165
 
161
- The workflow CONFIG panel has a worker auto-compaction policy and the cluster panel has a cluster default. For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Choose an explicit on or off override or inherit the cluster default; Provider is the default: Claude Native and Ollama use Arco compaction near 90%, while Claude CLI and Codex use their own compaction. Auto-handoff is off by default. The threshold is an integer from 30% through 95%, evaluated for each worker independently. Claude Native and Codex app-server use a fresh completed-turn reading; Codex also needs an existing thread. Ollama checks its estimated request size against the configured backend context window before dispatch. Other transports cannot use this policy. Unknown context never triggers a summary. For Claude Native and Codex app-server, after a successful automatic compaction, the next completed turn at or above the threshold can compact again. If three successive automatic compactions are each followed by a turn still at or above the threshold, a notice explains that compaction will continue. The notice can appear again after a turn ends below the threshold or COMPACT succeeds. A failed attempt waits for a reading more than five percentage points below the threshold before retrying. Fold creates a deterministic digest; Handoff starts a fresh session. Claude Native CONFIG > ADVANCED has the optional Claude API compaction (beta) toggle; it is separate and off for new tabs.
166
+ The workflow CONFIG panel has a worker auto-compaction policy and the cluster panel has a cluster default. For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Choose an explicit on or off override or inherit the cluster default; Provider is the default: Claude Native and Ollama use Arco compaction near 90%, while Claude CLI and Codex use their own compaction. Auto-handoff is off by default. The threshold is an integer from 30% through 95%, evaluated for each worker independently. Claude Native and Codex app-server use a fresh completed-turn reading; Codex also needs an existing thread. Ollama checks its estimated request size against the configured backend context window before dispatch. Gemini uses a fresh completed-turn reading and the CLI's /compact command. Isolated Gemini researchers use manual COMPACT in their sandboxes. After an attempt, Arco waits for a fresh reading more than five percentage points below the threshold before trying again in that session. Provider and Off keep Gemini's usual automatic compaction. Other transports cannot use this policy. For Arco-scheduled compactions, unknown context never triggers a summary. For Claude Native and Codex app-server, after a successful automatic compaction, the next completed turn at or above the threshold can compact again. If three successive automatic compactions are each followed by a turn still at or above the threshold, a notice explains that compaction will continue. The notice can appear again after a turn ends below the threshold or COMPACT succeeds. A failed attempt waits for a reading more than five percentage points below the threshold before retrying. Fold creates a deterministic digest; Handoff starts a fresh session. Claude Native CONFIG > ADVANCED has the optional Claude API compaction (beta) toggle; it is separate and off for new tabs.
162
167
 
163
168
  For Ollama, the new policy summarizes only verified completed executions outside the retained tail. The summary boundary is saved atomically in the workflow's `ollama-compact-boundary.json`, bound to project, workflow, session epoch and source events. Later turns and server restarts reuse a matching summary without rewriting raw events. Queued input is replayed in execution order, with the current prompt supplied once. Unverifiable legacy logs, partial or cancelled executions, changed source and unresolved input defer summarization with a notice. Ineffective or failed attempts wait for a lower context reading before retrying. The enabled policy defers automatic Handoff so it cannot rotate the session before the next pre-dispatch check; manual Handoff remains available. Explicit Off stops automatic compaction, including the legacy global automatic setting. Returning to Provider uses the 90% default unless an earlier global Ollama enabled or threshold setting is saved, in which case that setting remains in force. Manual COMPACT remains a next-turn action and uses the same durable boundary when a worker or Provider policy is active.
164
169
 
@@ -243,7 +248,7 @@ beyond the limit is reported in the conversation. Pinning a project skill
243
248
  explicitly approves that text even with project trust off. Save an EDITABLE
244
249
  COPY before pinning a built-in skill. No pins are added by default.
245
250
 
246
- Skill descriptions can be up to 300 characters. Settings > SKILLS lists the built-in skills with an OPERATOR or MODEL badge, TURN OFF and TURN ON. The composer SKILLS menu runs them or creates an EDITABLE COPY. A project or global skill with the same name replaces the built-in. Operator-run (slash): grill-me, grill-with-docs, wait-what, retro; Architecture review via `/improve-codebase-architecture`. Model-invoked (manifest / MODEL badge): proportionate-testing (Arco-owned), grilling, domain-modeling, tdd, diagnosing-bugs, codebase-design, prototype, writing-for-agents. `proportionate-testing` controls how much to test; `tdd` controls how to write one test. Keep it on to ask agents for one test per real fault and operator approval before new suites, gates, tooling or CI checks. Built-in third-party skills and their license are listed in [THIRD_PARTY_NOTICES](../THIRD_PARTY_NOTICES).
251
+ Skill descriptions can be up to 300 characters. Settings > SKILLS lists the built-in skills with an OPERATOR or MODEL badge, TURN OFF and TURN ON. The composer SKILLS menu runs them or creates an EDITABLE COPY. A project or global skill with the same name replaces the built-in. Operator-run (slash): grill-me, grill-with-docs, wait-what, retro, code-review; Architecture review via `/improve-codebase-architecture`. Model-invoked (manifest / MODEL badge): proportionate-testing (Arco-owned), grilling, domain-modeling, tdd, diagnosing-bugs, codebase-design, prototype, writing-for-agents. `proportionate-testing` controls how much to test; `tdd` controls how to write one test. Keep it on to ask agents for one test per real fault and operator approval before new suites, gates, tooling or CI checks. Built-in third-party skills and their license are listed in [THIRD_PARTY_NOTICES](../THIRD_PARTY_NOTICES).
247
252
 
248
253
  ## Save outcomes and rapid edits
249
254
 
@@ -5,8 +5,8 @@ export interface ClusterSkillPin extends ArcoSkillRef {
5
5
  export type ClusterMemberProvider = 'claude' | 'codex' | 'ollama' | 'llamacpp' | 'cursor' | 'antigravity-cli';
6
6
  export declare const CLUSTER_MEMBER_PROVIDERS: readonly ["claude", "codex", "ollama", "llamacpp", "cursor", "antigravity-cli"];
7
7
  export declare function isOperatorSendOnlyProvider(v: unknown): boolean;
8
- export declare const GEMINI_MEMBER_NOTE = "Mail to or from Gemini waits for your NUDGE; review or edit it in MAILBOX first. AUTO-PICKUP skips it.";
9
- export declare const GEMINI_MEMBER_CHOICE_NOTE = "Mail to or from Gemini waits for your NUDGE; review or edit it in MAILBOX first. AUTO-PICKUP skips it. Gemini members are not isolated.";
8
+ export declare const GEMINI_MEMBER_NOTE = "AUTO-PICKUP can wake Gemini for eligible incoming mail. Mail from Gemini waits for your NUDGE on the recipient.";
9
+ export declare const GEMINI_MEMBER_CHOICE_NOTE = "AUTO-PICKUP can wake Gemini for eligible incoming mail. Mail from Gemini waits for your NUDGE on the recipient. Gemini members are not isolated.";
10
10
  export declare const GEMINI_RESEARCH_DIRECTOR_NOTE = "Each step of a Gemini Research Director waits for your NUDGE, and the rounds it sends wait for your NUDGE on each researcher. Review or edit them in MAILBOX first.";
11
11
  export declare const GEMINI_RESEARCHER_NOTE = "A Gemini researcher works in the Linux worker sandbox with the separate Gemini for research sign-in, and takes each round only on your NUDGE.";
12
12
  export declare function isClusterMemberProvider(v: unknown): v is ClusterMemberProvider;
@@ -325,6 +325,18 @@ export interface ClusterCreateWithFreshWorkersMessage extends ClusterCreationSet
325
325
  model?: string;
326
326
  effort?: 'low' | 'medium' | 'high' | string;
327
327
  providerAccountRef?: string;
328
+ members?: ClusterFreshMemberSpec[];
329
+ }
330
+ export interface ClusterFreshMemberSpec extends ClusterMemberTuning {
331
+ provider?: ClusterMemberProvider;
332
+ model?: string;
333
+ effort?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | string;
334
+ providerAccountRef?: string;
335
+ accessMode?: ClusterMemberAccessMode;
336
+ webAccess?: boolean;
337
+ claudeTransport?: 'native' | 'cli';
338
+ name?: string;
339
+ role?: string;
328
340
  }
329
341
  export interface ClusterCreateFromScratchMessage extends ClusterCreationSettings {
330
342
  type: 'cluster_create_from_scratch';
@@ -767,7 +779,7 @@ export interface ClusterAutoTurnFiredMessage {
767
779
  workflowId: string;
768
780
  sender: string;
769
781
  chainDepth: number;
770
- reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled' | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail';
782
+ reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled' | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail' | 'member_blocked';
771
783
  notice?: string;
772
784
  fired: boolean;
773
785
  }
@@ -4,7 +4,7 @@ export const CLUSTER_MEMBER_PROVIDERS = ['claude', 'codex', 'ollama', 'llamacpp'
4
4
  export function isOperatorSendOnlyProvider(v) {
5
5
  return v === 'antigravity-cli';
6
6
  }
7
- export const GEMINI_MEMBER_NOTE = 'Mail to or from Gemini waits for your NUDGE; review or edit it in MAILBOX first. AUTO-PICKUP skips it.';
7
+ export const GEMINI_MEMBER_NOTE = 'AUTO-PICKUP can wake Gemini for eligible incoming mail. Mail from Gemini waits for your NUDGE on the recipient.';
8
8
  // Shown where a Gemini member is chosen: it runs in the project folder.
9
9
  export const GEMINI_MEMBER_CHOICE_NOTE = `${GEMINI_MEMBER_NOTE} Gemini members are not isolated.`;
10
10
  // Shown where a Gemini Research Director is chosen.
@@ -181,7 +181,7 @@ export interface Capabilities {
181
181
  }
182
182
  export interface ClaudeCredentialBinding {
183
183
  source: 'claude-native' | 'claude-cli';
184
- storeId: 'claude.native' | 'claude-cli-default';
184
+ storeId: 'claude.native' | 'claude-cli-default' | `claude.native:${string}`;
185
185
  revision?: string;
186
186
  }
187
187
  export interface ClaudeCliAuthStatus {
@@ -213,8 +213,10 @@ export interface ClaudeNativeAuthStatus {
213
213
  export interface AuthStatus {
214
214
  loggedIn: boolean;
215
215
  native?: ClaudeNativeAuthStatus;
216
+ nativeAccounts?: Record<string, ClaudeNativeAuthStatus>;
216
217
  cli?: ClaudeCliAuthStatus;
217
218
  probeFailed?: boolean;
219
+ githubState?: 'missing' | 'signed-out' | 'probe-failed';
218
220
  email?: string;
219
221
  subscriptionType?: string;
220
222
  orgName?: string;
@@ -271,9 +273,12 @@ export interface ClaudeNativeAuthFlow {
271
273
  bindingBefore: ClaudeCredentialBinding;
272
274
  binding?: ClaudeCredentialBinding;
273
275
  workflowId?: string;
276
+ accountRef?: string;
274
277
  error?: string;
275
278
  }
276
279
  export interface AuthRecoveryContext {
277
280
  transport: 'native' | 'cli';
278
281
  binding?: ClaudeCredentialBinding;
282
+ accountRef?: string;
283
+ accountUnavailable?: boolean;
279
284
  }
@@ -8,10 +8,11 @@ export interface OperatorQuestion {
8
8
  }>;
9
9
  allowOther: boolean;
10
10
  secret: boolean;
11
+ optional?: boolean;
11
12
  }
12
13
  export interface OperatorQuestionState {
13
14
  requestId: string;
14
- provider: 'codex';
15
+ provider: 'codex' | 'antigravity-cli';
15
16
  threadId: string;
16
17
  turnId: string;
17
18
  itemId: string;
@@ -1,4 +1,6 @@
1
1
  export declare const TERMINAL_CODEX_ACCOUNT = "@terminal";
2
+ export declare const DEFAULT_CLAUDE_NATIVE_ACCOUNT = "@native-default";
3
+ export declare function isClaudeNativeProfileId(id: unknown): id is string;
2
4
  import type { EffortLevel, ModelName, ProviderName } from './providers.js';
3
5
  import type { FallbackChainsConfig } from './fallback.js';
4
6
  export interface NativeSubagentPolicy {
@@ -58,6 +60,7 @@ export interface ProviderAccountProfile {
58
60
  export interface ProviderAccountsConfig {
59
61
  codex?: ProviderAccountProfile[];
60
62
  claude?: ProviderAccountProfile[];
63
+ claudeNative?: ProviderAccountProfile[];
61
64
  }
62
65
  export interface ArcoSettings {
63
66
  previewPorts?: string;
@@ -1,5 +1,10 @@
1
1
  // Reserved account selector for a terminal-owned Codex session in CODEX_HOME.
2
2
  export const TERMINAL_CODEX_ACCOUNT = '@terminal';
3
+ // An explicit selection of the original Claude Native credential store.
4
+ export const DEFAULT_CLAUDE_NATIVE_ACCOUNT = '@native-default';
5
+ export function isClaudeNativeProfileId(id) {
6
+ return typeof id === 'string' && /^native-[0-9a-f]{24}$/.test(id);
7
+ }
3
8
  export function sanitizeNativeSubagents(value) {
4
9
  if (!value || typeof value !== 'object' || Array.isArray(value))
5
10
  return undefined;
@@ -193,6 +193,7 @@ export type FileContextReference = {
193
193
  };
194
194
  export interface WorkerConfig {
195
195
  antigravityInteractive?: boolean;
196
+ antigravityHandoffWriter?: boolean;
196
197
  antigravityChatWorkspace?: boolean;
197
198
  priorFiles?: FileContextReference[];
198
199
  fileContextCwd?: string;
@@ -15,8 +15,6 @@ export function resolveAutoCompactionPolicy(worker, cluster) {
15
15
  }
16
16
  // Leave ten percent of the context window for the compaction request itself.
17
17
  export function resolveProviderAutoCompaction(worker, cluster, provider, transport, serverCompact, savedOllamaPolicy = false) {
18
- if (provider === 'antigravity-cli')
19
- return undefined;
20
18
  const explicit = resolveAutoCompactionPolicy(worker, cluster);
21
19
  if (explicit)
22
20
  return explicit;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arco/shared",
3
- "version": "0.2.2",
3
+ "version": "0.2.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "node-pty": "1.1.0"
5
5
  },
6
6
  "name": "arco-workbench",
7
- "version": "0.2.2",
7
+ "version": "0.2.5",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/ghreprimand/arco.git"
@@ -67,7 +67,7 @@
67
67
  "word-extractor": "1.0.4",
68
68
  "ws": "8.22.0",
69
69
  "xlsx": "0.20.3",
70
- "@arco/shared": "0.2.2"
70
+ "@arco/shared": "0.2.5"
71
71
  },
72
72
  "bundleDependencies": [
73
73
  "@arco/shared",
@@ -103,11 +103,30 @@ export function runWindowsProbe(command, args, { timeout = 30_000, env = process
103
103
  timer = setTimeout(() => { child.stdout.destroy(); try { child.kill(); } catch { /* already gone */ } child.unref(); finish({ error: Object.assign(new Error('Process inspection timed out.'), { code: 'ETIMEDOUT' }) }); }, timeout);
104
104
  });
105
105
  }
106
+ // Reads the Linux user service state and any queued job without changing it.
107
+ // Returns null when systemd cannot be asked, so callers treat it as unknown.
108
+ export function linuxServiceState(deps = {}) {
109
+ const run = deps.run ?? ((cmd, args) => spawnSync(cmd, args, { stdio: ['ignore', 'pipe', 'pipe'], encoding: 'utf8', timeout: 10_000 }));
110
+ const show = run('systemctl', ['--user', 'show', '--property=ActiveState', 'arco.service']);
111
+ const active = /^ActiveState=([a-z-]+)\s*$/m.exec(show.stdout || '')?.[1];
112
+ if (show.error || show.status !== 0 || !active) return null;
113
+ const jobs = run('systemctl', ['--user', 'list-jobs', '--no-legend', 'arco.service']);
114
+ if (jobs.error || jobs.status !== 0) return null;
115
+ const job = String(jobs.stdout || '').split('\n').map((line) => line.trim().split(/\s+/)).find((fields) => fields[1] === 'arco.service')?.[2] ?? null;
116
+ return { active, job };
117
+ }
106
118
  export async function serviceAction(action, deps = {}) {
107
119
  const platform = deps.platform ?? process.platform, env = deps.env ?? process.env;
108
120
  const paths = deps.paths ?? servicePaths(platform, env);
109
121
  const run = deps.run ?? ((cmd, args, options = {}) => spawnSync(cmd, args, { stdio: 'inherit', windowsHide: true, ...options }));
110
- const call = (cmd, args) => { const r = run(cmd, args); if (r.error || r.status !== 0) throw new Error(`${cmd} ${args[0]} failed${r.error ? `: ${r.error.message}` : ''}`); };
122
+ // Name the failed step (command, action, unit) without dashed options,
123
+ // user ids or paths, so the message is safe to show and to save.
124
+ const call = (cmd, args) => {
125
+ const r = run(cmd, args);
126
+ if (!r.error && r.status === 0) return;
127
+ const step = [cmd, args.find((arg) => !arg.startsWith('-')), ...(args.includes('arco.service') ? ['arco.service'] : [])].join(' ');
128
+ throw new Error(`${step} failed${r.error ? `: ${r.error.message}` : Number.isInteger(r.status) ? ` (exit ${r.status})` : ''}`);
129
+ };
111
130
  const uid = deps.uid ?? process.getuid?.();
112
131
  const domain = env.USERDOMAIN, username = env.USERNAME;
113
132
  const user = domain && username ? `${domain}\\${username}` : username;