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