arco-workbench 0.2.4 → 0.2.6

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 (254) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/THIRD_PARTY_NOTICES +2 -2
  3. package/client/dist/assets/{PhosphorBackdrop-CHXVFLGT.js → PhosphorBackdrop-YsHTmZJh.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-Bhs4I9jA.js → ThemedBackgroundShaderImpl-BEjpgoBW.js} +1 -1
  5. package/client/dist/assets/{XtermView-CdfurwFx.js → XtermView-wh7jNKvk.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-DYjZZ4cf.js → galleryEditor-CaOS2mmM.js} +1 -1
  7. package/client/dist/assets/{index-BjDmFvqG.js → index-j68SfA-l.js} +271 -271
  8. package/client/dist/index.html +1 -1
  9. package/client/src/App.tsx +2 -2
  10. package/client/src/components/AuthReloginNotice.tsx +7 -6
  11. package/client/src/components/ChatMessage.tsx +41 -29
  12. package/client/src/components/ChatPanel.tsx +17 -4
  13. package/client/src/components/ClaudeNativeAccountPicker.tsx +32 -0
  14. package/client/src/components/ClaudeNativeAuthRow.tsx +71 -19
  15. package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +11 -281
  16. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +1 -1
  17. package/client/src/components/ClusterRightPanel/FreshMemberForm.tsx +315 -0
  18. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +17 -7
  19. package/client/src/components/ClusterRightPanel/index.tsx +1 -1
  20. package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +6 -4
  21. package/client/src/components/ClusterTab.tsx +2 -2
  22. package/client/src/components/Connections/Connections.tsx +5 -9
  23. package/client/src/components/Connections/model.ts +3 -1
  24. package/client/src/components/FileViewerModal.tsx +54 -17
  25. package/client/src/components/GitHubPanel/index.tsx +9 -5
  26. package/client/src/components/HandoffDialog.tsx +5 -3
  27. package/client/src/components/MobileShell.tsx +1 -33
  28. package/client/src/components/OperatorQuestionNotice.tsx +5 -4
  29. package/client/src/components/ProvidersPopover.tsx +6 -2
  30. package/client/src/components/RightPanel/ActivityTab.tsx +2 -1
  31. package/client/src/components/RightPanel/ConfigTab.tsx +23 -5
  32. package/client/src/components/RightPanel/OutputsPanel.tsx +21 -9
  33. package/client/src/components/RightPanel/outputsReconcile.ts +31 -0
  34. package/client/src/components/SettingsPanel.tsx +7 -10
  35. package/client/src/components/SpawnDialog.tsx +14 -3
  36. package/client/src/components/TabBar.tsx +2 -2
  37. package/client/src/components/TabContextMenu.tsx +73 -133
  38. package/client/src/components/TerminalInput.tsx +4 -3
  39. package/client/src/components/TranscriptWorkerDialog.tsx +14 -4
  40. package/client/src/components/UpdateAction.tsx +30 -7
  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/settings/GitHubAuthRow.tsx +34 -0
  47. package/client/src/explorer/ArtifactsLens.tsx +17 -8
  48. package/client/src/explorer/ExplorerApp.tsx +3 -3
  49. package/client/src/explorer/types.ts +3 -1
  50. package/client/src/help/content/cluster.tsx +10 -4
  51. package/client/src/help/content/composer.tsx +3 -2
  52. package/client/src/help/content/header.tsx +11 -4
  53. package/client/src/help/content/misc.tsx +7 -5
  54. package/client/src/help/content/rightPanel.tsx +8 -4
  55. package/client/src/help/content/settings.tsx +15 -4
  56. package/client/src/help/content/tabbar.tsx +1 -1
  57. package/client/src/help/manualSections/actions.tsx +5 -1
  58. package/client/src/help/manualSections/clusters.tsx +20 -14
  59. package/client/src/help/manualSections/configuration.tsx +6 -4
  60. package/client/src/help/manualSections/gettingStarted.tsx +4 -2
  61. package/client/src/help/manualSections/maintenance.tsx +31 -0
  62. package/client/src/help/manualSections/powerFeatures.tsx +1 -0
  63. package/client/src/help/manualSections/providers.tsx +11 -4
  64. package/client/src/help/manualSections/workspace.tsx +3 -3
  65. package/client/src/hooks/useClaudeNativeCatalog.ts +26 -0
  66. package/client/src/hooks/useClaudeNativeLogin.ts +16 -11
  67. package/client/src/hooks/useWebSocket.ts +4 -2
  68. package/client/src/layout/layoutRange.ts +4 -5
  69. package/client/src/questions/waitingQuestion.ts +2 -0
  70. package/client/src/stores/appStore.ts +5 -1
  71. package/client/src/stores/appStore.types.ts +2 -0
  72. package/client/src/stores/replayContext.ts +20 -0
  73. package/client/src/utils/chatFileLinks.ts +34 -3
  74. package/client/src/utils/claudeAuth.ts +9 -1
  75. package/client/src/ws/handleServerMessage.ts +11 -3
  76. package/docs/ARCHITECTURE.md +3 -3
  77. package/docs/BACKUP.md +1 -1
  78. package/docs/CLIENT.md +10 -5
  79. package/docs/EXTENDING.md +1 -1
  80. package/docs/FEATURES.md +3 -3
  81. package/docs/GETTING_STARTED.md +5 -4
  82. package/docs/GIT_WORKBENCH.md +8 -0
  83. package/docs/GLOSSARY.md +2 -2
  84. package/docs/GOTCHAS.md +4 -4
  85. package/docs/HTTP_API.md +54 -23
  86. package/docs/OPERATIONS.md +17 -1
  87. package/docs/OPERATOR_ACTIONS.md +2 -2
  88. package/docs/OUTPUTS.md +48 -6
  89. package/docs/PERSISTENCE.md +1 -1
  90. package/docs/PRIMITIVES.md +4 -2
  91. package/docs/PROTOCOL_CLUSTER.md +12 -6
  92. package/docs/PROTOCOL_PRIMITIVES.md +1 -1
  93. package/docs/PROVIDERS.md +46 -9
  94. package/docs/RESEARCH.md +1 -1
  95. package/docs/SETTINGS.md +9 -4
  96. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +15 -3
  97. package/node_modules/@arco/shared/dist/protocol/clusters.js +1 -1
  98. package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
  99. package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +2 -1
  100. package/node_modules/@arco/shared/dist/protocol/settings.d.ts +3 -0
  101. package/node_modules/@arco/shared/dist/protocol/settings.js +5 -0
  102. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
  103. package/node_modules/@arco/shared/dist/protocol/workflows.js +0 -2
  104. package/node_modules/@arco/shared/package.json +1 -1
  105. package/package.json +2 -2
  106. package/scripts/packaging/services.mjs +20 -1
  107. package/scripts/packaging/update.mjs +37 -2
  108. package/server/dist/attention.d.ts +6 -0
  109. package/server/dist/attention.js +6 -0
  110. package/server/dist/auth.d.ts +5 -0
  111. package/server/dist/auth.js +31 -20
  112. package/server/dist/clusterAutoTurn.d.ts +5 -1
  113. package/server/dist/clusterAutoTurn.js +31 -9
  114. package/server/dist/clusterPresets.js +3 -3
  115. package/server/dist/effortValidation.d.ts +2 -2
  116. package/server/dist/effortValidation.js +4 -4
  117. package/server/dist/explorerArtifacts.d.ts +1 -0
  118. package/server/dist/explorerArtifacts.js +12 -1
  119. package/server/dist/geminiMembers.d.ts +7 -1
  120. package/server/dist/geminiMembers.js +28 -14
  121. package/server/dist/http/conversationFiles.d.ts +36 -0
  122. package/server/dist/http/conversationFiles.js +222 -0
  123. package/server/dist/http/fileBytes.d.ts +3 -0
  124. package/server/dist/http/fileBytes.js +33 -0
  125. package/server/dist/http/fileContentRoute.d.ts +2 -0
  126. package/server/dist/http/fileContentRoute.js +139 -0
  127. package/server/dist/http/fileRead.d.ts +54 -2
  128. package/server/dist/http/fileRead.js +31 -24
  129. package/server/dist/http/outputRoutes.js +14 -21
  130. package/server/dist/http/readConfinement.d.ts +0 -11
  131. package/server/dist/http/readConfinement.js +4 -30
  132. package/server/dist/http/router.js +40 -66
  133. package/server/dist/index.js +26 -12
  134. package/server/dist/management/initHubLink.js +1 -1
  135. package/server/dist/outputs.js +8 -0
  136. package/server/dist/primitives/exportContext.d.ts +2 -0
  137. package/server/dist/primitives/exportContext.js +13 -2
  138. package/server/dist/primitives/runCompare.d.ts +7 -1
  139. package/server/dist/primitives/runCompare.js +44 -20
  140. package/server/dist/project/taskLedger.js +46 -34
  141. package/server/dist/providerAccounts.d.ts +4 -0
  142. package/server/dist/providerAccounts.js +20 -1
  143. package/server/dist/providers/antigravity/artifacts.d.ts +23 -0
  144. package/server/dist/providers/antigravity/artifacts.js +140 -0
  145. package/server/dist/providers/antigravity/index.js +85 -7
  146. package/server/dist/providers/antigravity/questions.d.ts +2 -0
  147. package/server/dist/providers/antigravity/questions.js +58 -0
  148. package/server/dist/providers/claude-native/auth.d.ts +9 -8
  149. package/server/dist/providers/claude-native/auth.js +50 -58
  150. package/server/dist/providers/claude-native/authStatus.d.ts +2 -2
  151. package/server/dist/providers/claude-native/authStatus.js +9 -7
  152. package/server/dist/providers/claude-native/catalog.d.ts +6 -5
  153. package/server/dist/providers/claude-native/catalog.js +50 -39
  154. package/server/dist/providers/claude-native/oauth.d.ts +10 -9
  155. package/server/dist/providers/claude-native/oauth.js +120 -96
  156. package/server/dist/providers/claude-native/worker.d.ts +1 -0
  157. package/server/dist/providers/claude-native/worker.js +38 -23
  158. package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -3
  159. package/server/dist/providers/codex-appserver/operatorQuestions.js +27 -13
  160. package/server/dist/server/broadcast.js +6 -0
  161. package/server/dist/settings.d.ts +1 -0
  162. package/server/dist/settings.js +39 -7
  163. package/server/dist/skills.js +1 -1
  164. package/server/dist/smartPickupAdapters.d.ts +1 -0
  165. package/server/dist/smartPickupAdapters.js +2 -2
  166. package/server/dist/smartPickupObserver.js +8 -5
  167. package/server/dist/thirdPartySkills.js +11 -5
  168. package/server/dist/usage.d.ts +1 -1
  169. package/server/dist/usage.js +39 -27
  170. package/server/dist/workers/WorkerManager.d.ts +1 -0
  171. package/server/dist/workers/WorkerManager.js +1 -0
  172. package/server/dist/workers/processKill.js +37 -24
  173. package/server/dist/workflowMeta.js +2 -2
  174. package/server/dist/ws/clusterHandlers.d.ts +2 -2
  175. package/server/dist/ws/clusterHandlers.js +127 -113
  176. package/server/dist/ws/clusterMembers.d.ts +1 -1
  177. package/server/dist/ws/clusterMembers.js +34 -4
  178. package/server/dist/ws/compactHandlers.js +30 -14
  179. package/server/dist/ws/compareHandlers.js +53 -21
  180. package/server/dist/ws/gateHandlers.js +2 -0
  181. package/server/dist/ws/genesisHandlers.js +5 -3
  182. package/server/dist/ws/handoffHandlers.d.ts +1 -1
  183. package/server/dist/ws/handoffHandlers.js +115 -39
  184. package/server/dist/ws/transcriptWorkerHandlers.js +7 -2
  185. package/server/dist/ws/turnEngine.js +33 -18
  186. package/server/dist/ws/updatePrimaryConfig.d.ts +3 -2
  187. package/server/dist/ws/updatePrimaryConfig.js +236 -133
  188. package/server/dist/ws/workflowHandlers.js +21 -4
  189. package/server/package.json +1 -1
  190. package/server/src/attention.ts +7 -0
  191. package/server/src/auth.ts +33 -20
  192. package/server/src/clusterAutoTurn.ts +31 -11
  193. package/server/src/clusterPresets.ts +2 -2
  194. package/server/src/effortValidation.ts +4 -4
  195. package/server/src/explorerArtifacts.ts +12 -1
  196. package/server/src/geminiMembers.ts +26 -15
  197. package/server/src/http/conversationFiles.ts +231 -0
  198. package/server/src/http/fileBytes.ts +34 -0
  199. package/server/src/http/fileContentRoute.ts +123 -0
  200. package/server/src/http/fileRead.ts +30 -25
  201. package/server/src/http/outputRoutes.ts +13 -13
  202. package/server/src/http/readConfinement.ts +3 -30
  203. package/server/src/http/router.ts +38 -62
  204. package/server/src/index.ts +27 -18
  205. package/server/src/management/initHubLink.ts +1 -1
  206. package/server/src/outputs.ts +8 -0
  207. package/server/src/primitives/exportContext.ts +14 -2
  208. package/server/src/primitives/runCompare.ts +73 -46
  209. package/server/src/project/taskLedger.ts +47 -30
  210. package/server/src/providerAccounts.ts +20 -1
  211. package/server/src/providers/antigravity/artifacts.ts +121 -0
  212. package/server/src/providers/antigravity/index.ts +64 -6
  213. package/server/src/providers/antigravity/questions.ts +52 -0
  214. package/server/src/providers/claude-native/auth.ts +45 -60
  215. package/server/src/providers/claude-native/authStatus.ts +9 -8
  216. package/server/src/providers/claude-native/catalog.ts +52 -35
  217. package/server/src/providers/claude-native/oauth.ts +101 -77
  218. package/server/src/providers/claude-native/worker.ts +38 -22
  219. package/server/src/providers/codex-appserver/operatorQuestions.ts +26 -12
  220. package/server/src/server/broadcast.ts +4 -0
  221. package/server/src/settings.ts +36 -8
  222. package/server/src/skills.ts +1 -1
  223. package/server/src/smartPickupAdapters.ts +3 -2
  224. package/server/src/smartPickupObserver.ts +8 -5
  225. package/server/src/thirdPartySkills.ts +11 -5
  226. package/server/src/usage.ts +30 -22
  227. package/server/src/workers/WorkerManager.ts +2 -0
  228. package/server/src/workers/processKill.ts +37 -23
  229. package/server/src/workflowMeta.ts +2 -2
  230. package/server/src/ws/clusterHandlers.ts +107 -104
  231. package/server/src/ws/clusterMembers.ts +25 -6
  232. package/server/src/ws/compactHandlers.ts +29 -15
  233. package/server/src/ws/compareHandlers.ts +59 -25
  234. package/server/src/ws/gateHandlers.ts +2 -0
  235. package/server/src/ws/genesisHandlers.ts +5 -4
  236. package/server/src/ws/handoffHandlers.ts +105 -37
  237. package/server/src/ws/transcriptWorkerHandlers.ts +6 -2
  238. package/server/src/ws/turnEngine.ts +32 -17
  239. package/server/src/ws/updatePrimaryConfig.ts +230 -132
  240. package/server/src/ws/workflowHandlers.ts +20 -4
  241. package/shared/dist/protocol/clusters.d.ts +15 -3
  242. package/shared/dist/protocol/clusters.js +1 -1
  243. package/shared/dist/protocol/models.d.ts +6 -1
  244. package/shared/dist/protocol/operatorQuestions.d.ts +2 -1
  245. package/shared/dist/protocol/settings.d.ts +3 -0
  246. package/shared/dist/protocol/settings.js +5 -0
  247. package/shared/dist/protocol/workflows.d.ts +1 -0
  248. package/shared/dist/protocol/workflows.js +0 -2
  249. package/shared/src/protocol/clusters.ts +23 -5
  250. package/shared/src/protocol/compare.ts +2 -2
  251. package/shared/src/protocol/models.ts +8 -4
  252. package/shared/src/protocol/operatorQuestions.ts +2 -1
  253. package/shared/src/protocol/settings.ts +8 -1
  254. package/shared/src/protocol/workflows.ts +1 -1
package/docs/GLOSSARY.md CHANGED
@@ -147,7 +147,7 @@ Also: **inline artifact** - fenced `arco-artifact` blocks the primary emits duri
147
147
 
148
148
  **Persisting / persisted** - Written to `events.jsonl`. Persisted messages survive server restart and are streamed to clients on reconnect. Non-persisted messages (e.g. `quota_status`, `context_usage`, `session_entry`) are derived state, broadcast transiently.
149
149
 
150
- **Phone view** - The layout Arco serves at `/mobile` for a phone: one conversation at a time, a list of tabs with **NEEDS YOU** first, a member strip in clusters, **PANELS** for the side panels and a text size under Settings > **THIS PHONE**. It is the same server and the same tabs as the desktop layout. See [Use Arco from a phone](GETTING_STARTED.md#use-arco-from-a-phone).
150
+ **Phone view** - The layout Arco serves at `/mobile` for a phone: one conversation at a time, a list of tabs with each tab's state, a member strip in clusters, **PANELS** for the side panels and a text size under Settings > **THIS PHONE**. It is the same server and the same tabs as the desktop layout. See [Use Arco from a phone](GETTING_STARTED.md#use-arco-from-a-phone).
151
151
 
152
152
  **Plan** - A long-form markdown brief stored at `<cwd>/.arco/plans/<planId>.md`. Operators attach a plan to a workflow in the Plan tab; supported turns receive plan context subject to access restrictions. Plans live in the cwd, not the workflow, so the same plan can be attached to multiple workflows.
153
153
 
@@ -229,7 +229,7 @@ Also: **inline artifact** - fenced `arco-artifact` blocks the primary emits duri
229
229
 
230
230
  **Scratch folder** - `scratch/` inside a conversation folder, for large intermediate files. Arco empties it only at the operator's request (**EMPTY SCRATCH**, or the offer when a tab is closed); items under a KEEP mark are skipped. See [Persistence](PERSISTENCE.md).
231
231
 
232
- **Gemini member** - A cluster member on Antigravity CLI (Gemini). Mail to or from it waits for the operator's **NUDGE** and AUTO-PICKUP skips it. See [Gemini members](PROTOCOL_CLUSTER.md#gemini-members).
232
+ **Gemini member** - A cluster member on Antigravity CLI (Gemini). AUTO-PICKUP can wake it for eligible incoming mail in an ordinary cluster. Mail from it waits for NUDGE. See [Gemini members](PROTOCOL_CLUSTER.md#gemini-members).
233
233
 
234
234
  **Seed** - The first user message in a fresh CLI session, used by Handoff and Spawn to inject context. See **handoff seed** / **spawn seed**.
235
235
 
package/docs/GOTCHAS.md CHANGED
@@ -223,7 +223,7 @@ Updater exit status and the post-update version are separate evidence. A nonzero
223
223
  - **A local tool result does not close pending Native server calls.** A mixed response can return `stop_reason: tool_use` before its web search or web fetch results arrive. Match server calls and results by ID across assistant messages in the active turn. While any remain pending, send only the local tool results, leave steering queued and defer in-turn compaction. Each held message gets one notice, even across several pending rounds. Deliver at the next safe local-tool boundary or through the existing next-turn queue. Never fabricate a result or strip search evidence or thinking to insert a steer; actual-abort recovery stays separate.
224
224
  - **Ripgrep stdout mixes matches and binary warnings.** Native Grep parses each newline-delimited record before looking for its NUL filename separator. A binary warning has no separator and must be skipped by itself; consuming through the next separator would discard the following text match. The bounded-read regression sorts filenames so the binary warning precedes a readable file.
225
225
 
226
- - **Agent shell commands and hooks go through `commandShell()`.** `server/src/commandShell.ts` returns `/bin/sh` on Linux and macOS, Git Bash on Windows and PowerShell on Windows without Git Bash; never spawn `/bin/sh` or `bash` directly for the Bash tools, hooks or sandbox shell scripts, and build the arguments with `shellInvocation()` (PowerShell gets an encoded command, or a temporary script that `cleanup()` removes). Start such children with `spawnShellChild()` and kill them with `signalChildTree()` from `server/src/workers/processKill.ts`: `process.kill(-pid)` does not exist on Windows, `taskkill /T` misses an MSYS background job whose forked parent has exited (the child's `ARCO_PROCESS_TREE` tag finds it through Git Bash's `/proc`), and Node's own argument quoting halves a pair of backslashes on the way into Git Bash (`msysQuote()` with a verbatim command line does not). A hook that cannot start never blocks (`notRun`).
226
+ - **Agent shell commands and hooks go through `commandShell()`.** `server/src/commandShell.ts` returns `/bin/sh` on Linux and macOS, Git Bash on Windows and PowerShell on Windows without Git Bash; never spawn `/bin/sh` or `bash` directly for the Bash tools, hooks or sandbox shell scripts, and build the arguments with `shellInvocation()` (PowerShell gets an encoded command, or a temporary script that `cleanup()` removes). Start such children with `spawnShellChild()` and kill them with `signalChildTree()` from `server/src/workers/processKill.ts`: `process.kill(-pid)` does not exist on Windows, `taskkill /T` misses an MSYS background job whose forked parent has exited (the child's `ARCO_PROCESS_TREE` tag finds it through Git Bash's `/proc`, with each entry read in a subshell), and Node's own argument quoting halves a pair of backslashes on the way into Git Bash (`msysQuote()` with a verbatim command line does not). A hook that cannot start never blocks (`notRun`).
227
227
  - **Cache discipline is load-bearing.** The forced first system block (`"You are Claude Code, ..."`) is byte-stable across every Native tab; the appendSystemPrompt block is byte-stable across iterations within a turn. Never insert per-turn-variable content (timestamps, request IDs, operator name) above the cache marker - that invalidates every prior turn's cache on every tab. System-block ordering is fixed (canonical list in the `buildSystemBlocks` header comment: FORCED_FIRST_BLOCK → north-star → cluster plan → role → efficiency/progress doctrine → delegation contract → sandbox nudge → env note → turn discipline → workspace facts → appendSystemPrompt → systemPrompt → output style; a Chat tab short-circuits to FORCED_FIRST_BLOCK → chat prompt); reordering on a deploy invalidates every active tab's cache. The hardcoded `FORCED_FIRST_BLOCK` constant in `worker.ts` is the single source of truth - operator overrides were intentionally rejected (§14 Q4). On the OAuth subscription path, requests and diagnostics must include the identity block; omitting it can produce a rate-limit error.
228
228
  - **Stateless Native helpers live in siblings, re-exported from `worker.ts` (P0 carve-out).** To stay under the 2000-line cap, the pure leaf helpers were moved to `modelParams.ts` (token/thinking/effort/ctx), `contentBlocks.ts` (content-block types + image/message/server-tool/context-mgmt/strip-thinking helpers), and `workerHelpers.ts` (`replayMessagesFromEvents`, `mergeUsage`, `truncateOutput`, `planParserAdvisories`, `sleepWithSignal`). `worker.ts` re-exports the previously-public names so `from './worker.js'` imports (including the test files) keep working - **add new pure helpers to the sibling modules, not back into `worker.ts`**; only stateful class logic belongs there. The `FORCED_FIRST_BLOCK` constant stays in `worker.ts` (single source of truth, see cache-discipline bullet above).
229
229
  - **Replay-on-restart is the canonical recovery path.** On `ensureStarted` the worker tail-reads `events.jsonl` and reconstructs `messages[]` from `user_message_echo` + `primary_text` entries. Tool_use / tool_result events are NOT replayed (the model gets a clean USER/ASSISTANT view; reconstructing tool ids with full fidelity is deferred - §14 Q7). Don't add a periodic snapshot path without first measuring whether replay cost actually bites. The reconstruction logs to stderr under `[claude-native:<wfid>]`; that's the forensic surface.
@@ -525,8 +525,8 @@ Cursor is an ACP provider (`cursor-agent acp`). Current transport details are su
525
525
 
526
526
  Antigravity CLI runs Google's own `agy acp` on the operator's sign-in. These traps keep it within that sign-in's terms; see `docs/PROVIDERS.md` (Antigravity CLI) and `docs/PROTOCOL_CLUSTER.md` (Gemini members).
527
527
 
528
- - **A Gemini member turn starts only from an operator action.** `isOperatorSendOnlyProvider` (`shared/src/protocol/clusters.ts`) marks `antigravity-cli`. NUDGE or a message typed in its composer mints a single-use ticket bound to the member and the exact text (`server/src/geminiMembers.ts`), and `handleUserMessage` starts a Gemini member turn only with a valid ticket, checked again when a queued message is taken. AUTO-PICKUP, Smart pickup, busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers and retries carry no ticket. Do not add an automatic wake path for this provider; mail to it waits in its mailbox.
529
- - **A Gemini replacement starts fresh.** `cluster_member_replace` refuses history for it, because the first NUDGE carries the role and cluster instructions as visible text.
528
+ - **A Gemini member turn needs a single-use ticket for its exact input.** The operator's NUDGE or typed message obtains a ticket in the WebSocket handler. The Rule-based and Smart dispatchers can issue one after admitting a wake in an ordinary cluster. They recheck mode, pause, membership and access at dispatch. Research, busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers and retries cannot use that path. The worker reads eligible pickup mail through peer_read.
529
+ - **Gemini replacement history is an operator send.** Use the previewed history and a single-use ticket for the replacement member. Its first turn receives its own role and cluster instructions.
530
530
  - **Scheduling requests are refused.** `providers/acp/permissionGate.ts` declines a permission request that names scheduling, cron or automation and posts a notice; scheduling needs unattended execution. The CLI can still act without asking according to its own configuration, so the AUTO/SAFE gate is not a promise that every action is seen.
531
531
  - **The Chat working folder is not a fence.** A saved Antigravity Chat works in `ARCO_HOME/chat-workspaces/<chat-id>` (`chatMode.ts`), which is deleted with the Chat. Tools can reach whatever the user's account can reach.
532
532
  - **Gemini for research is a separate sign-in.** Its home is `~/.arco/antigravity-research`; for each researcher turn the sign-in file is copied into the researcher's private home inside the Linux worker sandbox (`workers/antigravityIsolatedLaunch.ts`). Never point a researcher at the operator's main Antigravity sign-in.
@@ -1170,7 +1170,7 @@ The live Arco *service* reporting workflows + applying reply/stop/continue. `ser
1170
1170
  - **`createBlankNativeWorkflow` is a minimal pre-replay helper for B3 - don't extend it for resume / rehydrate cases.** It deliberately skips the savedMeta restoration logic (autoHandoff / efficiency toggles / outputStyle / planId / calibration / preview) that `handleCreateWorkflow` performs because B3 only creates *fresh* workflows. If a future surface wants to "fork N workers from a template that has prior state," it should call `handleCreateWorkflow` (so resume + rehydrate hooks fire) and chain the cluster create separately. Mixing the two paths in one helper would silently drop state on the fresh path.
1171
1171
  - **Cluster provider fence follows peer-tool wiring, not provider brand.** Claude and Codex get peer tools through Native/CLI/MCP wiring; Ollama now gets them through the local tool registry when `WorkerConfig.clusterId` + `workflowId` are present. Providers without peer-tool wiring remain fenced out. Do not loosen a provider by UI-only changes; the worker must actually receive `peer_list` / `peer_send` / `peer_read` / plan tools.
1172
1172
  - **Cluster Reviews sub-tab reads `job.reviews[]` per member, not a cluster-scoped review list.** Reviews dispatched from MemberPane fire through the existing per-workflow `requestReview` path; the per-member `job.reviews[]` is populated by the same `review_started` / `review_artifact_ready` WS handlers as the standalone Review tab. The Reviews sub-tab is purely a read-side aggregation. If cluster-wide review (one reviewer call across all members) lands later, that's a separate `cluster_reviews[]` list - don't write cluster-wide review state into per-member arrays.
1173
- - **TabContextMenu's three modes share one modal; mode preconditions short-circuit submit.** `ADD TO EXISTING` requires at least one same-cwd cluster AND anchor-not-already-a-member; `CREATE WITH EXISTING` requires at least one selected; `CREATE WITH FRESH` always allowed for Native anchors. Switching modes mid-flow keeps the picker open (no re-trigger needed). If a fourth mode lands (e.g. "fork cluster"), make it a sibling component rather than a fourth conditional - the current single-component conditional is at its readable limit.
1173
+ - **TabContextMenu's three modes share one modal; mode preconditions short-circuit submit.** `ADD TO EXISTING` requires at least one same-cwd cluster AND anchor-not-already-a-member; `CREATE WITH EXISTING` requires at least one selected; `CREATE WITH FRESH` (the opening mode, 1 worker) requires every worker card ready and at most one Director. Switching modes mid-flow keeps the picker open (no re-trigger needed). If a fourth mode lands (e.g. "fork cluster"), make it a sibling component rather than a fourth conditional - the current single-component conditional is at its readable limit.
1174
1174
 
1175
1175
  ### gotchas (cluster-attached plan + role hints)
1176
1176
 
package/docs/HTTP_API.md CHANGED
@@ -158,27 +158,51 @@ A write failure answers `500 { error: 'Upload failed' }`. The route itself is no
158
158
 
159
159
  The client may follow up with an `upload_complete` WS message; the server echoes `file_uploaded` back to **that socket only** (not a workflow broadcast - uploads are unscoped).
160
160
 
161
- ### `GET /api/file-content?path=<path>[&cwd=<cwd>][&workflowId=<wfid>][&artifactOwner=<wfid>]`
162
-
163
- JSON-wrapped file read for `FileViewerModal` (uploaded attachments, files clicked from a `ToolCallPill`, chat `[artifact:...]` popups). The body is discriminated by `type` (`readFileForExplorer` in `server/src/http/fileRead.ts`):
161
+ ### `GET /api/file-content?path=<path>[&cwd=<cwd>][&workflowId=<wfid>][&sourceWorkflowId=<wfid>]`
162
+
163
+ Returns a file preview for conversation links, attachments and the file viewer.
164
+ `workflowId` identifies the viewing workflow. Its server-side working directory
165
+ takes precedence over `cwd`. When supplied, `sourceWorkflowId` must identify the
166
+ viewer or a current member of the viewer's cluster. Relative targets start in
167
+ that member's project or worktree. Registered Gemini session files still use
168
+ the producing workflow's output manifest.
169
+
170
+ An absolute target uses its exact path, including an authorized tracked output
171
+ that was moved. Explicit project-relative paths beginning with `./` stay
172
+ project-relative. For other relative paths, an unresolved path can match the
173
+ same relative path under member artifact folders. Bare filenames can also
174
+ match nested files. The search starts with the sender's project and artifacts
175
+ when the sender is given, and searches current cluster artifacts if necessary.
176
+ Without a sender, it checks the viewing project and current member artifacts.
177
+ Recursive searches skip hidden and dependency folders and directory symlinks.
178
+ They inspect at most 8,192 entries across the project and artifact search,
179
+ descend at most 12 levels, consider at most 256 peer members and return up to
180
+ 32 choices. Use a more specific path if a search reached its limit.
164
181
 
165
182
  ```ts
166
- | { type: 'text', content: string, size: number, resolvedPath: string, artifactOwner?: string } // <= 2 MiB (MAX_TEXT_SIZE); NUL in first 8 KiB -> 'binary'
167
- | { type: 'image', dataUrl: string, size: number, resolvedPath: string, artifactOwner?: string } // png/jpg/gif/webp/svg/bmp/ico, <= 10 MiB (MAX_IMAGE_SIZE)
168
- | { type: 'binary', size: number, resolvedPath: string, artifactOwner?: string }
169
- | { type: 'too-large', size: number, kind: 'text' | 'image', resolvedPath: string, artifactOwner?: string }
170
- | { type: 'choices', choices: Array<{ workflowId: string, name: string }> } // 200: the name matches an artifact of more than one cluster member
171
- | { type: 'error', error: string } // 403 or 404
183
+ | { type: 'text', content: string, size: number, resolvedPath: string, artifactOwner?: string }
184
+ | { type: 'image', dataUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
185
+ | { type: 'audio' | 'video' | 'pdf', url: string, downloadUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
186
+ | { type: 'binary', downloadUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
187
+ | { type: 'too-large', downloadUrl: string, size: number, kind: 'text' | 'image', resolvedPath: string, artifactOwner?: string }
188
+ | { type: 'choices', truncated?: boolean, choices: Array<{ workflowId: string, name: string, resolvedPath: string, readUrl: string }> }
189
+ | { type: 'error', error: string }
172
190
  ```
173
191
 
174
- `resolvedPath` is the file that was read. A success answers `200`. Failures answer `403` (the path is refused or outside every readable folder) or `404` (not found) with `{ type: 'error', error }`; a missing file is reported by the name that was asked for.
175
-
176
- Resolution (`resolveBrowserRead` in `server/src/http/readConfinement.ts`):
177
- 1. With `cwd` and `workflowId`, an output the workflow tracked under that path is used first.
178
- 2. A relative `path` resolves inside the workflow's project folder; an absolute `path` is used as given. Either must lie inside a readable root: the bound project folder (or, with no binding, the known project folders and the file-tree root), the uploads folder or the scratch folder. A file in a registered Git worktree of the project is also allowed.
179
- 3. Only when the file does not exist, and `path` is a bare file name without a leading dot or a backslash, the workflow's own `artifacts/` folder is tried.
180
-
181
- If that fails with "not found" and `cwd` and `workflowId` name a conversation that is a cluster member, the server looks for the same bare name in the `artifacts/` folder of every member of that cluster. One match is returned with `artifactOwner` set to the member's display name. Several matches return `type: 'choices'`; the client then repeats the request with `artifactOwner=<workflowId of the chosen member>`. When nothing matches, the `404` error names the members that were searched: `File not found: <name>. Searched the project and artifacts of: <names>.`
192
+ Text previews are limited to 2 MiB and image previews to 10 MiB.
193
+ `resolvedPath` is the authorized absolute path. For choices, use the selected
194
+ `readUrl` to read that exact file. The legacy `artifactOwner=<wfid>` parameter
195
+ still narrows a bare filename to that cluster member's artifacts. A refusal
196
+ returns `403`. A miss returns `404` and names the requested path and the
197
+ locations searched when available.
198
+
199
+ The returned `url` and `downloadUrl` use the same origin and require the same
200
+ session and file access as the preview. Preview byte requests use `bytes=1`
201
+ and a fixed audio, video or PDF media type. Downloads use `download=1` and
202
+ attachment disposition. Both support GET, HEAD and single byte ranges,
203
+ including suffix ranges. A valid partial response is `206`. An unsatisfiable
204
+ range is `416`. Selection and byte requests recheck access and never substitute
205
+ a different file with the same name.
182
206
 
183
207
  ### `GET /api/files?path=<dir>`
184
208
 
@@ -1723,7 +1747,7 @@ make an inference or allowance request. A failed read retains an explicitly stal
1723
1747
  metadata; malformed or failed probes do not invent a logout verdict.
1724
1748
 
1725
1749
  Both records expose a non-secret `binding`: `{ source, storeId, revision? }`. `source` is
1726
- `claude-native` or `claude-cli`; `storeId` is `claude.native` or `claude-cli-default`. Native has one
1750
+ `claude-native` or `claude-cli`. The Default Native store ID is `claude.native`, a named store ID is `claude.native:<profile-id>`, and the CLI store ID is `claude-cli-default`. Each Native profile has a separate
1727
1751
  store per Arco home, independent of profile labels. Its opaque revision changes with credential
1728
1752
  material; it contains no token bytes and proves no account identity. CLI status also exposes the
1729
1753
  current allowance credential revision when its owner file is readable, with `bindingCheckedAt`
@@ -1774,7 +1798,7 @@ The update command is limited to 180 seconds.
1774
1798
 
1775
1799
  ## Claude Native auth
1776
1800
 
1777
- OAuth bootstrap for the in-process Claude Native transport. Tokens persist to `~/.arco/auth.json`; refresh races serialized via `proper-lockfile`. Local callback server binds port `53692`; when the callback cannot bind, the bootstrap falls back to manual paste - see `docs/GOTCHAS.md Native transport` for the EADDRINUSE rule.
1801
+ OAuth bootstrap for the in-process Claude Native transport. Default tokens persist to `~/.arco/auth.json`. Each configured Native profile uses its own credential store and refresh lock. Local callback server binds port `53692`; when the callback cannot bind, the bootstrap falls back to manual paste - see `docs/GOTCHAS.md Native transport` for the EADDRINUSE rule.
1778
1802
 
1779
1803
  ### `GET /api/auth/claude-native`
1780
1804
 
@@ -1791,10 +1815,17 @@ Local expiry metadata is not verified execution health. This GET never starts si
1791
1815
 
1792
1816
  ### `POST /api/auth/claude-native/login`
1793
1817
 
1818
+ For Native status, logout and the model catalog, pass `?account=<profile-id>` to select a profile.
1819
+ LOGIN accepts `accountRef` in the JSON body. A callback stays attached to the profile that
1820
+ started its flow. POST `/api/auth/claude-native/profiles` with `label` to add a profile or with
1821
+ `id` and `label` to rename one. Both operations return updated settings. An explicit account
1822
+ query on `/api/usage` uses that Native credential only. `@native-default` selects Default.
1823
+
1824
+
1794
1825
  Start the existing PKCE bootstrap. The optional body is
1795
- `{ binding?: ClaudeCredentialBinding, workflowId?: string }`. A changed expected Native binding
1826
+ `{ binding?: ClaudeCredentialBinding, workflowId?: string, accountRef?: string }`. A changed expected Native binding
1796
1827
  refuses a stale recovery action. The returned URL opens the provider's consent/MFA/account flow.
1797
- One pending flow serves the single Native store; a new start supersedes the previous flow.
1828
+ Each Native account can have one pending flow. A new start supersedes only the previous flow for that account.
1798
1829
 
1799
1830
  **Response** - `BootstrapStartResult` (`claude-native/oauth.ts`):
1800
1831
  ```ts
@@ -1954,10 +1985,10 @@ Cursor bakes reasoning effort into the model id (`-low`/`-high`/`-xhigh`/`-max`)
1954
1985
 
1955
1986
  ## Usage
1956
1987
 
1957
- ### `GET /api/usage[?force=1]`
1988
+ ### `GET /api/usage[?force=1&account=<profile-id>]`
1958
1989
 
1959
1990
  Reads Claude's 5-hour and weekly allowance from `https://api.anthropic.com/api/oauth/usage`, preferring
1960
- Native credentials and retaining an explicitly attributed CLI fallback. Current credential revisions
1991
+ Native credentials and retaining an explicitly attributed CLI fallback when no account is requested. An explicit account reads its Native allowance. Current credential revisions
1961
1992
  are read before cache lookup. Results have a two-minute TTL, partitioned by the actual Native and CLI
1962
1993
  credential context; `?force=1` bypasses cached values and joins an existing check for that context.
1963
1994
  The response is always 200 with `Cache-Control: no-store`; availability belongs to the result body.
@@ -239,7 +239,12 @@ running version. When a newer release is known it turns into an accent box with
239
239
  an up arrow and the new version, stays that way after the toast is dismissed,
240
240
  opens the update dialog on click, and shows UPDATING while an update runs.
241
241
  A release found by CHECK NOW appears in the version box; select UPDATE AND
242
- RESTART to open its confirmation.
242
+ RESTART to open its confirmation. If Arco cannot determine the install mode,
243
+ select **RETRY**. For an npm installation, finish active turns, run
244
+ `arco update` from a separate terminal on the Arco host, and follow the restart
245
+ instructions. For source or Docker installations, open **Update instructions**
246
+ and follow the steps for the actual installation. Arco does not offer an automatic restart until the mode
247
+ is known.
243
248
 
244
249
  ### Packaged install
245
250
 
@@ -277,6 +282,17 @@ package snapshot it identifies. This snapshot covers the installed program.
277
282
  Arco's saved data stays in its existing home. Source and Docker installs
278
283
  continue to follow GitHub releases.
279
284
 
285
+ Do not start or restart Arco while the update runs. On Linux, a start or
286
+ restart while systemd is still stopping the service cancels the stop. The
287
+ updater then leaves the installed package unchanged and waits up to two minutes
288
+ for queued service jobs to finish. If Arco is running again, the result says
289
+ so; try the update again. If Arco was confirmed running before the update and
290
+ is now stopped with no queued job, the updater starts it again on the installed
291
+ version. If its earlier state could not be read, Arco is not started. Any other
292
+ state is reported with `arco service status` and `arco service start` as the
293
+ next steps. A failed service command names its action and unit, for example
294
+ `systemctl stop arco.service failed (exit 1)`.
295
+
280
296
  The result appears beside the open update control. When that control is closed,
281
297
  a separate result notice remains available with **DISMISS**. The same result is
282
298
  not shown in both places at once.
@@ -103,8 +103,8 @@ differently per provider:
103
103
  loop
104
104
  - Cursor via an in-process loopback StreamableHTTP MCP server (ACP honors MCP
105
105
  over http/sse only, not stdio; fresh-only membership)
106
- - Antigravity CLI through ACP and scoped MCP tools; mail to or from a Gemini
107
- member waits for the operator's NUDGE
106
+ - Antigravity CLI through ACP and scoped MCP tools; AUTO-PICKUP can wake Gemini in ordinary
107
+ clusters for eligible incoming mail
108
108
 
109
109
  LM Studio / Strata / DeepSeek stay outside the cluster fence. How many members
110
110
  may use each local runtime is `localClusterCapacity` in Connections (default 1
package/docs/OUTPUTS.md CHANGED
@@ -3,6 +3,15 @@
3
3
  Browse generated artifacts and exports for a workflow or cluster, then
4
4
  preview, copy or move them within approved folders.
5
5
 
6
+ File links in conversations open the destination in the file viewer, including
7
+ links in peer messages. The viewer shows the resolved absolute path and offers
8
+ a choice when more than one file matches. Audio and video use playback controls;
9
+ PDFs display in the viewer with a height that accounts for interface text size.
10
+ Peer messages keep their line breaks and file links. On desktop, audio opens in a compact viewer and
11
+ video fits a larger viewing area without cropping. Resizing and **Reset size**
12
+ use separate saved sizes for audio, video and documents. Use **DOWNLOAD FILE**
13
+ when a browser cannot display a file. Missing files report where Arco looked.
14
+
6
15
  Open **Workspace > Files > Outputs** in a workflow or cluster. Outputs stays
7
16
  available after a generated-file preview is dismissed. **View in Outputs** on an
8
17
  artifact preview opens the producing workflow's collection; in the Narrow
@@ -16,9 +25,20 @@ show their producing workflow, creation/update time, current location and file
16
25
  information. Refresh updates the list without generating content. Missing files
17
26
  retain their original provenance.
18
27
 
28
+ The list refreshes every five seconds, on window focus and on **Refresh**, in
29
+ place (`reconcileOutputs` in `client/src/components/RightPanel/outputsReconcile.ts`).
30
+ Entries still listed keep their position, so an edited file does not jump to the
31
+ top under the reader; new entries appear first and removed ones drop out. Scroll
32
+ position, focus, expanded titles and open File information stay. Overlapping
33
+ refreshes are dropped or superseded, and a failed refresh keeps the shown list
34
+ with the error beside it. When the file in an open preview changes, the preview
35
+ says so and **RELOAD** reads it again in place; it is hidden while there are
36
+ unsaved edits. When the file is removed or moved, the preview says so and keeps
37
+ the content it loaded.
38
+
19
39
  By default the list shows only what was made for you: generated images, audio
20
- and video, documents at the top level of the artifacts folder, and reports and
21
- exports. Code files and anything inside an artifact subfolder are working files,
40
+ and video, documents at the top level of the artifacts folder, Gemini artifacts,
41
+ and reports and exports. Code files and anything inside an artifact subfolder are working files,
22
42
  shown when **All files** is ticked; a note under the filters says how many are
23
43
  hidden. The server marks each entry with `primary` (`isPrimaryOutput` in
24
44
  `server/src/outputs.ts`); the toggle is per view and resets when the panel reopens.
@@ -43,6 +63,28 @@ refresh; artifact enumeration stops at depth eight and 2,000 entries per workflo
43
63
  Cluster responses show the newest 2,000 entries. Inline content is fetched only
44
64
  when opened. The metadata file is bounded to 8 MiB. A damaged index is reported and left intact.
45
65
 
66
+ Antigravity CLI keeps finished artifacts in its own session folder,
67
+ `.gemini/antigravity-cli/brain/<session id>/`. On Linux, macOS and Windows,
68
+ Arco records the names present at the end of the turn in private Arco state,
69
+ bound to the project, workflow and ACP session. Outputs and ARTIFACTS list
70
+ the originals. Select Preview to read a document or image, or Download in
71
+ Outputs to keep a separate copy. Edits to the original appear on refresh.
72
+ Removing the original removes it from the list. A preview already open keeps
73
+ the content it loaded.
74
+
75
+ Only regular files up to 25 MiB are eligible, up to 200 per session and
76
+ three folders deep. Hidden entries, uploads, logs, scratch folders,
77
+ worktrees, metadata sidecars, resolved snapshots and hard or symbolic links
78
+ are excluded. Fenced researchers keep their files private. Arco retains up
79
+ to 2,000 registered names per workflow. It checks the opened file again for
80
+ each preview or download and reads at most its inspected size.
81
+
82
+ Gemini chat links use local `file://` URLs. The viewer decodes the name once,
83
+ including escaped spaces, `#` and `%`, and looks it up in the workflow's
84
+ registered session files. The session folder is never added to the browser,
85
+ editor or media roots. The workflow's other output files keep their usual
86
+ editing and transfer controls.
87
+
46
88
  Ordinary changed project files are not classified as generated. Unsupported
47
89
  provider write-tool forms may require saving the result into the workflow's
48
90
  artifacts directory. Older stem events that recorded only a directory cannot
@@ -64,10 +106,10 @@ another tab was active.
64
106
  **OPEN** works only on the computer Arco runs on: the server resolves the
65
107
  registered output (never a path from the page), checks the file exists and hands
66
108
  it to the system opener (`xdg-open`, `open`, or the Windows shell handler with
67
- the path as one argument). Programs and scripts (for example `.exe`, `.bat`,
68
- `.ps1`, `.sh`, `.js`, `.jar`, `.lnk`, `.app`, `.desktop`) and files with no
69
- extension are refused with a message; **Download** stays available. In Docker or
70
- on a machine without a desktop, OPEN is hidden.
109
+ the path as one argument). **OPEN** is hidden for programs, scripts and files
110
+ with no extension. Clicking a refused filename such as `setup.exe` explains why
111
+ Arco cannot open it and points to **Download**. **OPEN** is also hidden in Docker
112
+ or on a machine without a desktop.
71
113
 
72
114
  Editor saves and exported variants appear under their producing workflow. A
73
115
  variant derived from a tracked output retains its origin association. Existing
@@ -891,7 +891,7 @@ Operator-authored `<name>.md` markdown templates expanded by the `/prompt <name>
891
891
 
892
892
  ### provider-accounts/
893
893
 
894
- `server/src/providerAccounts.ts`. Per-account isolated provider home directories under `~/.arco/provider-accounts/`. For Codex, `codex-<id>/` is the `CODEX_HOME` for a configured account; `ensureCodexAccountHome` `mkdir`s it and seeds a `config.toml` with `cli_auth_credentials_store = "file"`. The account list itself (labels, refs, custom homes) lives in `settings.json` under `providerAccounts`, not here.
894
+ `server/src/providerAccounts.ts`. Per-account isolated provider home directories under `~/.arco/provider-accounts/`. For Codex, `codex-<id>/` is the `CODEX_HOME` for a configured account; `ensureCodexAccountHome` `mkdir`s it and seeds a `config.toml` with `cli_auth_credentials_store = "file"`. Native profile stores use `claude-<id>/auth.json` with a separate refresh lock per store. The account list itself (labels, refs, custom homes) lives in `settings.json` under `providerAccounts`, not here.
895
895
 
896
896
  ### checkpoints/
897
897
 
@@ -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`). |
@@ -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