@myagentroam/server 0.14.18 → 0.14.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/node_modules/@myagentroam/protocol/package.json +1 -1
  2. package/node_modules/@myagentroam/server-core/package.json +2 -2
  3. package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
  4. package/package.json +5 -5
  5. package/web/assets/{AuditManagementPage-DR6KbuCY.js → AuditManagementPage-hs-9I32z.js} +1 -1
  6. package/web/assets/AuthEntryPanel-BuprBlVB.css +1 -0
  7. package/web/assets/{AuthEntryPanel-BsdDHBXI.js → AuthEntryPanel-C-WLFJfd.js} +3 -3
  8. package/web/assets/{BusyIndicator-D1dlXnIa.js → BusyIndicator-DOWv11Af.js} +1 -1
  9. package/web/assets/{CodeFileEditor-DlC5beIi.js → CodeFileEditor-Dy4uF2mD.js} +3 -3
  10. package/web/assets/{ConversationTemplateManagementPage-DHzIm6QC.js → ConversationTemplateManagementPage-DXTEPey1.js} +1 -1
  11. package/web/assets/{ConversationTemplateManagementPage-Do6FoNYR.js → ConversationTemplateManagementPage-_yqVNE7X.js} +1 -1
  12. package/web/assets/{EnterpriseUserManagementPage-WkAcrrAT.js → EnterpriseUserManagementPage-D8OZWJ7Q.js} +1 -1
  13. package/web/assets/{EnvironmentSecretManager-BoAKY3wG.js → EnvironmentSecretManager-Dsv8Pp35.js} +1 -1
  14. package/web/assets/{FilePreviewLoading-DAPNzTFU.js → FilePreviewLoading-BOyO9CYH.js} +1 -1
  15. package/web/assets/{HtmlPreviewFrame-DJvvy8cY.js → HtmlPreviewFrame-DEemZl8O.js} +3 -3
  16. package/web/assets/{LicenseManagementPage-CCjPx1Ho.js → LicenseManagementPage-R072uXNf.js} +1 -1
  17. package/web/assets/{ManagementPagination-BvsRjE74.js → ManagementPagination-7TFb0-zl.js} +1 -1
  18. package/web/assets/{MarAgentModelManagementPage-a02_jgQ5.js → MarAgentModelManagementPage-CUzUuylW.js} +1 -1
  19. package/web/assets/{MarAgentModelManagementPage-hyGmglzA.js → MarAgentModelManagementPage-Dz2HUDu0.js} +1 -1
  20. package/web/assets/{MarAlert-DSmQryuu.js → MarAlert-B6dpla7C.js} +1 -1
  21. package/web/assets/{MarCascader-CWpOhKd2.js → MarCascader-D0ggVd9a.js} +1 -1
  22. package/web/assets/{MarCheckboxGroup-C4uNCipw.js → MarCheckboxGroup-D14L5j7C.js} +1 -1
  23. package/web/assets/{MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-DlSCkqLi.js → MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-BQ6Qz3D3.js} +1 -1
  24. package/web/assets/{MarDatePicker-D6PeHzfi.js → MarDatePicker-BEsI9XoS.js} +1 -1
  25. package/web/assets/{MarDescriptionsItem-BlnGyiqR.js → MarDescriptionsItem-Btov6KYo.js} +1 -1
  26. package/web/assets/{MarFormItem.vue_vue_type_script_setup_true_lang-Cb0xjbkz.js → MarFormItem.vue_vue_type_script_setup_true_lang-q_hrLOBI.js} +1 -1
  27. package/web/assets/{MarInputNumber-Cgd2zn2w.js → MarInputNumber-CZGAbtOV.js} +1 -1
  28. package/web/assets/{MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-Bnk1CfAu.js → MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-D3FxNKyr.js} +1 -1
  29. package/web/assets/{MarSwitch-BARfoj2O.js → MarSwitch-4Bm8kebX.js} +1 -1
  30. package/web/assets/{MarTableColumn.vue_vue_type_script_setup_true_lang-Du6vjSSf.js → MarTableColumn.vue_vue_type_script_setup_true_lang-BlIrM0OH.js} +1 -1
  31. package/web/assets/{MarTabs-CHsN2VcQ.js → MarTabs-KLAYl9FX.js} +1 -1
  32. package/web/assets/{MarTag-CvK9DDWY.js → MarTag-Asx89PO-.js} +1 -1
  33. package/web/assets/{MarkdownFilePreview-gH2gPTGH.js → MarkdownFilePreview-D0MRLA_N.js} +2 -2
  34. package/web/assets/{McpDetailsDialog-DJ5qgEZM.js → McpDetailsDialog-o7f6nS58.js} +1 -1
  35. package/web/assets/{McpSourceManagementPage-C4CvZBw-.js → McpSourceManagementPage-CPm2Pwe_.js} +1 -1
  36. package/web/assets/{McpSourceManagementPage-BKpfVZkM.js → McpSourceManagementPage-Dh8_vY4E.js} +1 -1
  37. package/web/assets/{NodeDetailsDialogs-BM_7Yb_X.js → NodeDetailsDialogs-D4RlwLHK.js} +1 -1
  38. package/web/assets/NodeManagementPage-C-zYm90q.js +1 -0
  39. package/web/assets/NodeManagementPage-DQZBkPfD.js +1 -0
  40. package/web/assets/{OAuthManagementPage-BnfUYRMa.js → OAuthManagementPage-CqRuqJDN.js} +1 -1
  41. package/web/assets/{OrganizationManagementPage-GlIJCCgN.js → OrganizationManagementPage-C9Mb9Bib.js} +1 -1
  42. package/web/assets/{RemoteDesktopPage-DCbe0k6o.js → RemoteDesktopPage-CKJx5eC4.js} +1 -1
  43. package/web/assets/{ResourceManagementPanel-Btr9c5B5.js → ResourceManagementPanel-K-HGm6TX.js} +1 -1
  44. package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-jxX7qHw8.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-D6_DW4vP.js} +1 -1
  45. package/web/assets/{SecretManagementPage-DzIJ5b9q.js → SecretManagementPage-4T_sWZXn.js} +1 -1
  46. package/web/assets/SecretManagementPage-B-P86cu4.js +1 -0
  47. package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-DeJX9HIT.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-Cp1N4Zah.js} +1 -1
  48. package/web/assets/{SessionSharePage-BzgtytrQ.js → SessionSharePage-DYH3c99Z.js} +2 -2
  49. package/web/assets/{SettingsContent-CogePUHw.js → SettingsContent-C2w0qBEu.js} +1 -1
  50. package/web/assets/{SettingsContent-B8X-hLrA.js → SettingsContent-CZmBavZa.js} +1 -1
  51. package/web/assets/{SkillCenterPage-DoXH3nps.js → SkillCenterPage-BRoVXWKs.js} +1 -1
  52. package/web/assets/SkillCenterPage-BaoYjMZh.js +1 -0
  53. package/web/assets/{SkillDetailsDialog-uETiO9F5.js → SkillDetailsDialog-Co2OgNoe.js} +1 -1
  54. package/web/assets/{SkillSourceManagementPage-BfMMgzia.js → SkillSourceManagementPage-B8Gzl8tg.js} +1 -1
  55. package/web/assets/{SkillSourceManagementPage-C9N4SHPk.js → SkillSourceManagementPage-BZnPxQ_J.js} +1 -1
  56. package/web/assets/{StandaloneFilePreviewPage-Tq8fqD2w.js → StandaloneFilePreviewPage-BtSoOuOE.js} +1 -1
  57. package/web/assets/{SystemConfigurationPage-DVcEY-HL.js → SystemConfigurationPage-BsgUX9ih.js} +1 -1
  58. package/web/assets/{SystemConfigurationPage-DvLS7Zwy.js → SystemConfigurationPage-ChA01qDY.js} +1 -1
  59. package/web/assets/{SystemInformationPage-NP7J6EBP.js → SystemInformationPage-BEu6kUfc.js} +1 -1
  60. package/web/assets/{TerminalTabView-XleyJ15o.js → TerminalTabView-BDMzmOBr.js} +1 -1
  61. package/web/assets/{WorkbenchPage-BwMBLemU.js → WorkbenchPage-DYU-TSIz.js} +4 -4
  62. package/web/assets/WorkspaceManagementPage-BYv5xNQb.js +1 -0
  63. package/web/assets/WorkspaceManagementPage-CbNKmvpS.js +1 -0
  64. package/web/assets/{abnfDiagram-VCTEODGH-BbkIWkPr.js → abnfDiagram-VCTEODGH-BxPIcPYO.js} +1 -1
  65. package/web/assets/{arc-D2sw7xO4.js → arc-DkxMmXoJ.js} +1 -1
  66. package/web/assets/{architectureDiagram-5GKGNRK7-BHpYkEkW.js → architectureDiagram-5GKGNRK7-BwrIw8lQ.js} +1 -1
  67. package/web/assets/{blockDiagram-OSKFZWR5-BbOed06q.js → blockDiagram-OSKFZWR5-B8BrDiyb.js} +1 -1
  68. package/web/assets/{c4Diagram-7LVT6UL2-Dbg2ezNr.js → c4Diagram-7LVT6UL2-CMgTB_Jn.js} +1 -1
  69. package/web/assets/{catalog-ownership-service-B43V-RZj.js → catalog-ownership-service-Nl-8U_CO.js} +1 -1
  70. package/web/assets/{catalog-page-service-CR4iDEEe.js → catalog-page-service-C88cruxA.js} +1 -1
  71. package/web/assets/channel-CBqS2iiC.js +1 -0
  72. package/web/assets/{chunk-2Q5K7J3B-4I2F07E9.js → chunk-2Q5K7J3B-BvbEFf-5.js} +1 -1
  73. package/web/assets/{chunk-5VM5RSS4-B3t6Oj30.js → chunk-5VM5RSS4-BW9citu7.js} +1 -1
  74. package/web/assets/{chunk-F27PBJKO-BuTAQLsu.js → chunk-F27PBJKO-Bo9Rfv5N.js} +1 -1
  75. package/web/assets/{chunk-HLEWEB6X-ClfcNoz0.js → chunk-HLEWEB6X-FpOODKx1.js} +1 -1
  76. package/web/assets/{chunk-JWPE2WC7-bIyZ3068.js → chunk-JWPE2WC7-DlFXehZi.js} +1 -1
  77. package/web/assets/{chunk-POPQ4Y6H-BN6a2ey5.js → chunk-POPQ4Y6H-DJZxwF4Y.js} +1 -1
  78. package/web/assets/{chunk-SVP7TREG-BkrRtfA-.js → chunk-SVP7TREG-B68cHMth.js} +1 -1
  79. package/web/assets/{chunk-XXDRQBXY-AFVWMXkP.js → chunk-XXDRQBXY-BJsctH_N.js} +1 -1
  80. package/web/assets/{chunk-ZLD2IHE6-fq7pA_GZ.js → chunk-ZLD2IHE6-CsKg5t9O.js} +1 -1
  81. package/web/assets/classDiagram-CYGNFDIV-Dx3aoJcr.js +1 -0
  82. package/web/assets/classDiagram-v2-TLXNO2FR-Dx3aoJcr.js +1 -0
  83. package/web/assets/{conversation-history-5Whey-Nw.js → conversation-history-CsU90Kx4.js} +1 -1
  84. package/web/assets/{cose-bilkent-JH36ORCC-CspatMAN.js → cose-bilkent-JH36ORCC-Cx8FdoTd.js} +1 -1
  85. package/web/assets/{cynefin-OW5HDTMX-DQYYk5JB.js → cynefin-OW5HDTMX-rQM3Bp4c.js} +1 -1
  86. package/web/assets/{cynefinDiagram-5FMLGOSQ-CnyV7dxQ.js → cynefinDiagram-5FMLGOSQ-4LF-L5JG.js} +1 -1
  87. package/web/assets/{dagre-OS7QT2EB-wdCSgSpF.js → dagre-OS7QT2EB-B87zoAz1.js} +1 -1
  88. package/web/assets/{diagram-S7CK7UJ4-DVgKZs4r.js → diagram-S7CK7UJ4-CRmQrN82.js} +1 -1
  89. package/web/assets/{diagram-UQ7AKVKN-D0mkaxik.js → diagram-UQ7AKVKN-CUWtBpoq.js} +1 -1
  90. package/web/assets/{diagram-VSXAHHWV-CXRlwh72.js → diagram-VSXAHHWV-CsGCnkA3.js} +1 -1
  91. package/web/assets/{diagram-VX7I27RA-mMX8lo0H.js → diagram-VX7I27RA-CkAOrMJm.js} +1 -1
  92. package/web/assets/{diagram-Z3DM3KII-CFVYKECZ.js → diagram-Z3DM3KII-D67PeC6j.js} +1 -1
  93. package/web/assets/{ebnfDiagram-PWID7BFC-fpjuUVgo.js → ebnfDiagram-PWID7BFC-D01VTQa6.js} +1 -1
  94. package/web/assets/{enterprise-management-service-C3wTQakl.js → enterprise-management-service-BvMC6mQt.js} +1 -1
  95. package/web/assets/{erDiagram-2YWLMYGG-C2cH8eSD.js → erDiagram-2YWLMYGG-BBfYUTx3.js} +1 -1
  96. package/web/assets/{error-presentation-Bsw9jRIX.js → error-presentation-BppNIA6S.js} +1 -1
  97. package/web/assets/{flowDiagram-T62WH6J4-0z00JBX5.js → flowDiagram-T62WH6J4-Dvtz2EQa.js} +1 -1
  98. package/web/assets/{ganttDiagram-EL5Y4UJY-DKNS8qy7.js → ganttDiagram-EL5Y4UJY-DpA116YB.js} +1 -1
  99. package/web/assets/{gitGraphDiagram-WWUBYQGX-91ulJFWk.js → gitGraphDiagram-WWUBYQGX-CiwvM3ZK.js} +1 -1
  100. package/web/assets/{hosted-conversation-template-client-CVDyJLe_.js → hosted-conversation-template-client-eCqTGe6V.js} +1 -1
  101. package/web/assets/{illustrations-DaClmMPg.svg → illustrations-C1sf3HdH.svg} +7 -4
  102. package/web/assets/{index-XuRp8wQx.js → index-B59x1YD8.js} +1 -1
  103. package/web/assets/{index-0bLpATgL.js → index-BE3XvwpU.js} +1 -1
  104. package/web/assets/{index--o7Keb7v.js → index-BgWfSb3B.js} +1 -1
  105. package/web/assets/{index-DUe6POiN.js → index-BjdNMAsi.js} +1 -1
  106. package/web/assets/{index-QUPHfBwn.js → index-BjmA0nLB.js} +1 -1
  107. package/web/assets/{index-Bd-ZYQWm.js → index-BkkVlvUB.js} +1 -1
  108. package/web/assets/{index-BRks84of.js → index-ByjdL4aN.js} +1 -1
  109. package/web/assets/{index-BGjwLofa.js → index-C5OI2oF-.js} +1 -1
  110. package/web/assets/{index-CHqSYJAm.js → index-CIRZjcJT.js} +1 -1
  111. package/web/assets/{index-BfUFqjLh.js → index-CYnCnJVE.js} +1 -1
  112. package/web/assets/{index-DCzPnN9-.js → index-CwPEZ7dY.js} +1 -1
  113. package/web/assets/{index-DFCnppo2.js → index-Czoio01D.js} +1 -1
  114. package/web/assets/{index-BAmZJpQq.js → index-D4yRKGbn.js} +1 -1
  115. package/web/assets/{index-B9y5h9Lm.js → index-D6l1HcYe.js} +1 -1
  116. package/web/assets/{index-2En9W4yL.js → index-D8h_AqgI.js} +1 -1
  117. package/web/assets/{index-P2IyYarJ.js → index-D8zbNdrM.js} +1 -1
  118. package/web/assets/{index-B4CXrXhI.js → index-DO8dY8_V.js} +3 -3
  119. package/web/assets/{index-BfaGjcnf.js → index-DQKdmrTd.js} +1 -1
  120. package/web/assets/{index-DdcRhHzo.js → index-DVrm5VEH.js} +1 -1
  121. package/web/assets/{index-Daej4G__.js → index-DckOBnei.js} +1 -1
  122. package/web/assets/{index-D2ckJREB.js → index-DdCYtXiI.js} +1 -1
  123. package/web/assets/{index-DnttSYuV.js → index-Df6BCufX.js} +1 -1
  124. package/web/assets/{index-DCccnMx1.js → index-DkJzGgDd.js} +1 -1
  125. package/web/assets/{index-BTClWCKU.js → index-XaQDSOYz.js} +1 -1
  126. package/web/assets/{index-BCYHRLwU.js → index-ZTvkgf_W.js} +1 -1
  127. package/web/assets/{index-7_P5DEIT.js → index-_Ii_CR80.js} +1 -1
  128. package/web/assets/{index-AtmW616Q.js → index-zoBihaMT.js} +1 -1
  129. package/web/assets/{infoDiagram-FKFFQAWI-Y3Ncdasb.js → infoDiagram-FKFFQAWI-BLbo4YnW.js} +1 -1
  130. package/web/assets/{ishikawaDiagram-5VMMS53U-D1DU66cV.js → ishikawaDiagram-5VMMS53U-COPtdphW.js} +1 -1
  131. package/web/assets/{journeyDiagram-EYS64GPL-DHenZQu-.js → journeyDiagram-EYS64GPL-BPLvzxMr.js} +1 -1
  132. package/web/assets/{kanban-definition-UXKFOSKX-Dm8V8tR5.js → kanban-definition-UXKFOSKX-Dt6RV_5o.js} +1 -1
  133. package/web/assets/{layout-IhVfdWpO.js → layout-De0Tp3vL.js} +1 -1
  134. package/web/assets/{linear-OX43dcj-.js → linear-DNXQRAZx.js} +1 -1
  135. package/web/assets/{management-url-service-BuGA1tHR.js → management-url-service-C4w2O5rB.js} +1 -1
  136. package/web/assets/{mcp-center-service-Dh09PYq1.js → mcp-center-service-SBvnKt_h.js} +1 -1
  137. package/web/assets/{mermaid.core-CVWJkR59.js → mermaid.core-BRKhuMpz.js} +5 -5
  138. package/web/assets/{mindmap-definition-THT77NOG-DTLvX8Jr.js → mindmap-definition-THT77NOG-QpdBevcF.js} +1 -1
  139. package/web/assets/{mobile-dialog-return-service-Cvt9WsqK.js → mobile-dialog-return-service-JJKY-RL2.js} +1 -1
  140. package/web/assets/{oauth-callback-B8_Tpisc.js → oauth-callback-B7NF320X.js} +1 -1
  141. package/web/assets/{pegDiagram-XKGWAZYB-DHaJYpM-.js → pegDiagram-XKGWAZYB-CQyT1ntX.js} +1 -1
  142. package/web/assets/{pieDiagram-E7YTZNPT-DzcjETvg.js → pieDiagram-E7YTZNPT-BPt_B_y2.js} +1 -1
  143. package/web/assets/{quadrantDiagram-AXDQQJYC-DnX5gl_6.js → quadrantDiagram-AXDQQJYC-DHiH-1ks.js} +1 -1
  144. package/web/assets/{railroadDiagram-O6MQD6OU-CdWndGze.js → railroadDiagram-O6MQD6OU-DY4dgzaY.js} +1 -1
  145. package/web/assets/{requirementDiagram-IS5BZ75X-Cd9l1eqL.js → requirementDiagram-IS5BZ75X-Cu-PbwwN.js} +1 -1
  146. package/web/assets/{runner-presentation-Cm3jAKir.js → runner-presentation-CErIOwsu.js} +1 -1
  147. package/web/assets/{sankeyDiagram-P5KCCOFB-CJ6ofBC4.js → sankeyDiagram-P5KCCOFB-I99SzzBz.js} +1 -1
  148. package/web/assets/{sequenceDiagram-WJ2MYXX4-CnYf7Y_J.js → sequenceDiagram-WJ2MYXX4-Bk52AZ3e.js} +1 -1
  149. package/web/assets/{session-share-client-service-DA2bHkVA.js → session-share-client-service-CqlZVEib.js} +1 -1
  150. package/web/assets/{sizeCapture-INFHLROL-WNe-4gCm.js → sizeCapture-INFHLROL-Bu6PCPUV.js} +1 -1
  151. package/web/assets/{stateDiagram-XQSTLZYL-B1pL8akf.js → stateDiagram-XQSTLZYL-Bo0iB08A.js} +1 -1
  152. package/web/assets/stateDiagram-v2-IH3M54BS-n7XmqnpS.js +1 -0
  153. package/web/assets/{swimlanes-V6O3JKXN-B_5lpZRn.js → swimlanes-V6O3JKXN-B9I7A_MV.js} +1 -1
  154. package/web/assets/swimlanesDiagram-JKAHXJPX-C2awJHEQ.js +8 -0
  155. package/web/assets/{time-presentation-f56rqpcy.js → time-presentation-DDnD6Wj9.js} +1 -1
  156. package/web/assets/{timeline-definition-24CTP7MA-BJY4iFQf.js → timeline-definition-24CTP7MA-DRjAVm-E.js} +1 -1
  157. package/web/assets/{vennDiagram-4TSXK5OY-6Cm5Q-nq.js → vennDiagram-4TSXK5OY-CiUtTaZm.js} +1 -1
  158. package/web/assets/{wardleyDiagram-VM6X3IG4-CnOYuWNa.js → wardleyDiagram-VM6X3IG4-BY52Fvde.js} +1 -1
  159. package/web/assets/{workbench-live-service-0ogIcbLV.js → workbench-live-service-Vongjzmf.js} +1 -1
  160. package/web/assets/{workbench-presentation-6AMUsb5y.js → workbench-presentation-ZGuKTwcb.js} +1 -1
  161. package/web/assets/{xychartDiagram-S5SC5T6Z-CBUDSbYO.js → xychartDiagram-S5SC5T6Z-DGGrUFj_.js} +1 -1
  162. package/web/docs/404.html +2 -2
  163. package/web/docs/administration/account.html +3 -3
  164. package/web/docs/administration/audit.html +3 -3
  165. package/web/docs/administration/conversation-templates.html +3 -3
  166. package/web/docs/administration/email-notifications.html +3 -3
  167. package/web/docs/administration/license.html +3 -3
  168. package/web/docs/administration/nodes-workspaces.html +3 -3
  169. package/web/docs/administration/oauth.html +3 -3
  170. package/web/docs/administration/secrets.html +3 -3
  171. package/web/docs/administration/template-workspace-maintenance.html +3 -3
  172. package/web/docs/administration/users-organizations.html +3 -3
  173. package/web/docs/assets/{app.CIyOeKUy.js → app.osEutJ_d.js} +1 -1
  174. package/web/docs/assets/chunks/@localSearchIndexen-US.Cz8ARulP.js +1 -0
  175. package/web/docs/assets/chunks/@localSearchIndexroot.D9oJg2R8.js +1 -0
  176. package/web/docs/assets/chunks/{VPLocalSearchBox.BhP5Pa3c.js → VPLocalSearchBox.Cl0uzzyo.js} +1 -1
  177. package/web/docs/assets/chunks/{theme.CkQL4xr3.js → theme.w65paH3b.js} +2 -2
  178. package/web/docs/assets/{en-US_runners_mar-agent.md.DCyjIcs1.js → en-US_runners_mar-agent.md.fovIiNmR.js} +2 -2
  179. package/web/docs/assets/{en-US_runners_mar-agent.md.DCyjIcs1.lean.js → en-US_runners_mar-agent.md.fovIiNmR.lean.js} +1 -1
  180. package/web/docs/assets/{runners_mar-agent.md.CCL6GaYQ.js → runners_mar-agent.md.BHJ05LUH.js} +2 -2
  181. package/web/docs/assets/{runners_mar-agent.md.CCL6GaYQ.lean.js → runners_mar-agent.md.BHJ05LUH.lean.js} +1 -1
  182. package/web/docs/concepts/architecture.html +3 -3
  183. package/web/docs/concepts/data-and-security.html +3 -3
  184. package/web/docs/concepts/files-git-terminal.html +3 -3
  185. package/web/docs/concepts/node-and-workspace.html +3 -3
  186. package/web/docs/concepts/permissions-and-sharing.html +3 -3
  187. package/web/docs/concepts/runner-control.html +3 -3
  188. package/web/docs/concepts/secrets.html +3 -3
  189. package/web/docs/concepts/session-run-turn.html +3 -3
  190. package/web/docs/deployment/backup-restore.html +3 -3
  191. package/web/docs/deployment/network.html +3 -3
  192. package/web/docs/deployment/node-installation.html +3 -3
  193. package/web/docs/deployment/node-linux.html +3 -3
  194. package/web/docs/deployment/node-macos.html +3 -3
  195. package/web/docs/deployment/node-windows.html +3 -3
  196. package/web/docs/deployment/production.html +3 -3
  197. package/web/docs/deployment/security-checklist.html +3 -3
  198. package/web/docs/deployment/upgrade.html +3 -3
  199. package/web/docs/en-US/administration/account.html +3 -3
  200. package/web/docs/en-US/administration/audit.html +3 -3
  201. package/web/docs/en-US/administration/conversation-templates.html +3 -3
  202. package/web/docs/en-US/administration/email-notifications.html +3 -3
  203. package/web/docs/en-US/administration/license.html +3 -3
  204. package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
  205. package/web/docs/en-US/administration/oauth.html +3 -3
  206. package/web/docs/en-US/administration/secrets.html +3 -3
  207. package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
  208. package/web/docs/en-US/administration/users-organizations.html +3 -3
  209. package/web/docs/en-US/concepts/architecture.html +3 -3
  210. package/web/docs/en-US/concepts/data-and-security.html +3 -3
  211. package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
  212. package/web/docs/en-US/concepts/node-and-workspace.html +3 -3
  213. package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
  214. package/web/docs/en-US/concepts/runner-control.html +3 -3
  215. package/web/docs/en-US/concepts/secrets.html +3 -3
  216. package/web/docs/en-US/concepts/session-run-turn.html +3 -3
  217. package/web/docs/en-US/deployment/backup-restore.html +3 -3
  218. package/web/docs/en-US/deployment/network.html +3 -3
  219. package/web/docs/en-US/deployment/node-installation.html +3 -3
  220. package/web/docs/en-US/deployment/node-linux.html +3 -3
  221. package/web/docs/en-US/deployment/node-macos.html +3 -3
  222. package/web/docs/en-US/deployment/node-windows.html +3 -3
  223. package/web/docs/en-US/deployment/production.html +3 -3
  224. package/web/docs/en-US/deployment/security-checklist.html +3 -3
  225. package/web/docs/en-US/deployment/upgrade.html +3 -3
  226. package/web/docs/en-US/getting-started/connect-node.html +3 -3
  227. package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
  228. package/web/docs/en-US/getting-started/first-login.html +3 -3
  229. package/web/docs/en-US/getting-started/next-steps.html +3 -3
  230. package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
  231. package/web/docs/en-US/getting-started/overview.html +3 -3
  232. package/web/docs/en-US/getting-started/prerequisites.html +3 -3
  233. package/web/docs/en-US/getting-started/register-workspace.html +3 -3
  234. package/web/docs/en-US/getting-started/server-installation.html +3 -3
  235. package/web/docs/en-US/operations/marctl.html +3 -3
  236. package/web/docs/en-US/reference/configuration.html +3 -3
  237. package/web/docs/en-US/reference/keyboard-shortcuts.html +3 -3
  238. package/web/docs/en-US/reference/limits.html +3 -3
  239. package/web/docs/en-US/reference/ports-paths-data.html +3 -3
  240. package/web/docs/en-US/reference/status-and-errors.html +3 -3
  241. package/web/docs/en-US/runners/claude-code.html +3 -3
  242. package/web/docs/en-US/runners/codex.html +3 -3
  243. package/web/docs/en-US/runners/mar-agent.html +5 -5
  244. package/web/docs/en-US/runners/opencode.html +3 -3
  245. package/web/docs/en-US/runners/overview.html +3 -3
  246. package/web/docs/en-US/runners/runner-troubleshooting.html +3 -3
  247. package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
  248. package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
  249. package/web/docs/en-US/troubleshooting/session-run.html +3 -3
  250. package/web/docs/en-US/troubleshooting/terminal.html +3 -3
  251. package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
  252. package/web/docs/en-US/workbench/composer.html +3 -3
  253. package/web/docs/en-US/workbench/context-and-plan.html +3 -3
  254. package/web/docs/en-US/workbench/conversation.html +3 -3
  255. package/web/docs/en-US/workbench/file-reference-and-attachment.html +3 -3
  256. package/web/docs/en-US/workbench/files.html +3 -3
  257. package/web/docs/en-US/workbench/git-changes.html +3 -3
  258. package/web/docs/en-US/workbench/git-history.html +3 -3
  259. package/web/docs/en-US/workbench/hosted-conversations.html +3 -3
  260. package/web/docs/en-US/workbench/mobile.html +3 -3
  261. package/web/docs/en-US/workbench/navigation.html +3 -3
  262. package/web/docs/en-US/workbench/remote-desktop.html +3 -3
  263. package/web/docs/en-US/workbench/sessions.html +3 -3
  264. package/web/docs/en-US/workbench/skills.html +3 -3
  265. package/web/docs/en-US/workbench/terminal.html +3 -3
  266. package/web/docs/getting-started/connect-node.html +3 -3
  267. package/web/docs/getting-started/first-agent-session.html +3 -3
  268. package/web/docs/getting-started/first-login.html +3 -3
  269. package/web/docs/getting-started/next-steps.html +3 -3
  270. package/web/docs/getting-started/npm-quick-start.html +3 -3
  271. package/web/docs/getting-started/overview.html +3 -3
  272. package/web/docs/getting-started/prerequisites.html +3 -3
  273. package/web/docs/getting-started/register-workspace.html +3 -3
  274. package/web/docs/getting-started/server-installation.html +3 -3
  275. package/web/docs/hashmap.json +1 -1
  276. package/web/docs/operations/marctl.html +3 -3
  277. package/web/docs/reference/configuration.html +3 -3
  278. package/web/docs/reference/keyboard-shortcuts.html +3 -3
  279. package/web/docs/reference/limits.html +3 -3
  280. package/web/docs/reference/ports-paths-data.html +3 -3
  281. package/web/docs/reference/status-and-errors.html +3 -3
  282. package/web/docs/runners/claude-code.html +3 -3
  283. package/web/docs/runners/codex.html +3 -3
  284. package/web/docs/runners/mar-agent.html +5 -5
  285. package/web/docs/runners/opencode.html +3 -3
  286. package/web/docs/runners/overview.html +3 -3
  287. package/web/docs/runners/runner-troubleshooting.html +3 -3
  288. package/web/docs/troubleshooting/node-offline.html +3 -3
  289. package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
  290. package/web/docs/troubleshooting/session-run.html +3 -3
  291. package/web/docs/troubleshooting/terminal.html +3 -3
  292. package/web/docs/troubleshooting/workspace-files.html +3 -3
  293. package/web/docs/workbench/composer.html +3 -3
  294. package/web/docs/workbench/context-and-plan.html +3 -3
  295. package/web/docs/workbench/conversation.html +3 -3
  296. package/web/docs/workbench/file-reference-and-attachment.html +3 -3
  297. package/web/docs/workbench/files.html +3 -3
  298. package/web/docs/workbench/git-changes.html +3 -3
  299. package/web/docs/workbench/git-history.html +3 -3
  300. package/web/docs/workbench/hosted-conversations.html +3 -3
  301. package/web/docs/workbench/mobile.html +3 -3
  302. package/web/docs/workbench/navigation.html +3 -3
  303. package/web/docs/workbench/remote-desktop.html +3 -3
  304. package/web/docs/workbench/sessions.html +3 -3
  305. package/web/docs/workbench/skills.html +3 -3
  306. package/web/docs/workbench/terminal.html +3 -3
  307. package/web/index.html +2 -2
  308. package/web/service-worker.js +1 -1
  309. package/web/web-version.json +1 -1
  310. package/web/assets/AuthEntryPanel-BWudPCQ5.css +0 -1
  311. package/web/assets/NodeManagementPage-BsSyVzVX.js +0 -1
  312. package/web/assets/NodeManagementPage-Dnci-7Lt.js +0 -1
  313. package/web/assets/SecretManagementPage-BnwZxYfi.js +0 -1
  314. package/web/assets/SkillCenterPage-CumTiRgQ.js +0 -1
  315. package/web/assets/WorkspaceManagementPage-CsN6x17r.js +0 -1
  316. package/web/assets/WorkspaceManagementPage-L9IbVI0s.js +0 -1
  317. package/web/assets/channel-DVxzNgNr.js +0 -1
  318. package/web/assets/classDiagram-CYGNFDIV-BkLgH6Xs.js +0 -1
  319. package/web/assets/classDiagram-v2-TLXNO2FR-BkLgH6Xs.js +0 -1
  320. package/web/assets/stateDiagram-v2-IH3M54BS-QZwo3_Cg.js +0 -1
  321. package/web/assets/swimlanesDiagram-JKAHXJPX-xHTVtlH1.js +0 -8
  322. package/web/docs/assets/chunks/@localSearchIndexen-US.CzWbZXsp.js +0 -1
  323. package/web/docs/assets/chunks/@localSearchIndexroot.B1nGhxQQ.js +0 -1
@@ -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-21T00: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 &quot;Configure and Use MAR Agent&quot;">​</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 &quot;Configure models&quot;">​</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><strong>Context GC</strong> is enabled by default and can be turned off per model. When off, neither text nor image GC runs; automatic Compact and the image request hard limit still apply, and requests exceeding that limit are rejected. Disabling GC requires a Node that advertises support for the switch; older Nodes do not silently ignore it. 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&#39;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&#39;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 information icon at the lower-right of a Workspace session shows the latest available Latency and average output TPS. Latency updates after the first valid semantic model response. Average output TPS updates only after the request ends, the provider reports authoritative output tokens, and the summed observed generation duration is at least one second. Shorter windows do not publish a new TPS value; Latency and token usage still update, and the previous valid TPS remains within the same Run. TPS uses client-observed generation intervals, excluding client-tool execution and explicit Hosted Tool execution pauses. Output tokens may include reasoning and tool calls, and network or upstream buffering may affect the observed duration, so TPS is not pure server-side inference speed.</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 &quot;Conversation and auxiliary models&quot;">​</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&#39;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&#39;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 &quot;Prompt Tab model&quot;">​</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 Runners are supported. Node uses the MAR Agent SDK&#39;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 &quot;Dedicated Compact model&quot;">​</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&#39;s model access and credential scope; enabling this setting grants neither. If the estimated input exceeds the dedicated model&#39;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 &quot;ChatGPT plan authorization&quot;">​</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&#39;s page. A remote Node cannot receive this browser&#39;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&#39;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 &quot;X subscription OAuth (experimental)&quot;">​</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&#39;s localhost. The browser authorization page uses the browser&#39;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 &quot;Configure Codex credentials and the model catalog&quot;">​</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 &quot;Configure model access&quot;">​</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&#39;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&#39;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&#39;s grant, moving the user outside the credential&#39;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&#39;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 &quot;Sessions and permissions&quot;">​</a></h2><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&#39;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>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 Runner 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&#39;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&#39;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&#39;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&#39;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 &quot;Command environment&quot;">​</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&#39;s configuration.</p><p>To skip login initialization, ask the Agent to use <code>exec({ command: &quot;…&quot;, 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 &quot;Advanced subagent control&quot;">​</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 &lt;session-id&gt;</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&#39;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&#39;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&#39;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 &lt;id&gt; -m &lt;text&gt;</code> from other Runners. 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&#39;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 Runners, 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-21T00: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 &quot;Configure and Use MAR Agent&quot;">​</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 &quot;Configure models&quot;">​</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><strong>Context GC</strong> is enabled by default and can be turned off per model. When off, neither text nor image GC runs; automatic Compact and the image request hard limit still apply, and requests exceeding that limit are rejected. Disabling GC requires a Node that advertises support for the switch; older Nodes do not silently ignore it. 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&#39;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&#39;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 information icon at the lower-right of a Workspace session shows the latest available Latency and average output TPS. Latency updates after the first valid semantic model response. Average output TPS updates only after the request ends, the provider reports authoritative output tokens, and the summed observed generation duration is at least one second. Shorter windows do not publish a new TPS value; Latency and token usage still update, and the previous valid TPS remains within the same Run. TPS uses client-observed generation intervals, excluding client-tool execution and explicit Hosted Tool execution pauses. Output tokens may include reasoning and tool calls, and network or upstream buffering may affect the observed duration, so TPS is not pure server-side inference speed.</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 &quot;Conversation and auxiliary models&quot;">​</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&#39;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&#39;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 &quot;Prompt Tab model&quot;">​</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 Runners are supported. Node uses the MAR Agent SDK&#39;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 &quot;Dedicated Compact model&quot;">​</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&#39;s model access and credential scope; enabling this setting grants neither. If the estimated input exceeds the dedicated model&#39;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 &quot;ChatGPT plan authorization&quot;">​</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&#39;s page. A remote Node cannot receive this browser&#39;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&#39;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 &quot;X subscription OAuth (experimental)&quot;">​</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&#39;s localhost. The browser authorization page uses the browser&#39;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 &quot;Configure Codex credentials and the model catalog&quot;">​</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 &quot;Configure model access&quot;">​</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&#39;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&#39;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&#39;s grant, moving the user outside the credential&#39;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&#39;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 &quot;Sessions and permissions&quot;">​</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&#39;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>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 Runner 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&#39;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&#39;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&#39;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&#39;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 &quot;Command environment&quot;">​</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&#39;s configuration.</p><p>To skip login initialization, ask the Agent to use <code>exec({ command: &quot;…&quot;, 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 &quot;Advanced subagent control&quot;">​</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 &lt;session-id&gt;</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&#39;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&#39;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&#39;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 &lt;id&gt; -m &lt;text&gt;</code> from other Runners. 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&#39;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 Runners, 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;">&#39;active&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, query: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;review&#39;</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;">&#39;a&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;b&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;c&#39;</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;">&#39;all&#39;</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>`,115)])])}const g=t(i,[["render",o]]);export{u as __pageData,g as default};
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>`,116)])])}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-21T00: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("",115)])])}const g=t(i,[["render",o]]);export{u as __pageData,g as default};
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-21T00: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("",116)])])}const g=t(i,[["render",o]]);export{u as __pageData,g as default};
@@ -1,4 +1,4 @@
1
- import{_ as s,o as a,c as i,a3 as o}from"./chunks/framework.BHjrhdiC.js";const r=JSON.parse('{"title":"配置和使用 MAR Agent","description":"","frontmatter":{"title":"配置和使用 MAR Agent","lastUpdated":"2026-11-21T00:00:00.000Z"},"headers":[],"relativePath":"runners/mar-agent.md","filePath":"runners/mar-agent.md"}'),t={name:"runners/mar-agent.md"};function n(d,e,p,c,l,h){return a(),i("div",null,[...e[0]||(e[0]=[o(`<h1 id="配置和使用-mar-agent" tabindex="-1">配置和使用 MAR Agent <a class="header-anchor" href="#配置和使用-mar-agent" aria-label="Permalink to &quot;配置和使用 MAR Agent&quot;">​</a></h1><p>MAR Agent 是随 Node 内置的编码 Agent,不需要安装外部 Agent CLI。每个用户都可在“管理 → MAR Agent 模型”添加和管理自己的个人模型;组织模型由有权管理员维护和授权。同时满足模型使用权和所绑定凭据作用域的用户即可在新会话中选择 <strong>MAR Agent</strong>。</p><p>Server、Web 和 Node 的版本切换及旧 Node 升级限制见<a href="./../deployment/upgrade">升级 MyAgentRoam</a>。</p><h2 id="配置模型" tabindex="-1">配置模型 <a class="header-anchor" href="#配置模型" aria-label="Permalink to &quot;配置模型&quot;">​</a></h2><p>OpenAI Responses 与 Anthropic Messages 的 API Key 模型可以单独配置 <strong>SOCKS5 代理</strong>,格式为 <code>socks5://[username:password@]host:port</code>,用户名或密码中的特殊字符需要 URL 编码。编辑时会按需读取已保存的代理;不修改则保留,清空并保存后直连,复制模型会继承代理且可修改。代理从执行 Node 连接,<code>localhost</code> 指该 Node,不是浏览器或 Server;代理失败不会回退直连。Responses 的 HTTP/1.1、HTTP/2、WebSocket 和 Anthropic 请求均使用此设置,执行 Node 必须声明支持模型 SOCKS5,否则需先升级 Node。订阅模型始终沿用 OAuth 凭据的代理,不提供模型级覆盖。完整代理地址只在授权编辑表单中读取,不进入模型列表、日志或会话记录;请勿公开截图中的代理密码。辅助任务使用其实际选中模型的代理,Web Fetch 等工具不继承模型代理。</p><p>模型表单中的 <strong>上下文回收</strong> 默认开启,可按模型关闭。关闭后不执行文本或图片 GC;自动 Compact 和图片请求硬限额仍生效,图片超限时请求会被拒绝。关闭配置需要运行 Node 声明支持该开关,旧 Node 不会静默忽略它。更改对后续执行生效。</p><p>“使用资源 URL”需要系统设置总开关与模型开关同时开启:全局默认开启,模型默认关闭,修改对下一次执行生效。当前用于图片视觉输入:开启时通过固定的 24 小时签名 URL 提供图片,过期不续期,不参与图片水位 GC;关闭时近期附件和工具图片保留在有界内联窗口,跨轮次继续可见。内联图片与文本共用 GC checkpoint:历史图片编码载荷超过 7 MiB 时,按最早顺序回收到不大于 5 MiB,保护最近两个成功模型轮次;文本 GC 时可顺带回收超过 5 MiB 的成熟图片。单次请求图片编码载荷上限为 12 MiB,必要时可越过历史图片保护期,但不丢弃本次新图。淘汰不删除附件或图片文件。图片附件仍保存为文件并提供路径;需要再次查看时,模型可用附件路径或当前会话的 <code>resourceId</code> 重新调用 <code>view_image</code>;释放提示会保留对应资源 ID。该工具每次返回图片尺寸,单张结果最多 3 MiB;较大图片可显式使用 <code>resize</code> 缩放或 <code>region</code> 查看局部,处理源文件最多 20 MiB。图片预算不包含文字和工具定义,不等于整个请求体大小。HTTP URL 与内联模式共用独立资源存储,关闭 URL 不关闭视觉能力。旧格式历史图片不再作为图像输入恢复,原文本与附件文件保留。图片策略要求 Node 支持资源输入能力。</p><p>每个模型都是独立连接。表单提供 <strong>Codex</strong>、<strong>ChatGPT 套餐授权</strong>、<strong>X订阅 OAuth(实验性)</strong>、<strong>OpenAI Responses</strong> 和 <strong>Anthropic Messages</strong> 五种连接类型。选择 Codex 后直接选择已有 Codex 凭据;模型 ID 始终手工填写或修改,不提供目录选项,也不要求该 ID 出现在所选凭据的实时模型目录中。切换凭据时已填写的模型 ID 会保留,展示名称仍可自定义。实时目录仅在“加载模型目录”批量导入时读取。Codex 使用固定服务地址,OpenAI Responses 与 Anthropic Messages 则分别填写 Base URL 和内联 API Key。新建模型的上下文 Token 默认 <code>256000</code>、最大输出 Token 默认 <code>32000</code>;切换连接类型保留模型 ID、Token 上限、能力、思考强度和用途等兼容字段。OpenAI Responses 与 Anthropic Messages 之间保留内联 API Key 和自定义 Base URL,仅默认地址随协议切换;临时切换到 OAuth 再返回也保留已填写的 Key 和自定义地址。OAuth 使用固定地址,不兼容的 OAuth 类型必须重新选择凭据。编辑已有模型时保留保存值,Key 不回显,留空保留已有 Key。目录导入优先使用上游明确提供的限制;缺失上下文 Token 时预填 <code>256000</code>,可在导入前修改,缺失最大输出 Token 时使用 <code>32000</code>(小窗口会收窄至严格小于窗口)。图片输入、会话标题命名、Code Mode、Hosted Web Search、Responses 续接、可选思考强度和默认思考强度都在模型表单中维护;所有 Responses 连接类型均提供传输选项。普通工作区会话和托管对话生成标题时,会按模型排序使用首个已启用“会话标题命名”的可用模型;没有模型开启时回退当前会话所选模型。默认思考强度始终必填;即使不向用户开放强度选择,MAR Agent 内部请求也会使用该默认值;Grok 未配置可选强度时,不向上游发送不受支持的 reasoning 参数。</p><p>在可管理模型的操作列选择 <strong>复制</strong>,会打开预填的新建表单,默认名称附加“副本”。可以修改配置、凭据和归属,选择 <strong>保存</strong> 后才创建新模型,取消不会写入。未替换的内联 Key 或兼容 OAuth 引用由 Server 安全复用,不向浏览器回显秘密。新模型使用独立配置 ID,追加到列表末尾,不继承共享授权和测试结果。复制仍须拥有源模型管理权,新模型的归属和凭据作用域在保存时重新校验。</p><p>Responses 模型(包括内联 API Key)可选择 WebSocket、HTTP/2 或 HTTP/1.1;X订阅支持 WebSocket 和 HTTP/1.1。选定传输失败时不会静默切换协议。HTTP 与 WebSocket 均可勾选服务端续接,切换传输保留勾选状态。只有开启续接的 HTTP 请求发送 <code>store:true</code>;未开启续接的 HTTP 和所有 WebSocket 请求均发送 <code>store:false</code>,不提供独立存储选项。开启 HTTP 续接时,首轮及引用失效后的完整回放也会请求上游保存响应,请考虑其数据留存政策。只在上游支持时启用续接。上游明确报告引用不存在或过期且尚未提交语义输出时,会在请求尝试预算内回退一次完整历史;鉴权、限流及无关错误不按引用过期处理。Adapter 重建或核心提示变化也会完整回放。HTTP 续接要求 Node 声明对应能力。Anthropic Messages 的多轮提示词缓存自动管理,无需该选项。</p><p>企业管理员在新增模型和 OAuth 目录导入时,可选择 <strong>个人 / 组织</strong> 归属。模型归属与凭据作用域独立:使用全企业凭据不会自动共享模型。需要共享时,先创建组织模型,再通过授权入口共享给用户、组织或全企业;个人模型没有授权入口。编辑已有模型只回显归属,不改变归属;已有个人模型需要共享时,应按组织归属重新创建或导入。模型列表直接展示完整的可管理集合,不分页;编辑、测试、刷新和删除后会重新展示当前完整结果。</p><p>MAR Agent 对符合条件的瞬时连接、服务过载或模型流错误进行有界重试;首次请求和后续重试共享最多 5 次尝试(首次请求加最多 4 次重试)。已输出时保留已完成上下文继续恢复,不重置尝试计数。连续 3 分钟没有生成进展时会取消当前模型请求并进入同一恢复流程,心跳和元数据不会延长等待。该计时不包括客户端工具执行或人工等待;持续有生成进展的请求不设整体硬时限。</p><p>Responses 失败重试会重新发起模型服务请求,使用当前完整上下文,不沿用旧路由或服务端续接状态;WebSocket 会新建连接,但不会创建新的用户会话或运行。正常工具续轮仍保留当前路由和续接状态。单次模型请求耗尽重试后,对话错误会显示总尝试次数和重试次数,并保留最终错误原因;工具续轮或用户后续发起的新运行会从第 1 次重新计数,失败恢复本身不会重置计数。</p><p>MAR Agent 不设置单次运行的累计 token 预算或模型往返轮次上限,也不会因累计用量强制收尾。长任务可在 Context GC 或 Compact 后继续;上下文容量检查、取消与模型请求超时仍然有效。模型服务商的套餐、账户及请求限制不受影响。</p><p>工作区会话右下角的信息图标展示最近可用的 Latency 和平均输出 TPS。Latency 在收到首个有效模型语义响应后立即更新;平均输出 TPS 仅在请求结束、Provider 返回权威输出 Token,且累计生成观察时长至少为 1 秒时更新。不足 1 秒时不发布本次 TPS,但 Latency 和 Token 用量照常更新,同一 Run 内保留上一次有效 TPS。TPS 按客户端观测的生成区间计算,排除客户端工具执行和 Hosted Tool 的明确执行暂停区间;输出 Token 可能包含 reasoning 和 Tool Call,观测时长可能受网络和上游缓冲影响,不等同于模型服务端纯推理速度。</p><p>所有用户可在“我的模型顺序”Tab 按个人习惯调整当前获授权模型在选择列表中的顺序;该操作不会影响其他用户、管理员设置的默认顺序,也不会改变会话标题生成或模板候选。未被个人调整的新模型继续按管理员默认顺序排在后方。系统管理员在“模型”Tab 管理全局默认顺序,列表展示名称、连接类型、模型 ID、可用性、使用范围和测试状态,不展示凭据与 Responses 传输;Codex 传输仍可在模型编辑表单中查看和修改。删除模型不要求先禁用,也不会因当前正在使用而被阻止;已经开始的单次模型网络请求可自然结束,后续再使用该模型会按模型不存在失败。点击“调整排序”后拖动行首手柄,使用“保存排序”一次保存完整顺序并退出排序模式;“取消”会恢复调整前的顺序。</p><p>保存后使用“测试”,选择一个在线且版本、动态凭据能力和当前传输均兼容的 Node 执行真实最小请求。测试不会创建 Workspace Session 或 Run。测试成功或失败后弹窗都会保留,展示结果、错误码、HTTP 状态、消息、Server 请求 ID;如果 Node 提供上游明细,还会展示上游请求 ID、Content-Type、<code>Retry-After</code> 和可选择复制的纯文本响应正文。正文有安全长度上限,截断时会显示提示,HTML 不会执行或渲染。再次测试或改选模型、Node 会清除旧结果。失败测试仍按原规则显示错误通知,但诊断明细保留在弹窗中。列表和测试结果不会回显 API Key 或 OAuth Token;编辑时内联 Key 或已有 Codex 凭据留空表示保留原值。模型配置仍只由系统管理员管理;Codex 凭据则按凭据作用域由对应用户或管理员管理。</p><p>Codex (legacy) 和 ChatGPT 模型均提供 <strong>速度 → 默认 / Fast / Ultrafast</strong>。配置按 Responses 标准 <code>service_tier</code> 参数保存,适用于 HTTP 与 WebSocket 请求。存量 Fast 设置保留为 Fast,其余存量模型及新导入模型使用默认。可用性及额度消耗或费用由上游模型和账户决定,不支持时不会静默降级。独立 CLI 保留 <code>--fast-mode</code>、<code>--no-fast-mode</code> 兼容选项。</p><h2 id="对话模型与辅助模型" tabindex="-1">对话模型与辅助模型 <a class="header-anchor" href="#对话模型与辅助模型" aria-label="Permalink to &quot;对话模型与辅助模型&quot;">​</a></h2><p>模型表单默认勾选 <strong>对话模型</strong>。只有已启用且勾选此项的模型,才能出现在工作模式或托管对话的 Composer、Subagent 以及模板主模型候选中。取消勾选后,模型仍可用于专用 Compact、会话标题命名和输入预测;这些用途仍需分别配置并满足模型与凭据使用权。对话模型也可用于上述辅助用途,“启用”和“会话标题命名”开关保持独立。</p><p>MAR Agent 子会话的模型还必须勾选 <strong>支持 Subagent</strong>。子会话的模型选择只显示同时满足两种用途且当前可用的模型;没有符合条件的模型时,候选列表为空。主会话的模型选择不受此开关限制。</p><p>已有模型会保留对话用途,新建及目录导入也默认开启。修改不打断已开始的执行;后续发送、续作或显式选择不再具备对话用途的模型时会拒绝执行,请重新选择可用对话模型。历史记录不会删除。</p><h2 id="输入预测模型" tabindex="-1">输入预测模型 <a class="header-anchor" href="#输入预测模型" aria-label="Permalink to &quot;输入预测模型&quot;">​</a></h2><p>在 <strong>管理 → MAR Agent 模型 → 高级 → Prompt Tab</strong> 单独保存全局开关、模型和思考强度,不改变 Compact 配置。全局默认启用但不预选模型;用户仍须有模型及凭据使用权,可在 <strong>设置 → 外观(Appearance)</strong> 切换“输入预测”(无已保存偏好时默认开启,已保存关闭仍关闭;仅工作模式,选择立即保存到当前浏览器)。工作模式支持四种 Runner;预测通过 Node 调用 MAR Agent SDK 的独立模型接口,通过结果工具 Schema 接收预测数据,不创建 Agent 会话或执行工具。操作方式和数据范围见 <a href="./../workbench/composer#输入预测-prompt-tab">输入预测</a>。</p><h2 id="专用-compact-模型" tabindex="-1">专用 Compact 模型 <a class="header-anchor" href="#专用-compact-模型" aria-label="Permalink to &quot;专用 Compact 模型&quot;">​</a></h2><p>系统管理员可在 <strong>管理 → MAR Agent 模型 → 高级 → Compact</strong> 配置启用开关、已有模型和思考强度。这是一份系统级配置,不在“系统配置”页面;企业默认优先选择根组织模型。默认关闭,关闭时继续使用当前会话模型整理上下文。保存只影响之后的运行,不切换当前正在执行的模型。</p><p>还需在当前执行模型的表单中勾选 <strong>统一 Compact</strong>,才会使用系统专用模型。此项默认关闭,新建、导入及未配置的存量模型均使用原模型 Compact;子会话按自身实际模型的开关判断,不继承父模型设置。专用摘要模型自身无需勾选。更改从后续执行生效;旧 Node 未声明支持该开关时保守使用原模型 Compact。</p><p>Node 扩展固定使用高密度 Textual Continuation IR 提示词,不提供独立 CLI 参数。IR 标题和字段名使用英文,自然语言描述可跟随任务语言。未启用或回退时使用 Core 普通结构化交接提示词。专用模型只生成内部交接摘要,不执行工具,也不改变会话主模型。普通会话和托管对话都需满足实际运行用户的模型使用权及凭据作用域;系统启用不会自动授予使用权。输入本地估算超出专用窗口时会在首次调用前裁到窗口的 90%,可能省略较早或冗长证据。专用模型不可用、仍超限或生成失败时,自动回退当前模型的默认整理;不对专用模型做二次容量裁剪或重试。取消或整理总时限耗尽不会触发回退。摘要仅供会话续作,不作为公开聊天正文展示。</p><p>MAR Agent 根据最近一次同模型的上下文输入用量安排自动整理:达到 85% 后在后台生成候选,当前任务和工具继续运行;达到 90% 后会在下一次模型请求前等待同一整理完成。会话时间线在同一项中更新后台生成、等待、完成、失败或取消状态;后台整理不会使当前任务提前结束,也不会公开内部交接摘要。快照之后产生的消息和工具结果会保留在整理后的前缀之后。成功整理后若仍有保留尾部,Context 用量在下一次前台模型请求报告新用量前保持未知;没有保留尾部则沿用现有 <code>0 / window</code> 重置基线。后台 Compact 用量仍计入成本,但不覆盖前台上下文用量、Latency 或平均输出 TPS。</p><p>Smart Compact 是独立的全局开关,位于同一 <strong>管理 → MAR Agent 模型 → 高级 → Compact</strong> 面板,默认关闭;无需启用或选择专用 Compact 模型。开启后,在有效的同模型输入水位达到 60% 且低于 90% 时,Runtime 允许主模型判断旧阶段的详细上下文是否已失去主要续作价值,并可提前请求同一后台整理机制;不会因每次切题或一次性问答就整理,也不保证无限历史无损保留。用量缺失或失效时跳过这次可选机会。关闭 Smart Compact 仅停用此可选提前整理,不影响手动 Compact,也不影响固定的 85%/90% 自动容量保护。无需企业 License,SDK 与 CLI 使用同一机制;既有手动 Compact 入口和状态显示不变。缺少 <code>smartCompactControl</code> capability 的旧 Node 在开关开启时仍按原行为执行;开关关闭时无法确认旧行为已停用,会以 <code>CAPABILITY_VERSION_UNSUPPORTED</code> 拒绝普通对话及实际 Plan 执行,升级 Node 后再试;手动 Compact 和仅切换 Plan 状态的命令仍可使用。</p><h2 id="chatgpt-套餐授权" tabindex="-1">ChatGPT 套餐授权 <a class="header-anchor" href="#chatgpt-套餐授权" aria-label="Permalink to &quot;ChatGPT 套餐授权&quot;">​</a></h2><p>“OAuth 凭据”Tab 在同一张表展示 <strong>Codex (legacy)</strong>、<strong>ChatGPT 套餐授权</strong> 和 <strong>X订阅</strong>。添加 ChatGPT 凭据时选择 <strong>ChatGPT 套餐授权</strong>,再选择浏览器当前电脑上的在线 Node;该 Node 必须支持本机登录。打开本机登录入口,在 OpenAI 页面完成授权。选择远程 Node 无法接收当前浏览器的 loopback 回调,请取消并重新选择。</p><p>本机 Node 只作为临时登录器;最终凭据由 Server 保存和统一刷新。其他远程 Node 不需要参与登录,只要获授权就可共用该凭据。个人、组织和全企业作用域及管理/模型使用权限与 Codex 凭据一致。重新登录也需本机 Node,使用已签发的 client ID;取消或失败不会覆盖现有凭据。</p><p>模型使用固定的公开 OpenAI Responses 地址,不使用旧 Codex backend。支持 HTTP/1.1、HTTP/2 和 WebSocket;HTTP 与 WebSocket 均可启用 <code>previous_response_id</code>,在用户与工具多轮间增量续接;WebSocket 额外要求同一健康连接,重连或 Adapter 重建后回放完整必要历史。不支持以此凭据调用图片生成。可选 SOCKS5 同时用于 Node 登录、Server 刷新与目录,以及运行 Node 的模型请求。</p><p>身份登录成功但缺少套餐使用权限时,凭据会保留并明确显示“未授权”,不能加载目录或用于模型;请重新登录并授予套餐使用权限。该状态不等于 Token 失效,也不会自动改用 API Key 计费。新凭据不提供旧 Codex 私有用量查询,账户标识来自已验证身份;目录没有提供的上下文窗口需在导入时补齐。Token 不会返回管理页面。</p><p>在 ChatGPT 凭据的<strong>详情</strong>中选择<strong>管理用量</strong>,会在新标签页打开 <a href="https://chatgpt.com/settings/usage" target="_blank" rel="noreferrer">ChatGPT 设置 → 用量</a>,查看套餐或本应用的限制并调整可用设置;请确认 ChatGPT 当前登录的是该凭据对应的账户。收到 <code>subscription_sharing_usage_limit_exceeded</code> 时,聊天错误消息会用纯文字提示用量限制,以及需要打开的 <code>https://chatgpt.com/settings/usage</code> 地址,不提供额外按钮或链接交互;普通 429 不会被当作套餐额度耗尽。</p><h2 id="x订阅-oauth-实验性" tabindex="-1">X订阅 OAuth(实验性) <a class="header-anchor" href="#x订阅-oauth-实验性" aria-label="Permalink to &quot;X订阅 OAuth(实验性)&quot;">​</a></h2><p>在“OAuth 凭据”中选择“添加 OAuth 凭据”,类型选择 <strong>X订阅 OAuth(实验性)</strong>,填写名称、归属和可选 SOCKS5 URL。打开显示的 xAI 授权页面并输入设备码;不需要选择本机 Node。请确认授权页面与要绑定的账户后再同意。共享公共 OAuth 客户端可能显示 Grok Build 名称;是否允许推理取决于上游账户和订阅资格,付款金额或登录成功都不保证模型访问权。</p><p>代理格式为 <code>socks5://[username:password@]host:port</code>,特殊字符需要 URL 编码。Server 的设备码、Token 换取、身份查询、刷新、目录、额度和撤销请求,以及执行 Node 的模型请求,均使用这份配置;代理不可达时不会回退直连。Server 和执行 Node 都必须能访问代理地址,远程 Node 上的 <code>127.0.0.1</code> 不是 Server 本机。打开 xAI 授权页使用浏览器自身网络,不继承此代理。创建后可在凭据编辑中修改或清除代理,详情中可原样检查完整 URL;请勿公开截图中的代理密码。</p><p>登录成功后可以加载模型目录导入,也可以新建 Grok 模型并选择已有凭据、填写模型 ID。模型推理固定使用 <code>https://cli-chat-proxy.grok.com/v1</code>,提供 WebSocket 和 HTTP/1.1 SSE 传输选项,新建与目录导入默认 HTTP/1.1 SSE,编辑时可切换传输;Responses 续接默认关闭,此时两种传输均发送完整历史;两种传输均可手动开启 <code>previous_response_id</code>,实际支持由上游及账户决定,开启不代表兼容性保证。订阅代理的传输与续接支持不作保证;引用不存在时会回退一次完整历史,其他失败保留错误诊断。不提供速度档位、HTTP/2 或图片生成。仍使用 X 订阅 OAuth 凭据,不要求开发者 API Key;目录、身份与额度查询继续使用订阅代理。升级 Server 时会自动将误配置为开发者 API 地址的订阅模型迁回订阅代理,保留其他配置并清除旧测试状态。Hosted Web Search 可在模型表单开关,新建和目录导入默认开启;已有模型保持原配置,需编辑勾选并保存才会开启。重新导入会创建独立模型,不修改已有模型。执行 Node 必须支持新的 Responses 参数能力,否则需要升级 Node。</p><p>在凭据详情中点击“查询用量”,可手动查询本周期已用/剩余百分比、周/月周期、重置和查询时间,以及单独列出的额外美元余额。缺失值显示“—”,不是 0 或无限;不推算剩余 Token,不展示不存在的 Token 统计。查询失败不代表推理不可用;用量不会自动轮询,关闭详情会清除结果。上游可能存在额外付费余额,MAR 不自动充值或更改计费设置,也不保证订阅调用永不产生额外费用。</p><p>Token 由 Server 保存并自动刷新,执行 Node 只取得短期访问凭据;失效时可重新登录。删除未被模型引用的凭据会尽力撤销上游 refresh token,撤销失败会明确提示。此接入依赖可能变化的订阅代理协议,不建议用于要求稳定 SLA 的生产任务。</p><h2 id="配置-codex-凭据与模型目录" tabindex="-1">配置 Codex 凭据与模型目录 <a class="header-anchor" href="#配置-codex-凭据与模型目录" aria-label="Permalink to &quot;配置 Codex 凭据与模型目录&quot;">​</a></h2><p>所有用户都可从“管理 → MAR Agent 模型”进入“我的模型顺序”和自己有权管理的 OAuth 凭据视图;只有系统管理员会看到用于配置模型的“模型”Tab。选择“添加 OAuth 凭据”并选用“Codex (legacy)”时,普通成员只能创建个人凭据,组织管理员还可选择其管理组织子树内的组织凭据,系统管理员可选择组织或全企业凭据。个人凭据仅所有者可见,组织凭据仅系统管理员和覆盖该组织的组织管理员可见,全企业凭据仅系统管理员可见。填写名称、作用域及可选 SOCKS5 代理后开始设备登录;该代理仅用于 Codex OAuth 请求、模型目录请求,以及引用此凭据的 Codex 模型请求。系统显示设备码和验证页面,并按服务端间隔自动轮询;等待期间也可选择“刷新登录状态”立即查询一次。只有登录成功、Token 交换及账户校验完成后才保存凭据。取消、失败或过期的登录不会创建凭据。</p><p>凭据列表和详情分别展示当前 access token 的到期时间和 ChatGPT 上游给出的最早可刷新时间;未知的最早可刷新时间显示“—”,这两个时间都不表示 refresh token 到期。refresh token 仍有效且授权正常时,Server 会自动在临期换码;长时间运行任务的 Node 也会自动续取访问令牌和运行票据,不依赖下一次模型调用。暂时失败或返回的令牌仍临期时有界重试;持续断线或凭据失效仍需恢复连接或重新登录。手动刷新可以提前请求换码,是否成功以上游响应为准;自动续期仍遵守最早可刷新时间。真正换码成功后,列表和当前详情立即显示新的到期时间、最早可刷新时间与最近刷新时间。操作列提供“详情”“编辑”“测试”和“删除”。选择“编辑”可修改名称、作用域和 SOCKS5 代理。缩小凭据作用域时,如果已有模型授权超出新作用域,保存会被拒绝,需先收窄模型授权。详情会单独读取并原样显示当前凭据的完整 SOCKS5 URL,并提供刷新、重新登录、查询用量和加载模型目录。选择“查询用量”后,页面显示总 Token、上一日用量、连续 7 个自然日 Token 合计、当前限额窗口的已用百分比、重置时间、本次查询时间;上一日的具体日期与 UTC 偏移以小字显示在用量数值下方。即使昨日没有统计桶,也显示该日期,用量显示为“—”且不回退到更早日期;最新桶若为当地当天,仍不计入 7 天合计。统计日按 <code>America/Los_Angeles</code> 换日:夏令时为 <code>UTC-07:00</code>(UTC+8 的 15:00),冬令时为 <code>UTC-08:00</code>(UTC+8 的 16:00)。系统不会自动轮询,关闭详情后也不会保留完整代理串或用量结果。被模型引用的凭据必须先解除引用才能删除。页面不会展示自定义元数据、已导入模型数量、access token、refresh token、ID token、上游原始用量响应或 FedRAMP 标记。</p><p>选择“加载模型目录”会实时读取该凭据可见的 Codex 模型。页面逐项显示系统支持的思考强度(包括 <code>ultra</code>)、目录提供或系统归一化后的默认强度,以及真正未知的上游强度。勾选要导入的条目;只有上游未提供上下文窗口时才需要补齐,缺失最大输出不会生成输入项。目录不提供可用状态开关,导入后的模型默认启用并采用目录默认强度;传输方式和 Responses 续接等设置统一在模型视图中调整。Codex 和 ChatGPT 每次从目录导入都会创建新的独立模型,即使凭据、上游模型 ID、展示名称和归属完全相同。已有模型和授权保持不变;新模型使用导入默认配置,不继承已有模型的设置或授权。目录发生变化时页面会要求重新确认。</p><h2 id="配置使用授权" tabindex="-1">配置使用授权 <a class="header-anchor" href="#配置使用授权" aria-label="Permalink to &quot;配置使用授权&quot;">​</a></h2><p>新建模型默认为“受限”,升级前已有模型会迁移为“公共”。模型列表的“使用范围”列显示当前状态:</p><ul><li>向“整个企业”授权后,模型成为公共模型。</li><li>未向整个企业授权时,可分别授权给用户或组织,模型保持受限。</li><li>系统管理员始终可以管理全部模型,不受模型授权记录限制;实际使用仍必须位于模型所绑定凭据的作用域内。</li></ul><p>点击模型行的“授权”可查看、添加或撤销授权。模型授权范围必须完全包含在所绑定凭据的作用域内,例如组织凭据不能授权给该组织子树以外的用户、组织或整个企业。普通用户的新会话模型目录只显示同时满足“已启用”“当前用户有模型授权”和“当前用户位于凭据作用域”的脱敏模型;主 Agent 和 subagent 使用同一份授权模型集合。</p><p>禁用模型后,后续新会话、消息和会话命令会被拒绝。撤销用户权限、用户离开凭据组织作用域、模型改绑或解绑凭据、凭据失效后,运行时也会在每次解析动态凭据时重新拒绝后续请求;Node 已经接收且不再需要解析凭据的工作不会被强制中止。再次打开已有 MAR Agent 对话时,如果原模型已不在当前可用目录且目录仍有模型,Web 会自动保存目录中的第一个模型,并把思考强度切换为该模型的默认值;目录为空时不会切换到其他 Agent。模型可直接删除,无需先禁用或等待活动任务结束;已经取得配置的执行可继续,后续解析该模型将按不存在失败。</p><h2 id="会话与权限" tabindex="-1">会话与权限 <a class="header-anchor" href="#会话与权限" aria-label="Permalink to &quot;会话与权限&quot;">​</a></h2><p>Node 提供 <strong>Auto</strong> 和 <strong>完全访问(Full access)</strong>。新建普通工作会话默认 Auto;已有会话保留保存的档位,进入 Goal 不会把 MAR Auto 自动升级为完全访问。独立 SDK/CLI 仍默认 Full access,托管对话保持原有隔离与权限策略。</p><p>Auto 由当前模型判断:普通工程操作和已明确授权的任务自动继续;重要风险或授权仍无法判断时 ask;deny 仅用于仍然有效的明确禁止、上级/Host 禁止或已知无法合理限制影响的极端危险。相同任务、目标和影响范围内的授权会继续复用,不因换工具、重试、分轮或子 Agent 反复询问;范围、影响扩大或用户撤回时重新判断。</p><p>Code Mode 由模型优先在外层 <code>code_exec</code> 整体声明 ask/deny。内部 deny 只拒绝该次工具调用,在结果 <code>data</code> 中返回 <code>error: MAR_AGENT_PERMISSION_DENIED</code> 和简短 <code>message</code>,不抛出 JS 异常或结束整段代码;后续依赖步骤应先检查返回结果。该工具仍记录为失败,其他异常保持原有处理方式。</p><p>ask 通过 Runner 审批卡在线等待,显示公开原因、命令/参数/代码、工作目录与到期时间。点击允许后执行已捕获的原调用;多个请求分别审批。10 分钟未决定即过期,不执行,也不视为用户拒绝。拒绝、过期和模型 deny 仅使该次调用失败,模型可在剩余授权内继续或自然停止;不能自动重试或绕过用户拒绝。取消后、已决定或过期的卡片不可执行。Goal 与定时任务沿用 Node 现有策略。无在线通道的独立 SDK/CLI 在 ask 时停止;之后的新指令不会重放旧调用。</p><p><strong>Auto 不是操作系统沙箱,也不是独立安全审查器。</strong> Full access 不做 Auto 自评,两种档位都保留 Host 路径与资源校验,工具使用 Node 服务账号的实际权限。请使用低权限专用账号并限制 Workspace 和主机权限。</p><p>原生会话记录保存在 Node 运行账号的 <code>~/.mar/agent/sessions/</code>。Server 不保存会话正文。MAR Agent 支持 Plan、Compact、question、MCP、图片和 subagent。模型可通过 <code>todo</code> 工具的 <code>action: read | write</code> 读取或整体替换当前会话的任务清单;空列表可清空清单。Todo 更新会显示为任务清单,已有会话的清单与历史保持兼容。每个 subagent 都是独立持久化的子会话,保留自己的历史和父子关系,但默认会话列表只显示用户根会话;Agent Network 支持根会话、子会话和孙会话三层,不支持第四层。目标模式由 Node 的统一 Goal 流程管理,不在 Agent SDK 内重复实现。</p><p>MAR Agent 会扫描 HOME 与工作区中的标准 Skill 目录,先向模型提供名称和用途摘要。Agent 按需调用 <code>skill_load</code>,用户无需在请求中写出技能名称。技能指导会加入模型上下文,不作为工具输出。上下文 GC 保留每个已加载技能的最新版本;Compact 会清除已加载的指导,Agent 可按需重载。同名技能按 Workspace、用户、SDK 内置的顺序选择;项目指导不能改变工具参数或主机权限。</p><h3 id="命令执行环境" tabindex="-1">命令执行环境 <a class="header-anchor" href="#命令执行环境" aria-label="Permalink to &quot;命令执行环境&quot;">​</a></h3><p><code>exec</code> 默认启用登录配置。Bash 按原生顺序读取首个可读的 <code>~/.bash_profile</code>、<code>~/.bash_login</code> 或 <code>~/.profile</code>,并在 <code>BASH_ENV</code> 未设置或为空时补加载可读的 <code>~/.bashrc</code>;PowerShell 默认加载启动配置。配置属于执行命令的 Node 服务账号,不是浏览器用户。每次命令启动都会重新读取配置;托管对话只读取隔离环境中可见的文件,不加载宿主账号的配置。</p><p>需要跳过登录初始化时,可以让 Agent 使用 <code>exec({ command: &quot;…&quot;, login: false })</code>。登录 Shell 仍是非交互模式:如果工具链 PATH 位于 <code>.bashrc</code> 的非交互 <code>return</code> 后面,应将这类通用环境配置放到登录配置中,或移到该提前返回之前。MAR 不会绕过这个保护,也不会把一次命令中的 <code>export</code> 写回 Node 或后续独立命令。</p><h3 id="子-agent-高级控制" tabindex="-1">子 Agent 高级控制 <a class="header-anchor" href="#子-agent-高级控制" aria-label="Permalink to &quot;子 Agent 高级控制&quot;">​</a></h3><p>Node Agent Network 不设置旧的 16 个创建或并发限制;独立 SDK Subagent 扩展保留自己的准入策略。</p><p>协作工具为 <code>agent_start</code>、<code>agent_send</code>、<code>agent_wait</code>、<code>agent_stop</code>、<code>agent_list</code> 和 <code>agent_view</code>。<code>agent_start</code> 使用文本任务和非空标题,登记子会话和首个执行后即返回,不等待完成;手动 marctl 创建时标题可省略。使用结果中的 <code>agentId</code> 寻址子会话。<code>agent_send</code> 可发送文本消息、更新 Goal 或对获授权会话的审批作决定;可指定投递意图,包括替换当前执行。<code>agent_wait</code> 默认等待直接子会话终态 30 秒,<code>waitMs=0</code> 只查看快照,正数按传入时长等待。<code>agent_stop</code> 只需会话 ID,停止目标当前执行并清除 Goal;列表和查看工具用于发现获授权的会话及其状态。</p><p><code>agent_view</code> 仅接受 <code>agentId</code>,返回状态、当前 Goal 和有界最近活动,不公开 Run 或 Execution ID,不读取会话历史。完整记录通过独立的 <code>marctl agents history &lt;session-id&gt;</code> 按需分页查询;<code>marctl agents view</code> 遵循相同的状态查询边界。</p><p>目标空闲且没有当前或保留执行时,<code>agent_wait</code> 返回 <code>AGENT_IDLE</code>,摘要明确说明“Agent is idle; there is no execution to wait for.”,不表示会话不存在或任务失败。空闲会话若仍保有真实终态执行,则正常返回该执行结果。省略目标且没有子会话时返回 <code>AGENT_WAIT_NO_TARGETS</code>;显式目标不存在时返回 <code>SESSION_NOT_FOUND</code>。等待不会启动空闲会话。</p><p>同一获授权 Node/Workspace 内,消息、显式等待、Goal、停止、审批及 marctl 会话设置均不按父子关系限制;目标 Run/队列用户归属、模型及资源授权仍有效。发送不建立横向自动订阅。</p><p>子 Agent 的未读公开消息与新终态会在父 Agent 下一次正常模型请求前自动送达,包括原生 Extension API 创建的直接子 Agent;父 Agent 无需反复使用 message wait 检查进展。自动送达不唤醒空闲父 Agent,也不延迟正常最终回复;交付所必需的结果仍应在结束前主动汇合,真正阻塞时仍可使用 <code>agent_wait</code>。自动送达与模型的显式等待共享已读位置,因此已经送达的正文或终态证据不会在后续等待中重复返回。子 Agent 的内容是待核验的上下文,不是新的用户指令或授权。</p><p>Node 为每个父子观察关系保留最近 10 条未读更新,跨执行统一计数;超限移除最旧记录,并通过 <code>omittedUpdates</code> 报告自上次确认以来的遗漏数量。该计数属于父子观察关系,不表示某一次执行丢失了相同数量的消息。提示随观察结果确认后清除,完整公开历史仍可按需读取;窗口不保证无限保留全部未读内容。</p><p>Node 原生 <code>agent_send</code> 使用 <code>delivery</code> 参数,取值为 <code>STEER</code> 或 <code>QUEUE</code>。携带正文时默认使用 <code>STEER</code>;其他 Runner 的 <code>marctl agents send &lt;id&gt; -m &lt;text&gt;</code> 也是如此。纯 Goal 更新或审批操作不涉及消息投递。及时沟通建议使用 STEER;QUEUE 更适合用户或接收方明确要求延后的输入。输入要等当前工作和前面的队列项结束后才消费,有活动 Goal 时,必须等到该 Goal 退出才消费。已接收不保证立即处理。</p><p>消息被接受后,通常无需另外回复或索取收悉确认,也不必仅为确认收到而立即查看会话。主、子 Agent 建议并行推进有意义且不重叠的工作;没有其他本地工作可做,且需要结果解除阻塞或收尾时,再考虑等待。必要的任务结果、澄清、阻塞、冲突和决策信息仍应正常交付。</p><p>原生 <code>agent_list</code> 只接受 <code>scope</code>、可选标题片段 <code>query</code> 和 <code>limit</code>。省略 <code>scope</code> 或选择 <code>tree</code> 时,返回当前会话所在的协作树,包括已登记且获授权的根、祖先、同级及后代;空闲及已结束执行的会话也保留。选择 <code>active</code> 时,返回当前 Workspace 内正在运行或睡眠的会话,不把最近聊过、Goal 已启用或队列非空当作活跃。已知会话应直接复用其 ID,不按标题自动选址或派发。</p><p><code>query</code> 在选定范围内按标题片段过滤,忽略首尾空白及大小写,并统一全角等兼容字符;<code>limit</code> 默认 10、上限 100。结果为 <code>scope</code>、<code>currentAgentId</code>、扁平 <code>sessions</code> 和 <code>truncated</code>,每项只含 <code>id</code>、<code>parentSessionId</code>、<code>title</code> 和 <code>status</code>(<code>RUNNING</code>、<code>SLEEPING</code> 或 <code>IDLE</code>)。两种范围均按活跃优先、最近活动时间倒序排列,通过 parentSessionId 保留树关系;父项可能因过滤或授权不在结果中。无匹配返回空列表,超过 limit 时标记截断,不提供 cursor 或翻页;可用 query 缩小范围。列表不扫描 Runner、不恢复执行、不自动订阅。<code>marctl agents list</code> 使用相同参数和返回字段;独立终端没有当前会话时默认 active,currentAgentId 为 null,显式 tree 会报缺少会话上下文。</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 s,o as a,c as i,a3 as o}from"./chunks/framework.BHjrhdiC.js";const r=JSON.parse('{"title":"配置和使用 MAR Agent","description":"","frontmatter":{"title":"配置和使用 MAR Agent","lastUpdated":"2026-11-21T00:00:00.000Z"},"headers":[],"relativePath":"runners/mar-agent.md","filePath":"runners/mar-agent.md"}'),t={name:"runners/mar-agent.md"};function n(d,e,p,c,l,h){return a(),i("div",null,[...e[0]||(e[0]=[o(`<h1 id="配置和使用-mar-agent" tabindex="-1">配置和使用 MAR Agent <a class="header-anchor" href="#配置和使用-mar-agent" aria-label="Permalink to &quot;配置和使用 MAR Agent&quot;">​</a></h1><p>MAR Agent 是随 Node 内置的编码 Agent,不需要安装外部 Agent CLI。每个用户都可在“管理 → MAR Agent 模型”添加和管理自己的个人模型;组织模型由有权管理员维护和授权。同时满足模型使用权和所绑定凭据作用域的用户即可在新会话中选择 <strong>MAR Agent</strong>。</p><p>Server、Web 和 Node 的版本切换及旧 Node 升级限制见<a href="./../deployment/upgrade">升级 MyAgentRoam</a>。</p><h2 id="配置模型" tabindex="-1">配置模型 <a class="header-anchor" href="#配置模型" aria-label="Permalink to &quot;配置模型&quot;">​</a></h2><p>OpenAI Responses 与 Anthropic Messages 的 API Key 模型可以单独配置 <strong>SOCKS5 代理</strong>,格式为 <code>socks5://[username:password@]host:port</code>,用户名或密码中的特殊字符需要 URL 编码。编辑时会按需读取已保存的代理;不修改则保留,清空并保存后直连,复制模型会继承代理且可修改。代理从执行 Node 连接,<code>localhost</code> 指该 Node,不是浏览器或 Server;代理失败不会回退直连。Responses 的 HTTP/1.1、HTTP/2、WebSocket 和 Anthropic 请求均使用此设置,执行 Node 必须声明支持模型 SOCKS5,否则需先升级 Node。订阅模型始终沿用 OAuth 凭据的代理,不提供模型级覆盖。完整代理地址只在授权编辑表单中读取,不进入模型列表、日志或会话记录;请勿公开截图中的代理密码。辅助任务使用其实际选中模型的代理,Web Fetch 等工具不继承模型代理。</p><p>模型表单中的 <strong>上下文回收</strong> 默认开启,可按模型关闭。关闭后不执行文本或图片 GC;自动 Compact 和图片请求硬限额仍生效,图片超限时请求会被拒绝。关闭配置需要运行 Node 声明支持该开关,旧 Node 不会静默忽略它。更改对后续执行生效。</p><p>“使用资源 URL”需要系统设置总开关与模型开关同时开启:全局默认开启,模型默认关闭,修改对下一次执行生效。当前用于图片视觉输入:开启时通过固定的 24 小时签名 URL 提供图片,过期不续期,不参与图片水位 GC;关闭时近期附件和工具图片保留在有界内联窗口,跨轮次继续可见。内联图片与文本共用 GC checkpoint:历史图片编码载荷超过 7 MiB 时,按最早顺序回收到不大于 5 MiB,保护最近两个成功模型轮次;文本 GC 时可顺带回收超过 5 MiB 的成熟图片。单次请求图片编码载荷上限为 12 MiB,必要时可越过历史图片保护期,但不丢弃本次新图。淘汰不删除附件或图片文件。图片附件仍保存为文件并提供路径;需要再次查看时,模型可用附件路径或当前会话的 <code>resourceId</code> 重新调用 <code>view_image</code>;释放提示会保留对应资源 ID。该工具每次返回图片尺寸,单张结果最多 3 MiB;较大图片可显式使用 <code>resize</code> 缩放或 <code>region</code> 查看局部,处理源文件最多 20 MiB。图片预算不包含文字和工具定义,不等于整个请求体大小。HTTP URL 与内联模式共用独立资源存储,关闭 URL 不关闭视觉能力。旧格式历史图片不再作为图像输入恢复,原文本与附件文件保留。图片策略要求 Node 支持资源输入能力。</p><p>每个模型都是独立连接。表单提供 <strong>Codex</strong>、<strong>ChatGPT 套餐授权</strong>、<strong>X订阅 OAuth(实验性)</strong>、<strong>OpenAI Responses</strong> 和 <strong>Anthropic Messages</strong> 五种连接类型。选择 Codex 后直接选择已有 Codex 凭据;模型 ID 始终手工填写或修改,不提供目录选项,也不要求该 ID 出现在所选凭据的实时模型目录中。切换凭据时已填写的模型 ID 会保留,展示名称仍可自定义。实时目录仅在“加载模型目录”批量导入时读取。Codex 使用固定服务地址,OpenAI Responses 与 Anthropic Messages 则分别填写 Base URL 和内联 API Key。新建模型的上下文 Token 默认 <code>256000</code>、最大输出 Token 默认 <code>32000</code>;切换连接类型保留模型 ID、Token 上限、能力、思考强度和用途等兼容字段。OpenAI Responses 与 Anthropic Messages 之间保留内联 API Key 和自定义 Base URL,仅默认地址随协议切换;临时切换到 OAuth 再返回也保留已填写的 Key 和自定义地址。OAuth 使用固定地址,不兼容的 OAuth 类型必须重新选择凭据。编辑已有模型时保留保存值,Key 不回显,留空保留已有 Key。目录导入优先使用上游明确提供的限制;缺失上下文 Token 时预填 <code>256000</code>,可在导入前修改,缺失最大输出 Token 时使用 <code>32000</code>(小窗口会收窄至严格小于窗口)。图片输入、会话标题命名、Code Mode、Hosted Web Search、Responses 续接、可选思考强度和默认思考强度都在模型表单中维护;所有 Responses 连接类型均提供传输选项。普通工作区会话和托管对话生成标题时,会按模型排序使用首个已启用“会话标题命名”的可用模型;没有模型开启时回退当前会话所选模型。默认思考强度始终必填;即使不向用户开放强度选择,MAR Agent 内部请求也会使用该默认值;Grok 未配置可选强度时,不向上游发送不受支持的 reasoning 参数。</p><p>在可管理模型的操作列选择 <strong>复制</strong>,会打开预填的新建表单,默认名称附加“副本”。可以修改配置、凭据和归属,选择 <strong>保存</strong> 后才创建新模型,取消不会写入。未替换的内联 Key 或兼容 OAuth 引用由 Server 安全复用,不向浏览器回显秘密。新模型使用独立配置 ID,追加到列表末尾,不继承共享授权和测试结果。复制仍须拥有源模型管理权,新模型的归属和凭据作用域在保存时重新校验。</p><p>Responses 模型(包括内联 API Key)可选择 WebSocket、HTTP/2 或 HTTP/1.1;X订阅支持 WebSocket 和 HTTP/1.1。选定传输失败时不会静默切换协议。HTTP 与 WebSocket 均可勾选服务端续接,切换传输保留勾选状态。只有开启续接的 HTTP 请求发送 <code>store:true</code>;未开启续接的 HTTP 和所有 WebSocket 请求均发送 <code>store:false</code>,不提供独立存储选项。开启 HTTP 续接时,首轮及引用失效后的完整回放也会请求上游保存响应,请考虑其数据留存政策。只在上游支持时启用续接。上游明确报告引用不存在或过期且尚未提交语义输出时,会在请求尝试预算内回退一次完整历史;鉴权、限流及无关错误不按引用过期处理。Adapter 重建或核心提示变化也会完整回放。HTTP 续接要求 Node 声明对应能力。Anthropic Messages 的多轮提示词缓存自动管理,无需该选项。</p><p>企业管理员在新增模型和 OAuth 目录导入时,可选择 <strong>个人 / 组织</strong> 归属。模型归属与凭据作用域独立:使用全企业凭据不会自动共享模型。需要共享时,先创建组织模型,再通过授权入口共享给用户、组织或全企业;个人模型没有授权入口。编辑已有模型只回显归属,不改变归属;已有个人模型需要共享时,应按组织归属重新创建或导入。模型列表直接展示完整的可管理集合,不分页;编辑、测试、刷新和删除后会重新展示当前完整结果。</p><p>MAR Agent 对符合条件的瞬时连接、服务过载或模型流错误进行有界重试;首次请求和后续重试共享最多 5 次尝试(首次请求加最多 4 次重试)。已输出时保留已完成上下文继续恢复,不重置尝试计数。连续 3 分钟没有生成进展时会取消当前模型请求并进入同一恢复流程,心跳和元数据不会延长等待。该计时不包括客户端工具执行或人工等待;持续有生成进展的请求不设整体硬时限。</p><p>Responses 失败重试会重新发起模型服务请求,使用当前完整上下文,不沿用旧路由或服务端续接状态;WebSocket 会新建连接,但不会创建新的用户会话或运行。正常工具续轮仍保留当前路由和续接状态。单次模型请求耗尽重试后,对话错误会显示总尝试次数和重试次数,并保留最终错误原因;工具续轮或用户后续发起的新运行会从第 1 次重新计数,失败恢复本身不会重置计数。</p><p>MAR Agent 不设置单次运行的累计 token 预算或模型往返轮次上限,也不会因累计用量强制收尾。长任务可在 Context GC 或 Compact 后继续;上下文容量检查、取消与模型请求超时仍然有效。模型服务商的套餐、账户及请求限制不受影响。</p><p>工作区会话右下角的信息图标展示最近可用的 Latency 和平均输出 TPS。Latency 在收到首个有效模型语义响应后立即更新;平均输出 TPS 仅在请求结束、Provider 返回权威输出 Token,且累计生成观察时长至少为 1 秒时更新。不足 1 秒时不发布本次 TPS,但 Latency 和 Token 用量照常更新,同一 Run 内保留上一次有效 TPS。TPS 按客户端观测的生成区间计算,排除客户端工具执行和 Hosted Tool 的明确执行暂停区间;输出 Token 可能包含 reasoning 和 Tool Call,观测时长可能受网络和上游缓冲影响,不等同于模型服务端纯推理速度。</p><p>所有用户可在“我的模型顺序”Tab 按个人习惯调整当前获授权模型在选择列表中的顺序;该操作不会影响其他用户、管理员设置的默认顺序,也不会改变会话标题生成或模板候选。未被个人调整的新模型继续按管理员默认顺序排在后方。系统管理员在“模型”Tab 管理全局默认顺序,列表展示名称、连接类型、模型 ID、可用性、使用范围和测试状态,不展示凭据与 Responses 传输;Codex 传输仍可在模型编辑表单中查看和修改。删除模型不要求先禁用,也不会因当前正在使用而被阻止;已经开始的单次模型网络请求可自然结束,后续再使用该模型会按模型不存在失败。点击“调整排序”后拖动行首手柄,使用“保存排序”一次保存完整顺序并退出排序模式;“取消”会恢复调整前的顺序。</p><p>保存后使用“测试”,选择一个在线且版本、动态凭据能力和当前传输均兼容的 Node 执行真实最小请求。测试不会创建 Workspace Session 或 Run。测试成功或失败后弹窗都会保留,展示结果、错误码、HTTP 状态、消息、Server 请求 ID;如果 Node 提供上游明细,还会展示上游请求 ID、Content-Type、<code>Retry-After</code> 和可选择复制的纯文本响应正文。正文有安全长度上限,截断时会显示提示,HTML 不会执行或渲染。再次测试或改选模型、Node 会清除旧结果。失败测试仍按原规则显示错误通知,但诊断明细保留在弹窗中。列表和测试结果不会回显 API Key 或 OAuth Token;编辑时内联 Key 或已有 Codex 凭据留空表示保留原值。模型配置仍只由系统管理员管理;Codex 凭据则按凭据作用域由对应用户或管理员管理。</p><p>Codex (legacy) 和 ChatGPT 模型均提供 <strong>速度 → 默认 / Fast / Ultrafast</strong>。配置按 Responses 标准 <code>service_tier</code> 参数保存,适用于 HTTP 与 WebSocket 请求。存量 Fast 设置保留为 Fast,其余存量模型及新导入模型使用默认。可用性及额度消耗或费用由上游模型和账户决定,不支持时不会静默降级。独立 CLI 保留 <code>--fast-mode</code>、<code>--no-fast-mode</code> 兼容选项。</p><h2 id="对话模型与辅助模型" tabindex="-1">对话模型与辅助模型 <a class="header-anchor" href="#对话模型与辅助模型" aria-label="Permalink to &quot;对话模型与辅助模型&quot;">​</a></h2><p>模型表单默认勾选 <strong>对话模型</strong>。只有已启用且勾选此项的模型,才能出现在工作模式或托管对话的 Composer、Subagent 以及模板主模型候选中。取消勾选后,模型仍可用于专用 Compact、会话标题命名和输入预测;这些用途仍需分别配置并满足模型与凭据使用权。对话模型也可用于上述辅助用途,“启用”和“会话标题命名”开关保持独立。</p><p>MAR Agent 子会话的模型还必须勾选 <strong>支持 Subagent</strong>。子会话的模型选择只显示同时满足两种用途且当前可用的模型;没有符合条件的模型时,候选列表为空。主会话的模型选择不受此开关限制。</p><p>已有模型会保留对话用途,新建及目录导入也默认开启。修改不打断已开始的执行;后续发送、续作或显式选择不再具备对话用途的模型时会拒绝执行,请重新选择可用对话模型。历史记录不会删除。</p><h2 id="输入预测模型" tabindex="-1">输入预测模型 <a class="header-anchor" href="#输入预测模型" aria-label="Permalink to &quot;输入预测模型&quot;">​</a></h2><p>在 <strong>管理 → MAR Agent 模型 → 高级 → Prompt Tab</strong> 单独保存全局开关、模型和思考强度,不改变 Compact 配置。全局默认启用但不预选模型;用户仍须有模型及凭据使用权,可在 <strong>设置 → 外观(Appearance)</strong> 切换“输入预测”(无已保存偏好时默认开启,已保存关闭仍关闭;仅工作模式,选择立即保存到当前浏览器)。工作模式支持四种 Runner;预测通过 Node 调用 MAR Agent SDK 的独立模型接口,通过结果工具 Schema 接收预测数据,不创建 Agent 会话或执行工具。操作方式和数据范围见 <a href="./../workbench/composer#输入预测-prompt-tab">输入预测</a>。</p><h2 id="专用-compact-模型" tabindex="-1">专用 Compact 模型 <a class="header-anchor" href="#专用-compact-模型" aria-label="Permalink to &quot;专用 Compact 模型&quot;">​</a></h2><p>系统管理员可在 <strong>管理 → MAR Agent 模型 → 高级 → Compact</strong> 配置启用开关、已有模型和思考强度。这是一份系统级配置,不在“系统配置”页面;企业默认优先选择根组织模型。默认关闭,关闭时继续使用当前会话模型整理上下文。保存只影响之后的运行,不切换当前正在执行的模型。</p><p>还需在当前执行模型的表单中勾选 <strong>统一 Compact</strong>,才会使用系统专用模型。此项默认关闭,新建、导入及未配置的存量模型均使用原模型 Compact;子会话按自身实际模型的开关判断,不继承父模型设置。专用摘要模型自身无需勾选。更改从后续执行生效;旧 Node 未声明支持该开关时保守使用原模型 Compact。</p><p>Node 扩展固定使用高密度 Textual Continuation IR 提示词,不提供独立 CLI 参数。IR 标题和字段名使用英文,自然语言描述可跟随任务语言。未启用或回退时使用 Core 普通结构化交接提示词。专用模型只生成内部交接摘要,不执行工具,也不改变会话主模型。普通会话和托管对话都需满足实际运行用户的模型使用权及凭据作用域;系统启用不会自动授予使用权。输入本地估算超出专用窗口时会在首次调用前裁到窗口的 90%,可能省略较早或冗长证据。专用模型不可用、仍超限或生成失败时,自动回退当前模型的默认整理;不对专用模型做二次容量裁剪或重试。取消或整理总时限耗尽不会触发回退。摘要仅供会话续作,不作为公开聊天正文展示。</p><p>MAR Agent 根据最近一次同模型的上下文输入用量安排自动整理:达到 85% 后在后台生成候选,当前任务和工具继续运行;达到 90% 后会在下一次模型请求前等待同一整理完成。会话时间线在同一项中更新后台生成、等待、完成、失败或取消状态;后台整理不会使当前任务提前结束,也不会公开内部交接摘要。快照之后产生的消息和工具结果会保留在整理后的前缀之后。成功整理后若仍有保留尾部,Context 用量在下一次前台模型请求报告新用量前保持未知;没有保留尾部则沿用现有 <code>0 / window</code> 重置基线。后台 Compact 用量仍计入成本,但不覆盖前台上下文用量、Latency 或平均输出 TPS。</p><p>Smart Compact 是独立的全局开关,位于同一 <strong>管理 → MAR Agent 模型 → 高级 → Compact</strong> 面板,默认关闭;无需启用或选择专用 Compact 模型。开启后,在有效的同模型输入水位达到 60% 且低于 90% 时,Runtime 允许主模型判断旧阶段的详细上下文是否已失去主要续作价值,并可提前请求同一后台整理机制;不会因每次切题或一次性问答就整理,也不保证无限历史无损保留。用量缺失或失效时跳过这次可选机会。关闭 Smart Compact 仅停用此可选提前整理,不影响手动 Compact,也不影响固定的 85%/90% 自动容量保护。无需企业 License,SDK 与 CLI 使用同一机制;既有手动 Compact 入口和状态显示不变。缺少 <code>smartCompactControl</code> capability 的旧 Node 在开关开启时仍按原行为执行;开关关闭时无法确认旧行为已停用,会以 <code>CAPABILITY_VERSION_UNSUPPORTED</code> 拒绝普通对话及实际 Plan 执行,升级 Node 后再试;手动 Compact 和仅切换 Plan 状态的命令仍可使用。</p><h2 id="chatgpt-套餐授权" tabindex="-1">ChatGPT 套餐授权 <a class="header-anchor" href="#chatgpt-套餐授权" aria-label="Permalink to &quot;ChatGPT 套餐授权&quot;">​</a></h2><p>“OAuth 凭据”Tab 在同一张表展示 <strong>Codex (legacy)</strong>、<strong>ChatGPT 套餐授权</strong> 和 <strong>X订阅</strong>。添加 ChatGPT 凭据时选择 <strong>ChatGPT 套餐授权</strong>,再选择浏览器当前电脑上的在线 Node;该 Node 必须支持本机登录。打开本机登录入口,在 OpenAI 页面完成授权。选择远程 Node 无法接收当前浏览器的 loopback 回调,请取消并重新选择。</p><p>本机 Node 只作为临时登录器;最终凭据由 Server 保存和统一刷新。其他远程 Node 不需要参与登录,只要获授权就可共用该凭据。个人、组织和全企业作用域及管理/模型使用权限与 Codex 凭据一致。重新登录也需本机 Node,使用已签发的 client ID;取消或失败不会覆盖现有凭据。</p><p>模型使用固定的公开 OpenAI Responses 地址,不使用旧 Codex backend。支持 HTTP/1.1、HTTP/2 和 WebSocket;HTTP 与 WebSocket 均可启用 <code>previous_response_id</code>,在用户与工具多轮间增量续接;WebSocket 额外要求同一健康连接,重连或 Adapter 重建后回放完整必要历史。不支持以此凭据调用图片生成。可选 SOCKS5 同时用于 Node 登录、Server 刷新与目录,以及运行 Node 的模型请求。</p><p>身份登录成功但缺少套餐使用权限时,凭据会保留并明确显示“未授权”,不能加载目录或用于模型;请重新登录并授予套餐使用权限。该状态不等于 Token 失效,也不会自动改用 API Key 计费。新凭据不提供旧 Codex 私有用量查询,账户标识来自已验证身份;目录没有提供的上下文窗口需在导入时补齐。Token 不会返回管理页面。</p><p>在 ChatGPT 凭据的<strong>详情</strong>中选择<strong>管理用量</strong>,会在新标签页打开 <a href="https://chatgpt.com/settings/usage" target="_blank" rel="noreferrer">ChatGPT 设置 → 用量</a>,查看套餐或本应用的限制并调整可用设置;请确认 ChatGPT 当前登录的是该凭据对应的账户。收到 <code>subscription_sharing_usage_limit_exceeded</code> 时,聊天错误消息会用纯文字提示用量限制,以及需要打开的 <code>https://chatgpt.com/settings/usage</code> 地址,不提供额外按钮或链接交互;普通 429 不会被当作套餐额度耗尽。</p><h2 id="x订阅-oauth-实验性" tabindex="-1">X订阅 OAuth(实验性) <a class="header-anchor" href="#x订阅-oauth-实验性" aria-label="Permalink to &quot;X订阅 OAuth(实验性)&quot;">​</a></h2><p>在“OAuth 凭据”中选择“添加 OAuth 凭据”,类型选择 <strong>X订阅 OAuth(实验性)</strong>,填写名称、归属和可选 SOCKS5 URL。打开显示的 xAI 授权页面并输入设备码;不需要选择本机 Node。请确认授权页面与要绑定的账户后再同意。共享公共 OAuth 客户端可能显示 Grok Build 名称;是否允许推理取决于上游账户和订阅资格,付款金额或登录成功都不保证模型访问权。</p><p>代理格式为 <code>socks5://[username:password@]host:port</code>,特殊字符需要 URL 编码。Server 的设备码、Token 换取、身份查询、刷新、目录、额度和撤销请求,以及执行 Node 的模型请求,均使用这份配置;代理不可达时不会回退直连。Server 和执行 Node 都必须能访问代理地址,远程 Node 上的 <code>127.0.0.1</code> 不是 Server 本机。打开 xAI 授权页使用浏览器自身网络,不继承此代理。创建后可在凭据编辑中修改或清除代理,详情中可原样检查完整 URL;请勿公开截图中的代理密码。</p><p>登录成功后可以加载模型目录导入,也可以新建 Grok 模型并选择已有凭据、填写模型 ID。模型推理固定使用 <code>https://cli-chat-proxy.grok.com/v1</code>,提供 WebSocket 和 HTTP/1.1 SSE 传输选项,新建与目录导入默认 HTTP/1.1 SSE,编辑时可切换传输;Responses 续接默认关闭,此时两种传输均发送完整历史;两种传输均可手动开启 <code>previous_response_id</code>,实际支持由上游及账户决定,开启不代表兼容性保证。订阅代理的传输与续接支持不作保证;引用不存在时会回退一次完整历史,其他失败保留错误诊断。不提供速度档位、HTTP/2 或图片生成。仍使用 X 订阅 OAuth 凭据,不要求开发者 API Key;目录、身份与额度查询继续使用订阅代理。升级 Server 时会自动将误配置为开发者 API 地址的订阅模型迁回订阅代理,保留其他配置并清除旧测试状态。Hosted Web Search 可在模型表单开关,新建和目录导入默认开启;已有模型保持原配置,需编辑勾选并保存才会开启。重新导入会创建独立模型,不修改已有模型。执行 Node 必须支持新的 Responses 参数能力,否则需要升级 Node。</p><p>在凭据详情中点击“查询用量”,可手动查询本周期已用/剩余百分比、周/月周期、重置和查询时间,以及单独列出的额外美元余额。缺失值显示“—”,不是 0 或无限;不推算剩余 Token,不展示不存在的 Token 统计。查询失败不代表推理不可用;用量不会自动轮询,关闭详情会清除结果。上游可能存在额外付费余额,MAR 不自动充值或更改计费设置,也不保证订阅调用永不产生额外费用。</p><p>Token 由 Server 保存并自动刷新,执行 Node 只取得短期访问凭据;失效时可重新登录。删除未被模型引用的凭据会尽力撤销上游 refresh token,撤销失败会明确提示。此接入依赖可能变化的订阅代理协议,不建议用于要求稳定 SLA 的生产任务。</p><h2 id="配置-codex-凭据与模型目录" tabindex="-1">配置 Codex 凭据与模型目录 <a class="header-anchor" href="#配置-codex-凭据与模型目录" aria-label="Permalink to &quot;配置 Codex 凭据与模型目录&quot;">​</a></h2><p>所有用户都可从“管理 → MAR Agent 模型”进入“我的模型顺序”和自己有权管理的 OAuth 凭据视图;只有系统管理员会看到用于配置模型的“模型”Tab。选择“添加 OAuth 凭据”并选用“Codex (legacy)”时,普通成员只能创建个人凭据,组织管理员还可选择其管理组织子树内的组织凭据,系统管理员可选择组织或全企业凭据。个人凭据仅所有者可见,组织凭据仅系统管理员和覆盖该组织的组织管理员可见,全企业凭据仅系统管理员可见。填写名称、作用域及可选 SOCKS5 代理后开始设备登录;该代理仅用于 Codex OAuth 请求、模型目录请求,以及引用此凭据的 Codex 模型请求。系统显示设备码和验证页面,并按服务端间隔自动轮询;等待期间也可选择“刷新登录状态”立即查询一次。只有登录成功、Token 交换及账户校验完成后才保存凭据。取消、失败或过期的登录不会创建凭据。</p><p>凭据列表和详情分别展示当前 access token 的到期时间和 ChatGPT 上游给出的最早可刷新时间;未知的最早可刷新时间显示“—”,这两个时间都不表示 refresh token 到期。refresh token 仍有效且授权正常时,Server 会自动在临期换码;长时间运行任务的 Node 也会自动续取访问令牌和运行票据,不依赖下一次模型调用。暂时失败或返回的令牌仍临期时有界重试;持续断线或凭据失效仍需恢复连接或重新登录。手动刷新可以提前请求换码,是否成功以上游响应为准;自动续期仍遵守最早可刷新时间。真正换码成功后,列表和当前详情立即显示新的到期时间、最早可刷新时间与最近刷新时间。操作列提供“详情”“编辑”“测试”和“删除”。选择“编辑”可修改名称、作用域和 SOCKS5 代理。缩小凭据作用域时,如果已有模型授权超出新作用域,保存会被拒绝,需先收窄模型授权。详情会单独读取并原样显示当前凭据的完整 SOCKS5 URL,并提供刷新、重新登录、查询用量和加载模型目录。选择“查询用量”后,页面显示总 Token、上一日用量、连续 7 个自然日 Token 合计、当前限额窗口的已用百分比、重置时间、本次查询时间;上一日的具体日期与 UTC 偏移以小字显示在用量数值下方。即使昨日没有统计桶,也显示该日期,用量显示为“—”且不回退到更早日期;最新桶若为当地当天,仍不计入 7 天合计。统计日按 <code>America/Los_Angeles</code> 换日:夏令时为 <code>UTC-07:00</code>(UTC+8 的 15:00),冬令时为 <code>UTC-08:00</code>(UTC+8 的 16:00)。系统不会自动轮询,关闭详情后也不会保留完整代理串或用量结果。被模型引用的凭据必须先解除引用才能删除。页面不会展示自定义元数据、已导入模型数量、access token、refresh token、ID token、上游原始用量响应或 FedRAMP 标记。</p><p>选择“加载模型目录”会实时读取该凭据可见的 Codex 模型。页面逐项显示系统支持的思考强度(包括 <code>ultra</code>)、目录提供或系统归一化后的默认强度,以及真正未知的上游强度。勾选要导入的条目;只有上游未提供上下文窗口时才需要补齐,缺失最大输出不会生成输入项。目录不提供可用状态开关,导入后的模型默认启用并采用目录默认强度;传输方式和 Responses 续接等设置统一在模型视图中调整。Codex 和 ChatGPT 每次从目录导入都会创建新的独立模型,即使凭据、上游模型 ID、展示名称和归属完全相同。已有模型和授权保持不变;新模型使用导入默认配置,不继承已有模型的设置或授权。目录发生变化时页面会要求重新确认。</p><h2 id="配置使用授权" tabindex="-1">配置使用授权 <a class="header-anchor" href="#配置使用授权" aria-label="Permalink to &quot;配置使用授权&quot;">​</a></h2><p>新建模型默认为“受限”,升级前已有模型会迁移为“公共”。模型列表的“使用范围”列显示当前状态:</p><ul><li>向“整个企业”授权后,模型成为公共模型。</li><li>未向整个企业授权时,可分别授权给用户或组织,模型保持受限。</li><li>系统管理员始终可以管理全部模型,不受模型授权记录限制;实际使用仍必须位于模型所绑定凭据的作用域内。</li></ul><p>点击模型行的“授权”可查看、添加或撤销授权。模型授权范围必须完全包含在所绑定凭据的作用域内,例如组织凭据不能授权给该组织子树以外的用户、组织或整个企业。普通用户的新会话模型目录只显示同时满足“已启用”“当前用户有模型授权”和“当前用户位于凭据作用域”的脱敏模型;主 Agent 和 subagent 使用同一份授权模型集合。</p><p>禁用模型后,后续新会话、消息和会话命令会被拒绝。撤销用户权限、用户离开凭据组织作用域、模型改绑或解绑凭据、凭据失效后,运行时也会在每次解析动态凭据时重新拒绝后续请求;Node 已经接收且不再需要解析凭据的工作不会被强制中止。再次打开已有 MAR Agent 对话时,如果原模型已不在当前可用目录且目录仍有模型,Web 会自动保存目录中的第一个模型,并把思考强度切换为该模型的默认值;目录为空时不会切换到其他 Agent。模型可直接删除,无需先禁用或等待活动任务结束;已经取得配置的执行可继续,后续解析该模型将按不存在失败。</p><h2 id="会话与权限" tabindex="-1">会话与权限 <a class="header-anchor" href="#会话与权限" aria-label="Permalink to &quot;会话与权限&quot;">​</a></h2><p>对于超出快速查询的工具任务,MAR Agent 的提示词会引导它在开始前简要说明从哪里入手,长任务中按需汇报阶段进展、关键发现、方向变化或阻塞。进度消息显示在对话中,不逐条播报命令,也没有固定频率。需要调整当前任务时,参见<a href="./../workbench/composer">对话输入与运行中补充指令</a>。</p><p>Node 提供 <strong>Auto</strong> 和 <strong>完全访问(Full access)</strong>。新建普通工作会话默认 Auto;已有会话保留保存的档位,进入 Goal 不会把 MAR Auto 自动升级为完全访问。独立 SDK/CLI 仍默认 Full access,托管对话保持原有隔离与权限策略。</p><p>Auto 由当前模型判断:普通工程操作和已明确授权的任务自动继续;重要风险或授权仍无法判断时 ask;deny 仅用于仍然有效的明确禁止、上级/Host 禁止或已知无法合理限制影响的极端危险。相同任务、目标和影响范围内的授权会继续复用,不因换工具、重试、分轮或子 Agent 反复询问;范围、影响扩大或用户撤回时重新判断。</p><p>Code Mode 由模型优先在外层 <code>code_exec</code> 整体声明 ask/deny。内部 deny 只拒绝该次工具调用,在结果 <code>data</code> 中返回 <code>error: MAR_AGENT_PERMISSION_DENIED</code> 和简短 <code>message</code>,不抛出 JS 异常或结束整段代码;后续依赖步骤应先检查返回结果。该工具仍记录为失败,其他异常保持原有处理方式。</p><p>ask 通过 Runner 审批卡在线等待,显示公开原因、命令/参数/代码、工作目录与到期时间。点击允许后执行已捕获的原调用;多个请求分别审批。10 分钟未决定即过期,不执行,也不视为用户拒绝。拒绝、过期和模型 deny 仅使该次调用失败,模型可在剩余授权内继续或自然停止;不能自动重试或绕过用户拒绝。取消后、已决定或过期的卡片不可执行。Goal 与定时任务沿用 Node 现有策略。无在线通道的独立 SDK/CLI 在 ask 时停止;之后的新指令不会重放旧调用。</p><p><strong>Auto 不是操作系统沙箱,也不是独立安全审查器。</strong> Full access 不做 Auto 自评,两种档位都保留 Host 路径与资源校验,工具使用 Node 服务账号的实际权限。请使用低权限专用账号并限制 Workspace 和主机权限。</p><p>原生会话记录保存在 Node 运行账号的 <code>~/.mar/agent/sessions/</code>。Server 不保存会话正文。MAR Agent 支持 Plan、Compact、question、MCP、图片和 subagent。模型可通过 <code>todo</code> 工具的 <code>action: read | write</code> 读取或整体替换当前会话的任务清单;空列表可清空清单。Todo 更新会显示为任务清单,已有会话的清单与历史保持兼容。每个 subagent 都是独立持久化的子会话,保留自己的历史和父子关系,但默认会话列表只显示用户根会话;Agent Network 支持根会话、子会话和孙会话三层,不支持第四层。目标模式由 Node 的统一 Goal 流程管理,不在 Agent SDK 内重复实现。</p><p>MAR Agent 会扫描 HOME 与工作区中的标准 Skill 目录,先向模型提供名称和用途摘要。Agent 按需调用 <code>skill_load</code>,用户无需在请求中写出技能名称。技能指导会加入模型上下文,不作为工具输出。上下文 GC 保留每个已加载技能的最新版本;Compact 会清除已加载的指导,Agent 可按需重载。同名技能按 Workspace、用户、SDK 内置的顺序选择;项目指导不能改变工具参数或主机权限。</p><h3 id="命令执行环境" tabindex="-1">命令执行环境 <a class="header-anchor" href="#命令执行环境" aria-label="Permalink to &quot;命令执行环境&quot;">​</a></h3><p><code>exec</code> 默认启用登录配置。Bash 按原生顺序读取首个可读的 <code>~/.bash_profile</code>、<code>~/.bash_login</code> 或 <code>~/.profile</code>,并在 <code>BASH_ENV</code> 未设置或为空时补加载可读的 <code>~/.bashrc</code>;PowerShell 默认加载启动配置。配置属于执行命令的 Node 服务账号,不是浏览器用户。每次命令启动都会重新读取配置;托管对话只读取隔离环境中可见的文件,不加载宿主账号的配置。</p><p>需要跳过登录初始化时,可以让 Agent 使用 <code>exec({ command: &quot;…&quot;, login: false })</code>。登录 Shell 仍是非交互模式:如果工具链 PATH 位于 <code>.bashrc</code> 的非交互 <code>return</code> 后面,应将这类通用环境配置放到登录配置中,或移到该提前返回之前。MAR 不会绕过这个保护,也不会把一次命令中的 <code>export</code> 写回 Node 或后续独立命令。</p><h3 id="子-agent-高级控制" tabindex="-1">子 Agent 高级控制 <a class="header-anchor" href="#子-agent-高级控制" aria-label="Permalink to &quot;子 Agent 高级控制&quot;">​</a></h3><p>Node Agent Network 不设置旧的 16 个创建或并发限制;独立 SDK Subagent 扩展保留自己的准入策略。</p><p>协作工具为 <code>agent_start</code>、<code>agent_send</code>、<code>agent_wait</code>、<code>agent_stop</code>、<code>agent_list</code> 和 <code>agent_view</code>。<code>agent_start</code> 使用文本任务和非空标题,登记子会话和首个执行后即返回,不等待完成;手动 marctl 创建时标题可省略。使用结果中的 <code>agentId</code> 寻址子会话。<code>agent_send</code> 可发送文本消息、更新 Goal 或对获授权会话的审批作决定;可指定投递意图,包括替换当前执行。<code>agent_wait</code> 默认等待直接子会话终态 30 秒,<code>waitMs=0</code> 只查看快照,正数按传入时长等待。<code>agent_stop</code> 只需会话 ID,停止目标当前执行并清除 Goal;列表和查看工具用于发现获授权的会话及其状态。</p><p><code>agent_view</code> 仅接受 <code>agentId</code>,返回状态、当前 Goal 和有界最近活动,不公开 Run 或 Execution ID,不读取会话历史。完整记录通过独立的 <code>marctl agents history &lt;session-id&gt;</code> 按需分页查询;<code>marctl agents view</code> 遵循相同的状态查询边界。</p><p>目标空闲且没有当前或保留执行时,<code>agent_wait</code> 返回 <code>AGENT_IDLE</code>,摘要明确说明“Agent is idle; there is no execution to wait for.”,不表示会话不存在或任务失败。空闲会话若仍保有真实终态执行,则正常返回该执行结果。省略目标且没有子会话时返回 <code>AGENT_WAIT_NO_TARGETS</code>;显式目标不存在时返回 <code>SESSION_NOT_FOUND</code>。等待不会启动空闲会话。</p><p>同一获授权 Node/Workspace 内,消息、显式等待、Goal、停止、审批及 marctl 会话设置均不按父子关系限制;目标 Run/队列用户归属、模型及资源授权仍有效。发送不建立横向自动订阅。</p><p>子 Agent 的未读公开消息与新终态会在父 Agent 下一次正常模型请求前自动送达,包括原生 Extension API 创建的直接子 Agent;父 Agent 无需反复使用 message wait 检查进展。自动送达不唤醒空闲父 Agent,也不延迟正常最终回复;交付所必需的结果仍应在结束前主动汇合,真正阻塞时仍可使用 <code>agent_wait</code>。自动送达与模型的显式等待共享已读位置,因此已经送达的正文或终态证据不会在后续等待中重复返回。子 Agent 的内容是待核验的上下文,不是新的用户指令或授权。</p><p>Node 为每个父子观察关系保留最近 10 条未读更新,跨执行统一计数;超限移除最旧记录,并通过 <code>omittedUpdates</code> 报告自上次确认以来的遗漏数量。该计数属于父子观察关系,不表示某一次执行丢失了相同数量的消息。提示随观察结果确认后清除,完整公开历史仍可按需读取;窗口不保证无限保留全部未读内容。</p><p>Node 原生 <code>agent_send</code> 使用 <code>delivery</code> 参数,取值为 <code>STEER</code> 或 <code>QUEUE</code>。携带正文时默认使用 <code>STEER</code>;其他 Runner 的 <code>marctl agents send &lt;id&gt; -m &lt;text&gt;</code> 也是如此。纯 Goal 更新或审批操作不涉及消息投递。及时沟通建议使用 STEER;QUEUE 更适合用户或接收方明确要求延后的输入。输入要等当前工作和前面的队列项结束后才消费,有活动 Goal 时,必须等到该 Goal 退出才消费。已接收不保证立即处理。</p><p>消息被接受后,通常无需另外回复或索取收悉确认,也不必仅为确认收到而立即查看会话。主、子 Agent 建议并行推进有意义且不重叠的工作;没有其他本地工作可做,且需要结果解除阻塞或收尾时,再考虑等待。必要的任务结果、澄清、阻塞、冲突和决策信息仍应正常交付。</p><p>原生 <code>agent_list</code> 只接受 <code>scope</code>、可选标题片段 <code>query</code> 和 <code>limit</code>。省略 <code>scope</code> 或选择 <code>tree</code> 时,返回当前会话所在的协作树,包括已登记且获授权的根、祖先、同级及后代;空闲及已结束执行的会话也保留。选择 <code>active</code> 时,返回当前 Workspace 内正在运行或睡眠的会话,不把最近聊过、Goal 已启用或队列非空当作活跃。已知会话应直接复用其 ID,不按标题自动选址或派发。</p><p><code>query</code> 在选定范围内按标题片段过滤,忽略首尾空白及大小写,并统一全角等兼容字符;<code>limit</code> 默认 10、上限 100。结果为 <code>scope</code>、<code>currentAgentId</code>、扁平 <code>sessions</code> 和 <code>truncated</code>,每项只含 <code>id</code>、<code>parentSessionId</code>、<code>title</code> 和 <code>status</code>(<code>RUNNING</code>、<code>SLEEPING</code> 或 <code>IDLE</code>)。两种范围均按活跃优先、最近活动时间倒序排列,通过 parentSessionId 保留树关系;父项可能因过滤或授权不在结果中。无匹配返回空列表,超过 limit 时标记截断,不提供 cursor 或翻页;可用 query 缩小范围。列表不扫描 Runner、不恢复执行、不自动订阅。<code>marctl agents list</code> 使用相同参数和返回字段;独立终端没有当前会话时默认 active,currentAgentId 为 null,显式 tree 会报缺少会话上下文。</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;">&#39;active&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, query: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;review&#39;</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> 提供有界定时等待,时长必须为 1 至 1800000 的整数毫秒(最长 30 分钟)。已接受的用户补充或子 Agent 未读公开消息会提前唤醒;消息随后沿正常路径自动注入并标记已读,不会重复唤醒。它不会监测外部条件,也不会因进程或 cell 完成而唤醒;已有资源应使用对应的 wait。<code>sleep</code> 始终由模型直接调用,不可在 Code Mode cell 内调用。</p><p><code>agent_wait</code> 使用 <code>agentIds</code> 数组指定获授权的目标,包括单个目标:</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;">&#39;a&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;b&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;c&#39;</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;">&#39;all&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
@@ -43,4 +43,4 @@ import{_ as s,o as a,c as i,a3 as o}from"./chunks/framework.BHjrhdiC.js";const r
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>该示例只展示终态;需要增量事件时遍历 <code>session.run(...)</code> 返回的 execution handle,并在结束时等待 <code>result()</code>。自定义 Host 必须自行提供其声明的能力和权限边界;LocalAgentHost 不替代操作系统隔离。</p><p>下一步:<a href="./runner-troubleshooting">Agent 不可用或模型缺失</a>。</p><p>图片生成与桌面工具由 Node 提供。独立 SDK/CLI 保留通用工具与自定义 Skill,但不默认提供这两类能力;其他宿主需要自行集成。</p>`,115)])])}const g=s(t,[["render",n]]);export{r as __pageData,g as default};
46
+ <span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>该示例只展示终态;需要增量事件时遍历 <code>session.run(...)</code> 返回的 execution handle,并在结束时等待 <code>result()</code>。自定义 Host 必须自行提供其声明的能力和权限边界;LocalAgentHost 不替代操作系统隔离。</p><p>下一步:<a href="./runner-troubleshooting">Agent 不可用或模型缺失</a>。</p><p>图片生成与桌面工具由 Node 提供。独立 SDK/CLI 保留通用工具与自定义 Skill,但不默认提供这两类能力;其他宿主需要自行集成。</p>`,116)])])}const g=s(t,[["render",n]]);export{r as __pageData,g as default};
@@ -1 +1 @@
1
- import{_ as s,o as a,c as i,a3 as o}from"./chunks/framework.BHjrhdiC.js";const r=JSON.parse('{"title":"配置和使用 MAR Agent","description":"","frontmatter":{"title":"配置和使用 MAR Agent","lastUpdated":"2026-11-21T00:00:00.000Z"},"headers":[],"relativePath":"runners/mar-agent.md","filePath":"runners/mar-agent.md"}'),t={name:"runners/mar-agent.md"};function n(d,e,p,c,l,h){return a(),i("div",null,[...e[0]||(e[0]=[o("",115)])])}const g=s(t,[["render",n]]);export{r as __pageData,g as default};
1
+ import{_ as s,o as a,c as i,a3 as o}from"./chunks/framework.BHjrhdiC.js";const r=JSON.parse('{"title":"配置和使用 MAR Agent","description":"","frontmatter":{"title":"配置和使用 MAR Agent","lastUpdated":"2026-11-21T00:00:00.000Z"},"headers":[],"relativePath":"runners/mar-agent.md","filePath":"runners/mar-agent.md"}'),t={name:"runners/mar-agent.md"};function n(d,e,p,c,l,h){return a(),i("div",null,[...e[0]||(e[0]=[o("",116)])])}const g=s(t,[["render",n]]);export{r as __pageData,g as default};