@myagentroam/server 0.15.14 → 0.15.16
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/node_modules/@myagentroam/protocol/dist/browser-files.d.ts +11 -11
- package/node_modules/@myagentroam/protocol/dist/browser-files.js +7 -7
- package/node_modules/@myagentroam/protocol/dist/byte-frame.d.ts +32 -0
- package/node_modules/@myagentroam/protocol/dist/byte-frame.js +101 -0
- package/node_modules/@myagentroam/protocol/dist/enterprise.d.ts +4 -4
- package/node_modules/@myagentroam/protocol/dist/file-relay.d.ts +15 -0
- package/node_modules/@myagentroam/protocol/dist/file-relay.js +95 -0
- package/node_modules/@myagentroam/protocol/dist/index.d.ts +875 -865
- package/node_modules/@myagentroam/protocol/dist/index.js +19 -32
- package/node_modules/@myagentroam/protocol/dist/terminal-copy.d.ts +39 -0
- package/node_modules/@myagentroam/protocol/dist/terminal-copy.js +23 -0
- package/node_modules/@myagentroam/protocol/package.json +5 -1
- package/node_modules/@myagentroam/server-core/dist/domain-errors.js +8 -0
- package/node_modules/@myagentroam/server-core/dist/file-content-stream.d.ts +16 -4
- package/node_modules/@myagentroam/server-core/dist/file-content-stream.js +49 -14
- package/node_modules/@myagentroam/server-core/dist/hosted-conversation-routes.js +24 -17
- package/node_modules/@myagentroam/server-core/dist/html-preview-routes.js +14 -15
- package/node_modules/@myagentroam/server-core/dist/marctl-routes.d.ts +9 -1
- package/node_modules/@myagentroam/server-core/dist/marctl-routes.js +97 -17
- package/node_modules/@myagentroam/server-core/dist/marctl-session-routes.js +17 -1
- package/node_modules/@myagentroam/server-core/dist/node-file-relay.d.ts +24 -0
- package/node_modules/@myagentroam/server-core/dist/node-file-relay.js +134 -0
- package/node_modules/@myagentroam/server-core/dist/node-identity-control.d.ts +1 -0
- package/node_modules/@myagentroam/server-core/dist/node-identity-control.js +4 -1
- package/node_modules/@myagentroam/server-core/dist/node-request-channel.d.ts +8 -2
- package/node_modules/@myagentroam/server-core/dist/node-request-channel.js +40 -10
- package/node_modules/@myagentroam/server-core/dist/session-share-resource-routes.js +2 -2
- package/node_modules/@myagentroam/server-core/dist/terminal-multiplex.d.ts +32 -0
- package/node_modules/@myagentroam/server-core/dist/terminal-multiplex.js +120 -0
- package/node_modules/@myagentroam/server-core/dist/terminal-relay-service.d.ts +14 -1
- package/node_modules/@myagentroam/server-core/dist/terminal-relay-service.js +137 -80
- package/node_modules/@myagentroam/server-core/dist/workspace-routes.js +10 -10
- package/node_modules/@myagentroam/server-core/package.json +7 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/composition/node-control-factory.js +1 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/composition/server-application.js +4 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/node-control.d.ts +10 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/node-control.js +50 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/rbac/resource-access-service.js +3 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/route/browser-file-routes.js +46 -8
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/route/realtime-routes.d.ts +5 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/route/realtime-routes.js +24 -9
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/browser-workbench-service.d.ts +1 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/browser-workbench-service.js +8 -4
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/desktop-websocket-dispatcher.d.ts +3 -3
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/desktop-websocket-dispatcher.js +3 -3
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/node-request-broker.d.ts +3 -1
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/node-request-broker.js +16 -4
- package/node_modules/@myagentroam-enterprise/server-implementation/dist/service/node-resource-scope-index.js +1 -0
- package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
- package/package.json +5 -5
- package/web/assets/{AuditManagementPage-DLsUxsaM.js → AuditManagementPage-CSiSYAj4.js} +1 -1
- package/web/assets/{AuthEntryPanel-DEu0mVEc.js → AuthEntryPanel-DW1OL9Y2.js} +1 -1
- package/web/assets/{CodeFileEditor-Dqjn7tsT.js → CodeFileEditor-Cb6weH1g.js} +3 -3
- package/web/assets/{ConversationTemplateManagementPage-BeNl7v-m.js → ConversationTemplateManagementPage-BPZn_yD8.js} +1 -1
- package/web/assets/{ConversationTemplateManagementPage-BAA6kM9Z.js → ConversationTemplateManagementPage-BT8xPN81.js} +1 -1
- package/web/assets/{EnterpriseUserManagementPage-BfBoNzXy.js → EnterpriseUserManagementPage-B0IylgfG.js} +1 -1
- package/web/assets/{EnvironmentSecretManager-DInb_VqN.js → EnvironmentSecretManager-DiUvpKJ3.js} +1 -1
- package/web/assets/{FilePreviewLoading-BY705Mr3.js → FilePreviewLoading-D7rErJqZ.js} +1 -1
- package/web/assets/{LicenseManagementPage-B_DWY8dR.js → LicenseManagementPage-DJNt5hyX.js} +1 -1
- package/web/assets/{ManagementPagination-DpLWFtud.js → ManagementPagination-CGaB0pWa.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-C32EcTBP.js → MarAgentModelManagementPage-Bvm8LH6q.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-BkYQ7N1p.js → MarAgentModelManagementPage-D-_hztw1.js} +1 -1
- package/web/assets/{MarAlert-DaNBEgZa.js → MarAlert-unmJHudg.js} +1 -1
- package/web/assets/{MarCascader-CLcfBvy5.js → MarCascader-DfLK3eYQ.js} +1 -1
- package/web/assets/{MarCheckTag-ctcBRxc_.js → MarCheckTag-DlQhdNNE.js} +1 -1
- package/web/assets/{MarCheckboxGroup-1JyWpx7M.js → MarCheckboxGroup-BTfwENab.js} +1 -1
- package/web/assets/{MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-BhzC0Y02.js → MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-PrnImAu6.js} +1 -1
- package/web/assets/{MarDatePicker-DcSLFBMw.js → MarDatePicker-CP4tNQZT.js} +1 -1
- package/web/assets/{MarDescriptionsItem-DFuJoAr5.js → MarDescriptionsItem-eVu5T6vZ.js} +1 -1
- package/web/assets/{MarFormItem.vue_vue_type_script_setup_true_lang-C4ISiyzI.js → MarFormItem.vue_vue_type_script_setup_true_lang-BUCdMMFG.js} +1 -1
- package/web/assets/{MarInputNumber-B4J7ZPea.js → MarInputNumber-D5DrOYW4.js} +1 -1
- package/web/assets/{MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-V4xuU73K.js → MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-NFY8eddQ.js} +1 -1
- package/web/assets/{MarSwitch-DmxYgAnd.js → MarSwitch-CKFJ6Sc8.js} +1 -1
- package/web/assets/{MarTableColumn.vue_vue_type_script_setup_true_lang-BO9889LV.js → MarTableColumn.vue_vue_type_script_setup_true_lang-CtyAGeky.js} +1 -1
- package/web/assets/{MarTabs-DAGnJZZr.js → MarTabs-DOkJyEPD.js} +1 -1
- package/web/assets/{MarTag-2AYvoYHN.js → MarTag-N_6f52bV.js} +1 -1
- package/web/assets/{MarkdownFilePreview-DIjpvBkg.js → MarkdownFilePreview-q7eznSa4.js} +2 -2
- package/web/assets/{McpDetailsDialog-BJ2H-NzF.js → McpDetailsDialog-qfh0j62g.js} +1 -1
- package/web/assets/{McpSourceManagementPage-BsBjbttb.js → McpSourceManagementPage-CUhi5FDY.js} +1 -1
- package/web/assets/{McpSourceManagementPage-Cc_Cf7vP.js → McpSourceManagementPage-DnVrdUSO.js} +1 -1
- package/web/assets/{NodeDetailsDialogs-COB66z8f.js → NodeDetailsDialogs-CftmTbN6.js} +1 -1
- package/web/assets/NodeManagementPage-BkaqjlHX.js +1 -0
- package/web/assets/NodeManagementPage-Cz4VK8r7.js +1 -0
- package/web/assets/{OAuthManagementPage-DM89CuzW.js → OAuthManagementPage-BrNJiKFp.js} +1 -1
- package/web/assets/{OrganizationManagementPage-CUhsDQt3.js → OrganizationManagementPage-CCckrOyc.js} +1 -1
- package/web/assets/{RemoteDesktopPage-DFzIrRcb.js → RemoteDesktopPage-DLAteSKJ.js} +1 -1
- package/web/assets/{ResourceManagementPanel-BEnkCTXP.js → ResourceManagementPanel-D4I_QKY3.js} +2 -2
- package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-cFf6sdvo.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-Bu_5f2DO.js} +1 -1
- package/web/assets/{SecretManagementPage-z2kjDG0Z.js → SecretManagementPage-BFan7XGi.js} +1 -1
- package/web/assets/SecretManagementPage-CSEQUScU.js +1 -0
- package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-jQBfIf16.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-BOHJY_rE.js} +1 -1
- package/web/assets/{SessionSharePage-CBNoM6_P.js → SessionSharePage-CJQmxtgs.js} +2 -2
- package/web/assets/{SettingsContent-D9oQ_kja.js → SettingsContent-C5W8UcBm.js} +1 -1
- package/web/assets/{SettingsContent-BRGYzA_C.js → SettingsContent-D8d9mVEV.js} +1 -1
- package/web/assets/SkillCenterPage-BjOwGD3O.js +1 -0
- package/web/assets/{SkillCenterPage-BCpLAU6w.js → SkillCenterPage-nl9OVZW2.js} +1 -1
- package/web/assets/{SkillDetailsDialog-ChlVGuxA.js → SkillDetailsDialog-BgTAQ1J2.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-DTdK6Pui.js → SkillSourceManagementPage-3cw0KMTe.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-C-aZP1qe.js → SkillSourceManagementPage-D6CqYv7m.js} +1 -1
- package/web/assets/{StandaloneFilePreviewPage-BSIJemVh.js → StandaloneFilePreviewPage-CCnnNlFN.js} +1 -1
- package/web/assets/{SystemConfigurationPage-DmOk0iwW.js → SystemConfigurationPage-DwrgOGX7.js} +1 -1
- package/web/assets/{SystemConfigurationPage-D2A8t-0d.js → SystemConfigurationPage-LpQ_Upcq.js} +1 -1
- package/web/assets/{SystemInformationPage-PDetnUeb.js → SystemInformationPage-dLuXAjKh.js} +1 -1
- package/web/assets/{TerminalTabView-o0IPETxP.js → TerminalTabView-808EAW33.js} +12 -12
- package/web/assets/WorkbenchPage--aboTPet.js +22 -0
- package/web/assets/{WorkbenchPage-B5_HTcdC.css → WorkbenchPage-DObPaT6u.css} +1 -1
- package/web/assets/WorkspaceManagementPage-BZcWlbNn.js +1 -0
- package/web/assets/WorkspaceManagementPage-C_NiF03s.js +1 -0
- package/web/assets/{abnfDiagram-VCTEODGH-C10Fv_2O.js → abnfDiagram-VCTEODGH-7sUz4AcP.js} +1 -1
- package/web/assets/{arc-DQgSeIAm.js → arc-DMRJFRnL.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-DXjdx4QK.js → architectureDiagram-5GKGNRK7-BJaLb1l6.js} +1 -1
- package/web/assets/{blockDiagram-OSKFZWR5-C5yCrOmw.js → blockDiagram-OSKFZWR5-5YNwlEDS.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-2IHq7twC.js → c4Diagram-7LVT6UL2-BGkIGlBB.js} +1 -1
- package/web/assets/{catalog-ownership-service-BhEGURdt.js → catalog-ownership-service-COyR4XmC.js} +1 -1
- package/web/assets/{catalog-page-service-cLACg8RX.js → catalog-page-service-thddPcrm.js} +1 -1
- package/web/assets/channel-BMZLeheh.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-CKNZwHDd.js → chunk-2Q5K7J3B-BHQ9EJXS.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-Dl9rcD0E.js → chunk-5VM5RSS4-CPSv5uPd.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-DbJHaSc-.js → chunk-F27PBJKO-BUm8cRKb.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-DAS1AAQg.js → chunk-HLEWEB6X-Hs7ZCEgY.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-CzKqkp4C.js → chunk-JWPE2WC7-BNrR081Q.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-D83q49OD.js → chunk-POPQ4Y6H-DvXbE-Uw.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-CG0TQJ8l.js → chunk-SVP7TREG-KXfuClsq.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-BkR7WC5H.js → chunk-XXDRQBXY-BWzBT9wF.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6--Li47ap5.js → chunk-ZLD2IHE6-_JYU4Bwj.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-ChPtg2f2.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-ChPtg2f2.js +1 -0
- package/web/assets/{conversation-history-C0UQ5sYP.js → conversation-history-B1iG00up.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-Mhauj3Mi.js → cose-bilkent-JH36ORCC-ClXWcUNe.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-DBx3l0mO.js → cynefin-OW5HDTMX-DOqZ13Bj.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-DWEIdqT_.js → cynefinDiagram-5FMLGOSQ-DHZzNE8y.js} +1 -1
- package/web/assets/{dagre-OS7QT2EB-BjQcaijc.js → dagre-OS7QT2EB-B5FpYrfR.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-Vg0zuR4f.js → diagram-S7CK7UJ4-XgZ6Tm43.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-BqC0yKs2.js → diagram-UQ7AKVKN-Db4uOJPd.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-ZPHdsY1V.js → diagram-VSXAHHWV-B9Wuf-0A.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-CLHHrb46.js → diagram-VX7I27RA-BuwPkltz.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-ht3DWuhW.js → diagram-Z3DM3KII-DYGzfqGg.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-CRvERqnR.js → ebnfDiagram-PWID7BFC-B_VKH5sj.js} +1 -1
- package/web/assets/{enterprise-management-service-CoMWqZUr.js → enterprise-management-service-DCQ5LUvA.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-DTX49eL6.js → erDiagram-2YWLMYGG-CtgTc8sp.js} +1 -1
- package/web/assets/{error-presentation-CRute7S1.js → error-presentation-BciRP6ix.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-BNXDJeSu.js → flowDiagram-T62WH6J4-DXNBuiHl.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-TJXOD-0a.js → ganttDiagram-EL5Y4UJY-DiQJVmE9.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-D0hH08ce.js → gitGraphDiagram-WWUBYQGX-DWFNEDCv.js} +1 -1
- package/web/assets/{hosted-conversation-template-client-qg6kwWak.js → hosted-conversation-template-client-B0aUdDH-.js} +1 -1
- package/web/assets/{index-BQGkiFea.js → index-33j9I2Db.js} +1 -1
- package/web/assets/{index-DeR2888r.js → index-5_tvwqoW.js} +1 -1
- package/web/assets/{index-MdOzSj39.js → index-B-F8z_cZ.js} +1 -1
- package/web/assets/{index-CgcwhWGu.js → index-B66pbH09.js} +1 -1
- package/web/assets/{index-B0AdeSkU.js → index-B9nNuGpb.js} +1 -1
- package/web/assets/{index-DxHnxpGW.js → index-BBOIa2sP.js} +1 -1
- package/web/assets/{index-BegbuBf3.js → index-BJD-J9i4.js} +1 -1
- package/web/assets/{index-BvtQsAGe.js → index-BOE4aA8x.js} +1 -1
- package/web/assets/{index-DTSoe939.js → index-BbCjXuz3.js} +1 -1
- package/web/assets/{index-CHY1n-3g.js → index-BiHKPCj9.js} +1 -1
- package/web/assets/{index-B3WOsGQP.js → index-Bl0p3wE3.js} +1 -1
- package/web/assets/{index-CEyCo5DS.js → index-BpgrlSPb.js} +1 -1
- package/web/assets/{index-CZmSW7zs.js → index-BtayQBY9.js} +1 -1
- package/web/assets/{index-Cl1xrkot.js → index-C6OY6zsF.js} +4 -4
- package/web/assets/{index-B_5s-OB7.js → index-CSddJGH_.js} +1 -1
- package/web/assets/{index-Dr1eKNcA.js → index-CTXrDeK_.js} +1 -1
- package/web/assets/{index-BLxjg-En.js → index-CXG5n9Tr.js} +1 -1
- package/web/assets/{index-KXJ2V4Mf.js → index-ChEbGl29.js} +1 -1
- package/web/assets/{index-BnPBgp9j.js → index-CmQH4tsO.js} +1 -1
- package/web/assets/{index-BJeoRDh2.js → index-Cq6c5EjH.js} +1 -1
- package/web/assets/{index-CGRfRseT.js → index-CuUFDeTN.js} +1 -1
- package/web/assets/{index-CEgHOjJ5.js → index-DIwC-qqe.js} +1 -1
- package/web/assets/{index-CHByri7n.js → index-DaiHjm7L.js} +16 -16
- package/web/assets/{index-BTO-RkXg.js → index-DbIZL4H5.js} +1 -1
- package/web/assets/{index-CBY131q_.js → index-JHKIQ8Ux.js} +1 -1
- package/web/assets/{index-BSSiian-.js → index-n3Yp6O4O.js} +1 -1
- package/web/assets/{index-DMuYruyy.js → index-v5EdqsCA.js} +1 -1
- package/web/assets/{infoDiagram-FKFFQAWI-CGY7lNyr.js → infoDiagram-FKFFQAWI-CRL8Cbjo.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-q7LetRTh.js → ishikawaDiagram-5VMMS53U-B4RenkeW.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-_0sx4rd2.js → journeyDiagram-EYS64GPL-D3gKQTW_.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-CeBcJhuw.js → kanban-definition-UXKFOSKX-m91TITds.js} +1 -1
- package/web/assets/{layout-Ce2GPVWs.js → layout-BhLMVpWS.js} +1 -1
- package/web/assets/{linear-BZoQbtp8.js → linear-Di5C2hcJ.js} +1 -1
- package/web/assets/{management-url-service-DTWuOMH2.js → management-url-service-MmLYZIYv.js} +1 -1
- package/web/assets/{mar-agent-reasoning-effort-30dTJbi7.js → mar-agent-reasoning-effort-DNoHVGnk.js} +1 -1
- package/web/assets/{mcp-center-service-BCGeIW6c.js → mcp-center-service--L61glQp.js} +1 -1
- package/web/assets/{mermaid.core-Ddg7epzX.js → mermaid.core-aAKphdD7.js} +5 -5
- package/web/assets/{mindmap-definition-THT77NOG-BFxLuwx7.js → mindmap-definition-THT77NOG-D8iGnbVE.js} +1 -1
- package/web/assets/{mobile-dialog-return-service-DsSixFng.js → mobile-dialog-return-service-C8mjCIxt.js} +1 -1
- package/web/assets/{oauth-callback-CzZcuyH4.js → oauth-callback-C39phdTa.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-B_4logvk.js → pegDiagram-XKGWAZYB-BXfRvtFk.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-ixLCqf_4.js → pieDiagram-E7YTZNPT-u97ttPEA.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-BWX6lBrH.js → quadrantDiagram-AXDQQJYC-BNCD-k_K.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-B-2kPvS5.js → railroadDiagram-O6MQD6OU-CTeT_391.js} +1 -1
- package/web/assets/{requirementDiagram-IS5BZ75X-Dod2XLYh.js → requirementDiagram-IS5BZ75X-BF5QdQ6V.js} +1 -1
- package/web/assets/{runner-presentation-bC8AcSpw.js → runner-presentation-dPMFcMgA.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-CBlfRhhw.js → sankeyDiagram-P5KCCOFB-DjZeoT-x.js} +1 -1
- package/web/assets/{scoped-http-service--_fSs3Aj.js → scoped-http-service-CDKqGkZA.js} +3 -3
- package/web/assets/scoped-http-service-Djy4UMDU.css +1 -0
- package/web/assets/{sequenceDiagram-WJ2MYXX4-DrMB8qlo.js → sequenceDiagram-WJ2MYXX4-4cTA8mEH.js} +1 -1
- package/web/assets/{session-share-client-service-BWRWicpI.js → session-share-client-service-C0UPlyTs.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-BJbYMMn0.js → sizeCapture-INFHLROL-UHlcD0lw.js} +1 -1
- package/web/assets/{stateDiagram-XQSTLZYL-DVFKkdGy.js → stateDiagram-XQSTLZYL-C-p-RO9K.js} +1 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-D9eJaQ-u.js +1 -0
- package/web/assets/{swimlanes-V6O3JKXN-DV31gbm-.js → swimlanes-V6O3JKXN-LGtQ7gGF.js} +1 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-C5UPIiCB.js +8 -0
- package/web/assets/{time-presentation-D_TndKCd.js → time-presentation-DT5nqAaa.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-DY2KAQ5y.js → timeline-definition-24CTP7MA-B_GywQtS.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-CJMMx4Xl.js → vennDiagram-4TSXK5OY-DNsMJt7N.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-Cavbefsj.js → wardleyDiagram-VM6X3IG4-BaPzm62w.js} +1 -1
- package/web/assets/{workbench-live-service-MYYkrvuE.js → workbench-live-service-DPqJzvTL.js} +1 -1
- package/web/assets/{workbench-presentation-DRXcyP4i.js → workbench-presentation-BmOaTVKK.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-mft2vM3y.js → xychartDiagram-S5SC5T6Z-CJFOcQEq.js} +1 -1
- package/web/docs/404.html +2 -2
- package/web/docs/administration/account.html +3 -3
- package/web/docs/administration/audit.html +3 -3
- package/web/docs/administration/conversation-templates.html +3 -3
- package/web/docs/administration/email-notifications.html +3 -3
- package/web/docs/administration/license.html +3 -3
- package/web/docs/administration/nodes-workspaces.html +3 -3
- package/web/docs/administration/oauth.html +3 -3
- package/web/docs/administration/secrets.html +3 -3
- package/web/docs/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/administration/users-organizations.html +3 -3
- package/web/docs/assets/{app.wWRLkQiB.js → app.DaWUR4jE.js} +1 -1
- package/web/docs/assets/chunks/@localSearchIndexen-US.BkM4DvSr.js +1 -0
- package/web/docs/assets/chunks/@localSearchIndexroot.DDoo3CfW.js +1 -0
- package/web/docs/assets/chunks/{VPLocalSearchBox.C5YQwT5s.js → VPLocalSearchBox.B7lWjJ_W.js} +1 -1
- package/web/docs/assets/chunks/{theme.BulbZUuP.js → theme.BmsueVR1.js} +2 -2
- package/web/docs/assets/{en-US_operations_marctl.md.CsebMI1i.js → en-US_operations_marctl.md.CfYEx8pB.js} +4 -3
- package/web/docs/assets/{en-US_operations_marctl.md.CsebMI1i.lean.js → en-US_operations_marctl.md.CfYEx8pB.lean.js} +1 -1
- package/web/docs/assets/{en-US_runners_mar-agent.md.C_TXd_OW.js → en-US_runners_mar-agent.md.D_MTQUV1.js} +2 -2
- package/web/docs/assets/{en-US_runners_mar-agent.md.C_TXd_OW.lean.js → en-US_runners_mar-agent.md.D_MTQUV1.lean.js} +1 -1
- package/web/docs/assets/en-US_workbench_sessions.md.BBixLc38.js +1 -0
- package/web/docs/assets/{operations_marctl.md.C23I-1aM.js → operations_marctl.md.tLIP9Zqx.js} +4 -3
- package/web/docs/assets/operations_marctl.md.tLIP9Zqx.lean.js +1 -0
- package/web/docs/assets/{runners_mar-agent.md.QpLH8RCc.js → runners_mar-agent.md.N-bXx1_t.js} +2 -2
- package/web/docs/assets/{runners_mar-agent.md.QpLH8RCc.lean.js → runners_mar-agent.md.N-bXx1_t.lean.js} +1 -1
- package/web/docs/assets/workbench_sessions.md.CucNalue.js +1 -0
- package/web/docs/concepts/architecture.html +3 -3
- package/web/docs/concepts/data-and-security.html +3 -3
- package/web/docs/concepts/files-git-terminal.html +3 -3
- package/web/docs/concepts/node-and-workspace.html +3 -3
- package/web/docs/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/concepts/runner-control.html +3 -3
- package/web/docs/concepts/secrets.html +3 -3
- package/web/docs/concepts/session-run-turn.html +3 -3
- package/web/docs/deployment/backup-restore.html +3 -3
- package/web/docs/deployment/network.html +3 -3
- package/web/docs/deployment/node-installation.html +3 -3
- package/web/docs/deployment/node-linux.html +3 -3
- package/web/docs/deployment/node-macos.html +3 -3
- package/web/docs/deployment/node-windows.html +3 -3
- package/web/docs/deployment/production.html +3 -3
- package/web/docs/deployment/security-checklist.html +3 -3
- package/web/docs/deployment/upgrade.html +3 -3
- package/web/docs/en-US/administration/account.html +3 -3
- package/web/docs/en-US/administration/audit.html +3 -3
- package/web/docs/en-US/administration/conversation-templates.html +3 -3
- package/web/docs/en-US/administration/email-notifications.html +3 -3
- package/web/docs/en-US/administration/license.html +3 -3
- package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
- package/web/docs/en-US/administration/oauth.html +3 -3
- package/web/docs/en-US/administration/secrets.html +3 -3
- package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/en-US/administration/users-organizations.html +3 -3
- package/web/docs/en-US/concepts/architecture.html +3 -3
- package/web/docs/en-US/concepts/data-and-security.html +3 -3
- package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
- package/web/docs/en-US/concepts/node-and-workspace.html +3 -3
- package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/en-US/concepts/runner-control.html +3 -3
- package/web/docs/en-US/concepts/secrets.html +3 -3
- package/web/docs/en-US/concepts/session-run-turn.html +3 -3
- package/web/docs/en-US/deployment/backup-restore.html +3 -3
- package/web/docs/en-US/deployment/network.html +3 -3
- package/web/docs/en-US/deployment/node-installation.html +3 -3
- package/web/docs/en-US/deployment/node-linux.html +3 -3
- package/web/docs/en-US/deployment/node-macos.html +3 -3
- package/web/docs/en-US/deployment/node-windows.html +3 -3
- package/web/docs/en-US/deployment/production.html +3 -3
- package/web/docs/en-US/deployment/security-checklist.html +3 -3
- package/web/docs/en-US/deployment/upgrade.html +3 -3
- package/web/docs/en-US/getting-started/connect-node.html +3 -3
- package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
- package/web/docs/en-US/getting-started/first-login.html +3 -3
- package/web/docs/en-US/getting-started/next-steps.html +3 -3
- package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
- package/web/docs/en-US/getting-started/overview.html +3 -3
- package/web/docs/en-US/getting-started/prerequisites.html +3 -3
- package/web/docs/en-US/getting-started/register-workspace.html +3 -3
- package/web/docs/en-US/getting-started/server-installation.html +3 -3
- package/web/docs/en-US/operations/marctl.html +8 -7
- package/web/docs/en-US/reference/configuration.html +3 -3
- package/web/docs/en-US/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/en-US/reference/limits.html +3 -3
- package/web/docs/en-US/reference/ports-paths-data.html +3 -3
- package/web/docs/en-US/reference/status-and-errors.html +3 -3
- package/web/docs/en-US/runners/claude-code.html +3 -3
- package/web/docs/en-US/runners/codex.html +3 -3
- package/web/docs/en-US/runners/mar-agent.html +5 -5
- package/web/docs/en-US/runners/opencode.html +3 -3
- package/web/docs/en-US/runners/overview.html +3 -3
- package/web/docs/en-US/runners/runner-troubleshooting.html +3 -3
- package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
- package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/en-US/troubleshooting/session-run.html +3 -3
- package/web/docs/en-US/troubleshooting/terminal.html +3 -3
- package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
- package/web/docs/en-US/workbench/browser.html +3 -3
- package/web/docs/en-US/workbench/composer.html +3 -3
- package/web/docs/en-US/workbench/context-and-plan.html +3 -3
- package/web/docs/en-US/workbench/conversation.html +3 -3
- package/web/docs/en-US/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/en-US/workbench/files.html +3 -3
- package/web/docs/en-US/workbench/git-changes.html +3 -3
- package/web/docs/en-US/workbench/git-history.html +3 -3
- package/web/docs/en-US/workbench/hosted-conversations.html +3 -3
- package/web/docs/en-US/workbench/mobile.html +3 -3
- package/web/docs/en-US/workbench/navigation.html +3 -3
- package/web/docs/en-US/workbench/remote-desktop.html +3 -3
- package/web/docs/en-US/workbench/sessions.html +5 -5
- package/web/docs/en-US/workbench/skills.html +3 -3
- package/web/docs/en-US/workbench/terminal.html +3 -3
- package/web/docs/getting-started/connect-node.html +3 -3
- package/web/docs/getting-started/first-agent-session.html +3 -3
- package/web/docs/getting-started/first-login.html +3 -3
- package/web/docs/getting-started/next-steps.html +3 -3
- package/web/docs/getting-started/npm-quick-start.html +3 -3
- package/web/docs/getting-started/overview.html +3 -3
- package/web/docs/getting-started/prerequisites.html +3 -3
- package/web/docs/getting-started/register-workspace.html +3 -3
- package/web/docs/getting-started/server-installation.html +3 -3
- package/web/docs/hashmap.json +1 -1
- package/web/docs/operations/marctl.html +8 -7
- package/web/docs/reference/configuration.html +3 -3
- package/web/docs/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/reference/limits.html +3 -3
- package/web/docs/reference/ports-paths-data.html +3 -3
- package/web/docs/reference/status-and-errors.html +3 -3
- package/web/docs/runners/claude-code.html +3 -3
- package/web/docs/runners/codex.html +3 -3
- package/web/docs/runners/mar-agent.html +5 -5
- package/web/docs/runners/opencode.html +3 -3
- package/web/docs/runners/overview.html +3 -3
- package/web/docs/runners/runner-troubleshooting.html +3 -3
- package/web/docs/troubleshooting/node-offline.html +3 -3
- package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/troubleshooting/session-run.html +3 -3
- package/web/docs/troubleshooting/terminal.html +3 -3
- package/web/docs/troubleshooting/workspace-files.html +3 -3
- package/web/docs/workbench/browser.html +3 -3
- package/web/docs/workbench/composer.html +3 -3
- package/web/docs/workbench/context-and-plan.html +3 -3
- package/web/docs/workbench/conversation.html +3 -3
- package/web/docs/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/workbench/files.html +3 -3
- package/web/docs/workbench/git-changes.html +3 -3
- package/web/docs/workbench/git-history.html +3 -3
- package/web/docs/workbench/hosted-conversations.html +3 -3
- package/web/docs/workbench/mobile.html +3 -3
- package/web/docs/workbench/navigation.html +3 -3
- package/web/docs/workbench/remote-desktop.html +3 -3
- package/web/docs/workbench/sessions.html +5 -5
- package/web/docs/workbench/skills.html +3 -3
- package/web/docs/workbench/terminal.html +3 -3
- package/web/index.html +2 -2
- package/web/service-worker.js +1 -1
- package/web/web-version.json +1 -1
- package/web/assets/NodeManagementPage-CVzu9chY.js +0 -1
- package/web/assets/NodeManagementPage-DWcG2Tzc.js +0 -1
- package/web/assets/SecretManagementPage-xDS2zXCC.js +0 -1
- package/web/assets/SkillCenterPage-CnyqA9ZI.js +0 -1
- package/web/assets/WorkbenchPage-CKlYNId5.js +0 -22
- package/web/assets/WorkspaceManagementPage-CLAUKyVN.js +0 -1
- package/web/assets/WorkspaceManagementPage-D53i5uNs.js +0 -1
- package/web/assets/channel-zLel0Du9.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-BRloZcOw.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-BRloZcOw.js +0 -1
- package/web/assets/scoped-http-service-DVvho41I.css +0 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-BDfx9lke.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-ZR2ISW_-.js +0 -8
- package/web/docs/assets/chunks/@localSearchIndexen-US.DXDiAlJ8.js +0 -1
- package/web/docs/assets/chunks/@localSearchIndexroot.B-DVEtDw.js +0 -1
- package/web/docs/assets/en-US_workbench_sessions.md.BYTPcpOK.js +0 -1
- package/web/docs/assets/operations_marctl.md.C23I-1aM.lean.js +0 -1
- package/web/docs/assets/workbench_sessions.md.CHoyu6qR.js +0 -1
- /package/web/docs/assets/{en-US_workbench_sessions.md.BYTPcpOK.lean.js → en-US_workbench_sessions.md.BBixLc38.lean.js} +0 -0
- /package/web/docs/assets/{workbench_sessions.md.CHoyu6qR.lean.js → workbench_sessions.md.CucNalue.lean.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as t,o as s,c as a,a3 as n}from"./chunks/framework.BHjrhdiC.js";const u=JSON.parse('{"title":"Configure and Use MAR Agent","description":"","frontmatter":{"title":"Configure and Use MAR Agent","lastUpdated":"2026-11-26T00:00:00.000Z"},"headers":[],"relativePath":"en-US/runners/mar-agent.md","filePath":"en-US/runners/mar-agent.md"}'),i={name:"en-US/runners/mar-agent.md"};function o(r,e,d,l,c,h){return s(),a("div",null,[...e[0]||(e[0]=[n(`<h1 id="configure-and-use-mar-agent" tabindex="-1">Configure and Use MAR Agent <a class="header-anchor" href="#configure-and-use-mar-agent" aria-label="Permalink to "Configure and Use MAR Agent""></a></h1><p>MAR Agent is built into Node and does not require an external Agent CLI. Every user can add and manage personal models under <strong>Admin → MAR Agent Models</strong>; authorized administrators manage and grant organization models. Users who satisfy both model access and the bound credential scope can select <strong>MAR Agent</strong> for a new session.</p><p>See <a href="./../deployment/upgrade">Upgrade MyAgentRoam</a> for coordinated version changes and older Node upgrade restrictions.</p><h2 id="configure-models" tabindex="-1">Configure models <a class="header-anchor" href="#configure-models" aria-label="Permalink to "Configure models""></a></h2><p>API-key models using OpenAI Responses or Anthropic Messages can configure an independent <strong>SOCKS5 proxy</strong> using <code>socks5://[username:password@]host:port</code>. URL-encode special characters in credentials. Editing fetches the saved proxy on demand; leaving it unchanged preserves it, clearing and saving selects a direct connection, and duplicated models inherit an editable copy. The execution Node connects to the proxy: <code>localhost</code> means that Node, not your browser or Server. Proxy failures never fall back to a direct connection. This setting applies to Responses HTTP/1.1, HTTP/2 and WebSocket, and to Anthropic requests. The Node must advertise model SOCKS5 support; upgrade it otherwise. Subscription models always use their OAuth credential’s proxy, without a model-level override. The complete URL is fetched only for authorized editing and never enters model lists, logs or session records; do not share screenshots containing proxy passwords. Auxiliary tasks use the proxy of their selected model. Tools such as Web Fetch do not inherit model proxies.</p><p>Choose <strong>Off</strong>, <strong>Automatic</strong>, or <strong>GC with thought</strong> in the model's <strong>Context GC</strong> field. New and catalog-imported models default to Off; existing models keep their settings. Off disables GC but not automatic Compact or the image request hard limit. With GC with thought, the model records findings and decisions using <code>thought</code> before triggering routine GC. The Workbench shows only a short title in your language in Reasoning, not the detailed notes or a tool call. In this mode, exceeding the image hard limit still triggers a GC check without <code>thought</code>, and eligible text can be reclaimed at the same time. Off and GC with thought both require a Node that supports all three modes. Changes apply to subsequent executions.</p><p><strong>Use resource URLs</strong> requires both the global setting and the model option: the global setting defaults on and each model defaults off. Changes apply to the next execution. This currently applies to images. When enabled, images use fixed signed URLs valid for 24 hours without renewal and are not subject to image-watermark GC. Otherwise, recent attachments and tool images stay visible across requests in a bounded inline window. Inline images and text share GC checkpoints. Historical encoded image payload above 7 MiB triggers oldest-first reclamation down to at most 5 MiB, protecting the latest two successful model rollouts. Text GC can also reclaim mature images above 5 MiB. A request can contain at most 12 MiB of encoded image payload; meeting this limit can override historical-image protection but never discards fresh images. Eviction does not delete attachment or image files. Image attachments remain files with usable paths; the model can reopen an image by attachment path or a <code>resourceId</code> owned by the current session. Release notices retain the corresponding resource ID. The tool always reports image dimensions and returns at most 3 MiB per image. Larger images can be explicitly resized with <code>resize</code> or inspected locally with <code>region</code>; transformation source files can be up to 20 MiB. The image budget excludes text and tool definitions, so it is not a limit on the whole request body. Both modes share independent resource storage, and disabling URLs does not disable vision. Older image-history formats are no longer restored as visual input; their text and attachment files remain. The Node must advertise resource-input support.</p><p>Each model is an independent connection. The form offers <strong>Codex</strong>, <strong>ChatGPT plan authorization</strong>, <strong>X subscription OAuth (experimental)</strong>, <strong>OpenAI Responses</strong>, and <strong>Anthropic Messages</strong> as connection types. For Codex, select an existing Codex credential. Enter or edit the model ID directly: there is no catalog picker, and the ID need not appear in the credential's live model catalog. Changing credentials preserves the entered model ID; the display name remains editable. The live catalog is loaded only when you explicitly choose <strong>Load model catalog</strong> for bulk import. Codex uses its fixed service endpoint. OpenAI Responses and Anthropic Messages use an explicit Base URL and inline API key. A new model starts with <code>256000</code> context tokens and <code>32000</code> maximum output tokens; switching connection types preserves compatible fields, including the model ID, token limits, capabilities, reasoning efforts, and model purposes. Switching between OpenAI Responses and Anthropic Messages keeps the inline API key and custom Base URL; only default addresses change with the protocol. A temporary switch to OAuth and back also preserves the entered key and custom address. OAuth uses fixed endpoints, and an incompatible OAuth type requires selecting another credential. Editing retains saved values; existing keys are not returned to the browser, and leaving the key blank keeps the saved key. Catalog imports preserve limits explicitly supplied upstream. A missing context limit is prefilled with <code>256000</code> and can be edited before import; a missing maximum output limit defaults to <code>32000</code> (reduced to stay strictly below smaller context windows). Image input, session title generation, Code Mode, Hosted Web Search, Responses continuation, selectable reasoning efforts, and the default reasoning effort are maintained on the model form; transport selection is available for every Responses connection type. When a regular Workspace session or hosted conversation needs a generated title, MAR Agent uses the first enabled available model with <strong>Session title generation</strong> selected, following model order; if none is selected, it falls back to the conversation's current model. The default reasoning effort is always required. Even when no reasoning choices are exposed to users, MAR Agent uses that default internally. For Grok models without configured reasoning choices, unsupported reasoning parameters are omitted on the wire.</p><p>Select <strong>Duplicate</strong> in a manageable model’s actions to open a prefilled creation form with a copy suffix in its default name. You can change configuration, credentials, and ownership before selecting <strong>Save</strong>; cancelling creates nothing. Unless replaced, the inline key or compatible OAuth reference is reused securely by the Server without returning secrets to the browser. The new model has an independent configuration ID and is appended to the list; access grants and test results are not copied. Duplication requires management permission on the source, and the new ownership and credential scope are checked again when saving.</p><p>Responses models, including inline API keys, can select WebSocket, HTTP/2, or HTTP/1.1 (X subscription supports WebSocket and HTTP/1.1). A failed selected transport does not silently switch protocols. HTTP and WebSocket both allow server-side continuation; switching transport preserves the checkbox. Only HTTP requests with continuation enabled send <code>store:true</code>. HTTP with continuation disabled and all WebSocket requests send <code>store:false</code>; there is no separate storage setting. With HTTP continuation enabled, the initial request and full-history replays after an invalid reference also ask the upstream to retain responses; consult its retention policy. Enable continuation only when the upstream supports it. A missing or expired response reference triggers one full-history replay within the request attempt budget, provided no semantic output has been committed; authentication, rate limits and unrelated errors are not treated as expired references. Adapter restarts and changed core prompts also replay full history. HTTP continuation requires a Node advertising the corresponding capability. Anthropic Messages prompt caching is managed automatically without this setting.</p><p>New model creation and OAuth catalog import both offer <strong>Personal / Organization</strong> ownership to enterprise administrators. Ownership is independent of credential scope: choosing an enterprise credential does not automatically share the model. Create an organization-owned model and then use its authorization action to share it with users, organizations, or the enterprise. Personal models have no authorization action. Editing an existing model shows its ownership without changing it; recreate or import it with organization ownership when sharing is needed. The model list shows the complete manageable set without pagination. Editing, testing, refreshing, and deleting reload the complete current result.</p><p>MAR Agent performs bounded retries for eligible transient connection, service-overload, or model-stream failures. The initial request and retries share a maximum of 5 attempts (the initial request plus up to 4 retries). Recovery after output preserves completed context without resetting that count. After 3 minutes without generation progress, the current model request is cancelled and enters the same recovery flow; heartbeats and metadata do not extend this deadline. The timer excludes client-tool execution and human waits. Requests that keep making generation progress have no overall hard time limit.</p><p>Responses retries start a fresh model-service request using the current full context, without the old routing or server-side continuation state. WebSocket retries open a new connection but do not create a new user session or run. Normal tool follow-ups keep their current routing and continuation state. If a model request exhausts its retry budget, the conversation error shows the total attempts and retries while preserving the final cause. A tool follow-up round or later user-initiated run starts again at attempt 1; failure recovery itself does not reset the count.</p><p>MAR Agent does not impose a cumulative token budget or model-round limit on a run, or force finalization based on cumulative usage. Long tasks can continue after Context GC or Compact; context-window checks, cancellation and model-request timeouts still apply. Provider plan, account and request limits are unaffected.</p><p>The Workspace session segment heading and its <a href="./../workbench/conversation">Info details</a> show the latest available Latency and average output TPS. Latency updates after the first valid semantic model response. TPS is an end-to-end estimate: the provider's final output token count divided by the elapsed time from starting the model request to receiving its completion. Positive durations under one second are counted as one second. The token count can include hidden reasoning and tool-call arguments. The elapsed time includes the wait for the first response, network time, and hosted tools run within the request, but excludes client tools run outside it. This is not the model's raw generation speed. If final usage or valid timing is missing, or the request is cancelled, no new TPS is published and the previous valid value stays within the same Run.</p><p>Every user can use the <strong>My model order</strong> tab to arrange their authorized models in the model picker. This does not affect other users, the administrator-defined default order, session title generation, or template candidates. Newly available models that the user has not arranged remain after the saved personal order in the administrator-defined default order. System administrators manage that global default in the <strong>Models</strong> tab, which lists a model’s name, connection type, model ID, availability, access, and test status. The list omits credentials and Responses transport; Codex transport remains available in the model editor. Removing a model does not require disabling it first and is not blocked because the model is currently in use. A model request that has already started may finish naturally, while later attempts to use the removed model fail because it no longer exists. Select <strong>Adjust order</strong>, drag the handle at the start of each row, then select <strong>Save order</strong> to persist the complete order and leave sorting mode. <strong>Cancel</strong> restores the order from before editing.</p><p>After saving, select <strong>Test</strong> and choose an online Node whose version, runtime-credential capability, and transport support match the model. The Node performs a real minimal request without creating a Workspace Session or Run. The test dialog stays open after success or failure and shows the result, code, HTTP status, message, Server request ID, and—when the Node provides upstream details—the upstream request ID, content type, <code>Retry-After</code>, and response body as selectable plain text. The bounded body may include a truncation notice; HTML is never rendered. Starting another test or changing the model or Node clears the previous result. A failed test still shows the normal error notification, while the diagnostic details remain in the dialog. Lists and test results never reveal API keys or OAuth tokens. Leaving an existing inline key or Codex credential selection blank while editing preserves it. Models remain system-administrator managed, while Codex credentials are managed by the users or administrators allowed by each credential scope.</p><p>For Codex (legacy) and ChatGPT models, <strong>Speed</strong> offers <strong>Default / Fast / Ultrafast</strong>. The standard Responses <code>service_tier</code> parameter is saved with the model and applies to HTTP and WebSocket requests. Existing Fast settings become Fast; other existing models and new imports start with Default. Availability and usage or charges depend on the upstream model and account; unsupported options are not silently downgraded. The standalone CLI retains <code>--fast-mode</code> and <code>--no-fast-mode</code> as compatibility options.</p><h2 id="conversation-and-auxiliary-models" tabindex="-1">Conversation and auxiliary models <a class="header-anchor" href="#conversation-and-auxiliary-models" aria-label="Permalink to "Conversation and auxiliary models""></a></h2><p><strong>Conversation model</strong> is checked by default in the model form. Only enabled models with this option checked appear in work-mode and hosted-conversation Composers, Subagent choices, and template main-model choices. Uncheck it to reserve a model for dedicated Compact, session title generation, and prompt prediction. Configure each auxiliary use separately; model and credential permissions still apply. Conversation models can also serve these auxiliary uses. The enabled and session-title switches remain independent.</p><p>Models for MAR Agent child sessions must also have <strong>Subagent support</strong> enabled. A child session's model selector shows only currently available models enabled for both uses; the list is empty when none qualify. This switch does not restrict the main session's model choices.</p><p>Existing models retain conversation use, and new or catalog-imported models enable it by default. Changes do not interrupt executions already in progress. Later sends, continuations, or explicit selections using a model that no longer permits conversation use are rejected; select an available conversation model to continue. Conversation history is preserved.</p><h2 id="prompt-tab-model" tabindex="-1">Prompt Tab model <a class="header-anchor" href="#prompt-tab-model" aria-label="Permalink to "Prompt Tab model""></a></h2><p>Under <strong>Admin → MAR Agent Models → Advanced → Prompt Tab</strong>, save the global switch, model, and reasoning effort independently of Compact. The capability defaults to enabled without a preselected model. Users still need model and credential access and can control <strong>Composer Prediction</strong> under <strong>Settings → Appearance</strong> (on by default without a saved preference; an existing Off choice is preserved; Work mode only, saved immediately in the current browser). All four Work-mode Agents are supported. Node uses the MAR Agent SDK's standalone model interface with a result-tool schema to receive prediction data, without creating an Agent session or executing tools. See <a href="./../workbench/composer#prompt-tab">Prompt Tab</a> for interaction and data scope.</p><h2 id="dedicated-compact-model" tabindex="-1">Dedicated Compact model <a class="header-anchor" href="#dedicated-compact-model" aria-label="Permalink to "Dedicated Compact model""></a></h2><p>System administrators configure the enable switch, an existing model, and reasoning effort under <strong>Admin → MAR Agent Models → Advanced → Compact</strong>. The setting applies system-wide; it is not on the System Configuration page. Enterprise selection prioritizes root-organization models. It is disabled by default, leaving the current conversation model responsible for compaction. Saved changes apply to subsequent runs, not an active execution.</p><p>Also enable <strong>Unified Compact</strong> in the current execution model’s form to use the system-wide dedicated model. This option defaults off: new, imported, and existing models without the setting keep their original model compaction. Child sessions use their own execution model’s option, not the parent’s. The dedicated summary model itself does not need this option enabled. Changes apply to subsequent executions. Older Nodes without support conservatively keep original model compaction.</p><p>The Node extension always uses a high-density Textual Continuation IR prompt; there is no standalone CLI flag. IR headings and keys use English, while natural-language values may follow the task language. Default compaction and fallback use the Core structured handoff prompt. The dedicated model generates an internal continuation summary without tools or changing the main conversation model. Both Workspace sessions and hosted conversations still require the execution user's model access and credential scope; enabling this setting grants neither. If the estimated input exceeds the dedicated model's window, the first request trims it to 90% of that window, potentially omitting older or lengthy evidence. An unavailable model, remaining context overflow, or failed generation falls back to default compaction with the current model. There is no second capacity-trimming retry of the dedicated model. Cancellation or the total compaction deadline does not trigger fallback. The summary is used for continuation, not displayed as public chat text.</p><p>MAR Agent schedules automatic compaction from the latest same-model context-input usage: at 85%, it generates a candidate in the background while the current task and tools continue; at 90%, it waits for that same compaction before the next model request. The conversation timeline updates one item through background generation, waiting, completion, failure, or cancellation. Background compaction does not end the active task or expose its private handoff summary. Messages and tool results produced after the snapshot remain after the compacted prefix. After a successful compaction, if a tail was retained, the Context indicator stays unknown until a foreground model request reports authoritative usage; with no retained tail, the existing <code>0 / window</code> reset baseline remains. Background Compact usage still counts toward costs but never replaces foreground context usage, Latency, or average output TPS.</p><p>Smart Compact is a separate system-wide switch in the same <strong>Admin → MAR Agent Models → Advanced → Compact</strong> panel, and is off by default. It does not require enabling or selecting the dedicated Compact model. When enabled, with a valid same-model input watermark of at least 60% and below 90%, the runtime allows the main model to consider whether prior detailed context has low continuation value and request the same background compaction earlier. It does not trigger for every topic change or one-off question, and it is not a guarantee that all history will fit without loss. Missing or invalidated usage skips this optional opportunity. Turning Smart Compact off disables only this optional early compaction; it does not affect manual Compact or the fixed 85%/90% automatic capacity safeguards. No Enterprise license is required, and the SDK and CLI use the same mechanism. Existing manual Compact controls and status displays are unchanged. Older Nodes without the <code>smartCompactControl</code> capability retain their existing behavior while the switch is on; with the switch off, they cannot guarantee that behavior is disabled and reject conversational and actual Plan executions with <code>CAPABILITY_VERSION_UNSUPPORTED</code>. Upgrade the Node to use the off setting. Manual Compact and commands that only toggle Plan state remain available.</p><h2 id="chatgpt-plan-authorization" tabindex="-1">ChatGPT plan authorization <a class="header-anchor" href="#chatgpt-plan-authorization" aria-label="Permalink to "ChatGPT plan authorization""></a></h2><p>The <strong>OAuth credentials</strong> tab lists <strong>Codex (legacy)</strong>, <strong>ChatGPT plan authorization</strong>, and <strong>X subscription</strong> in one table. To add a ChatGPT credential, select <strong>ChatGPT plan authorization</strong> and an online Node on the computer running your browser. The Node must support local sign-in. Open its local sign-in link and complete authorization on OpenAI's page. A remote Node cannot receive this browser's loopback callback; cancel and select the local Node instead.</p><p>The local Node is only a temporary sign-in provider. Server stores the credential and owns token refresh. Other authorized remote Nodes can share it without signing in themselves. Personal, organization, and enterprise scopes use the same management and model-use permissions as Codex credentials. Reauthorization also needs a local Node and reuses the issued client ID. Cancellation or failure leaves the existing credential intact.</p><p>Models use the fixed public OpenAI Responses endpoint, not the legacy Codex backend. HTTP/1.1, HTTP/2, and WebSocket are supported. HTTP and WebSocket can use <code>previous_response_id</code> for incremental user and tool turns; WebSocket additionally requires one healthy connection. Reconnects or adapter rebuilds replay the necessary full history. Image generation with this credential is not supported. An optional SOCKS5 proxy applies to Node sign-in, Server refresh and catalog requests, and inference on execution Nodes.</p><p>A successful identity sign-in without plan-use permission is retained as <strong>Unauthorized</strong>. It cannot load models or run inference: sign in again and grant plan usage. This is not token expiry and never switches automatically to API-key billing. Legacy Codex private usage queries are unavailable for the new type. Its account identifier comes from verified identity; provide missing context-window limits when importing models. Tokens are never returned to the management page.</p><p>Select <strong>Manage usage</strong> in a ChatGPT credential's <strong>Details</strong> to open <a href="https://chatgpt.com/settings/usage" target="_blank" rel="noreferrer">ChatGPT Settings → Usage</a> in a new tab, review plan or app limits, and adjust available settings. Make sure ChatGPT is signed in to the account associated with that credential. For <code>subscription_sharing_usage_limit_exceeded</code>, the chat error message explains the usage limit and asks you to open <code>https://chatgpt.com/settings/usage</code> in plain text, without an additional button or interactive link. Other HTTP 429 errors are not treated as exhausted plan usage.</p><h2 id="x-subscription-oauth-experimental" tabindex="-1">X subscription OAuth (experimental) <a class="header-anchor" href="#x-subscription-oauth-experimental" aria-label="Permalink to "X subscription OAuth (experimental)""></a></h2><p>Under <strong>OAuth credentials</strong>, choose <strong>Add OAuth credential</strong>, select <strong>X subscription OAuth (experimental)</strong>, and enter a name, ownership, and optional SOCKS5 URL. Open the displayed xAI authorization page and enter the device code; no local Node is required. Check the authorization page and selected account before approving. The shared public OAuth client may appear as Grok Build. Inference access depends on upstream account and subscription eligibility; neither a payment amount nor a successful sign-in guarantees model access.</p><p>Use <code>socks5://[username:password@]host:port</code>, URL-encoding special characters. The same proxy applies to Server device authorization, token exchange, identity, refresh, catalog, usage and revocation requests, and to model requests from the execution Node. Proxy failures never fall back to a direct connection. Both Server and the execution Node must reach the proxy; <code>127.0.0.1</code> on a remote Node is not the Server's localhost. The browser authorization page uses the browser's own network, not this proxy. You can edit or clear the proxy later and inspect its full URL in credential details; do not share screenshots containing proxy passwords.</p><p>After signing in, load and import the catalog, or create a Grok model, select the credential and enter a model ID. Inference uses <code>https://cli-chat-proxy.grok.com/v1</code> with a choice of WebSocket or HTTP/1.1 SSE; new models and catalog imports default to HTTP/1.1 SSE. Responses continuation is off by default, so both transports send full history. You can manually enable <code>previous_response_id</code> with either transport. Support depends on the upstream and account; enabling the setting is not a compatibility guarantee. Transport and continuation support on the subscription proxy are not guaranteed. A missing reference falls back once to full history; other failures retain diagnostic details. Speed tiers, HTTP/2 and image generation are unavailable for this connection. Models still use the X subscription OAuth credential, not a developer API key; catalog, identity and usage queries remain on the subscription proxy. Upgrading Server moves subscription models mistakenly configured with the developer API URL back to the subscription proxy while preserving other settings and clearing old model test results. Hosted Web Search can be toggled on the model form; new models and catalog imports enable it by default. Existing models keep their saved value; edit, enable the checkbox and save to turn it on. Re-importing creates independent models rather than modifying existing ones. The execution Node must advertise support for the new Responses parameter capabilities; otherwise upgrade Node.</p><p>Choose <strong>Query usage</strong> in credential details to manually load the current used/remaining percentage, weekly/monthly period, reset and query times, and the separate additional USD balance. Missing values display as a dash, not zero or unlimited. MAR does not estimate remaining tokens or display nonexistent token totals. A failed usage query does not imply inference is unavailable. Usage is not polled automatically and is cleared when details close. Upstream accounts may have additional paid balances; MAR does not top up or change billing settings and does not guarantee that subscription calls never incur extra charges.</p><p>Server stores and refreshes tokens; the execution Node receives only short-lived access credentials. Sign in again when authorization expires. Deleting an unreferenced credential attempts to revoke its upstream refresh token and reports revocation failure. This integration depends on a changeable subscription proxy protocol and is not recommended for production tasks requiring a stable SLA.</p><h2 id="configure-codex-credentials-and-the-model-catalog" tabindex="-1">Configure Codex credentials and the model catalog <a class="header-anchor" href="#configure-codex-credentials-and-the-model-catalog" aria-label="Permalink to "Configure Codex credentials and the model catalog""></a></h2><p>Every user can open <strong>Admin → MAR Agent Models</strong> for <strong>My model order</strong> and the Codex credentials they may manage; only system administrators see the <strong>Models</strong> tab used to configure models. A regular member can create only a personal credential. An organization administrator can also select an organization in their managed subtree, and a system administrator can select an organization or the entire enterprise. A personal credential is visible only to its owner, an organization credential is visible only to system administrators and organization administrators whose managed subtree covers it, and an enterprise credential is visible only to system administrators. Select <strong>Add OAuth credential</strong> and choose <strong>Codex (legacy)</strong>, enter a name, scope, and optional SOCKS5 proxy, then start device sign-in. This proxy applies only to Codex OAuth requests, model-catalog requests, and Codex model requests that reference this credential. The system polls automatically at the Server-provided interval, and you can select <strong>Refresh sign-in status</strong> while waiting to query immediately. A credential is stored only after sign-in, token exchange, and account validation all succeed. Cancelled, failed, or expired attempts create no credential.</p><p>The credential list and Details show the current access token expiry and the earliest refresh time supplied by ChatGPT. An unknown earliest refresh time appears as a dash; neither timestamp is the refresh token expiry. While refresh authorization remains valid, Server renews near-expiry tokens automatically. Nodes also renew access tokens and runtime tickets during long tasks without waiting for another model call, with bounded retries after temporary failures or unchanged near-expiry tokens. Persistent disconnection or invalid credentials still require recovery or sign-in. Manual refresh can request renewal before that time; the upstream response decides whether renewal succeeds. Automatic renewal still respects the earliest refresh time. Actual renewal immediately updates the list and open Details with the new expiry, earliest refresh and last-refresh time. The action column provides <strong>Details</strong>, <strong>Edit</strong>, <strong>Test</strong>, and <strong>Remove</strong>. <strong>Edit</strong> can change the name, scope, and SOCKS5 proxy. Narrowing a credential scope is rejected while an existing model grant remains outside the proposed scope; narrow those model grants first. Details fetches that credential separately, displays the complete SOCKS5 URL verbatim, and provides refresh, sign-in-again, query-usage, and model-catalog actions. <strong>Query usage</strong> displays lifetime tokens, usage on the previous Los Angeles day, the total for seven consecutive calendar days, the current used percentage and reset time for each quota window, and the query time. The previous day’s date and UTC offset appear in smaller text below its usage value. If no bucket exists for yesterday, that date still appears while usage shows a dash; an older bucket is never substituted. A bucket for the current Los Angeles day remains excluded from the seven-day total. Statistical days roll over in <code>America/Los_Angeles</code>: <code>UTC-07:00</code> during daylight saving time (15:00 in UTC+8) and <code>UTC-08:00</code> during standard time (16:00 in UTC+8). The system does not poll usage automatically, and closing Details discards both the complete proxy string and the usage result. A credential referenced by a model cannot be removed until that reference is changed or removed. The page never displays custom metadata, imported-model counts, access tokens, refresh tokens, ID tokens, the raw upstream usage response, or a FedRAMP flag.</p><p>Select <strong>Load model catalog</strong> to read the live Codex catalog visible to that credential. Each row shows the reasoning efforts supported by this system, including <code>ultra</code>, the catalog-provided or normalized default effort, and any genuinely unknown upstream efforts. Select the models to import and provide a context window only when the catalog omits it; a missing maximum-output value does not create an input field. The catalog has no availability switch, and imported models are enabled with the catalog default. Configure transport and Responses continuation later in the model view. Every Codex or ChatGPT catalog import creates a new independent model, even for the same credential, upstream model ID, display name, and ownership. Existing models and grants remain unchanged; new models use the import defaults and do not inherit existing settings or grants. If the live catalog changes, the page asks you to review the refreshed catalog before retrying.</p><h2 id="configure-model-access" tabindex="-1">Configure model access <a class="header-anchor" href="#configure-model-access" aria-label="Permalink to "Configure model access""></a></h2><p>New models are <strong>Restricted</strong> by default. Models that existed before this access feature are migrated as <strong>Public</strong>. The <strong>Access</strong> column shows the current state:</p><ul><li>Granting access to the <strong>Entire enterprise</strong> makes the model public.</li><li>Without an entire-enterprise grant, access can be granted separately to users or organizations and the model remains restricted.</li><li>System administrators can always manage every model regardless of model-grant records, but actual use still requires the user to be inside the bound credential scope.</li></ul><p>Select <strong>Grant</strong> on a model row to view, add, or revoke grants. A model's grant range must be fully contained by the bound credential scope; for example, a credential owned by an organization cannot be granted to a user or organization outside that subtree or to the entire enterprise. A regular user's new-session model catalog contains only redacted models that are enabled, granted to that user, and backed by a credential whose scope contains that user. The main Agent and its subagents receive the same authorized model set.</p><p>Disabling a model rejects subsequent new sessions, messages, and session commands. Revoking a user's grant, moving the user outside the credential's organization scope, rebinding or unbinding the model credential, or making the credential unavailable also causes every subsequent runtime credential resolution to be rejected. Work already accepted by Node and no longer requiring credential resolution is not forcibly terminated. When an existing MAR Agent conversation is opened and its saved model is no longer in the current catalog, Web automatically saves the first available model and switches the reasoning effort to that model's default. If the catalog is empty, Web does not switch to another Agent. A model can be deleted directly without disabling it or waiting for active tasks. Executions that already obtained the configuration can continue, while later model resolution fails as not found.</p><h2 id="sessions-and-permissions" tabindex="-1">Sessions and permissions <a class="header-anchor" href="#sessions-and-permissions" aria-label="Permalink to "Sessions and permissions""></a></h2><p>For tool-based work beyond a quick lookup, MAR Agent is guided to briefly explain its approach before starting. During longer tasks, it shares progress, findings, changes of direction, or blockers when useful to you. These updates appear in the conversation, not after every command or at fixed intervals. To redirect ongoing work, see <a href="./../workbench/composer">sending and steering messages</a>.</p><p>Nodes offer <strong>Auto</strong> and <strong>Full access</strong>. New ordinary work sessions default to Auto; existing sessions retain their saved setting. Entering a Goal never upgrades MAR Auto to Full access. The standalone SDK/CLI still defaults to Full access, and hosted conversations keep their existing isolation and permission policy.</p><p>Auto uses the current model's judgment: routine engineering and explicitly authorized work continue automatically; material risk or unclear authorization produces ask. Deny is reserved for an effective explicit prohibition, higher-priority/Host prohibition, or known extreme danger whose impact cannot reasonably be bounded. Authorization is reused within the same task, target and impact, across tools, retries, turns and subagents; material expansion or withdrawal requires reassessment.</p><p>The session tools <code>thought</code>, <code>todo</code>, <code>sleep</code>, <code>skill_load</code>, and <code>tool_search</code> do not show an Auto <code>permission</code> field to the model. MCP tools found by search still use the ordinary policy.</p><p>For Code Mode, the model is guided to declare ask/deny for the whole outer <code>code_exec</code> call. A nested deny skips only that tool and returns <code>error: MAR_AGENT_PERMISSION_DENIED</code> with a short <code>message</code> in the result data. It does not throw a JavaScript exception or end the cell; check the result before dependent steps. The denied tool is still recorded as failed. Other errors keep their existing behavior.</p><p>Ask waits online through the tool approval card, showing the public reason, command/arguments/code, working directory and expiry. Allow executes the captured original call; concurrent requests are decided separately. After 10 minutes without a decision, the request expires without executing and is not treated as a user rejection. Rejection, expiry and model-declared deny fail only that call; the model can continue within remaining authorization or stop naturally, but must not retry or route around a user refusal. Cancelled, decided or expired cards cannot execute. Goals and schedules retain existing Node policies. Standalone SDK/CLI hosts without an online channel stop on ask; later instructions do not replay the old call.</p><p><strong>Auto is neither an operating-system sandbox nor an independent safety reviewer.</strong> Full access omits Auto self-assessment. Both retain Host path/resource validation and use the Node service account's actual permissions. Use a dedicated low-privilege account and appropriate Workspace and host permissions.</p><p>Native session records are stored under <code>~/.mar/agent/sessions/</code> for the Node service account; Server does not store conversation bodies. MAR Agent supports Plan, Compact, question, MCP, images, and subagents. The model can use the <code>todo</code> tool with <code>action: read | write</code> to read or replace the current session checklist; an empty list clears it. Todo updates appear as checklists, and existing session checklists and history remain compatible. Each subagent is an independent persistent child session with its own history and parent relationship, while the default session list shows only user root sessions. Agent Network supports three levels: root, child, and grandchild; a fourth level is not supported. Continuous tasks use Node's shared Goal workflow and are not reimplemented inside the Agent SDK.</p><p>MAR Agent scans standard Skill directories under HOME and the Workspace and initially gives the model only each Skill's name and purpose. The agent uses <code>skill_load</code> when it needs a Skill; users do not need to name it. The tool adds guidance to the model's context rather than printing it as tool output. Context GC keeps the latest loaded version of each Skill, while Compact clears loaded guidance so the agent can load it again if needed. Workspace Skills take precedence over same-named user Skills, followed by SDK built-ins. Project guidance cannot change tool parameters or host permissions.</p><h3 id="command-environment" tabindex="-1">Command environment <a class="header-anchor" href="#command-environment" aria-label="Permalink to "Command environment""></a></h3><p><code>exec</code> enables login initialization by default. Bash reads the first readable file in its native order: <code>~/.bash_profile</code>, <code>~/.bash_login</code>, then <code>~/.profile</code>. It also loads a readable <code>~/.bashrc</code> when <code>BASH_ENV</code> is unset or empty. PowerShell loads its native startup configuration by default. These files belong to the Node service account, not the browser user. Configuration is read on every command start; hosted conversations read only files visible inside their isolated environment, never the host account's configuration.</p><p>To skip login initialization, ask the Agent to use <code>exec({ command: "…", login: false })</code>. A login Shell is still noninteractive. If a toolchain PATH appears after a noninteractive <code>return</code> in <code>.bashrc</code>, put that shared environment configuration in a login profile or before the early return. MAR does not bypass that guard, and an <code>export</code> in one command does not update Node or subsequent independent commands.</p><h3 id="advanced-subagent-control" tabindex="-1">Advanced subagent control <a class="header-anchor" href="#advanced-subagent-control" aria-label="Permalink to "Advanced subagent control""></a></h3><p>Node Agent Network does not impose the old 16-child creation or concurrency limits. The independent SDK Subagent extension retains its own admission policy.</p><p>The collaboration tools are <code>agent_start</code>, <code>agent_send</code>, <code>agent_wait</code>, <code>agent_stop</code>, <code>agent_list</code>, and <code>agent_view</code>. <code>agent_start</code> takes a text task and a nonblank title and returns after registering the child session and its first execution, without waiting for completion; a manual marctl creation may omit the title. Use the returned <code>agentId</code> to address the child. <code>agent_send</code> can deliver a text message, update a Goal, or decide an approval for an authorized session; its delivery intent can replace the current execution. <code>agent_wait</code> defaults to waiting 30 seconds for direct children to finish; <code>waitMs=0</code> reads a snapshot and positive values use the requested duration. <code>agent_stop</code> takes only the session ID, stops its current execution, and clears its Goal; list and view discover authorized sessions and their status.</p><p><code>agent_view</code> accepts only <code>agentId</code> and returns state, the current Goal, and bounded recent activity without Run or Execution IDs and without reading session history. Use the separate <code>marctl agents history <session-id></code> command for paginated records when needed. <code>marctl agents view</code> follows the same state-query boundary.</p><p>If the target is idle and has no current or retained execution, <code>agent_wait</code> reports <code>AGENT_IDLE</code> with “Agent is idle; there is no execution to wait for.” This does not mean the session is missing or the task failed. An idle session with a retained terminal execution still returns that execution's result. An untargeted wait with no children reports <code>AGENT_WAIT_NO_TARGETS</code>; a missing explicit target reports <code>SESSION_NOT_FOUND</code>. Waiting does not start an idle session.</p><p>Within the same authorized Node and Workspace, messaging, explicit waits, Goals, stopping, approvals, and marctl session settings are not restricted by parent-child relationships. Target Run and queue ownership, model access, and resource authorization still apply. Sending does not establish automatic subscriptions to unrelated sessions.</p><p>Unread public child messages and new terminal results are delivered automatically before the parent's next normal model request, including direct children created through the native Extension API. The parent need not repeatedly use message waits to check progress. Delivery does not wake an idle parent or postpone a normal final answer: join results required for delivery before finishing, and use <code>agent_wait</code> when genuinely blocked. Automatic delivery and model waits share their observation position, so subsequent waits do not repeat already delivered message bodies or terminal evidence. Child content is context to verify, not new user instructions or authorization.</p><p>Node retains the latest 10 unread updates per parent-child observation relationship across executions. Overflow removes the oldest records, and <code>omittedUpdates</code> reports omissions since the last confirmed observation. This count belongs to the relationship, not to a particular execution. Confirmation clears the delivered notice; full public history remains available on demand. The window does not retain unlimited unread content.</p><p>Node's native <code>agent_send</code> accepts a <code>delivery</code> parameter of <code>STEER</code> or <code>QUEUE</code>. Messages with text default to <code>STEER</code>, including <code>marctl agents send <id> -m <text></code> from other Agents. Goal-only updates and approval decisions do not involve message delivery. Prefer STEER for timely communication; reserve QUEUE for deferred input explicitly requested by the user or recipient. It is consumed after current work and earlier queued inputs finish, and with an active Goal it is not consumed until that Goal exits. Acceptance does not guarantee immediate processing.</p><p>An accepted message normally needs no separate receipt acknowledgment, request for one, or immediate Session view just to confirm receipt. Parent and child Agents should preferably advance meaningful, non-overlapping work in parallel; waiting is generally useful once no other local task work remains and a required result is needed to unblock or finish. Necessary results, clarification, blockers, conflicts, and decisions still belong in the collaboration.</p><p>Native <code>agent_list</code> accepts only <code>scope</code>, an optional title fragment <code>query</code>, and <code>limit</code>. Omit <code>scope</code> or choose <code>tree</code> to list the current session's containing collaboration tree, including registered, authorized roots, ancestors, peers, and descendants; idle sessions and sessions with completed executions remain visible. Choose <code>active</code> for running or sleeping sessions in the current Workspace. Recent conversations, enabled Goals, and nonempty queues do not imply activity. Reuse known session IDs directly; titles do not automatically select or route to a target.</p><p><code>query</code> filters titles within the selected scope, ignoring surrounding whitespace and case and normalizing compatibility characters such as full-width letters. <code>limit</code> defaults to 10 and cannot exceed 100. Results contain <code>scope</code>, <code>currentAgentId</code>, flat <code>sessions</code>, and <code>truncated</code>; each entry contains only <code>id</code>, <code>parentSessionId</code>, <code>title</code>, and <code>status</code> (<code>RUNNING</code>, <code>SLEEPING</code>, or <code>IDLE</code>). Both scopes put active Sessions first, then sort by recent activity descending; parentSessionId preserves tree relationships. A parent may be absent because of filtering or authorization. No matches produce an empty list; results exceeding limit are marked truncated, without a cursor or pagination. Narrow the scope with query when needed. Listing does not scan native Agent session histories, resume executions, or establish subscriptions. <code>marctl agents list</code> uses the same arguments and result fields. Without a current Session, a standalone terminal defaults to active with currentAgentId null; explicit tree requires Session context.</p><div class="language-js vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">await</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> tools.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent_list</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">({});</span></span>
|
|
1
|
+
import{_ as t,o as s,c as a,a3 as n}from"./chunks/framework.BHjrhdiC.js";const u=JSON.parse('{"title":"Configure and Use MAR Agent","description":"","frontmatter":{"title":"Configure and Use MAR Agent","lastUpdated":"2026-11-27T00:00:00.000Z"},"headers":[],"relativePath":"en-US/runners/mar-agent.md","filePath":"en-US/runners/mar-agent.md"}'),i={name:"en-US/runners/mar-agent.md"};function o(r,e,d,l,c,h){return s(),a("div",null,[...e[0]||(e[0]=[n(`<h1 id="configure-and-use-mar-agent" tabindex="-1">Configure and Use MAR Agent <a class="header-anchor" href="#configure-and-use-mar-agent" aria-label="Permalink to "Configure and Use MAR Agent""></a></h1><p>MAR Agent is built into Node and does not require an external Agent CLI. Every user can add and manage personal models under <strong>Admin → MAR Agent Models</strong>; authorized administrators manage and grant organization models. Users who satisfy both model access and the bound credential scope can select <strong>MAR Agent</strong> for a new session.</p><p>See <a href="./../deployment/upgrade">Upgrade MyAgentRoam</a> for coordinated version changes and older Node upgrade restrictions.</p><h2 id="configure-models" tabindex="-1">Configure models <a class="header-anchor" href="#configure-models" aria-label="Permalink to "Configure models""></a></h2><p>API-key models using OpenAI Responses or Anthropic Messages can configure an independent <strong>SOCKS5 proxy</strong> using <code>socks5://[username:password@]host:port</code>. URL-encode special characters in credentials. Editing fetches the saved proxy on demand; leaving it unchanged preserves it, clearing and saving selects a direct connection, and duplicated models inherit an editable copy. The execution Node connects to the proxy: <code>localhost</code> means that Node, not your browser or Server. Proxy failures never fall back to a direct connection. This setting applies to Responses HTTP/1.1, HTTP/2 and WebSocket, and to Anthropic requests. The Node must advertise model SOCKS5 support; upgrade it otherwise. Subscription models always use their OAuth credential’s proxy, without a model-level override. The complete URL is fetched only for authorized editing and never enters model lists, logs or session records; do not share screenshots containing proxy passwords. Auxiliary tasks use the proxy of their selected model. Tools such as Web Fetch do not inherit model proxies.</p><p>Choose <strong>Off</strong>, <strong>Automatic</strong>, or <strong>GC with thought</strong> in the model's <strong>Context GC</strong> field. New and catalog-imported models default to Off; existing models keep their settings. Off disables GC but not automatic Compact or the image request hard limit. With GC with thought, the model records findings and decisions using <code>thought</code> before triggering routine GC. The Workbench shows only a short title in your language in Reasoning, not the detailed notes or a tool call. In this mode, exceeding the image hard limit still triggers a GC check without <code>thought</code>, and eligible text can be reclaimed at the same time. Off and GC with thought both require a Node that supports all three modes. Changes apply to subsequent executions.</p><p><strong>Use resource URLs</strong> requires both the global setting and the model option: the global setting defaults on and each model defaults off. Changes apply to the next execution. This currently applies to images. When enabled, images use fixed signed URLs valid for 24 hours without renewal and are not subject to image-watermark GC. Otherwise, recent attachments and tool images stay visible across requests in a bounded inline window. Inline images and text share GC checkpoints. Historical encoded image payload above 7 MiB triggers oldest-first reclamation down to at most 5 MiB, protecting the latest two successful model rollouts. Text GC can also reclaim mature images above 5 MiB. A request can contain at most 12 MiB of encoded image payload; meeting this limit can override historical-image protection but never discards fresh images. Eviction does not delete attachment or image files. Image attachments remain files with usable paths; the model can reopen an image by attachment path or a <code>resourceId</code> owned by the current session. Release notices retain the corresponding resource ID. The tool always reports image dimensions and returns at most 3 MiB per image. Larger images can be explicitly resized with <code>resize</code> or inspected locally with <code>region</code>; transformation source files can be up to 20 MiB. The image budget excludes text and tool definitions, so it is not a limit on the whole request body. Both modes share independent resource storage, and disabling URLs does not disable vision. Older image-history formats are no longer restored as visual input; their text and attachment files remain. The Node must advertise resource-input support.</p><p>Each model is an independent connection. The form offers <strong>Codex</strong>, <strong>ChatGPT plan authorization</strong>, <strong>X subscription OAuth (experimental)</strong>, <strong>OpenAI Responses</strong>, and <strong>Anthropic Messages</strong> as connection types. For Codex, select an existing Codex credential. Enter or edit the model ID directly: there is no catalog picker, and the ID need not appear in the credential's live model catalog. Changing credentials preserves the entered model ID; the display name remains editable. The live catalog is loaded only when you explicitly choose <strong>Load model catalog</strong> for bulk import. Codex uses its fixed service endpoint. OpenAI Responses and Anthropic Messages use an explicit Base URL and inline API key. A new model starts with <code>256000</code> context tokens and <code>32000</code> maximum output tokens; switching connection types preserves compatible fields, including the model ID, token limits, capabilities, reasoning efforts, and model purposes. Switching between OpenAI Responses and Anthropic Messages keeps the inline API key and custom Base URL; only default addresses change with the protocol. A temporary switch to OAuth and back also preserves the entered key and custom address. OAuth uses fixed endpoints, and an incompatible OAuth type requires selecting another credential. Editing retains saved values; existing keys are not returned to the browser, and leaving the key blank keeps the saved key. Catalog imports preserve limits explicitly supplied upstream. A missing context limit is prefilled with <code>256000</code> and can be edited before import; a missing maximum output limit defaults to <code>32000</code> (reduced to stay strictly below smaller context windows). Image input, session title generation, Code Mode, Hosted Web Search, Responses continuation, selectable reasoning efforts, and the default reasoning effort are maintained on the model form; transport selection is available for every Responses connection type. When a regular Workspace session or hosted conversation needs a generated title, MAR Agent uses the first enabled available model with <strong>Session title generation</strong> selected, following model order; if none is selected, it falls back to the conversation's current model. The default reasoning effort is always required. Even when no reasoning choices are exposed to users, MAR Agent uses that default internally. For Grok models without configured reasoning choices, unsupported reasoning parameters are omitted on the wire.</p><p>Select <strong>Duplicate</strong> in a manageable model’s actions to open a prefilled creation form with a copy suffix in its default name. You can change configuration, credentials, and ownership before selecting <strong>Save</strong>; cancelling creates nothing. Unless replaced, the inline key or compatible OAuth reference is reused securely by the Server without returning secrets to the browser. The new model has an independent configuration ID and is appended to the list; access grants and test results are not copied. Duplication requires management permission on the source, and the new ownership and credential scope are checked again when saving.</p><p>Responses models, including inline API keys, can select WebSocket, HTTP/2, or HTTP/1.1 (X subscription supports WebSocket and HTTP/1.1). A failed selected transport does not silently switch protocols. HTTP and WebSocket both allow server-side continuation; switching transport preserves the checkbox. Only HTTP requests with continuation enabled send <code>store:true</code>. HTTP with continuation disabled and all WebSocket requests send <code>store:false</code>; there is no separate storage setting. With HTTP continuation enabled, the initial request and full-history replays after an invalid reference also ask the upstream to retain responses; consult its retention policy. Enable continuation only when the upstream supports it. A missing or expired response reference triggers one full-history replay within the request attempt budget, provided no semantic output has been committed; authentication, rate limits and unrelated errors are not treated as expired references. Adapter restarts and changed core prompts also replay full history. HTTP continuation requires a Node advertising the corresponding capability. Anthropic Messages prompt caching is managed automatically without this setting.</p><p>New model creation and OAuth catalog import both offer <strong>Personal / Organization</strong> ownership to enterprise administrators. Ownership is independent of credential scope: choosing an enterprise credential does not automatically share the model. Create an organization-owned model and then use its authorization action to share it with users, organizations, or the enterprise. Personal models have no authorization action. Editing an existing model shows its ownership without changing it; recreate or import it with organization ownership when sharing is needed. The model list shows the complete manageable set without pagination. Editing, testing, refreshing, and deleting reload the complete current result.</p><p>MAR Agent performs bounded retries for eligible transient connection, service-overload, or model-stream failures. The initial request and retries share a maximum of 5 attempts (the initial request plus up to 4 retries). Recovery after output preserves completed context without resetting that count. After 3 minutes without generation progress, the current model request is cancelled and enters the same recovery flow; heartbeats and metadata do not extend this deadline. The timer excludes client-tool execution and human waits. Requests that keep making generation progress have no overall hard time limit.</p><p>Responses retries start a fresh model-service request using the current full context, without the old routing or server-side continuation state. WebSocket retries open a new connection but do not create a new user session or run. Normal tool follow-ups keep their current routing and continuation state. If a model request exhausts its retry budget, the conversation error shows the total attempts and retries while preserving the final cause. A tool follow-up round or later user-initiated run starts again at attempt 1; failure recovery itself does not reset the count.</p><p>MAR Agent does not impose a cumulative token budget or model-round limit on a run, or force finalization based on cumulative usage. Long tasks can continue after Context GC or Compact; context-window checks, cancellation and model-request timeouts still apply. Provider plan, account and request limits are unaffected.</p><p>The Workspace session segment heading and its <a href="./../workbench/conversation">Info details</a> show the latest available Latency and average output TPS. Latency updates after the first valid semantic model response. TPS is an end-to-end estimate: the provider's final output token count divided by the elapsed time from starting the model request to receiving its completion. Positive durations under one second are counted as one second. The token count can include hidden reasoning and tool-call arguments. The elapsed time includes the wait for the first response, network time, and hosted tools run within the request, but excludes client tools run outside it. This is not the model's raw generation speed. If final usage or valid timing is missing, or the request is cancelled, no new TPS is published and the previous valid value stays within the same Run.</p><p>Every user can use the <strong>My model order</strong> tab to arrange their authorized models in the model picker. This does not affect other users, the administrator-defined default order, session title generation, or template candidates. Newly available models that the user has not arranged remain after the saved personal order in the administrator-defined default order. System administrators manage that global default in the <strong>Models</strong> tab, which lists a model’s name, connection type, model ID, availability, access, and test status. The list omits credentials and Responses transport; Codex transport remains available in the model editor. Removing a model does not require disabling it first and is not blocked because the model is currently in use. A model request that has already started may finish naturally, while later attempts to use the removed model fail because it no longer exists. Select <strong>Adjust order</strong>, drag the handle at the start of each row, then select <strong>Save order</strong> to persist the complete order and leave sorting mode. <strong>Cancel</strong> restores the order from before editing.</p><p>After saving, select <strong>Test</strong> and choose an online Node whose version, runtime-credential capability, and transport support match the model. The Node performs a real minimal request without creating a Workspace Session or Run. The test dialog stays open after success or failure and shows the result, code, HTTP status, message, Server request ID, and—when the Node provides upstream details—the upstream request ID, content type, <code>Retry-After</code>, and response body as selectable plain text. The bounded body may include a truncation notice; HTML is never rendered. Starting another test or changing the model or Node clears the previous result. A failed test still shows the normal error notification, while the diagnostic details remain in the dialog. Lists and test results never reveal API keys or OAuth tokens. Leaving an existing inline key or Codex credential selection blank while editing preserves it. Models remain system-administrator managed, while Codex credentials are managed by the users or administrators allowed by each credential scope.</p><p>For Codex (legacy) and ChatGPT models, <strong>Speed</strong> offers <strong>Default / Fast / Ultrafast</strong>. The standard Responses <code>service_tier</code> parameter is saved with the model and applies to HTTP and WebSocket requests. Existing Fast settings become Fast; other existing models and new imports start with Default. Availability and usage or charges depend on the upstream model and account; unsupported options are not silently downgraded. The standalone CLI retains <code>--fast-mode</code> and <code>--no-fast-mode</code> as compatibility options.</p><h2 id="conversation-and-auxiliary-models" tabindex="-1">Conversation and auxiliary models <a class="header-anchor" href="#conversation-and-auxiliary-models" aria-label="Permalink to "Conversation and auxiliary models""></a></h2><p><strong>Conversation model</strong> is checked by default in the model form. Only enabled models with this option checked appear in work-mode and hosted-conversation Composers, Subagent choices, and template main-model choices. Uncheck it to reserve a model for dedicated Compact, session title generation, and prompt prediction. Configure each auxiliary use separately; model and credential permissions still apply. Conversation models can also serve these auxiliary uses. The enabled and session-title switches remain independent.</p><p>Models for MAR Agent child sessions must also have <strong>Subagent support</strong> enabled. A child session's model selector shows only currently available models enabled for both uses; the list is empty when none qualify. This switch does not restrict the main session's model choices.</p><p>Existing models retain conversation use, and new or catalog-imported models enable it by default. Changes do not interrupt executions already in progress. Later sends, continuations, or explicit selections using a model that no longer permits conversation use are rejected; select an available conversation model to continue. Conversation history is preserved.</p><h2 id="prompt-tab-model" tabindex="-1">Prompt Tab model <a class="header-anchor" href="#prompt-tab-model" aria-label="Permalink to "Prompt Tab model""></a></h2><p>Under <strong>Admin → MAR Agent Models → Advanced → Prompt Tab</strong>, save the global switch, model, and reasoning effort independently of Compact. The capability defaults to enabled without a preselected model. Users still need model and credential access and can control <strong>Composer Prediction</strong> under <strong>Settings → Appearance</strong> (on by default without a saved preference; an existing Off choice is preserved; Work mode only, saved immediately in the current browser). All four Work-mode Agents are supported. Node uses the MAR Agent SDK's standalone model interface with a result-tool schema to receive prediction data, without creating an Agent session or executing tools. See <a href="./../workbench/composer#prompt-tab">Prompt Tab</a> for interaction and data scope.</p><h2 id="dedicated-compact-model" tabindex="-1">Dedicated Compact model <a class="header-anchor" href="#dedicated-compact-model" aria-label="Permalink to "Dedicated Compact model""></a></h2><p>System administrators configure the enable switch, an existing model, and reasoning effort under <strong>Admin → MAR Agent Models → Advanced → Compact</strong>. The setting applies system-wide; it is not on the System Configuration page. Enterprise selection prioritizes root-organization models. It is disabled by default, leaving the current conversation model responsible for compaction. Saved changes apply to subsequent runs, not an active execution.</p><p>Also enable <strong>Unified Compact</strong> in the current execution model’s form to use the system-wide dedicated model. This option defaults off: new, imported, and existing models without the setting keep their original model compaction. Child sessions use their own execution model’s option, not the parent’s. The dedicated summary model itself does not need this option enabled. Changes apply to subsequent executions. Older Nodes without support conservatively keep original model compaction.</p><p>The Node extension always uses a high-density Textual Continuation IR prompt; there is no standalone CLI flag. IR headings and keys use English, while natural-language values may follow the task language. Default compaction and fallback use the Core structured handoff prompt. The dedicated model generates an internal continuation summary without tools or changing the main conversation model. Both Workspace sessions and hosted conversations still require the execution user's model access and credential scope; enabling this setting grants neither. If the estimated input exceeds the dedicated model's window, the first request trims it to 90% of that window, potentially omitting older or lengthy evidence. An unavailable model, remaining context overflow, or failed generation falls back to default compaction with the current model. There is no second capacity-trimming retry of the dedicated model. Cancellation or the total compaction deadline does not trigger fallback. The summary is used for continuation, not displayed as public chat text.</p><p>MAR Agent schedules automatic compaction from the latest same-model context-input usage: at 85%, it generates a candidate in the background while the current task and tools continue; at 90%, it waits for that same compaction before the next model request. The conversation timeline updates one item through background generation, waiting, completion, failure, or cancellation. Background compaction does not end the active task or expose its private handoff summary. Messages and tool results produced after the snapshot remain after the compacted prefix. After a successful compaction, if a tail was retained, the Context indicator stays unknown until a foreground model request reports authoritative usage; with no retained tail, the existing <code>0 / window</code> reset baseline remains. Background Compact usage still counts toward costs but never replaces foreground context usage, Latency, or average output TPS.</p><p>Smart Compact is a separate system-wide switch in the same <strong>Admin → MAR Agent Models → Advanced → Compact</strong> panel, and is off by default. It does not require enabling or selecting the dedicated Compact model. When enabled, with a valid same-model input watermark of at least 60% and below 90%, the runtime allows the main model to consider whether prior detailed context has low continuation value and request the same background compaction earlier. It does not trigger for every topic change or one-off question, and it is not a guarantee that all history will fit without loss. Missing or invalidated usage skips this optional opportunity. Turning Smart Compact off disables only this optional early compaction; it does not affect manual Compact or the fixed 85%/90% automatic capacity safeguards. No Enterprise license is required, and the SDK and CLI use the same mechanism. Existing manual Compact controls and status displays are unchanged. Older Nodes without the <code>smartCompactControl</code> capability retain their existing behavior while the switch is on; with the switch off, they cannot guarantee that behavior is disabled and reject conversational and actual Plan executions with <code>CAPABILITY_VERSION_UNSUPPORTED</code>. Upgrade the Node to use the off setting. Manual Compact and commands that only toggle Plan state remain available.</p><h2 id="chatgpt-plan-authorization" tabindex="-1">ChatGPT plan authorization <a class="header-anchor" href="#chatgpt-plan-authorization" aria-label="Permalink to "ChatGPT plan authorization""></a></h2><p>The <strong>OAuth credentials</strong> tab lists <strong>Codex (legacy)</strong>, <strong>ChatGPT plan authorization</strong>, and <strong>X subscription</strong> in one table. To add a ChatGPT credential, select <strong>ChatGPT plan authorization</strong> and an online Node on the computer running your browser. The Node must support local sign-in. Open its local sign-in link and complete authorization on OpenAI's page. A remote Node cannot receive this browser's loopback callback; cancel and select the local Node instead.</p><p>The local Node is only a temporary sign-in provider. Server stores the credential and owns token refresh. Other authorized remote Nodes can share it without signing in themselves. Personal, organization, and enterprise scopes use the same management and model-use permissions as Codex credentials. Reauthorization also needs a local Node and reuses the issued client ID. Cancellation or failure leaves the existing credential intact.</p><p>Models use the fixed public OpenAI Responses endpoint, not the legacy Codex backend. HTTP/1.1, HTTP/2, and WebSocket are supported. HTTP and WebSocket can use <code>previous_response_id</code> for incremental user and tool turns; WebSocket additionally requires one healthy connection. Reconnects or adapter rebuilds replay the necessary full history. Image generation with this credential is not supported. An optional SOCKS5 proxy applies to Node sign-in, Server refresh and catalog requests, and inference on execution Nodes.</p><p>A successful identity sign-in without plan-use permission is retained as <strong>Unauthorized</strong>. It cannot load models or run inference: sign in again and grant plan usage. This is not token expiry and never switches automatically to API-key billing. Legacy Codex private usage queries are unavailable for the new type. Its account identifier comes from verified identity; provide missing context-window limits when importing models. Tokens are never returned to the management page.</p><p>Select <strong>Manage usage</strong> in a ChatGPT credential's <strong>Details</strong> to open <a href="https://chatgpt.com/settings/usage" target="_blank" rel="noreferrer">ChatGPT Settings → Usage</a> in a new tab, review plan or app limits, and adjust available settings. Make sure ChatGPT is signed in to the account associated with that credential. For <code>subscription_sharing_usage_limit_exceeded</code>, the chat error message explains the usage limit and asks you to open <code>https://chatgpt.com/settings/usage</code> in plain text, without an additional button or interactive link. Other HTTP 429 errors are not treated as exhausted plan usage.</p><h2 id="x-subscription-oauth-experimental" tabindex="-1">X subscription OAuth (experimental) <a class="header-anchor" href="#x-subscription-oauth-experimental" aria-label="Permalink to "X subscription OAuth (experimental)""></a></h2><p>Under <strong>OAuth credentials</strong>, choose <strong>Add OAuth credential</strong>, select <strong>X subscription OAuth (experimental)</strong>, and enter a name, ownership, and optional SOCKS5 URL. Open the displayed xAI authorization page and enter the device code; no local Node is required. Check the authorization page and selected account before approving. The shared public OAuth client may appear as Grok Build. Inference access depends on upstream account and subscription eligibility; neither a payment amount nor a successful sign-in guarantees model access.</p><p>Use <code>socks5://[username:password@]host:port</code>, URL-encoding special characters. The same proxy applies to Server device authorization, token exchange, identity, refresh, catalog, usage and revocation requests, and to model requests from the execution Node. Proxy failures never fall back to a direct connection. Both Server and the execution Node must reach the proxy; <code>127.0.0.1</code> on a remote Node is not the Server's localhost. The browser authorization page uses the browser's own network, not this proxy. You can edit or clear the proxy later and inspect its full URL in credential details; do not share screenshots containing proxy passwords.</p><p>After signing in, load and import the catalog, or create a Grok model, select the credential and enter a model ID. Inference uses <code>https://cli-chat-proxy.grok.com/v1</code> with a choice of WebSocket or HTTP/1.1 SSE; new models and catalog imports default to HTTP/1.1 SSE. Responses continuation is off by default, so both transports send full history. You can manually enable <code>previous_response_id</code> with either transport. Support depends on the upstream and account; enabling the setting is not a compatibility guarantee. Transport and continuation support on the subscription proxy are not guaranteed. A missing reference falls back once to full history; other failures retain diagnostic details. Speed tiers, HTTP/2 and image generation are unavailable for this connection. Models still use the X subscription OAuth credential, not a developer API key; catalog, identity and usage queries remain on the subscription proxy. Upgrading Server moves subscription models mistakenly configured with the developer API URL back to the subscription proxy while preserving other settings and clearing old model test results. Hosted Web Search can be toggled on the model form; new models and catalog imports enable it by default. Existing models keep their saved value; edit, enable the checkbox and save to turn it on. Re-importing creates independent models rather than modifying existing ones. The execution Node must advertise support for the new Responses parameter capabilities; otherwise upgrade Node.</p><p>Choose <strong>Query usage</strong> in credential details to manually load the current used/remaining percentage, weekly/monthly period, reset and query times, and the separate additional USD balance. Missing values display as a dash, not zero or unlimited. MAR does not estimate remaining tokens or display nonexistent token totals. A failed usage query does not imply inference is unavailable. Usage is not polled automatically and is cleared when details close. Upstream accounts may have additional paid balances; MAR does not top up or change billing settings and does not guarantee that subscription calls never incur extra charges.</p><p>Server stores and refreshes tokens; the execution Node receives only short-lived access credentials. Sign in again when authorization expires. Deleting an unreferenced credential attempts to revoke its upstream refresh token and reports revocation failure. This integration depends on a changeable subscription proxy protocol and is not recommended for production tasks requiring a stable SLA.</p><h2 id="configure-codex-credentials-and-the-model-catalog" tabindex="-1">Configure Codex credentials and the model catalog <a class="header-anchor" href="#configure-codex-credentials-and-the-model-catalog" aria-label="Permalink to "Configure Codex credentials and the model catalog""></a></h2><p>Every user can open <strong>Admin → MAR Agent Models</strong> for <strong>My model order</strong> and the Codex credentials they may manage; only system administrators see the <strong>Models</strong> tab used to configure models. A regular member can create only a personal credential. An organization administrator can also select an organization in their managed subtree, and a system administrator can select an organization or the entire enterprise. A personal credential is visible only to its owner, an organization credential is visible only to system administrators and organization administrators whose managed subtree covers it, and an enterprise credential is visible only to system administrators. Select <strong>Add OAuth credential</strong> and choose <strong>Codex (legacy)</strong>, enter a name, scope, and optional SOCKS5 proxy, then start device sign-in. This proxy applies only to Codex OAuth requests, model-catalog requests, and Codex model requests that reference this credential. The system polls automatically at the Server-provided interval, and you can select <strong>Refresh sign-in status</strong> while waiting to query immediately. A credential is stored only after sign-in, token exchange, and account validation all succeed. Cancelled, failed, or expired attempts create no credential.</p><p>The credential list and Details show the current access token expiry and the earliest refresh time supplied by ChatGPT. An unknown earliest refresh time appears as a dash; neither timestamp is the refresh token expiry. While refresh authorization remains valid, Server renews near-expiry tokens automatically. Nodes also renew access tokens and runtime tickets during long tasks without waiting for another model call, with bounded retries after temporary failures or unchanged near-expiry tokens. Persistent disconnection or invalid credentials still require recovery or sign-in. Manual refresh can request renewal before that time; the upstream response decides whether renewal succeeds. Automatic renewal still respects the earliest refresh time. Actual renewal immediately updates the list and open Details with the new expiry, earliest refresh and last-refresh time. The action column provides <strong>Details</strong>, <strong>Edit</strong>, <strong>Test</strong>, and <strong>Remove</strong>. <strong>Edit</strong> can change the name, scope, and SOCKS5 proxy. Narrowing a credential scope is rejected while an existing model grant remains outside the proposed scope; narrow those model grants first. Details fetches that credential separately, displays the complete SOCKS5 URL verbatim, and provides refresh, sign-in-again, query-usage, and model-catalog actions. <strong>Query usage</strong> displays lifetime tokens, usage on the previous Los Angeles day, the total for seven consecutive calendar days, the current used percentage and reset time for each quota window, and the query time. The previous day’s date and UTC offset appear in smaller text below its usage value. If no bucket exists for yesterday, that date still appears while usage shows a dash; an older bucket is never substituted. A bucket for the current Los Angeles day remains excluded from the seven-day total. Statistical days roll over in <code>America/Los_Angeles</code>: <code>UTC-07:00</code> during daylight saving time (15:00 in UTC+8) and <code>UTC-08:00</code> during standard time (16:00 in UTC+8). The system does not poll usage automatically, and closing Details discards both the complete proxy string and the usage result. A credential referenced by a model cannot be removed until that reference is changed or removed. The page never displays custom metadata, imported-model counts, access tokens, refresh tokens, ID tokens, the raw upstream usage response, or a FedRAMP flag.</p><p>Select <strong>Load model catalog</strong> to read the live Codex catalog visible to that credential. Each row shows the reasoning efforts supported by this system, including <code>ultra</code>, the catalog-provided or normalized default effort, and any genuinely unknown upstream efforts. Select the models to import and provide a context window only when the catalog omits it; a missing maximum-output value does not create an input field. The catalog has no availability switch, and imported models are enabled with the catalog default. Configure transport and Responses continuation later in the model view. Every Codex or ChatGPT catalog import creates a new independent model, even for the same credential, upstream model ID, display name, and ownership. Existing models and grants remain unchanged; new models use the import defaults and do not inherit existing settings or grants. If the live catalog changes, the page asks you to review the refreshed catalog before retrying.</p><h2 id="configure-model-access" tabindex="-1">Configure model access <a class="header-anchor" href="#configure-model-access" aria-label="Permalink to "Configure model access""></a></h2><p>New models are <strong>Restricted</strong> by default. Models that existed before this access feature are migrated as <strong>Public</strong>. The <strong>Access</strong> column shows the current state:</p><ul><li>Granting access to the <strong>Entire enterprise</strong> makes the model public.</li><li>Without an entire-enterprise grant, access can be granted separately to users or organizations and the model remains restricted.</li><li>System administrators can always manage every model regardless of model-grant records, but actual use still requires the user to be inside the bound credential scope.</li></ul><p>Select <strong>Grant</strong> on a model row to view, add, or revoke grants. A model's grant range must be fully contained by the bound credential scope; for example, a credential owned by an organization cannot be granted to a user or organization outside that subtree or to the entire enterprise. A regular user's new-session model catalog contains only redacted models that are enabled, granted to that user, and backed by a credential whose scope contains that user. The main Agent and its subagents receive the same authorized model set.</p><p>Disabling a model rejects subsequent new sessions, messages, and session commands. Revoking a user's grant, moving the user outside the credential's organization scope, rebinding or unbinding the model credential, or making the credential unavailable also causes every subsequent runtime credential resolution to be rejected. Work already accepted by Node and no longer requiring credential resolution is not forcibly terminated. When an existing MAR Agent conversation is opened and its saved model is no longer in the current catalog, Web automatically saves the first available model and switches the reasoning effort to that model's default. If the catalog is empty, Web does not switch to another Agent. A model can be deleted directly without disabling it or waiting for active tasks. Executions that already obtained the configuration can continue, while later model resolution fails as not found.</p><h2 id="sessions-and-permissions" tabindex="-1">Sessions and permissions <a class="header-anchor" href="#sessions-and-permissions" aria-label="Permalink to "Sessions and permissions""></a></h2><p>For tool-based work beyond a quick lookup, MAR Agent is guided to briefly explain its approach before starting. During longer tasks, it shares progress, findings, changes of direction, or blockers when useful to you. These updates appear in the conversation, not after every command or at fixed intervals. To redirect ongoing work, see <a href="./../workbench/composer">sending and steering messages</a>.</p><p>Nodes offer <strong>Auto</strong> and <strong>Full access</strong>. New ordinary work sessions default to Auto; existing sessions retain their saved setting. Entering a Goal never upgrades MAR Auto to Full access. The standalone SDK/CLI still defaults to Full access, and hosted conversations keep their existing isolation and permission policy.</p><p>Auto uses the current model's judgment: routine engineering and explicitly authorized work continue automatically; material risk or unclear authorization produces ask. Deny is reserved for an effective explicit prohibition, higher-priority/Host prohibition, or known extreme danger whose impact cannot reasonably be bounded. Authorization is reused within the same task, target and impact, across tools, retries, turns and subagents; material expansion or withdrawal requires reassessment.</p><p>The session tools <code>thought</code>, <code>todo</code>, <code>sleep</code>, <code>skill_load</code>, and <code>tool_search</code> do not show an Auto <code>permission</code> field to the model. MCP tools found by search still use the ordinary policy.</p><p>For Code Mode, the model is guided to declare ask/deny for the whole outer <code>code_exec</code> call. A nested deny skips only that tool and returns <code>error: MAR_AGENT_PERMISSION_DENIED</code> with a short <code>message</code> in the result data. It does not throw a JavaScript exception or end the cell; check the result before dependent steps. The denied tool is still recorded as failed. Other errors keep their existing behavior.</p><p>Ask waits online through the tool approval card, showing the public reason, command/arguments/code, working directory and expiry. Allow executes the captured original call; concurrent requests are decided separately. After 10 minutes without a decision, the request expires without executing and is not treated as a user rejection. Rejection, expiry and model-declared deny fail only that call; the model can continue within remaining authorization or stop naturally, but must not retry or route around a user refusal. Cancelled, decided or expired cards cannot execute. Goals and schedules retain existing Node policies. Standalone SDK/CLI hosts without an online channel stop on ask; later instructions do not replay the old call.</p><p><strong>Auto is neither an operating-system sandbox nor an independent safety reviewer.</strong> Full access omits Auto self-assessment. Both retain Host path/resource validation and use the Node service account's actual permissions. Use a dedicated low-privilege account and appropriate Workspace and host permissions.</p><p>Native session records are stored under <code>~/.mar/agent/sessions/</code> for the Node service account; Server does not store conversation bodies. MAR Agent supports Plan, Compact, question, MCP, images, and subagents. The model can use the <code>todo</code> tool with <code>action: read | write</code> to read or replace the current session checklist; an empty list clears it. Todo updates appear as checklists, and existing session checklists and history remain compatible. Each subagent is an independent persistent child session with its own history and parent relationship, while the default session list shows only user root sessions. Agent Network supports three levels: root, child, and grandchild; a fourth level is not supported. Continuous tasks use Node's shared Goal workflow and are not reimplemented inside the Agent SDK.</p><p>MAR Agent scans standard Skill directories under HOME and the Workspace and initially gives the model only each Skill's name and purpose. The agent uses <code>skill_load</code> when it needs a Skill; users do not need to name it. The tool adds guidance to the model's context rather than printing it as tool output. Context GC keeps the latest loaded version of each Skill, while Compact clears loaded guidance so the agent can load it again if needed. Workspace Skills take precedence over same-named user Skills, followed by SDK built-ins. Project guidance cannot change tool parameters or host permissions.</p><h3 id="command-environment" tabindex="-1">Command environment <a class="header-anchor" href="#command-environment" aria-label="Permalink to "Command environment""></a></h3><p><code>exec</code> enables login initialization by default. Bash reads the first readable file in its native order: <code>~/.bash_profile</code>, <code>~/.bash_login</code>, then <code>~/.profile</code>. It also loads a readable <code>~/.bashrc</code> when <code>BASH_ENV</code> is unset or empty. PowerShell loads its native startup configuration by default. These files belong to the Node service account, not the browser user. Configuration is read on every command start; hosted conversations read only files visible inside their isolated environment, never the host account's configuration.</p><p>To skip login initialization, ask the Agent to use <code>exec({ command: "…", login: false })</code>. A login Shell is still noninteractive. If a toolchain PATH appears after a noninteractive <code>return</code> in <code>.bashrc</code>, put that shared environment configuration in a login profile or before the early return. MAR does not bypass that guard, and an <code>export</code> in one command does not update Node or subsequent independent commands.</p><h3 id="advanced-subagent-control" tabindex="-1">Advanced subagent control <a class="header-anchor" href="#advanced-subagent-control" aria-label="Permalink to "Advanced subagent control""></a></h3><p>Node Agent Network does not impose the old 16-child creation or concurrency limits. The independent SDK Subagent extension retains its own admission policy.</p><p>The collaboration tools are <code>agent_start</code>, <code>agent_send</code>, <code>agent_wait</code>, <code>agent_stop</code>, <code>agent_list</code>, and <code>agent_view</code>. <code>agent_start</code> takes a text task and a nonblank title and returns an <code>agentId</code> without waiting for completion. It creates a direct child by default. Use <code>relation: "peer"</code> for an independent Session that does not automatically report back; wait or send a message using its returned Agent ID. Peers can use an authorized, enabled conversation model; children also require Subagent support. Both follow the same automatic whiteboard-sharing rules. See <a href="./../operations/marctl">marctl</a> for the CLI equivalent.</p><p><code>agent_send</code> can deliver a text message, update a Goal, or decide an approval for an authorized session; its delivery intent can replace the current execution. <code>agent_wait</code> defaults to waiting 30 seconds for direct children to finish; <code>waitMs=0</code> reads a snapshot and positive values use the requested duration. <code>agent_stop</code> takes only the session ID, stops its current execution, and clears its Goal; list and view discover authorized sessions and their status.</p><p><code>agent_view</code> accepts only <code>agentId</code> and returns state, the current Goal, and bounded recent activity without Run or Execution IDs and without reading session history. Use the separate <code>marctl agents history <session-id></code> command for paginated records when needed. <code>marctl agents view</code> follows the same state-query boundary.</p><p>If the target is idle and has no current or retained execution, <code>agent_wait</code> reports <code>AGENT_IDLE</code> with “Agent is idle; there is no execution to wait for.” This does not mean the session is missing or the task failed. An idle session with a retained terminal execution still returns that execution's result. An untargeted wait with no children reports <code>AGENT_WAIT_NO_TARGETS</code>; a missing explicit target reports <code>SESSION_NOT_FOUND</code>. Waiting does not start an idle session.</p><p>Within the same authorized Node and Workspace, messaging, explicit waits, Goals, stopping, approvals, and marctl session settings are not restricted by parent-child relationships. Target Run and queue ownership, model access, and resource authorization still apply. Sending does not establish automatic subscriptions to unrelated sessions.</p><p>Unread public child messages and new terminal results are delivered automatically before the parent's next normal model request, including direct children created through the native Extension API. The parent need not repeatedly use message waits to check progress. Delivery does not wake an idle parent or postpone a normal final answer: join results required for delivery before finishing, and use <code>agent_wait</code> when genuinely blocked. Automatic delivery and model waits share their observation position, so subsequent waits do not repeat already delivered message bodies or terminal evidence. Child content is context to verify, not new user instructions or authorization.</p><p>Node retains the latest 10 unread updates per parent-child observation relationship across executions. Overflow removes the oldest records, and <code>omittedUpdates</code> reports omissions since the last confirmed observation. This count belongs to the relationship, not to a particular execution. Confirmation clears the delivered notice; full public history remains available on demand. The window does not retain unlimited unread content.</p><p>Node's native <code>agent_send</code> accepts a <code>delivery</code> parameter of <code>STEER</code> or <code>QUEUE</code>. Messages with text default to <code>STEER</code>, including <code>marctl agents send <id> -m <text></code> from other Agents. Goal-only updates and approval decisions do not involve message delivery. Prefer STEER for timely communication; reserve QUEUE for deferred input explicitly requested by the user or recipient. It is consumed after current work and earlier queued inputs finish, and with an active Goal it is not consumed until that Goal exits. Acceptance does not guarantee immediate processing.</p><p>An accepted message normally needs no separate receipt acknowledgment, request for one, or immediate Session view just to confirm receipt. Parent and child Agents should preferably advance meaningful, non-overlapping work in parallel; waiting is generally useful once no other local task work remains and a required result is needed to unblock or finish. Necessary results, clarification, blockers, conflicts, and decisions still belong in the collaboration.</p><p>Native <code>agent_list</code> accepts only <code>scope</code>, an optional title fragment <code>query</code>, and <code>limit</code>. Omit <code>scope</code> or choose <code>tree</code> to list the current session's containing collaboration tree, including registered, authorized roots, ancestors, peers, and descendants; idle sessions and sessions with completed executions remain visible. Choose <code>active</code> for running or sleeping sessions in the current Workspace. Recent conversations, enabled Goals, and nonempty queues do not imply activity. Reuse known session IDs directly; titles do not automatically select or route to a target.</p><p><code>query</code> filters titles within the selected scope, ignoring surrounding whitespace and case and normalizing compatibility characters such as full-width letters. <code>limit</code> defaults to 10 and cannot exceed 100. Results contain <code>scope</code>, <code>currentAgentId</code>, flat <code>sessions</code>, and <code>truncated</code>; each entry contains only <code>id</code>, <code>parentSessionId</code>, <code>title</code>, and <code>status</code> (<code>RUNNING</code>, <code>SLEEPING</code>, or <code>IDLE</code>). Both scopes put active Sessions first, then sort by recent activity descending; parentSessionId preserves tree relationships. A parent may be absent because of filtering or authorization. No matches produce an empty list; results exceeding limit are marked truncated, without a cursor or pagination. Narrow the scope with query when needed. Listing does not scan native Agent session histories, resume executions, or establish subscriptions. <code>marctl agents list</code> uses the same arguments and result fields. Without a current Session, a standalone terminal defaults to active with currentAgentId null; explicit tree requires Session context.</p><div class="language-js vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">await</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> tools.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent_list</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">({});</span></span>
|
|
2
2
|
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">await</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> tools.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent_list</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">({ scope: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'active'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, query: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'review'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, limit: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">20</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> });</span></span></code></pre></div><p><code>sleep({ durationMs })</code> provides a bounded delay of 1 to 1800000 integer milliseconds (up to 30 minutes). Accepted user input or an unread public subagent message ends the wait early; messages are then automatically injected and marked read through the normal path, without repeated wake-ups. It does not monitor external conditions or wake on process or cell completion; use the corresponding wait for an existing resource. The model always calls <code>sleep</code> directly, never inside a Code Mode cell.</p><p><code>agent_wait</code> selects authorized targets through an <code>agentIds</code> array, including a single target:</p><div class="language-js vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">agent_wait</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">({</span></span>
|
|
3
3
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> agentIds: [</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'a'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'b'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'c'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">], </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// Replace with IDs returned by agent_start.</span></span>
|
|
4
4
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> mode: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'all'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
|
@@ -43,4 +43,4 @@ import{_ as t,o as s,c as a,a3 as n}from"./chunks/framework.BHjrhdiC.js";const u
|
|
|
43
43
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> console.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">log</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(result.status, result.finalAnswer);</span></span>
|
|
44
44
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">} </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">finally</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
45
45
|
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> await</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> agent.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">dispose</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">();</span></span>
|
|
46
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>The example shows only the final result. For incremental events, iterate the execution handle returned by <code>session.run(...)</code> and await <code>result()</code> when finished. A custom Host is responsible for the capabilities and permission boundaries it declares; LocalAgentHost does not replace operating-system isolation.</p><p>Next: <a href="./runner-troubleshooting">Agent or Model Unavailable</a>.</p><p>Image generation and desktop tools are supplied by Node. The standalone SDK/CLI retains general tools and custom Skills but does not include these capabilities by default; other hosts must provide their own integrations.</p>`,
|
|
46
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>The example shows only the final result. For incremental events, iterate the execution handle returned by <code>session.run(...)</code> and await <code>result()</code> when finished. A custom Host is responsible for the capabilities and permission boundaries it declares; LocalAgentHost does not replace operating-system isolation.</p><p>Next: <a href="./runner-troubleshooting">Agent or Model Unavailable</a>.</p><p>Image generation and desktop tools are supplied by Node. The standalone SDK/CLI retains general tools and custom Skills but does not include these capabilities by default; other hosts must provide their own integrations.</p>`,122)])])}const g=t(i,[["render",o]]);export{u as __pageData,g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,o as s,c as a,a3 as n}from"./chunks/framework.BHjrhdiC.js";const u=JSON.parse('{"title":"Configure and Use MAR Agent","description":"","frontmatter":{"title":"Configure and Use MAR Agent","lastUpdated":"2026-11-
|
|
1
|
+
import{_ as t,o as s,c as a,a3 as n}from"./chunks/framework.BHjrhdiC.js";const u=JSON.parse('{"title":"Configure and Use MAR Agent","description":"","frontmatter":{"title":"Configure and Use MAR Agent","lastUpdated":"2026-11-27T00:00:00.000Z"},"headers":[],"relativePath":"en-US/runners/mar-agent.md","filePath":"en-US/runners/mar-agent.md"}'),i={name:"en-US/runners/mar-agent.md"};function o(r,e,d,l,c,h){return s(),a("div",null,[...e[0]||(e[0]=[n("",122)])])}const g=t(i,[["render",o]]);export{u as __pageData,g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as s,o as t,c as n,a3 as o}from"./chunks/framework.BHjrhdiC.js";const u=JSON.parse('{"title":"Create and Manage Sessions","description":"","frontmatter":{"title":"Create and Manage Sessions","lastUpdated":"2026-11-27T00:00:00.000Z"},"headers":[],"relativePath":"en-US/workbench/sessions.md","filePath":"en-US/workbench/sessions.md"}'),a={name:"en-US/workbench/sessions.md"};function i(r,e,d,l,h,c){return t(),n("div",null,[...e[0]||(e[0]=[o('<h1 id="create-and-manage-sessions" tabindex="-1">Create and Manage Sessions <a class="header-anchor" href="#create-and-manage-sessions" aria-label="Permalink to "Create and Manage Sessions""></a></h1><p>On Nodes that advertise grouping, <strong>Main Sessions / Child Sessions</strong> separates the session list and defaults to Main Sessions. Sessions with a parent relationship appear under Child Sessions; sessions without one appear under Main Sessions. Search and pagination stay within the selected group. Switching groups does not close the conversation or interrupt work. Each Workspace remembers its group for the current page only; reloading defaults to Main Sessions. A Node without grouping capability retains the mixed list.</p><p>Group tabs show only their names and selected state, without running counts or unread badges. Clicking a tab only switches the list; it does not open a session. Individual session rows retain their running and unread indicators. Notifications, recent-session items, and Workspace tabs synchronize Main / Child Sessions when they open a target session.</p><p>Click or tap the conversation title to share or rename the session, view its collaboration network, or manage its prompt and scheduled task where supported. Use the session list's More menu to pin, reorder, or delete it. <strong>Copy session ID</strong> is available from the title and list menus; the ID is not shown in the header.</p><p>Open the <strong>Collaboration Network</strong> dialog from the icon beside the title, the title menu, or the list menu. Open it from any level in Main or Aside to see that session’s ancestors, siblings, and other connected branches. The opening session sets the initial focus. Large networks show a notice if the display limit is reached. Solid arrows point from parent sessions to their children; dashed lines indicate a currently shared whiteboard. Whiteboards are not nodes. The graph automatically scales and centers the current session. Use the mouse wheel or zoom buttons to zoom from 10% to 100%, and drag to pan. On a phone, drag with one finger or pinch with two fingers to zoom. The right panel starts with the current session’s whiteboard. Select a node to see its own board, or select a dashed line to highlight the relationship and see its shared board. Select a node again to return to that session’s own board. Board entries and recent changes are shown directly and cannot be edited. Use a session node’s <strong>More</strong> (···) button or right-click the node to open that session in Main or Aside. Closing the dialog leaves the current session unchanged. Older Nodes without network support continue to open the session tree from the same entry points.</p><p>A session can be open in both the main work area and Aside. Opening either side does not close the other, and reopening the same location does not refresh its conversation. Each Workspace keeps independent Main and Aside drafts for message text, skill tags, and references. Switching sessions or starting a new session on one side preserves its input; switching Workspaces restores that Workspace's draft for each side. Even the same session has independent input on both sides, while concurrent duplicate submissions are still prevented. Queued-message edits remain bound to their original session. Closing an Aside session tab stops displaying the conversation there; it does not end the Agent's task, delete the session, or close the main work area.</p><p>In work mode, closing a Workspace preserves its drafts in the current browser tab for reopening. Signing out or losing authentication clears that tab’s saved input drafts and queued-message edits so another account cannot restore them. Save important unsent content elsewhere first. This does not delete messages already sent or queued.</p><p>Aside keeps at most one session tab per Workspace. Opening another session replaces the previous session tab while preserving Aside's current input and leaving the previous session's task running. Tool tabs such as Files and Terminal are unaffected.</p><p>Agent operations and messages from other sessions appear in the <a href="./conversation">Agent collaboration</a> group inside the work process. The group does not provide session shortcuts. To view a target session, send a message, or stop its run, open it from the session list or collaboration network. Normal session permissions still apply.</p><p>When an Agent sends a message or sets a Goal on an ancestor session that has ended or is stopping, the operation returns <code>AGENT_ANCESTOR_NOT_ACTIVE</code> without restarting it. Sending works again once the ancestor is running. Users can still resume sessions manually.</p><p>Expand an execution record to inspect the available command or code, output, working directory, exit code, and status. Each call has its own record. <strong>Copy public record</strong> copies that record's available public information, which can be truncated; older Nodes may provide fewer details.</p><p>A regular work session must execute in the selected Workspace's valid root or a subdirectory. An independently registered Git worktree uses its own Workspace. Node rejects new execution if the directory disappears, the registered root is replaced, or a link escapes the Workspace; it does not silently switch directories. If queued messages are paused for this reason, restore a valid directory and use <strong>Resume</strong> in the queue. Messages and attachments are retained and can still be removed through the existing queue controls. This check does not make work mode a host filesystem sandbox or change hosted-conversation isolation.</p><p>When there is no session to restore, the main work area shows a new session draft, even if the list contains previous sessions. Start typing or select an existing session from the list. A new session is created only when its first message is accepted. On supported Nodes, selecting <strong>New Session</strong> or using its shortcut switches the list to Main Sessions. Manually switching groups afterward does not change the Composer draft.</p><p>The session list initially loads up to 30 sessions. Scrolling near the bottom automatically loads up to 30 more; search results continue in the same way. New sessions remain visible in the current list. A small ring marks the pending page. A failure preserves the loaded sessions and pauses automatic loading; select <strong>Failed to load. Retry</strong> at the bottom to continue. Retrying shows only the ring.</p><p>An initial or earlier-history load failure does not trigger repeated automatic requests. Select <strong>Failed to load. Retry</strong> in the conversation to read again; loading and retrying show only a ring. The same failure does not also produce a popup. The retry control's supplementary hint retains available error codes, details, and request identifiers. Established realtime subscriptions have bounded recovery, and reconnecting the page rebuilds subscriptions. These read or subscription recoveries never rerun an Agent task.</p><p>A conversation turn can contain several collapsible <strong>Work processes</strong>. Public reasoning text, tool calls, and file operations appear in their actual order; Agent replies, approvals, and questions remain outside these groups. The active process opens by default and collapses when finished; your manual expansion or collapse takes precedence. Missing public reasoning does not create an empty card, and reasoning text is not an execution status. File details still open in the existing dialog.</p><p>A reasoning preview appears above each process status row and in collapsed reasoning rows. It uses the latest valid public reasoning record within the corresponding scope, whether a summary or visible content, and extracts the first clause of its first non-empty line after removing leading heading or bold formatting. An older summary does not override later reasoning. Long previews use a single-line ellipsis according to the available width. Expand reasoning to read the full original text; a preview does not indicate execution status.</p><p>Scroll upward to the top of the conversation to load earlier messages. Earlier content is inserted above the existing messages while preserving your current message and its position in the viewport, without jumping to the start of the new page. Continue scrolling upward to read the earlier messages. If the top history marker remains in the viewport after the initial load, one additional page loads automatically while preserving your reading position; this does not continue through the entire history. No load button appears while idle, and loading or retrying shows only a small ring. After a failure, select <strong>Failed to load. Retry</strong> without clearing the messages already loaded. Once all history is loaded, no loading control or beginning-of-conversation message appears. <strong>Sending</strong> means the message is being submitted, not that the Agent has started. Activity comes from Node; when no specific action is available, the display says <strong>Running</strong> without inventing a reasoning summary. Run duration uses its start and completion times, including waits and continuation within that Run. Missing reliable timestamps hide the duration; a new Run after a Node restart starts a new clock.</p><p>Use the session list to reopen, rename, pin, reorder, or delete sessions. On supported Nodes, title search can find sessions in the current Workspace even if they have not been loaded into the list. Clear the search to restore the normal list. Search and pagination stay within the selected Workspace. Deleting a session also permanently deletes all of its child sessions at every level. This cannot be undone, but it does not delete Workspace files.</p><p>Working sessions hide Delete. If a session starts working during deletion confirmation, the operation is not submitted. Rename and Pin remain available.</p><p>On supported Nodes, choose <strong>Session Prompt</strong> from an existing session's More menu to save multiline instructions of up to 20,000 characters. Leave it blank and save to clear it. The setting belongs only to that session and survives reopening or a Node restart. It is appended after the sender's shared and Agent-specific personal instructions, without replacing account settings or appearing as an ordinary message.</p><p>Changes do not interrupt the current execution. They apply from the next execution, including queued messages, Goal continuation, and messages sent to that session through marctl. You can also <a href="./../operations/marctl#persistent-instructions-and-approvals">read, set, or clear the prompt with marctl</a>. Clearing stops future injection; it does not remove old instructions already in the Agent's conversation history. Start a new session if you need to isolate old instructions completely. Hosted conversations do not offer this setting.</p><p>Sessions discovered from an external Agent appear normally. Their first message automatically validates and activates a safe continuation path; if validation fails, no Run is created.</p><p>After a Node restarts, sessions may appear in batches. A slower Agent does not delay sessions already found. Sessions keep their custom titles when they reappear in the list.</p><h2 id="clean-up-sessions" tabindex="-1">Clean up sessions <a class="header-anchor" href="#clean-up-sessions" aria-label="Permalink to "Clean up sessions""></a></h2><p>Choose <strong>Clean up sessions</strong> from the current Workspace session list's More menu, enter 1–365 days (30 by default), and confirm. Sessions whose activity predates the selected cutoff and sessions whose activity time is shown as <code>—</code> are included. When evaluated individually, pinned, running, queued, recovering after a restart, or currently viewed sessions are kept. If the scan finishes and the Agent is available but a session is not found, cleanup may remove its list entry regardless of its age. This removes only the list entry, not the contents of the session that was not found.</p><p>Child sessions are evaluated by their own activity times. Deleting a parent also deletes all of its child sessions at every level, even if a child is recent, pinned, queued, or currently viewed. If any child is running or recovering after a restart, the parent is kept. Deleted child sessions are included in the totals.</p><p>Cleanup permanently deletes matching sessions and cannot be undone. It does not delete Workspace files. The dialog shows the actual deleted, skipped, and failed counts, including deletions by Agent.</p><p>If cleanup stops early with sessions left to process, the dialog shows <strong>Cleanup partially complete</strong>. Unprocessed sessions do not count as failures. <strong>Not processed</strong> shows the remaining count when known. Cleanup does not continue in the background; you can run it again. An offline Node or unavailable result still produces an error.</p><h2 id="share-a-work-session" tabindex="-1">Share a work session <a class="header-anchor" href="#share-a-work-session" aria-label="Permalink to "Share a work session""></a></h2><p>Choose <strong>Share conversation</strong> from a regular work session's More menu. Expiration is optional; leaving it blank creates a permanent link. Creation shows share text containing the link and a random six-digit password. Choose <strong>Copy</strong> to copy the entire text. Existing records appear below; you can copy the same complete share text at any time, open their links, or delete them. For older records without a recoverable password, enter the original password once when copying. After verification, future copies work directly; the original link and password remain unchanged.</p><p>The header shows the session title and Workspace name. Visitors enter the password to open a standalone chat without a Console account. Access credentials, the anonymous visitor identity, and the name requested before the first message are saved in that browser and restored after refresh or reopening. The Participants panel lists the sharer first, followed by participants viewing any share link for the same session. Anonymous identity and name are shared across links in the same browser. Use the edit button beside your own visitor name to change it across open share pages. Canceling leaves the name unchanged and does not send a message. Visitor names match message authors and are never merged or hidden by Console sign-in; unnamed visitors appear anonymously. The fixed sharer entry shows the account nickname, falling back to the username. The sharer’s green dot appears only while they have a share page open and disappears when their last page closes. Display names do not grant authorization.</p><p>Visitors see the original session's entire history and future messages. They use its Agent and settings as the sharer, including messages, attachments, file and skill references, queuing, insertion, and interruption. Concurrent control uses the same shared state and mutual exclusion as opening the session in multiple browsers. The share page hides the model, reasoning effort, access mode, and context usage and its tooltip. There is no input prediction or Workspace management area. File links still open read-only previews, including separate file windows and Markdown or HTML rendering. Read-only mode does not prevent HTML scripts from running. Only preview trusted files; see <a href="./files#steps">HTML preview risks</a>.</p><p><strong>Give the link and password only to people you trust.</strong> Signing out as the sharer does not revoke a link; delete its record to stop access. Deletion or expiration immediately disables that link's chat pages and rejects further reads and messages, without stopping already accepted tasks or retracting content visitors have read. Other links and the original Console remain available.</p><h2 id="automatic-continuation-after-orderly-shutdown" tabindex="-1">Automatic continuation after orderly shutdown <a class="header-anchor" href="#automatic-continuation-after-orderly-shutdown" aria-label="Permalink to "Automatic continuation after orderly shutdown""></a></h2><p>In regular Workspaces, MAR Agent can continue after Node receives <code>SIGTERM</code> or <code>SIGINT</code>, finishes an orderly shutdown, and starts again. A later manual start after a normal stop also qualifies. After reconnecting to Server, Node rechecks current user and model authorization before restoring unfinished work, Goals, and the message queue in the same session. A previously paused queue stays paused. New messages and queue changes are temporarily blocked for that session during recovery.</p><p>Ordinary runs show a “System restart continuation” history entry, not a message attributed to manual user input. An active Goal gets one Goal continuation without an additional ordinary continuation. The prompt asks the Agent to inspect the current state after a system restart before continuing. Old tool processes, terminals, approvals, questions, and background cells are not restored, and external actions are not guaranteed to happen exactly once. Queued inputs are prepared again in their original order, including their attachments; old attachment preview URLs are not guaranteed to remain valid.</p><p>Unexpected exits, forced kills, power loss, failed handoffs, other Agents, hosted conversations, and administrator-controlled upgrades are excluded. Lost access, unavailable models, or inputs that cannot be rebuilt never bypass validation; check Node diagnostics and take over manually. A handoff is consumed once, not retried on every startup.</p><h2 id="navigation" tabindex="-1">Navigation <a class="header-anchor" href="#navigation" aria-label="Permalink to "Navigation""></a></h2><p>The session list, Recent Sessions, and Quick Open open sessions in Main. Clicking a notification in the panel, a browser system notification, or an <a href="./navigation">unread Workspace tab</a> keeps an already selected Main session in place. If the session is open only in Aside and Aside can be shown, the jump activates it there without replacing your Main session. On desktop, a brief outline shows where it opened. If the session is not open or Aside cannot be shown, it opens in Main without closing any existing Aside tab. Explicit <strong>Open in Main</strong> and <strong>Open in Aside</strong> actions still use the pane you choose.</p><p>Clicking the selected Workspace tree entry or jumping to an already open session does not explicitly refresh content or reset your reading position. Repeated selections also leave an in-progress load alone. Use the corresponding refresh action when you need updated data.</p><h2 id="scheduled-tasks" tabindex="-1">Scheduled tasks <a class="header-anchor" href="#scheduled-tasks" aria-label="Permalink to "Scheduled tasks""></a></h2><p>Open the calendar-with-check icon beside <strong>Work</strong> to see <strong>Scheduled tasks</strong>, or open it from an existing session's menu to filter the same page to that session. <strong>My schedules</strong> shows tasks you currently own and can still access. <strong>All schedules</strong> includes other tasks you can see. Both pages can be filtered by Workspace; the node name distinguishes Workspaces with the same name. Task cards load 20 at a time. Select a page on desktop, or scroll to the bottom on mobile to load more automatically. Each task card shows its next run. Offline nodes may show only their last synced task summaries; editing and viewing execution records require an online node.</p><p><strong>Session schedules</strong> shows the current session name even if it has no tasks. Select <strong>Back to all schedules</strong> to return to the global list. New schedules created here are locked to this node, Workspace, and session. Opening a conversation notification leaves the schedules page and shows the target conversation.</p><ol><li>Select <strong>New schedule</strong>, then choose an online node, a Workspace, and a run target. Reuse an existing session or choose <strong>Create a session each time</strong> and select an Agent and a fixed model. Selecting a model sets its default reasoning effort, which you can change if the model supports it. Existing sessions use their settings at trigger time. Hosted conversations do not support scheduling.</li><li>Enter a name and a task prompt. In <strong>Run times</strong>, add one row for each clock time. Set it to <strong>Once</strong>, <strong>Daily</strong>, <strong>Weekly</strong>, or <strong>Monthly</strong>. For <strong>Once</strong>, the node suggests the next date for that time; you can change it. Weekly and monthly schedules can select multiple weekdays or days of the month. If a month has no day 31, that date is skipped. Overlapping times within one task trigger only once. Create separate tasks if different times need different prompts.</li><li>Check the upcoming triggers in the displayed Node time zone and save. The task runs as its current owner. Saving an edit or accepting a proposal on the web makes you the owner. Opening, cancelling, or rejecting a proposal does not. Run notifications are off by default. Enable them if you want alerts; turning them off keeps the execution records and does not suppress change-proposal notifications.</li></ol><p>Only one-time schedules can catch up after a missed time, within the wait limit you set. Catch-up is off by default. After upgrading from the old scheduling format, existing tasks are paused until you set new run times. The tasks and execution records are kept.</p><p>On supported nodes, <strong>Run times</strong> also offers <strong>Hourly</strong>. Select minutes instead of a clock time. The default is <code>00</code> (on the hour); selecting <code>15</code> and <code>45</code> runs the task at :15 and :45 past each hour. You can combine it with other rules; matching rules trigger only once in the same minute.</p><p>If you have access to operate the Workspace, click an online task card to edit it, even if someone else created it. Workspace members with access can also delete tasks and resolve proposals. Offline tasks cannot be edited or deleted. If a saved fixed model is no longer selectable, you can keep that target and edit other settings. The model must still be available at execution time. Use the linked session control on an online card to open that session. <strong>Execution records</strong> on a card opens that task’s records without leaving the list. The <strong>Execution records</strong> section in the navigation shows all authorized tasks and can be filtered by Workspace. On desktop, switch pages below the table. On mobile, scroll to the end of the table to load more records. Open a record to see the prompt at trigger time and any recorded start and end times. When you have access to the original run, the details also show its ID and status and let you open the session where it ran. Renaming a task or changing only its prompt does not reschedule it; changing the run times or re-enabling a task recalculates upcoming triggers. <strong>Schedule finished</strong> means there are no more dates, not that every run succeeded.</p><p>A session with an enabled task that still has upcoming triggers is pinned and shows the schedule icon. Pausing, finishing, or deleting a task does not automatically unpin the session. Pausing keeps the execution records; deleting the task removes them. If a trigger is still being processed, pause the task and wait for that trigger to settle before deleting. Deleting the target session pauses its tasks and marks them for rebinding rather than switching them to create new sessions.</p><p>If a task did not run, inspect its execution record. A busy session or an unavailable service can cause a recurring trigger to be skipped without a bulk catch-up. A trigger matching a specific date can wait within the configured limit (0–60 minutes; new tasks default to 0, meaning no waiting). The owner must still have permission at execution time; waiting does not bypass that check. <strong>Outcome unknown</strong> does not prove the task did not run, so verify the run or external result before repeating it manually.</p><p>Scheduled runs automatically approve tool permission requests, including third-party MCP tools; Agent sandboxes and host restrictions still apply, and questions still need user input. In a regular Workspace, MAR Agent uses the built-in <code>marctl</code> skill when available. Without it, or with another supported Agent, the built-in <code>mar_schedule</code> MCP can list, read, create, and update the current session's tasks and read their trigger records. No installation is needed. An update requires the task and its current revision; edits to another user's task become proposals that authorized Workspace members can resolve on the web. For cross-session task management in the authorized Workspace, see <a href="./../operations/marctl#scheduled-tasks">Scheduled tasks with marctl</a>. These tools do not manage system schedulers or CI.</p>',51)])])}const g=s(a,[["render",i]]);export{u as __pageData,g as default};
|
package/web/docs/assets/{operations_marctl.md.C23I-1aM.js → operations_marctl.md.tLIP9Zqx.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,o as a,c as i,a3 as
|
|
1
|
+
import{_ as e,o as a,c as i,a3 as t}from"./chunks/framework.BHjrhdiC.js";const k=JSON.parse('{"title":"使用 marctl 管理节点","description":"","frontmatter":{"title":"使用 marctl 管理节点","lastUpdated":"2026-11-27T00:00:00.000Z"},"headers":[],"relativePath":"operations/marctl.md","filePath":"operations/marctl.md"}'),n={name:"operations/marctl.md"};function o(d,s,p,l,c,h){return a(),i("div",null,[...s[0]||(s[0]=[t(`<h1 id="使用-marctl-管理节点" tabindex="-1">使用 marctl 管理节点 <a class="header-anchor" href="#使用-marctl-管理节点" aria-label="Permalink to "使用 marctl 管理节点""></a></h1><p><code>marctl</code> 是社区版和企业版的节点命令行工具;Node 安装包自带 <code>marnodes</code>、<code>marssh</code>、<code>marscp</code> 入口,仅供 MAR 内部执行上下文使用。它通过 Server 授权列出节点、打开交互终端、执行一次命令或复制文件;不需要 Node 开放 SSH 端口。<code>ssh</code> 是方便记忆的子命令名,<strong>不是系统 SSH 协议</strong>。</p><p>在 Node 上由 MAR 打开的普通 Workbench 终端、Workspace Agent Run 及其本地 MCP 子进程中,这些命令会自动加入 <code>PATH</code>。脚本可用 <code>MAR_NODE_CONTEXT=1</code> 判断 MAR 启动上下文,用 <code>MAR_USERNAME</code> 识别当前 MAR 账号的用户名(不是昵称或系统账号);定时任务使用任务 owner 的用户名。没有可信执行身份时用户名为空,不继承 Node 服务进程的用户名。这些变量只提供上下文信息,不代表已获得节点权限,也不改变托管对话的独立沙箱边界。</p><h2 id="agent-按需加载指南" tabindex="-1">Agent 按需加载指南 <a class="header-anchor" href="#agent-按需加载指南" aria-label="Permalink to "Agent 按需加载指南""></a></h2><p>在具备 marctl 执行上下文的受管 Workspace 中,MAR Agent 使用内建 <code>marctl</code> Skill;Codex、Claude Code 和 OpenCode 使用内建 <code>mar_cli</code> MCP 的 <code>load_guide</code> 工具按需读取同一份指南。服务与工具描述提供简短提示,客户端是否展示服务描述取决于对应 Agent。</p><p>加载指南只返回说明,不执行命令;Agent 仍通过自己的 Shell 工具运行 marctl,必要时查询本地命令帮助。已经加载且仍在上下文中的指南可以直接复用。该入口不增加权限,也不改变协作消息来源或现有定时任务工具。</p><h2 id="查看命令帮助" tabindex="-1">查看命令帮助 <a class="header-anchor" href="#查看命令帮助" aria-label="Permalink to "查看命令帮助""></a></h2><div class="language-text vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">text</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>marctl help</span></span>
|
|
2
2
|
<span class="line"><span>marctl help ssh</span></span>
|
|
3
3
|
<span class="line"><span>marctl ssh --help</span></span>
|
|
4
4
|
<span class="line"><span>marnodes --help</span></span>
|
|
@@ -40,7 +40,7 @@ import{_ as e,o as a,c as i,a3 as n}from"./chunks/framework.BHjrhdiC.js";const k
|
|
|
40
40
|
<span class="line"><span>marctl agents goal get <session-id> --json</span></span>
|
|
41
41
|
<span class="line"><span>marctl agents goal set <session-id> --message-file objective.txt --json</span></span>
|
|
42
42
|
<span class="line"><span>marctl agents goal set <session-id> -m 'Finish the review and verify the fix' --json</span></span>
|
|
43
|
-
<span class="line"><span>marctl agents goal clear <session-id> --json</span></span></code></pre></div><p><code>start</code>、<code>send</code> 和 <code>goal set</code> 可用 <code>-m</code> / <code>--message</code> 直接传文本,也可用 <code>--message-file</code> 读取 UTF-8 文件或 stdin,两种选项互斥。文本中的文件路径指向目标获授权可访问的资源,不会自动上传 CLI 主机上的文件。<code>goal set</code> 拒绝保留目标 <code>--clear</code>;清除目标请显式使用 <code>goal clear</code>。</p><p><code>start</code>
|
|
43
|
+
<span class="line"><span>marctl agents goal clear <session-id> --json</span></span></code></pre></div><p><code>start</code>、<code>send</code> 和 <code>goal set</code> 可用 <code>-m</code> / <code>--message</code> 直接传文本,也可用 <code>--message-file</code> 读取 UTF-8 文件或 stdin,两种选项互斥。文本中的文件路径指向目标获授权可访问的资源,不会自动上传 CLI 主机上的文件。<code>goal set</code> 拒绝保留目标 <code>--clear</code>;清除目标请显式使用 <code>goal clear</code>。</p><p><code>start</code> 在当前工作区创建会话并提交首条消息,支持 <code>mar-agent</code>、<code>codex</code>、<code>claude-code</code>、<code>opencode</code>,以各 Agent 实际支持的能力为准。Agent 内调用时,省略 <code>--runner</code> 则沿用调用方的 Agent 类型。从终端调用时,须指定 <code>--runner</code> 或 <code>--parent</code>;省略 <code>--runner</code> 时继承父会话的 Agent 类型。省略 <code>--model-id</code> 时使用目标 Runner 的默认模型。MAR 横向会话可使用获授权、已启用的对话模型,子会话还要求模型支持 Subagent;默认模型也须满足对应条件。创建会话不会覆盖 Web Composer 已保存的默认模型、思考强度或权限。<code>--message-file -</code> 从 UTF-8 stdin 读取。保存返回的 Agent ID,标题不是唯一寻址身份。</p><p>Agent 内执行 <code>start</code> 默认创建自己的直接子会话;用 <code>--relation peer</code> 创建独立横向会话,不自动向发起方回报。终端未指定 <code>--relation</code> 时,有 <code>--parent</code> 创建子会话,否则创建独立根会话。终端显式使用 <code>--relation child</code> 须指定 <code>--parent</code>;<code>--relation peer</code> 不能与 <code>--parent</code> 同用。旧 Node 不支持时,横向启动会失败,不会改为创建子会话。</p><p><code>list --scope tree</code> 返回当前会话所在协作树,<code>graph <session-id></code> 返回包含根的创建后代树。graph 默认最多 100 个节点,<code>--limit</code> 支持 1..100;结果包含 <code>rootSessionId</code>、<code>nodes</code> 和 <code>truncated</code>,只查询 Node 已知会话,不扫描 Agent 的原生会话历史。父子归属创建后不可修改,不代表权限、当前调度者或任务依赖。删除父会话会删除其后代,不影响独立会话;旧会话不从消息或标题推断关系。</p><p>按任务需要创建会话,标题用 <code>fixer#<任务编号> <描述></code>、<code>reviewer#<任务或变更编号> <描述></code>。没有固定人数、角色注册、会话池;角色、范围和验收条件可放入首条普通消息,持久指令通过 <code>prompt</code> 设置。各 Agent 按上文入口加载指南;目标会话不需要加载该指南才能接受协作消息。</p><p><code>send</code> 有正文时默认使用 <code>--steer</code>,与 <code>agent_send</code> 一致。STEER 可使受管等待提前返回,后台任务继续运行。若无法在当前执行内交付,Node 可能中断该执行以交付新输入。<code>--queue</code> 用于明确要求延后处理的输入:在当前工作及前面的队列项结束后才消费,有活动 Goal 时还需等到 Goal 退出;后来的显式停止仍有效。纯 Goal 更新或审批不涉及消息投递。冲突、重复或旧选项在读取输入或发送请求前本地拒绝。start/send 自动生成 <code>clientMessageId</code>,也可传入 <code>--client-message-id</code>。消息回执在 <code>message.status</code> 和 <code>message.result</code> 中报告接受及投递事实,接受不保证立即处理。消息被接受后,通常无需另外回复或索取收悉确认,也无需仅为确认收到而立即检查历史。投递结果未知时先查看历史再重试;排队消息可通过 <code>queueItemId</code>/<code>clientMessageId</code> 关联。</p><p><code>send --approval <approval-id> --decision approve|reject</code> 可单独决定审批,也可与正文或 Goal 一起提交;Node 仍核验审批有效性和目标归属。单独决定审批无需启动模型请求。</p><p>子 Agent 运行时,建议并行推进有意义且不重叠的工作,不重复委派内容。没有其他本地工作可做,且需要结果解除阻塞或收尾时,再考虑等待。通常简洁交付最终结果即可,无需例行汇报或重复发送完成消息;用户要求的更新、阻塞、范围冲突或待决策信息适合提前沟通。</p><p>Agent 会话中的 <code>start</code> 首条消息和 <code>send</code> 消息会在历史和队列中标注 <code>来自 {name}</code>,使用发送时的名称快照;悬停显示来源为会话及其 ID。网页分享访客消息使用相同的 <code>来自 {name}</code> 标题,悬停显示来源为网页分享;普通用户与分享页面原作者保留原有标题。终端用户直接输入不伪造会话来源。内部来源标记不会出现在消息正文中。</p><p>不带 <code>--run</code> 的 <code>wait</code> 与 <code>agent_wait</code> 一致:省略目标时选择直接子会话,默认等待终态 30 秒;显式指定目标时,即使只有一个,结果也通过 <code>agents</code> 数组返回。<code>--timeout 0ms</code> 读取快照,正数按传入时长等待。<code>stop <session-id></code> 停止目标当前执行并清除 Goal,无需执行 ID;空闲时如实返回 idle,并清除 Goal。<code>wait --run</code> 通过既有 Watch 等待指定 Run 或审批,退出时释放观察;超时错误可附最后收到的有界 <code>progress</code>,没有观察时省略。无论哪种等待,超时或取消等待都不停止任务。Run 成功仍需核验产物与测试;子会话终态不会自动唤醒父会话的 sleep,需主动等待或读取。</p><p><code>view</code> 返回状态、Goal 和有界最近活动,不公开 Run 或 Execution ID。</p><p>只有直接子会话的公开更新会被父会话自动收取。向其他会话 <code>send</code> 不建立订阅;显式 <code>wait</code> 只在本次调用期间监听,不会持续接收其后续更新。</p><p>会话共享文件和 Git 索引,不自动隔离 worktree 或创建 Git 工作流。提交、推送、PR、合并和外部消息仍需相应用户授权。变更结果未知时保留关联 ID,先查状态/历史再决定是否重试,不盲目重发;重启后不保证恢复内存回执或 Run。</p><p><code>--json</code> 只输出一个结果/错误对象,key 和 code 使用稳定英文。退出码:1 失败,2 参数错误,3 授权错误,4 能力不支持,5 超时,6 结果未知,130 取消等待。</p><h2 id="列出节点与执行命令" tabindex="-1">列出节点与执行命令 <a class="header-anchor" href="#列出节点与执行命令" aria-label="Permalink to "列出节点与执行命令""></a></h2><div class="language-text vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">text</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>marctl nodes</span></span>
|
|
44
44
|
<span class="line"><span>marnodes</span></span>
|
|
45
45
|
<span class="line"><span>marctl ssh <node-id></span></span>
|
|
46
46
|
<span class="line"><span>marctl ssh <node-name></span></span>
|
|
@@ -50,4 +50,5 @@ import{_ as e,o as a,c as i,a3 as n}from"./chunks/framework.BHjrhdiC.js";const k
|
|
|
50
50
|
<span class="line"><span>marscp ./artifact.bin <node-id|node-name>:///existing/directory/</span></span>
|
|
51
51
|
<span class="line"><span>marscp <node-id|node-name>:///absolute/path/artifact.bin ./</span></span>
|
|
52
52
|
<span class="line"><span>marscp <node-id|node-name>:///absolute/path/artifact.bin ./artifact.bin</span></span>
|
|
53
|
-
<span class="line"><span>marctl scp linux:///absolute/path/artifact.bin windows://C:\\absolute\\path\\artifact.bin</span></span></code></pre></div><p><code>nodes</code> 仅列出当前授权用户有终端使用权的 Node,首行是节点 ID、名称、在线状态、平台的列标题;<code>ssh</code> 可使用节点 ID,或使用在可访问节点中唯一的精确节点名称(包括离线节点在内进行重名检查)。同名时会拒绝连接并提示使用 ID;ID 与其他节点名称相同时优先匹配 ID。不带命令时打开交互 Shell。带命令时,CLI 按 SSH 的常见形式把节点后的参数传给远端 Shell,显示输出并返回真实退出码,便于 Agent 或脚本判断成功与否;拼接后的命令最多为 64 KiB UTF-8 字节,目标平台或 Shell 可能有更低限制。节点后以 <code>-</code> 开头的参数也是远端命令内容,无需额外的 <code>--</code>。不支持 <code>-t</code>、登录账号、端口、私钥等系统 SSH 选项,也不自动提权。不要在命令中传入密钥。</p><p>CLI 优先尝试既有 Node 直连,建连失败时回退 Server 中继;回退使用同一个终端,不重复创建或执行命令。两种传输方式都由 Server 授权,命令始终以 <strong>Node 服务账号</strong>运行。企业 ADMIN 可以操作自己的个人 Node 和全部组织 Node,但不能使用其他用户个人 Node 的终端。</p><p><code>scp</code> 支持当前机器与有权限的 Node 之间、两个有权限的 Node 之间复制单个普通文件。Node 端点使用 <code><节点ID|节点名称>://<绝对路径></code> 或 <code>节点:<绝对路径></code>,名称须在可访问 Node 中唯一,重名时使用节点 ID;没有节点前缀的路径是本机路径。与标准 <code>scp</code> 一样,已有普通目标文件默认覆盖,无需特殊开关,并保留原目标权限;<code>-p</code> 保留源文件权限及访问/修改时间,<code>-q</code> 不显示进度(默认已不显示)。其他 SCP 参数(包括 <code>-r</code> 和 SSH
|
|
53
|
+
<span class="line"><span>marctl scp linux:///absolute/path/artifact.bin windows://C:\\absolute\\path\\artifact.bin</span></span></code></pre></div><p><code>nodes</code> 仅列出当前授权用户有终端使用权的 Node,首行是节点 ID、名称、在线状态、平台的列标题;<code>ssh</code> 可使用节点 ID,或使用在可访问节点中唯一的精确节点名称(包括离线节点在内进行重名检查)。同名时会拒绝连接并提示使用 ID;ID 与其他节点名称相同时优先匹配 ID。不带命令时打开交互 Shell。带命令时,CLI 按 SSH 的常见形式把节点后的参数传给远端 Shell,显示输出并返回真实退出码,便于 Agent 或脚本判断成功与否;拼接后的命令最多为 64 KiB UTF-8 字节,目标平台或 Shell 可能有更低限制。节点后以 <code>-</code> 开头的参数也是远端命令内容,无需额外的 <code>--</code>。不支持 <code>-t</code>、登录账号、端口、私钥等系统 SSH 选项,也不自动提权。不要在命令中传入密钥。</p><p>CLI 优先尝试既有 Node 直连,建连失败时回退 Server 中继;回退使用同一个终端,不重复创建或执行命令。两种传输方式都由 Server 授权,命令始终以 <strong>Node 服务账号</strong>运行。企业 ADMIN 可以操作自己的个人 Node 和全部组织 Node,但不能使用其他用户个人 Node 的终端。</p><p><code>scp</code> 支持当前机器与有权限的 Node 之间、两个有权限的 Node 之间复制单个普通文件。Node 端点使用 <code><节点ID|节点名称>://<绝对路径></code> 或 <code>节点:<绝对路径></code>,名称须在可访问 Node 中唯一,重名时使用节点 ID;没有节点前缀的路径是本机路径。与标准 <code>scp</code> 一样,已有普通目标文件默认覆盖,无需特殊开关,并保留原目标权限;<code>-p</code> 保留源文件权限及访问/修改时间,<code>-q</code> 不显示进度(默认已不显示)。其他 SCP 参数(包括 <code>-r</code> 和 SSH 专属连接选项)明确拒绝而非静默忽略。已有真实目标目录会自动追加源文件名,不必写完整目标文件名;以分隔符结尾的目录目标必须已存在,不会自动创建目录或误建同名文件。源目录、符号链接源或目标,以及目录内最终路径为目录或符号链接的情况均拒绝;源文件名在接收平台不合法时也会拒绝。完整校验后原子发布,传输失败不会替换原文件;强制终止进程时可能留下临时文件。Node 使用内置程序复制文件,不通过远端 Shell 启动。文件正文复用授权的 Terminal 二进制链路,<strong>不是</strong>系统 SCP 协议。CLI、Server 和 Node 须一起更新;不回退到旧 Shell 启动方式或文本协议。文件访问遵循各 Node 服务账号的权限;路径含空格时需要按本机 Shell 语法加引号。Windows Node 路径可在 <code>://</code> 后使用 <code>C:\\absolute\\path</code>。</p><p>单次 SSH 命令的 stdin、stdout 按原始字节传输,stderr 单独输出;交互式 SSH 仍使用 PTY。</p><h2 id="操作远程桌面" tabindex="-1">操作远程桌面 <a class="header-anchor" href="#操作远程桌面" aria-label="Permalink to "操作远程桌面""></a></h2><p><code>marctl computer <节点> <输出目录></code> 用 Python/PyAutoGUI 操作远程桌面,使用与 <code>marctl ssh</code> 相同的凭据和 Node 使用权。无需管理权,也不限于 Agent 发起;只有工作区使用权不够。目标还须开启 Computer Use 并在本机配置中显式设置 <code>computerUse.remoteEnabled: true</code>。自动化期间不要同时操作同一桌面。</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">mkdir</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -p</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> captures</span></span>
|
|
54
|
+
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">printf</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> '%s\\n'</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> '{"code":""}'</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> |</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> marctl</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> computer</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> linux</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ./captures</span></span></code></pre></div><p>空脚本观察主桌面。要继续操作,保持 stdin 打开,读取返回的 JSON 和 PNG 后,再发一行 Python 请求;依赖截图坐标时,将上一结果的观察 ID 填入 <code>basedOnObservationId</code>。Python 在目标 Computer Use Runtime 执行(不是沙箱),PNG 以新文件名保存在本地。关闭 stdin 或断开连接即释放桌面;结果未知时 CLI 以 <code>OUTCOME_UNKNOWN</code>(退出码 6)结束,不再发送后续脚本。请重新连接并观察,不自动重放。</p><p><code>COMPUTER_CLEANUP_FAILED</code> 表示脚本已执行,但桌面清理失败。不要重跑该脚本。</p><h2 id="长任务与断线" tabindex="-1">长任务与断线 <a class="header-anchor" href="#长任务与断线" aria-label="Permalink to "长任务与断线""></a></h2><p>对同一 Server 和 Node、使用同一 CLI 凭据时,SSH、SCP 和 Computer Use 可复用本机后台进程持有的中继连接。每次调用仍独立附着;前台退出不会保留 Shell 或桌面租约。没有进行中的操作时,连接保留 10 分钟后自动关闭。直连不受影响。</p><p>排查中继问题时,在节点或首个文件端点前加 <code>--no-reuse</code>,例如 <code>marssh --no-reuse <节点> uname -a</code>、<code>marscp --no-reuse ./artifact.bin <节点>:///tmp/artifact.bin</code> 或 <code>marctl computer --no-reuse <节点> ./screenshots</code>。它只让本次调用绕过连接池,不会断开已有连接,也不会禁用 SSH 或 SCP 直连。</p><p>Server 中继不设置固定传输速率上限。发送端逐帧异步写入,并让出事件循环处理其他操作;复制拥塞时暂停相应 pipe 或 CLI 输入,恢复后按顺序继续,不影响直连写者。普通终端持续读取以保留退出前的完整尾部;发送缓冲超限时明确终止对应中继,不静默丢帧或关闭其他终端的共享连接。退出状态不会越过输出,等待写入或确认时仍可中断;成功退出后的正常断线不会被误报为复制失败。无需新增命令参数;慢网络仍可能增加响应时间,这不是主机级带宽隔离。</p><p>连接建立有超时,但附着后的命令没有总运行时长或输出静默超时;保持连接即可等待长任务正常完成。CLI 退出或连接无法恢复时会关闭其创建的终端,不提供断线后的后台任务托管;Node 上已解除附着的终端最多保留 60 分钟。对于必须在断线后持续运行的作业,请另行使用受控的任务管理方式,不要依赖这个终端连接。</p>`,72)])])}const g=e(n,[["render",o]]);export{k as __pageData,g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,o as a,c as i,a3 as t}from"./chunks/framework.BHjrhdiC.js";const k=JSON.parse('{"title":"使用 marctl 管理节点","description":"","frontmatter":{"title":"使用 marctl 管理节点","lastUpdated":"2026-11-27T00:00:00.000Z"},"headers":[],"relativePath":"operations/marctl.md","filePath":"operations/marctl.md"}'),n={name:"operations/marctl.md"};function o(d,s,p,l,c,h){return a(),i("div",null,[...s[0]||(s[0]=[t("",72)])])}const g=e(n,[["render",o]]);export{k as __pageData,g as default};
|