@bastani/atomic 0.10.9 → 0.10.10-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +211 -155
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +27 -12
  7. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
  9. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  10. package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
  11. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  12. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
  13. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
  14. package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
  15. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  16. package/dist/_shared/runtime-O4KCSG4C.js +5 -5
  17. package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
  18. package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
  19. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  20. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  21. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
  22. package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
  23. package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
  24. package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
  25. package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
  26. package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
  27. package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
  28. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
  29. package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
  30. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
  31. package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
  32. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
  33. package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
  34. package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
  35. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  36. package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
  37. package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
  38. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
  39. package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
  40. package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
  41. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  42. package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
  43. package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
  44. package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
  45. package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
  46. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  47. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  48. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  49. package/dist/builtin/intercom/README.md +85 -114
  50. package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
  51. package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
  52. package/dist/builtin/intercom/group.ts +7 -3
  53. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  54. package/dist/builtin/intercom/package.json +1 -1
  55. package/dist/builtin/mcp/README.md +37 -27
  56. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  57. package/dist/builtin/mcp/package.json +1 -1
  58. package/dist/builtin/subagents/CHANGELOG.md +8 -0
  59. package/dist/builtin/subagents/README.md +71 -138
  60. package/dist/builtin/subagents/package.json +1 -1
  61. package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
  62. package/dist/builtin/web-access/CHANGELOG.md +9 -0
  63. package/dist/builtin/web-access/README.md +60 -87
  64. package/dist/builtin/web-access/index.bundle.mjs +387 -351
  65. package/dist/builtin/web-access/package.json +1 -1
  66. package/dist/cli/args.js +2 -2
  67. package/dist/cli/auth-cli.code.js +4 -4
  68. package/dist/cli/auth-cli.impl.js +3 -3
  69. package/dist/cli/auth-cli.js +3 -3
  70. package/dist/cli/blueprint-command.code.js +2 -2
  71. package/dist/cli/blueprint-command.impl.js +3 -3
  72. package/dist/cli/blueprint-command.js +3 -3
  73. package/dist/cli/intercom-command.code.js +3 -3
  74. package/dist/cli/intercom-command.impl.js +3 -3
  75. package/dist/cli/intercom-command.js +3 -3
  76. package/dist/cli/list-models.code.js +3 -3
  77. package/dist/cli/list-models.impl.js +3 -3
  78. package/dist/cli/list-models.js +3 -3
  79. package/dist/cli/session-picker.code.js +2 -2
  80. package/dist/cli/session-picker.impl.js +3 -3
  81. package/dist/cli/session-picker.js +3 -3
  82. package/dist/cli/startup-ui.code.js +2 -2
  83. package/dist/cli/startup-ui.impl.js +3 -3
  84. package/dist/cli/startup-ui.js +3 -3
  85. package/dist/cli/storage-command.impl.js +3 -3
  86. package/dist/cli/storage-command.js +3 -3
  87. package/dist/cli/storage-search-session.code.js +2 -2
  88. package/dist/cli/storage-search-session.impl.js +3 -3
  89. package/dist/cli/storage-search-session.js +3 -3
  90. package/dist/cli/team-command.code.js +2 -2
  91. package/dist/cli/team-command.impl.js +3 -3
  92. package/dist/cli/team-command.js +3 -3
  93. package/dist/cli.js +2 -2
  94. package/dist/core/agent-session-methods.d.ts +4 -1
  95. package/dist/core/agent-session-methods.js.map +1 -1
  96. package/dist/core/agent-session.d.ts +3 -0
  97. package/dist/core/compaction/compactor.d.ts +20 -14
  98. package/dist/core/compaction/errors.d.ts +120 -0
  99. package/dist/core/compaction/index.d.ts +1 -0
  100. package/dist/core/compaction/model-resolver.d.ts +2 -2
  101. package/dist/core/debug.impl.js +3 -3
  102. package/dist/core/debug.js +3 -3
  103. package/dist/core/export-html/card-projection.impl.js +3 -3
  104. package/dist/core/export-html/card-projection.js +3 -3
  105. package/dist/core/export-html/index.code.js +2 -2
  106. package/dist/core/export-html/index.impl.js +3 -3
  107. package/dist/core/export-html/index.js +3 -3
  108. package/dist/core/export-html/json-spans.impl.js +3 -3
  109. package/dist/core/export-html/json-spans.js +3 -3
  110. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  111. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  112. package/dist/core/export-html/tool-renderer.code.js +1 -1
  113. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  114. package/dist/core/export-html/tool-renderer.js +3 -3
  115. package/dist/core/extensions/api-types.d.ts +1 -1
  116. package/dist/core/extensions/api-types.js.map +1 -1
  117. package/dist/core/extensions/index.d.ts +1 -1
  118. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  119. package/dist/core/extensions/jiti-loader.js +3 -3
  120. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  121. package/dist/core/extensions/jiti-static-loader.js +3 -3
  122. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  123. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  124. package/dist/core/extensions/loader-host-modules.js +3 -3
  125. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  126. package/dist/core/extensions/provider-types.d.ts +18 -6
  127. package/dist/core/extensions/provider-types.js.map +1 -1
  128. package/dist/core/extensions/runner-context.js +1 -1
  129. package/dist/core/intercom-broker-control-host.code.js +1 -1
  130. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  131. package/dist/core/intercom-broker-control-host.js +3 -3
  132. package/dist/core/intercom-broker-control.code.js +3 -3
  133. package/dist/core/intercom-broker-control.impl.js +3 -3
  134. package/dist/core/intercom-broker-control.js +3 -3
  135. package/dist/core/model-config.d.ts +40 -0
  136. package/dist/core/model-registry.js +1 -1
  137. package/dist/core/model-resolver-scope.d.ts +4 -4
  138. package/dist/core/model-runtime.d.ts +1 -1
  139. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  140. package/dist/core/package-manager-storage-adapters.js +3 -3
  141. package/dist/core/provider-composer-internal.d.ts +11 -2
  142. package/dist/core/sdk.code.js +3 -3
  143. package/dist/core/sdk.impl.js +3 -3
  144. package/dist/core/sdk.js +3 -3
  145. package/dist/core/session-manager-core.js +5 -5
  146. package/dist/core/session-manager-list.impl.js +3 -3
  147. package/dist/core/session-manager-list.js +3 -3
  148. package/dist/core/session-manager.code.js +1 -1
  149. package/dist/core/session-manager.impl.js +3 -3
  150. package/dist/core/session-manager.js +3 -3
  151. package/dist/core/session-storage.impl.js +3 -3
  152. package/dist/core/session-storage.js +3 -3
  153. package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
  154. package/dist/core/storage/index.js +2 -2
  155. package/dist/core/storage/node-sqlite-thread.js +2 -2
  156. package/dist/core/storage/node-sqlite.js +2 -2
  157. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  158. package/dist/core/storage/offline-snapshot-file.js +3 -3
  159. package/dist/core/storage/provider.js +2 -2
  160. package/dist/core/storage/selection.js +2 -2
  161. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  162. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  163. package/dist/core/storage/session/branch-fork-source.js +3 -3
  164. package/dist/core/storage/session/card-view.impl.js +3 -3
  165. package/dist/core/storage/session/card-view.js +3 -3
  166. package/dist/core/storage/session/child-reader.code.js +3 -3
  167. package/dist/core/storage/session/child-reader.impl.js +3 -3
  168. package/dist/core/storage/session/child-reader.js +3 -3
  169. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  170. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  171. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  172. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  173. package/dist/core/storage/session/expanded-child-details.js +3 -3
  174. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  175. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  176. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  177. package/dist/core/storage/session/fork-row-index.js +3 -3
  178. package/dist/core/storage/session/fork-staging.code.js +2 -2
  179. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  180. package/dist/core/storage/session/fork-staging.js +3 -3
  181. package/dist/core/storage/session/fork-window.code.js +3 -3
  182. package/dist/core/storage/session/fork-window.impl.js +3 -3
  183. package/dist/core/storage/session/fork-window.js +3 -3
  184. package/dist/core/storage/session/history-pages.impl.js +3 -3
  185. package/dist/core/storage/session/history-pages.js +3 -3
  186. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  187. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  188. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  189. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  190. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  191. package/dist/core/storage/session/memory-session-store.js +3 -3
  192. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  193. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  194. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  195. package/dist/core/storage/session/released-history-files.code.js +3 -3
  196. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  197. package/dist/core/storage/session/released-history-files.js +3 -3
  198. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  199. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  200. package/dist/core/storage/session/session-resume.impl.js +3 -3
  201. package/dist/core/storage/session/session-resume.js +3 -3
  202. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  203. package/dist/core/storage/session/snapshot-cut.js +3 -3
  204. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  205. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  206. package/dist/core/storage/session/snapshot-history.js +3 -3
  207. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  208. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  209. package/dist/core/storage/session/sql-session-store.js +3 -3
  210. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  211. package/dist/core/storage/session/tree-outline.js +3 -3
  212. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  213. package/dist/core/storage/session/tree-presentation.js +3 -3
  214. package/dist/core/storage/storage-status.impl.js +3 -3
  215. package/dist/core/storage/storage-status.js +3 -3
  216. package/dist/core/storage/team.impl.js +3 -3
  217. package/dist/core/storage/team.js +3 -3
  218. package/dist/core/structured-output/index.code.js +1 -1
  219. package/dist/core/structured-output/index.impl.js +3 -3
  220. package/dist/core/structured-output/index.js +3 -3
  221. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  222. package/dist/core/tasks/task-completion-entry.js +3 -3
  223. package/dist/core/tasks/task-file-history.code.js +3 -3
  224. package/dist/core/tasks/task-file-history.impl.js +3 -3
  225. package/dist/core/tasks/task-file-history.js +3 -3
  226. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  227. package/dist/core/tasks/task-reference-archive.js +3 -3
  228. package/dist/core/tasks/task-reference-identity.code.js +1 -1
  229. package/dist/core/tasks/task-reference-identity.js +3 -3
  230. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  231. package/dist/core/tasks/task-reference-stream.js +3 -3
  232. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  233. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  234. package/dist/core/tasks/task-view-source.impl.js +3 -3
  235. package/dist/core/tasks/task-view-source.js +3 -3
  236. package/dist/core/tools/read-url.code.js +2 -2
  237. package/dist/core/tools/read-url.impl.js +3 -3
  238. package/dist/core/tools/read-url.js +3 -3
  239. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  240. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  241. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  242. package/dist/core/worktree-snapshot/errors.js +3 -3
  243. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  244. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  245. package/dist/extensions/codemode/execute.code.js +1 -1
  246. package/dist/extensions/codemode/execute.impl.js +3 -3
  247. package/dist/extensions/codemode/execute.js +3 -3
  248. package/dist/extensions/codemode/renderer.code.js +2 -2
  249. package/dist/extensions/codemode/renderer.impl.js +3 -3
  250. package/dist/extensions/codemode/renderer.js +3 -3
  251. package/dist/extensions/mcp/cli.code.js +2 -2
  252. package/dist/extensions/mcp/cli.impl.js +3 -3
  253. package/dist/extensions/mcp/cli.js +3 -3
  254. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  255. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  256. package/dist/extensions/mcp/cli.lazy.js +3 -3
  257. package/dist/extensions/mcp/runtime.code.js +1 -1
  258. package/dist/extensions/mcp/runtime.impl.js +3 -3
  259. package/dist/extensions/mcp/runtime.js +3 -3
  260. package/dist/index-extensions.d.ts +1 -1
  261. package/dist/index.d.ts +8 -1
  262. package/dist/index.js +7 -7
  263. package/dist/main-first-time-setup.code.js +2 -2
  264. package/dist/main-first-time-setup.impl.js +3 -3
  265. package/dist/main-first-time-setup.js +3 -3
  266. package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
  267. package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
  268. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  269. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  270. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  271. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  272. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  273. package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
  274. package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
  275. package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
  276. package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
  277. package/dist/modes/print-mode.js +1 -1
  278. package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
  279. package/dist/modes/rpc/rpc-types.d.ts +29 -2
  280. package/dist/package-manager-cli.code.js +5 -5
  281. package/dist/package-manager-cli.impl.js +3 -3
  282. package/dist/package-manager-cli.js +3 -3
  283. package/dist/rpc-entry.js +1 -1
  284. package/dist/startup-files.json +1 -1
  285. package/dist/startup-stages/5.js +1 -1
  286. package/dist/startup-stages/7.js +1 -1
  287. package/dist/startup-stages/8.js +1 -2
  288. package/dist/startup-stages/9.js +2 -1
  289. package/dist/utils/native-module.d.ts +44 -0
  290. package/dist/utils/startup-database-spare.code.js +3 -3
  291. package/dist/utils/startup-database-spare.impl.js +3 -3
  292. package/dist/utils/startup-database-spare.js +3 -3
  293. package/dist/utils/tools-manager.code.js +1 -1
  294. package/dist/utils/tools-manager.impl.js +3 -3
  295. package/dist/utils/tools-manager.js +3 -3
  296. package/docs/background-tasks.md +235 -243
  297. package/docs/build.md +12 -11
  298. package/docs/codemode.md +60 -51
  299. package/docs/compaction/reference.md +61 -24
  300. package/docs/compaction.md +117 -65
  301. package/docs/computer-use.md +179 -146
  302. package/docs/containerization.md +79 -33
  303. package/docs/custom-provider/api-reference.md +148 -11
  304. package/docs/custom-provider/oauth.md +44 -27
  305. package/docs/custom-provider/override.md +14 -7
  306. package/docs/custom-provider/registration.md +75 -65
  307. package/docs/custom-provider/streaming.md +42 -19
  308. package/docs/custom-provider.md +25 -61
  309. package/docs/development.md +47 -43
  310. package/docs/docs.json +33 -33
  311. package/docs/environment-variables.md +83 -57
  312. package/docs/extensions/api-reference.md +323 -734
  313. package/docs/extensions/authoring.md +186 -269
  314. package/docs/extensions/events.md +308 -375
  315. package/docs/extensions/examples.md +122 -74
  316. package/docs/extensions/ui.md +217 -197
  317. package/docs/extensions.md +152 -259
  318. package/docs/getting-started/authentication.md +27 -14
  319. package/docs/getting-started/first-session.md +25 -26
  320. package/docs/getting-started/installation.md +62 -84
  321. package/docs/getting-started/project-instructions.md +39 -14
  322. package/docs/guides/configuration.md +42 -20
  323. package/docs/guides/intercom.md +17 -13
  324. package/docs/guides/non-interactive.md +29 -16
  325. package/docs/guides/orchestration.md +16 -10
  326. package/docs/guides/resume-on-any-machine.md +54 -49
  327. package/docs/guides/subagents.md +22 -14
  328. package/docs/guides/team-setup.md +37 -26
  329. package/docs/guides.md +22 -21
  330. package/docs/herdr.md +21 -16
  331. package/docs/index.md +16 -17
  332. package/docs/intercom/operations.md +68 -66
  333. package/docs/intercom/reference.md +196 -191
  334. package/docs/intercom.md +103 -92
  335. package/docs/json.md +71 -71
  336. package/docs/keybindings.md +63 -50
  337. package/docs/libraries/agent-core.md +49 -8
  338. package/docs/libraries/ai.md +21 -12
  339. package/docs/libraries/codemode.md +28 -6
  340. package/docs/libraries/schema.md +7 -7
  341. package/docs/libraries/telemetry.md +7 -7
  342. package/docs/libraries/tui.md +74 -94
  343. package/docs/libraries.md +5 -5
  344. package/docs/llama-cpp.md +38 -33
  345. package/docs/mcp-servers.md +96 -90
  346. package/docs/models/reference.md +46 -33
  347. package/docs/models-configuration.md +12 -6
  348. package/docs/models.md +93 -88
  349. package/docs/orchestration/migrating-workflows.md +21 -19
  350. package/docs/orchestration/patterns.md +35 -20
  351. package/docs/orchestration.md +22 -21
  352. package/docs/packages/authoring.md +28 -19
  353. package/docs/packages/reference.md +75 -16
  354. package/docs/packages.md +31 -33
  355. package/docs/programmatic.md +22 -21
  356. package/docs/prompt-templates.md +63 -41
  357. package/docs/providers/reference.md +35 -19
  358. package/docs/providers.md +61 -71
  359. package/docs/quickstart.md +32 -46
  360. package/docs/reference/cli.md +249 -252
  361. package/docs/reference.md +23 -20
  362. package/docs/rpc/examples.md +74 -17
  363. package/docs/rpc/extension-ui.md +79 -62
  364. package/docs/rpc/protocol.md +816 -358
  365. package/docs/rpc.md +75 -151
  366. package/docs/sdk/reference.md +175 -45
  367. package/docs/sdk/structured-decisions.md +92 -62
  368. package/docs/sdk/web-server.md +79 -46
  369. package/docs/sdk.md +237 -195
  370. package/docs/security.md +106 -43
  371. package/docs/session-format.md +96 -59
  372. package/docs/sessions.md +149 -113
  373. package/docs/settings.md +289 -204
  374. package/docs/shell-aliases.md +15 -6
  375. package/docs/skills/authoring.md +17 -9
  376. package/docs/skills/reference.md +23 -21
  377. package/docs/skills.md +104 -97
  378. package/docs/storage.md +140 -242
  379. package/docs/subagents/authoring.md +147 -16
  380. package/docs/subagents/reference.md +100 -30
  381. package/docs/subagents.md +220 -252
  382. package/docs/terminal-setup.md +97 -69
  383. package/docs/termux.md +51 -85
  384. package/docs/themes/reference.md +51 -37
  385. package/docs/themes.md +49 -54
  386. package/docs/tmux.md +38 -21
  387. package/docs/tools.md +198 -147
  388. package/docs/tui/reference.md +64 -32
  389. package/docs/tui.md +38 -66
  390. package/docs/usage.md +76 -78
  391. package/docs/verification.md +25 -25
  392. package/docs/web-access.md +72 -55
  393. package/docs/windows.md +53 -58
  394. package/docs/worktree-snapshots.md +62 -65
  395. package/package.json +8 -8
  396. package/schemas/models.schema.json +51 -0
  397. package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
  398. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
  399. package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
  400. package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
  401. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
@@ -1,37 +1,38 @@
1
1
  ---
2
- title: "MCP Servers"
3
- description: "Configure MCP servers, discover tools and resources, and authenticate connections."
2
+ title: "MCP servers"
3
+ sidebarTitle: "MCP servers"
4
+ description: "Configure stdio and streamable HTTP MCP servers, control tool exposure, read resources, and authenticate with OAuth or provider logins."
4
5
  ---
5
6
 
6
- # MCP Servers
7
-
8
- Atomic includes [Model Context Protocol](https://modelcontextprotocol.io) support in npm and binary installations. It connects to servers over stdio or streamable HTTP. No separate extension install is needed.
7
+ Atomic includes built-in [Model Context Protocol](https://modelcontextprotocol.io) support in both npm and standalone binary installations. It connects to MCP servers over stdio or streamable HTTP with no separate extension install required.
9
8
 
10
9
  ## Quick setup
11
10
 
12
- Add a local server, check the connection, then start Atomic:
11
+ Add a local stdio server, verify the connection, and start Atomic:
13
12
 
14
- ```sh
13
+ ```bash
15
14
  atomic mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem .
16
15
  atomic mcp list
17
16
  atomic
18
17
  ```
19
18
 
20
- For a remote server:
19
+ Add a remote streamable HTTP server:
21
20
 
22
- ```sh
21
+ ```bash
23
22
  atomic mcp add docs --url https://example.com/mcp --bearer-token-env-var DOCS_TOKEN
24
23
  ```
25
24
 
26
- Commands write user-level configuration by default. Add `--local` or `-l` to write `.atomic/mcp.json` in the current project instead. Start Atomic and grant project trust before using project servers.
25
+ CLI commands write user-level configuration by default. Pass `--local` or `-l` to write `.atomic/mcp.json` in the current project instead, then start Atomic and grant project trust before using project servers.
27
26
 
28
- Use `/mcp` to inspect connections and manage servers. After changing configuration outside the session, run `/reload` or restart Atomic.
27
+ Run `/mcp` inside Atomic to inspect connections and manage servers. After editing configuration outside a session, run `/reload` or restart Atomic.
29
28
 
30
29
  ## Configure servers
31
30
 
32
- Atomic reads user-level servers from `~/.atomic/agent/mcp.json` and project servers from `.atomic/mcp.json`. Project configuration is read only after [project trust](/security) is granted. A project entry replaces a user-level entry with the same name.
31
+ Atomic reads user-level servers from `~/.atomic/agent/mcp.json` (relocated by `ATOMIC_CODING_AGENT_DIR`) and project servers from `.atomic/mcp.json`. Project configuration loads only after [project trust](/security) is granted. Both files use a top-level `mcpServers` object. Keep personal servers and credentials in the user-level file.
32
+
33
+ A full project entry replaces a user-level entry with the exact same key name. A project entry without `command`, `url`, or `type` acts as a lightweight override that can set **only** `enabled`, `exposure`, and `toolExposure` on a user-level server with the exact same key name while keeping the rest (`env`, `headers`, `auth`, and `oauth`). Adding any other field (such as `timeout` or `description`) or referencing a server not present in user-level `mcp.json` reports a configuration error and skips the entry.
33
34
 
34
- A project entry without `command`, `url`, or `type` overrides only `enabled`, `exposure`, and `toolExposure` of the user-level server with the same name and keeps the rest, including `env`, `headers`, and `auth`. For example, this turns off a user-level server in one project:
35
+ For example, to turn off a user-level server in one project:
35
36
 
36
37
  ```json
37
38
  {
@@ -41,13 +42,11 @@ A project entry without `command`, `url`, or `type` overrides only `enabled`, `e
41
42
  }
42
43
  ```
43
44
 
44
- Both files use a top-level `mcpServers` object. Keep personal servers and credentials in the user-level file. `ATOMIC_CODING_AGENT_DIR` relocates the Atomic agent directory.
45
+ **Server names and namespace collisions.** Server names may contain letters, digits, `_`, and `-`. Reserved JavaScript property names (`__proto__`, `constructor`, and `prototype`) are rejected. Names that differ only in `-` versus `_` share the same tool namespace, while project overrides look up user-level servers by exact key name. If user-level config defines `my-server`, a project entry named `my_server` does not match as an override and is rejected as a namespace conflict if defined as a full server. Always use the exact same key name to override or replace a user-level server. Invalid entries are reported and skipped without blocking other servers.
45
46
 
46
- Stdio servers use `command`, `args`, `env`, and `cwd`. `command` is one executable, not a shell command string. A `command` with a path runs as written; one named without a path is looked up in the absolute directories on `PATH` from `env`, and on Windows first in `cwd` when that lies outside the project folder (the project folder counts only when `PATH` names it).
47
+ **Stdio servers.** Configure `command`, `args`, `env`, and `cwd`. `command` must be one executable, not a shell command string. A `command` with a path runs as written; a bare command name is searched in the absolute directories on `PATH` from `env` (and on Windows first in `cwd` when `cwd` is outside the project folder; the project folder counts only if `PATH` lists it). On Windows, variables in `env` (such as `PATH`) replace inherited variables case-insensitively both when locating `command` and inside the spawned server. A missing executable fails with `spawn <command> ENOENT`. Relative `cwd` values resolve against the session directory.
47
48
 
48
- On Windows, variables in `env` (such as `PATH`) replace inherited variables case-insensitively (for example overriding `Path`) both when locating `command` and inside the spawned server. A `command` found nowhere fails with `spawn <command> ENOENT`. Relative `cwd` values resolve against the session directory.
49
-
50
- HTTP servers use `url`, optional `headers`, and optional `oauth`. For bearer authentication:
49
+ **Streamable HTTP servers.** Configure `url`, optional `headers`, and optional `oauth` or `auth`:
51
50
 
52
51
  ```json
53
52
  {
@@ -61,49 +60,53 @@ HTTP servers use `url`, optional `headers`, and optional `oauth`. For bearer aut
61
60
  }
62
61
  ```
63
62
 
64
- URLs support `${NAME}` and `$env:NAME` environment references. Atomic resolves them in memory before validating the URL, without rewriting configuration files. `env`, `headers`, and `oauth.clientSecret` support `${NAME}` environment references and whole-value `!command` expressions, for example `"Authorization": "!echo Bearer $(gh auth token)"`. Only use commands from configuration you trust. Use `$$` for a literal `$` and `$!` for a literal `!`. When resolution fails, Atomic never echoes `!command` text; braced `${NAME}` references report the unset variable name, while unbraced `$NAME` references report the name only when it reads like a POSIX environment variable name so literal secrets containing `$` do not leak fragments.
65
-
66
- Both transports support:
63
+ **Variable, command, and home-directory expansion.** Interpolation rules differ by field:
67
64
 
68
- - `timeout`: per-request inactivity timeout in seconds, default 60. Progress notifications reset it; it is not a total execution deadline.
69
- - `enabled: false`: keep a server listed without connecting to it.
70
- - `exposure` and `toolExposure`: control how tools reach the model.
71
- - `description`: a short server summary for the system prompt, tool search, and `describeNamespace()`. Without it, Atomic uses the first line of server instructions once connected.
65
+ | Fields | Supported syntax | Escaping and caveats |
66
+ | --- | --- | --- |
67
+ | `url` | `${NAME}`, `$env:NAME` | Resolved in memory before URL validation without rewriting config files. Does **not** support unbraced `$NAME`, `!command`, or `$$` escaping. |
68
+ | `env`, `headers`, `oauth.clientSecret` | `${NAME}`, unbraced `$NAME`, whole-value `!command` (such as `"!echo Bearer $(gh auth token)"`) | **Escape literal `$` as `$$` and literal leading `!` as `$!`.** Because unbraced `$NAME` is interpolated automatically, secrets containing `$word` expand or fail unless escaped as `$$word`. Only use `!command` in configuration you trust. On failure, Atomic never echoes `!command` text; `${NAME}` reports the unset variable name, while unbraced `$NAME` reports the name only when it looks like a POSIX variable name so literal secret fragments do not leak. |
69
+ | `command`, `args`, `cwd` | Leading `~`, `~/`, and (on Windows) `~\` | Expands to your home directory. Does not interpolate environment variables or `!command`. |
70
+ | `oauth.clientId`, `oauth.scope`, `oauth.callbackUrl`, `oauth.authServerMetadataUrl` | Literal strings only | No environment variable, `!command`, or `~` expansion. |
72
71
 
73
- Server names may contain letters, digits, `_`, and `-`. Names that differ only in `-` and `_` identify the same namespace. Invalid entries are reported and skipped without preventing other servers from connecting.
72
+ **Fields shared by both transports:**
74
73
 
75
- `type` is optional: `command` selects stdio and `url` selects streamable HTTP. If present, it must be `stdio`, `http`, or `streamable-http`. SSE is not supported; use the server's streamable HTTP endpoint, commonly `/mcp` rather than `/sse`.
74
+ - `timeout`: per-request inactivity timeout in seconds (default `60`). Server progress notifications reset this timer; it is not a total execution deadline.
75
+ - `enabled: false`: keep a server configured without connecting to it.
76
+ - `exposure` and `toolExposure`: control how tools reach the model.
77
+ - `description`: a short summary for the model's system prompt, tool search, and `describeNamespace()`. If omitted, Atomic uses the first line of the server's instructions once connected.
78
+ - `type`: optional (`command` selects stdio and `url` selects streamable HTTP). When present, must be `stdio`, `http`, or `streamable-http`. SSE endpoints are not supported; point to the server's streamable HTTP endpoint (typically `/mcp` rather than `/sse`).
76
79
 
77
80
  ### Servers from packages and extensions
78
81
 
79
- Installed [packages](/packages/authoring#mcp-servers) and extensions can contribute servers with the same configuration shape. File-configured servers take precedence over contributions with the same normalized name. Project packages load only after the project is trusted.
82
+ Installed [packages](/packages/authoring#mcp-servers) and extensions can contribute MCP servers using the same configuration shape. File-configured servers take precedence over package or extension contributions with the same normalized name. Project packages load only after project trust is granted.
80
83
 
81
- `/mcp` shows each server's source. Enabled-state and exposure changes for file-configured servers are saved without replacing unrelated configuration. In a trusted project, "Enable in this project" and "Disable in this project" add a project override for a user-level server; later changes to that server are saved to the override. `atomic mcp list` shows the override. Changes to extension-contributed servers apply to the current session.
84
+ `/mcp` shows each server's source. Enabled-state and exposure changes to file-configured servers save back to `mcp.json` while preserving formatting and unrelated settings (setting a full entry back to the defaults `enabled: true` or `exposure: "codemode"` omits those default keys on disk, while project overrides keep explicit keys). In a trusted project, **Enable in this project** and **Disable in this project** create or update a project override for a user-level server, and `atomic mcp list` displays the override. Changes to extension-contributed servers apply to the current session only.
82
85
 
83
86
  ## Manage servers
84
87
 
85
- `/mcp` is the single slash command for managing MCP servers. Run `/mcp` to open the server manager with connection state, tool count, exposure, and source, even while startup connections are still pending.
88
+ Run `/mcp` to open the interactive server manager showing connection state, tool count, exposure, and source, even while startup connections are still pending.
86
89
 
87
- Select a server to inspect tools and details, sign in or out, reconnect, enable or disable it, or change exposure. Servers needing attention appear first. Enable, disable, and reconnect run in the background while the manager updates live, so you can keep navigating or close it. Use `↑`/`↓` to select, `Enter` to open, `Esc` to go back, and type to filter lists longer than one screen.
90
+ Select a server to inspect tools and details, sign in or out, reconnect, enable or disable it, or change exposure. Servers needing attention appear first. Enable, disable, and reconnect run in the background while the manager updates live, so you can keep navigating or close it. Use `↑` and `↓` to select, `Enter` to open, `Esc` to go back, and type to filter lists longer than one screen.
88
91
 
89
92
  | Command | Action |
90
93
  | --- | --- |
91
- | `/mcp` | Open the manager in the TUI, or show status outside it. |
94
+ | `/mcp` | Open the manager in the TUI, or print status outside the TUI. |
92
95
  | `/mcp login [server]` | Sign in with OAuth. |
93
96
  | `/mcp logout [server]` | Remove stored OAuth credentials. |
94
97
  | `/mcp reconnect [server]` | Reconnect a server and refresh its tools. |
95
98
 
96
- Command completion suggests subcommands and eligible server names. When a server name is omitted, Atomic selects an eligible server if only one matches; otherwise it asks you to choose. Session login requires an interactive UI; run `atomic mcp login` in your shell before unattended work.
99
+ Tab completion suggests subcommands and eligible server names. When you omit a server name, Atomic selects the only eligible server automatically or prompts you to choose. `/mcp login` requires an interactive UI; run `atomic mcp login` in your shell before unattended runs.
97
100
 
98
- Enabled servers connect in the background at session startup. The first prompt waits up to 10 seconds for servers with `direct` tools, while codemode, tool search, and resource calls wait for the servers they need. Dropped connections reconnect on the next call, and server-announced tool changes take effect automatically.
101
+ Enabled servers connect in the background at startup. The first prompt waits up to 10 seconds for servers with `direct` tools, while codemode, `tool_search`, and resource calls wait for the servers they need. Dropped connections reconnect on the next call, and server-announced tool list changes apply automatically.
99
102
 
100
- When you resume a session, its previously used MCP tools stay available and keep their system-prompt summaries while servers reconnect, provided the server stays defined in the same scope with the same command and `cwd` (or same URL scheme, host, port, and path; argument and query changes do not invalidate it). Calls wait for reconnect and run only if the tool still exists. Tools from servers that fail to reconnect, require sign-in, or withdrew them update on the next turn.
103
+ When you resume a session, its previously used MCP tools remain available and keep their summaries while servers reconnect, as long as the server stays defined in the same scope with the same command and `cwd` (or the same URL scheme, host, port, and path; argument and query changes do not invalidate it). Calls wait for reconnect and run only if the tool still exists. Tools from servers that fail to reconnect, require sign-in, or removed them update on the next turn.
101
104
 
102
105
  ### Shell commands
103
106
 
104
- Shell commands operate on file-configured servers and do not load extensions:
107
+ CLI subcommands operate on file-configured servers and do not load extensions:
105
108
 
106
- ```sh
109
+ ```bash
107
110
  atomic mcp add <server> [options] -- <command> [args...]
108
111
  atomic mcp add <server> [options] --url <url>
109
112
  atomic mcp remove <server> [-l]
@@ -114,28 +117,28 @@ atomic mcp logout <server> [-l]
114
117
 
115
118
  `add` replaces an existing entry with the same name. `add` and `remove` accept `--local` (`-l`) to write `.atomic/mcp.json`; `login` and `logout` accept `-l` to require a project-defined server (otherwise they search both files).
116
119
 
117
- For stdio servers, pass repeatable `--env KEY=VALUE` and `--cwd`. For HTTP servers, pass repeatable `--header KEY=VALUE`, `--bearer-token-env-var NAME`, and `--oauth-client-id`, `--oauth-client-secret`, `--oauth-callback-port`, or `--oauth-client-name`. Both transports accept `--exposure` and `--description`. Passing `--help` or `-h` after `--` (for example `atomic mcp add srv -- cmd --help`) or as the value of a value-taking flag passes through to the command or option instead of printing MCP help. Run `atomic mcp --help` for full usage.
120
+ For stdio servers, pass repeatable `--env KEY=VALUE` and `--cwd`. For HTTP servers, pass repeatable `--header KEY=VALUE`, `--bearer-token-env-var NAME`, and `--oauth-client-id`, `--oauth-client-secret`, `--oauth-callback-port`, or `--oauth-client-name`. Both transports accept `--exposure` and `--description`. Advanced options without CLI flags (`timeout`, `enabled`, `auth.provider`, `oauth.callbackUrl`, `oauth.scope`, and `oauth.authServerMetadataUrl`) can be edited directly in `mcp.json`. Passing `--help` or `-h` after `--` (for example `atomic mcp add srv -- cmd --help`) or as a flag value passes through instead of printing MCP help. Run `atomic mcp --help` for full usage.
118
121
 
119
- `list` connects to enabled servers and reports state, tools, and errors, exiting `1` on invalid config or any disconnected enabled server. Pass `--json` for machine-readable output. `login` times out after 300 seconds by default (`--timeout` caps the entire sign-in, including authorization-server requests, not MCP server request timeouts). Running sessions pick up new credentials on their next turn.
122
+ `list` connects to enabled servers and reports state, tools, and errors, exiting `1` on invalid config or any disconnected enabled server. Pass `--json` for machine-readable output. `login` times out after 300 seconds by default (`--timeout` caps the entire sign-in flow, including authorization-server requests, not MCP request timeouts). Running sessions pick up new credentials on their next turn.
120
123
 
121
- Resource-capable servers show "offers resources" rather than resource counts. In `--json` output, `resources: true` indicates resource support; resource and template counts are not included. Use the resource tools below to list them on demand.
124
+ Resource-capable servers show `offers resources` rather than counts (`resources: true` in `--json` output). Use the resource tools below to list resources on demand.
122
125
 
123
126
  ## Find and call tools
124
127
 
125
- Tools are named `mcp__<server>__<tool>`, with punctuation replaced by `_`. Names that collide after normalization receive deterministic hash suffixes. Use names returned by discovery rather than constructing them yourself.
128
+ MCP tools register as `mcp__<server>__<tool>` with punctuation replaced by `_`. Names longer than 64 characters, or names that collide after normalization, are shortened to at most 64 characters with an 8-hex SHA-256 hash suffix (`_xxxxxxxx`). Always use the names returned by discovery rather than constructing them by hand.
126
129
 
127
130
  ### Control tool exposure
128
131
 
129
132
  | Exposure | Behavior |
130
133
  | --- | --- |
131
- | `codemode`, the default | Callable from codemode scripts, but not declared to the model or listed in the codemode description. Discover with `searchTools()`, `describeTool()`, or `ALL_TOOLS`. |
132
- | `deferred` | Not declared until `tool_search` loads a matching tool for the next model call. |
134
+ | `codemode` (default) | Callable from codemode scripts, but not declared directly to the model or listed in codemode's inline catalog. Discover with `await searchTools()`, `await describeTool()`, or `ALL_TOOLS`. |
135
+ | `deferred` | Not declared until `tool_search` activates matching tools for the next model turn. |
133
136
  | `direct` | Declared like a built-in tool and also callable from codemode. |
134
137
  | `hidden` | Unreachable. |
135
138
 
136
- `codemode-deferred` is accepted as an alias for `codemode`. Atomic activates `codemode` for codemode servers and `tool_search` for deferred servers. An explicit `-codemode` in `defaultTools` or `--tools` takes precedence: MCP leaves it off. Merely omitting it from a `defaultTools` list does not prevent MCP activation. Set `"autoEnableCodemode": false` beside `mcpServers` to disable MCP's automatic activation without removing codemode from the ordinary defaults. A project value overrides a user-level value.
139
+ `codemode-deferred` is accepted as an alias for `codemode`. Atomic activates `codemode` for codemode servers and `tool_search` for deferred servers automatically. An explicit `-codemode` in `defaultTools` or `--tools` takes precedence so MCP leaves codemode off (merely omitting `codemode` from `defaultTools` does not block MCP activation). Set `"autoEnableCodemode": false` beside `mcpServers` to turn off automatic codemode activation without changing ordinary defaults; a project setting overrides the user-level setting.
137
140
 
138
- `toolExposure` overrides individual tools. Keys are original server tool names or patterns where `*` matches any characters. Exact names win; among patterns, the first match wins:
141
+ `toolExposure` overrides exposure for individual tools. Keys match the **original server tool name** (case-sensitive) before `mcp__<server>__` prefixing. `*` is the only wildcard (`?`, `[...]`, and regex syntax match literally). Exact matches win first, followed by wildcard patterns in JSON key order (first match wins):
139
142
 
140
143
  ```json
141
144
  {
@@ -153,35 +156,35 @@ Tools are named `mcp__<server>__<tool>`, with punctuation replaced by `_`. Names
153
156
  }
154
157
  ```
155
158
 
156
- Codemode and deferred tools can be reached through either indirect mechanism. Server summaries appear in the `mcp_servers` system prompt section. Scripts can read instructions and tool names with `describeNamespace("mcp__github")`.
159
+ Both `codemode` and `deferred` tools can be reached through either discovery mechanism. Atomic adds a short summary of connected servers to the model's system prompt (capped at 250 characters per server and 4,096 characters total). Scripts can read full server instructions and tool lists with `await describeNamespace("mcp__github")`.
157
160
 
158
- `--tools` keeps MCP tools unless an entry starts with `mcp__`. For example, `atomic --tools read,codemode` can still call non-hidden MCP tools with codemode or deferred exposure from scripts, but unmatched MCP tools are not declared directly. Unmatched direct-exposure tools remain registered but inactive. Include `tool_search` to load unmatched tools with non-direct exposure. To restrict the server tools, use `atomic --tools read,codemode,'mcp__docs__*'`. `--exclude-tools` accepts the same `*` patterns and also applies to MCP resource tools.
161
+ `--tools` keeps MCP tools unless an entry starts with `mcp__`. For example, `atomic --tools read,codemode` still lets codemode scripts call non-hidden `codemode` and `deferred` MCP tools, while unmatched `direct` tools stay registered but inactive. Include `tool_search` to load unmatched non-direct tools, or filter explicitly with patterns such as `atomic --tools read,codemode,'mcp__docs__*'`. `--exclude-tools` accepts the same `*` patterns and applies to MCP resource tools as well.
159
162
 
160
- `--no-mcp` disables built-in MCP support for one run. No built-in servers connect, MCP tools load, or `/mcp` command registers. A replacement extension is unaffected.
163
+ `--no-mcp` disables built-in MCP support for one run: no built-in servers connect, no MCP tools load, and `/mcp` does not register. A custom replacement extension is unaffected.
161
164
 
162
- Codemode receives the complete MCP result, including `content`, `structuredContent`, and `isError`. Text over 20 KB is shortened for the model, with the complete text saved to a temporary file named in the result. Every MCP call passes through Atomic's tool pipeline, including permission hooks.
165
+ **Output handling.** Codemode scripts receive the complete untruncated `CallToolResult` (`content`, `structuredContent`, and `isError`, with `_meta` stripped). For direct model calls, text over 20 KiB (`20,480` bytes) is middle-truncated (keeping the start and end) with the full text saved to a temporary file (`pi-mcp*.txt`) named in the result. Every MCP call passes through Atomic's tool pipeline, including permission hooks.
163
166
 
164
167
  ## Use resources
165
168
 
166
- When a connected server offers resources, Atomic registers:
169
+ When a connected server offers resources, Atomic registers three tools:
167
170
 
168
- - `list_mcp_resources`, to list resources. Use `server` for one server and `cursor` for its next page; without `server`, it lists resources across servers.
169
- - `list_mcp_resource_templates`, to list URI templates.
170
- - `read_mcp_resource`, to read by `server` and `uri`. Text and images reach the model directly; other binary content is saved to a temporary file.
171
+ - `list_mcp_resources`: lists resources. Pass `server` to fetch one page from a single server (and `cursor` for the next page); omit `server` to paginate through every page of every server automatically.
172
+ - `list_mcp_resource_templates`: lists URI templates, using the same `server` and `cursor` pagination rules.
173
+ - `read_mcp_resource`: reads a resource by `server` and `uri`. Text and images reach the model directly; other binary content is saved to a temporary file.
171
174
 
172
- These tools reach enabled, non-hidden resource servers. Their exposure is the widest exposure among those servers. Resource links in tool results identify the server and `read_mcp_resource`.
175
+ These tools cover enabled, non-hidden resource servers. Their exposure equals the widest exposure among those servers, using the priority order `direct` > `codemode` > `deferred` > `hidden`. Resource links inside tool results identify the server and `read_mcp_resource`.
173
176
 
174
- MCP Apps resources (`ui://` URIs or `text/html;profile=mcp-app`) are omitted because Atomic does not render them.
177
+ MCP Apps resources (`ui://` URIs or `text/html;profile=mcp-app`) are omitted because Atomic does not render interactive web UIs inside the terminal.
175
178
 
176
179
  ## Authentication
177
180
 
178
- For a remote OAuth server, configure its URL and run `/mcp login my-server`, or select **Sign in** in `/mcp`. Atomic opens the authorization page and displays a clickable URL. If the browser runs on another machine, paste the complete URL it was redirected to into the sign-in prompt. Press Esc to cancel a sign-in at any step; requests to the authorization server time out after 15 seconds. Treat authorization and redirect URLs as sensitive.
181
+ For a remote OAuth server, configure its `url` and run `/mcp login my-server`, or choose **Sign in** in `/mcp`. Atomic opens the authorization page and prints a clickable URL. If your browser runs on another machine, paste the full redirect URL into the waiting sign-in prompt. Press `Esc` to cancel at any step; authorization-server requests time out after 15 seconds. Treat authorization and redirect URLs as sensitive.
179
182
 
180
- Atomic registers OAuth clients as `atomic`, stores credentials in `~/.atomic/agent/mcp-auth.json`, and refreshes tokens when they expire or are rejected. A successful sign-in reconnects the server. If additional scope is required, sign in again. `/mcp logout my-server` or `atomic mcp logout my-server` deletes stored credentials. Old adapter credential files are not imported; sign in through the native client.
183
+ Atomic registers OAuth clients as `atomic`, stores tokens in `~/.atomic/agent/mcp-auth.json`, and refreshes access tokens proactively 30 seconds before expiry (or when rejected). A successful sign-in reconnects the server. If a server requests extra scopes later, sign in again. Run `/mcp logout my-server` or `atomic mcp logout my-server` to delete stored credentials.
181
184
 
182
- Credentials belong to a server name and URL. Servers with the same URL under different names, such as one per account, sign in separately; servers with the same name and URL in different `mcp.json` files share one sign-in.
185
+ Credentials are keyed by server name and URL. Two server entries with the same URL under different names (such as separate accounts) sign in independently; entries with the same name and URL across global and project `mcp.json` files share one sign-in.
183
186
 
184
- OAuth applies to HTTP servers without an `Authorization` header or provider-token configuration. For a pre-registered client:
187
+ OAuth applies to HTTP servers that do not set an `Authorization` header or `auth.provider`. For a pre-registered OAuth client:
185
188
 
186
189
  ```json
187
190
  {
@@ -199,15 +202,15 @@ OAuth applies to HTTP servers without an `Authorization` header or provider-toke
199
202
  }
200
203
  ```
201
204
 
202
- `clientSecret` is optional. `callbackPort` uses `http://127.0.0.1:<port>/callback`. For another registered redirect URI, set `callbackUrl`; it must use HTTP on `localhost`, `127.0.0.1`, or `[::1]`. Atomic sends it as written. If it has no port, Atomic adds `callbackPort` or a free port. The URI must match the client's registration.
203
-
204
- When pasting a redirect URL, keep its scheme, host, port, and path unchanged. Atomic rejects a URL that does not match the redirect URI for the current sign-in, even if its authorization code and state are present.
205
-
206
- Use `oauth.clientName` when a server requires a known registration name. Sign out before signing in again to register with a changed name. Use `oauth.scope` for servers that do not advertise their required scopes; later scope requests are added to it.
205
+ - `clientSecret` is optional and supports `${NAME}`, `$NAME`, and `!command` expansion (escape literal `$` as `$$`).
206
+ - `callbackPort` must be between `1` and `65535` and uses `http://127.0.0.1:<port>/callback`.
207
+ - `callbackUrl` lets you specify another registered redirect URI. It must use HTTP on `localhost`, `127.0.0.1`, or `[::1]` and must not include a query string (`?`) or fragment (`#`). If `callbackUrl` omits a port, Atomic adds `callbackPort` or picks a free port. If both `callbackUrl` (with an explicit port) and `callbackPort` are set, their ports must match or validation fails.
208
+ - When pasting a redirect URL manually, keep its scheme, host, port, and path unchanged. Atomic rejects URLs that do not match the active sign-in's redirect URI, even when the authorization code and state are valid.
209
+ - Use `oauth.clientName` when a server requires a specific client registration name (sign out before signing in again after changing it). Use `oauth.scope` for servers that do not advertise required scopes; later scope requests are merged with it.
207
210
 
208
211
  ### Override OAuth authorization server discovery
209
212
 
210
- If a server advertises the wrong authorization server or none, set `oauth.authServerMetadataUrl` to a trusted RFC 8414 or OpenID Connect metadata document:
213
+ If an MCP server advertises the wrong authorization server or none at all, set `oauth.authServerMetadataUrl` to a trusted RFC 8414 or OpenID Connect metadata document:
211
214
 
212
215
  ```json
213
216
  {
@@ -220,44 +223,47 @@ If a server advertises the wrong authorization server or none, set `oauth.authSe
220
223
  }
221
224
  ```
222
225
 
223
- Atomic uses the document instead of authorization server discovery and trusts its issuer as configured. Point it only at a document you trust. The URL must use HTTPS, except for HTTP on `localhost`, `127.0.0.1`, or `[::1]`.
226
+ Atomic uses that document instead of running authorization server discovery and trusts its configured issuer. Point it only at a metadata URL you trust. The URL must use HTTPS, except for HTTP on `localhost`, `127.0.0.1`, or `[::1]`.
224
227
 
225
- Atomic rejects authorization responses whose `iss` names another issuer, before exchanging the code. If the server promises the RFC 9207 issuer parameter, the response must include it. Empty or null optional token and registration fields count as absent. An empty refresh token does not replace a previously stored one, and `expires_in: null` does not immediately expire the access token.
228
+ Atomic rejects authorization responses whose `iss` names another issuer before exchanging the code. When a server advertises RFC 9207 issuer parameter support, the response must include `iss`. An empty refresh token does not overwrite a stored refresh token, and a missing or null `expires_in` value does not expire the access token immediately.
226
229
 
227
230
  ### Authenticate with a provider login
228
231
 
229
- An HTTP server can use your current provider login token instead of MCP OAuth:
232
+ An HTTP server can reuse an active Atomic provider login token instead of MCP OAuth:
230
233
 
231
234
  ```json
232
- { "mcpServers": { "gateway": { "url": "https://gateway.example/mcp", "auth": { "provider": "openrouter" } } } }
235
+ {
236
+ "mcpServers": {
237
+ "gateway": {
238
+ "url": "https://gateway.example/mcp",
239
+ "auth": { "provider": "openrouter" }
240
+ }
241
+ }
242
+ }
233
243
  ```
234
244
 
235
- Atomic reads the current token for every request and does not copy it into MCP credential storage. If the token is missing or rejected, run `/login <provider>` and retry the MCP call.
236
-
237
- `atomic mcp list` also sends the provider token, refreshing an expired login, and its sign-in hint names `/login <provider>`. `atomic mcp login` and `atomic mcp logout` do not apply to these servers; they point to `atomic auth login <provider>` and `atomic auth logout <provider>`.
245
+ Atomic reads the current provider token on every request and never copies it into `mcp-auth.json`. If the token is missing or rejected, run `/login <provider>` and retry.
238
246
 
239
- Because the credential goes to the configured server, provider-token authentication has these limits:
247
+ `atomic mcp list` also sends the provider token, refreshes expired logins, and prompts with `/login <provider>` if sign-in is required. `atomic mcp login` and `atomic mcp logout` do not manage provider logins; use `atomic auth login <provider>` and `atomic auth logout <provider>` instead.
240
248
 
241
- - It is accepted only from global configuration and extension registrations, not project configuration or package manifests.
242
- - The URL must use HTTPS, except for HTTP on `localhost`, `127.0.0.1`, or `[::1]`.
243
- - Tokens are sent only to the server's origin. Only same-origin `307` and `308` redirects are followed.
249
+ Provider-token authentication enforces these restrictions:
244
250
 
245
- ## Native configuration only
251
+ - Accepted only from user-level `~/.atomic/agent/mcp.json` and extension registrations, never from project `.atomic/mcp.json` or package manifests.
252
+ - Requires HTTPS, except for HTTP on `localhost`, `127.0.0.1`, or `[::1]`.
253
+ - Sends tokens only to the server's configured origin. Atomic follows same-origin `301`, `302`, `303`, `307`, and `308` redirects up to 10 hops (rewriting `POST` to `GET` on `301` and `302`, and non-`HEAD` requests to `GET` on `303`). Cross-origin redirects are rejected.
246
254
 
247
- The old adapter has been replaced by the native client. Only `~/.atomic/agent/mcp.json` and trusted `.atomic/mcp.json` files are read; shared configuration files and client imports are not supported. Use the native fields documented above. Old adapter fields are not translated, and old OAuth credential files are not imported.
255
+ ## Supported configuration and limits
248
256
 
249
- Tools use `mcp__<server>__<tool>` names and default to `codemode` exposure. The old gateway tool, configurable prefixes, lazy/idle lifecycle settings, metadata cache, SSE transport, MCP Apps rendering, and setup command are not available. All enabled servers connect in the background.
257
+ - Atomic reads only `~/.atomic/agent/mcp.json`, trusted `.atomic/mcp.json`, and package or extension contributions. External MCP client config files and third-party credential stores are not imported.
258
+ - Supported transports are stdio and streamable HTTP. SSE endpoints and MCP Apps (`ui://`) rendering are not supported.
259
+ - All enabled servers connect in the background, register tools under `mcp__<server>__<tool>`, and default to `codemode` exposure.
250
260
 
251
261
  ## Troubleshooting
252
262
 
253
- - Run `/mcp` to inspect connection errors, server tools, and the tail of a failed stdio server's stderr.
254
- - After editing configuration, run `/reload` or restart Atomic. Use `/mcp reconnect my-server` to retry a connection and refresh tools.
255
- - For a missing tool, check server and per-tool exposure. `hidden` tools cannot be called; codemode or deferred tools need an active discovery tool.
256
- - For OAuth redirect failures, check `callbackPort` and `callbackUrl` against the registered URI. Over SSH, paste the complete redirected URL into the waiting sign-in prompt.
257
- - If `/mcp` shows a server as failed because its authorization server is temporarily unavailable, your sign-in is still valid. Atomic keeps the stored tokens and retries a few times; run `/mcp reconnect my-server` once the authorization server is back. Only a rejected or revoked sign-in asks you to sign in again.
258
- - For an issuer mismatch, check the authorization server's metadata and callback configuration before retrying. Do not disable issuer checks to accept an unexpected response.
259
- - For slow calls, adjust `timeout` in seconds. Progress resets this inactivity timer.
260
-
261
- ## Local documentation
262
-
263
- This guide ships at `docs/mcp-servers.md` under Atomic's installation root in npm and binary installations.
263
+ - **Inspect logs and stderr.** Check `~/.atomic/agent/mcp.log` for full connection and protocol logs, or run `/mcp` to inspect connection errors, server tools, and the tail of a failed stdio server's stderr.
264
+ - **Reload after config edits.** Run `/reload` or restart Atomic after editing `mcp.json`. Use `/mcp reconnect my-server` to reconnect and refresh tools.
265
+ - **Missing tools.** Check both server-level `exposure` and per-tool `toolExposure`. `hidden` tools cannot be called; `codemode` and `deferred` tools need codemode or `tool_search` enabled.
266
+ - **OAuth redirect failures.** Verify `callbackPort` and `callbackUrl` match the registered redirect URI with no query string or fragment. Over SSH, paste the complete redirected URL into the waiting sign-in prompt.
267
+ - **Temporary authorization server outage.** Stored tokens stay intact and Atomic retries automatically; run `/mcp reconnect my-server` once the authorization server recovers. You are asked to sign in again only when credentials are rejected or revoked.
268
+ - **Issuer mismatch.** Verify the authorization server's metadata and callback configuration before retrying rather than bypassing issuer validation.
269
+ - **Slow tool calls.** Increase `timeout` (in seconds). Server progress notifications reset this inactivity timer.
@@ -1,12 +1,10 @@
1
1
  ---
2
- title: Model configuration reference
3
- sidebarTitle: "Model configuration"
4
- description: Provider and model behavior, overrides, derived fast variants, and API compatibility contracts.
2
+ title: "Model configuration reference"
3
+ sidebarTitle: "Model overrides"
4
+ description: "Supported APIs, value resolution, overrides, pricing tiers, thinking maps, derived fast variants, and API compatibility rules."
5
5
  ---
6
6
 
7
- # Model configuration reference
8
-
9
- This page covers provider and model behavior, compatibility rules, and built-in model details. For the complete schema-generated field list for `models.json`, see [Models Configuration](/models-configuration).
7
+ This page covers provider and model behavior, compatibility rules, and built-in model details. For the complete schema-generated field list for `models.json`, see [`models.json` schema reference](/models-configuration).
10
8
 
11
9
  ## Supported APIs
12
10
 
@@ -19,7 +17,7 @@ This page covers provider and model behavior, compatibility rules, and built-in
19
17
 
20
18
  Set `api` at provider level (default for all models) or model level (override per model).
21
19
 
22
- These four values are the generic custom-provider APIs supported in `models.json`. Atomic's built-in provider runtime also uses provider-specific APIs (`mistral-conversations`, `azure-openai-responses`, `openai-codex-responses`, `bedrock-converse-stream`, `google-vertex`, and `pi-messages`), which are not guaranteed as generic `models.json` contracts.
20
+ Built-in providers also use provider-specific APIs (`mistral-conversations`, `azure-openai-responses`, `openai-codex-responses`, `bedrock-converse-stream`, `google-vertex`, and `pi-messages`). These are built-in only and are not supported as generic custom provider APIs in `models.json`.
23
21
 
24
22
  ## Provider configuration
25
23
 
@@ -29,23 +27,26 @@ See [Providers fields](/models-configuration#providers) for the full list of pro
29
27
 
30
28
  `apiKey` and `headers` values accept three formats:
31
29
 
32
- - **Shell command:** `"!command"` executes the command and uses stdout.
30
+ - **Shell command:** `"!command"` executes the command and uses trimmed stdout (10-second timeout, 1 MiB stdout limit; non-zero exit or empty stdout fails resolution). On Windows, Atomic runs commands through your configured shell (`shellPath` or Git Bash) first and falls back to the default shell if unavailable.
33
31
  ```json
34
32
  "apiKey": "!security find-generic-password -ws 'anthropic'"
35
33
  "apiKey": "!op read 'op://vault/item/credential'"
36
34
  ```
37
- - **Environment variable:** `"$MY_API_KEY"` or `"${MY_API_KEY}"` interpolates the variable from the environment.
35
+ - **Environment variable:** `"$MY_API_KEY"` or `"${MY_API_KEY}"` interpolates the variable from the environment. Empty environment variables (`MY_API_KEY=""`) count as unset. If any variable in a composite string (`"${A}_${B}"`) is unset or empty, the entire value fails to resolve.
38
36
  ```json
39
37
  "apiKey": "$MY_API_KEY"
40
38
  ```
41
- - **Literal value:** Used directly when neither syntax matches. Use `$$` for a literal `$` and `$!` for a literal `!`.
39
+ - **Literal value:** Used directly when neither syntax matches. In non-command values, use `$$` for a literal `$` and `$!` for a literal `!`.
42
40
  ```json
43
41
  "apiKey": "sk-..."
44
42
  ```
45
43
 
46
44
  Legacy bare uppercase names such as `MY_API_KEY` migrate to `$MY_API_KEY` on startup only when that variable is set in the environment; otherwise Atomic keeps them as literals. Use explicit `${ENV_VAR}` or `$ENV_VAR` syntax in new configs. When resolution fails, Atomic omits `!command` text; braced `${NAME}` references always report the unset variable name, whereas unbraced `$NAME` references report the name only when it reads like a POSIX environment variable name so literal secrets containing `$` do not leak fragments.
47
45
 
48
- In `models.json`, shell commands run at request time without built-in TTL caching or stale reuse. If a command is slow, rate-limited, or needs fallback caching, wrap that logic in a local script. `/model` availability checks verify auth presence without running shell commands.
46
+ Important runtime differences:
47
+
48
+ - **Uncached `!command` in `models.json` vs cached in `auth.json`:** In `models.json`, shell commands run uncached on every request. If a command is slow, rate-limited, or needs caching, wrap that logic in a local script. By contrast, `auth.json` caches `!command` results (including failures) for the lifetime of the process. `/model` availability checks verify auth presence without running shell commands.
49
+ - **Built-in provider `apiKey` precedence:** Setting `apiKey` on a built-in provider in `models.json` takes precedence over that provider's built-in environment variable. If you set `"apiKey": "$UNSET_VAR"` and `UNSET_VAR` is unset or empty, resolution stops and returns no credential instead of falling back to the built-in environment variable. See [Credential resolution order](/providers/reference#resolution-order).
49
50
 
50
51
  ### Custom headers
51
52
 
@@ -75,23 +76,36 @@ See [Models fields](/models-configuration#models) for the complete schema table
75
76
  Key display and modality rules:
76
77
 
77
78
  - `/model`, `--list-models`, the footer, fallback notices, and subagent labels show the raw `provider/id` (or `id` when the provider is clear) followed by the active thinking level, such as `anthropic/claude-sonnet-4-5 high`. That is the exact value `--model provider/id:level` accepts.
78
- - `name` is used for `--model` pattern matching and secondary text in `/model`; it never replaces `id`.
79
+ - `name` is used for `--model` and `enabledModels` fuzzy matching and secondary text in `/model`; it never replaces `id`.
79
80
  - `input` declares the modalities Atomic sends: `["text"]`, `["text", "image"]`, or `["text", "image", "pdf"]`.
80
81
 
81
- Anthropic documents that [all active Claude models support PDF input](https://platform.claude.com/docs/en/build-with-claude/pdf-support). Atomic advertises `"pdf"` only where its runtime serializes document blocks (Anthropic Messages and Amazon Bedrock Converse); Claude mirrors on other providers stay at `["text", "image"]` and turn attached PDFs into a visible placeholder rather than dropping them silently. Bedrock Converse needs citations enabled for visual PDF processing and otherwise extracts text. Only `application/pdf` is accepted for `"pdf"`.
82
+ Anthropic documents that [all active Claude models support PDF input](https://platform.claude.com/docs/en/build-with-claude/pdf-support). Atomic advertises `"pdf"` only where it serializes document blocks (Anthropic Messages and Amazon Bedrock Converse); Claude mirrors on other providers stay at `["text", "image"]` and turn attached PDFs into a visible placeholder rather than dropping them silently. Bedrock Converse needs citations enabled for visual PDF processing and otherwise extracts text. Only `application/pdf` is accepted for `"pdf"`.
82
83
 
83
84
  ### OpenAI built-in models
84
85
 
85
86
  Prices are in USD per million tokens as `input / cached input / cache write / output`. An empty cell means the tier does not apply or has no published rate.
86
87
 
87
- | Model | Provider IDs | Context window | Standard (up to 272,000 input) | Standard (above 272,000 input) | Fast | Ultrafast | Reasoning levels | `off` | `minimal` | Tool search | Additional tools | Mid-conversation effort |
88
- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
89
- | GPT-6.2 Astra | `openai/gpt-6.2-astra`, `openai-api/gpt-6.2-astra`, `openai-codex/gpt-6.2-astra`, `azure/gpt-6.2-astra`, `github-copilot/gpt-6.2-astra` | 272,000 on `openai`, `openai-api`, and `openai-codex`; 1,050,000 on `azure` and `github-copilot` | $8 / $0.40 / $10 / $40 | $16 / $0.80 / $20 / $60 | `-fast` on `openai`, `openai-api`, `openai-codex`: $16 / $0.80 / $20 / $80 (above 272K: $32 / $1.60 / $40 / $120) | `-ultrafast` on `openai`, `openai-api`, `openai-codex`: $24 / $1.20 / $30 / $120 (above 272K: $48 / $2.40 / $60 / $180) | `low`, `medium`, `high`, `xhigh`, `max` | No | No | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
90
- | GPT-6.2 Sol | `openai/gpt-6.2-sol`, `openai-api/gpt-6.2-sol`, `openai-codex/gpt-6.2-sol`, `azure/gpt-6.2-sol`, `github-copilot/gpt-6.2-sol` | 500,000 on `openai-codex` and `openai` (ChatGPT sign-in); 272,000 on `openai` and `openai-api` (API key); 1,050,000 on `azure` and `github-copilot` | $2 / $0.10 / $2.50 / $10 | $4 / $0.20 / $5 / $15 (including Codex) | `-fast` on `openai`, `openai-api`, `openai-codex`: $4 / $0.20 / $5 / $20 (above 272K: $8 / $0.40 / $10 / $30) | `-ultrafast` on `openai`, `openai-api`, `openai-codex`: $6 / $0.30 / $7.50 / $30 (above 272K: $12 / $0.60 / $15 / $45) | `low`, `medium`, `high`, `xhigh`, `max` | No | No | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
91
- | GPT-6 Astra | `openai/gpt-6-astra`, `openai-api/gpt-6-astra`, `openai-codex/gpt-6-astra`, `github-copilot/gpt-6-astra` | 272,000 on `openai`, `openai-api`, and `openai-codex`; 1,000,000 on `github-copilot` | $10 / $1 / $12.50 / $50 | $20 / $2 / $25 / $75 | `-fast` on `openai`, `openai-api`, `openai-codex`: $20 / $2 / $25 / $100 (above 272K: $40 / $4 / $50 / $150) | `-ultrafast` on `openai`, `openai-api`, `openai-codex`: $60 / $6 / $75 / $300 (above 272K: $120 / $12 / $150 / $450) | `low`, `medium`, `high`, `xhigh`, `max` | No | No | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
92
- | GPT-6 Astra (Bedrock) | `amazon-bedrock/openai.gpt-6-astra`, `amazon-bedrock/global.openai.gpt-6-astra`, `amazon-bedrock/us.openai.gpt-6-astra` | 1,050,000 | `global.`: $10 / $1 / $12.50 / $50; `openai.`, `us.`: $11 / $1.10 / $13.75 / $55 | `global.`: $20 / $2 / $25 / $75; `openai.`, `us.`: $22 / $2.20 / $27.50 / $82.50 | | | `low`, `medium`, `high`, `xhigh`, `max` | No | No | No | No | No |
93
- | GPT-6.1 Sol | `openai/gpt-6.1-sol`, `openai-api/gpt-6.1-sol`, `openai-codex/gpt-6.1-sol`, `azure/gpt-6.1-sol`, `github-copilot/gpt-6.1-sol` | 500,000 on `openai-codex` and `openai` (ChatGPT sign-in); 272,000 on `openai` and `openai-api` (API key); 1,050,000 on `azure` and `github-copilot` | $2 / $0.10 / $2.50 / $10 | $4 / $0.20 / $5 / $15 with API key; none with ChatGPT sign-in | `-fast` on `openai`, `openai-api`, `openai-codex`: $4 / $0.20 / $5 / $20 (above 272K with API key: $8 / $0.40 / $10 / $30) | `-ultrafast` on `openai`, `openai-api`, `openai-codex`: $12 / $0.60 / $15 / $60 (above 272K with API key: $24 / $1.20 / $30 / $90) | `low`, `medium`, `high`, `xhigh`, `max` | No | Codex UI alias sending `low`; no elsewhere | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
94
- | GPT-6.1 Terra | `openai/gpt-6.1-terra`, `openai-api/gpt-6.1-terra`, `openai-codex/gpt-6.1-terra`, `azure/gpt-6.1-terra`, `github-copilot/gpt-6.1-terra` | 500,000 on `openai-codex`; 272,000 on `openai` and `openai-api`; 1,050,000 on `azure` and `github-copilot` | $1 / $0.05 / $1.25 / $5 | $2 / $0.10 / $2.50 / $7.50 (including Codex) | `-fast` on `openai` and `openai-api`: $2 / $0.10 / $2.50 / $10 (above 272K: $4 / $0.20 / $5 / $15) | | `off`, `low`, `medium`, `high`, `xhigh`, `max` | Yes (sends `none`) | Codex UI alias sending `low`; no elsewhere | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
88
+ #### Context windows and pricing
89
+
90
+ | Model | Provider IDs | Context window | Standard (up to 272,000 input) | Standard (above 272,000 input) | Fast | Ultrafast |
91
+ | --- | --- | --- | --- | --- | --- | --- |
92
+ | GPT-6.2 Astra | `openai/gpt-6.2-astra`, `openai-api/gpt-6.2-astra`, `openai-codex/gpt-6.2-astra`, `azure/gpt-6.2-astra`, `github-copilot/gpt-6.2-astra` | 272,000 on `openai`, `openai-api`, `openai-codex`; 1,050,000 on `azure`, `github-copilot` | $8 / $0.40 / $10 / $40 | $16 / $0.80 / $20 / $60 | `-fast` on `openai`, `openai-api`, `openai-codex`: $16 / $0.80 / $20 / $80 (above 272K: $32 / $1.60 / $40 / $120) | `-ultrafast` on `openai`, `openai-api`, `openai-codex`: $24 / $1.20 / $30 / $120 (above 272K: $48 / $2.40 / $60 / $180) |
93
+ | GPT-6.2 Sol | `openai/gpt-6.2-sol`, `openai-api/gpt-6.2-sol`, `openai-codex/gpt-6.2-sol`, `azure/gpt-6.2-sol`, `github-copilot/gpt-6.2-sol` | 500,000 on `openai-codex` and `openai` (ChatGPT sign-in); 272,000 on `openai` and `openai-api` (API key); 1,050,000 on `azure`, `github-copilot` | $2 / $0.10 / $2.50 / $10 | $4 / $0.20 / $5 / $15 (including Codex) | `-fast` on `openai`, `openai-api`, `openai-codex`: $4 / $0.20 / $5 / $20 (above 272K: $8 / $0.40 / $10 / $30) | `-ultrafast` on `openai`, `openai-api`, `openai-codex`: $6 / $0.30 / $7.50 / $30 (above 272K: $12 / $0.60 / $15 / $45) |
94
+ | GPT-6 Astra | `openai/gpt-6-astra`, `openai-api/gpt-6-astra`, `openai-codex/gpt-6-astra`, `github-copilot/gpt-6-astra` | 272,000 on `openai`, `openai-api`, `openai-codex`; 1,000,000 on `github-copilot` | $10 / $1 / $12.50 / $50 | $20 / $2 / $25 / $75 | `-fast` on `openai`, `openai-api`, `openai-codex`: $20 / $2 / $25 / $100 (above 272K: $40 / $4 / $50 / $150) | `-ultrafast` on `openai`, `openai-api`, `openai-codex`: $60 / $6 / $75 / $300 (above 272K: $120 / $12 / $150 / $450) |
95
+ | GPT-6 Astra (Bedrock) | `amazon-bedrock/openai.gpt-6-astra`, `amazon-bedrock/global.openai.gpt-6-astra`, `amazon-bedrock/us.openai.gpt-6-astra` | 1,050,000 | `global.`: $10 / $1 / $12.50 / $50; `openai.`, `us.`: $11 / $1.10 / $13.75 / $55 | `global.`: $20 / $2 / $25 / $75; `openai.`, `us.`: $22 / $2.20 / $27.50 / $82.50 | | |
96
+ | GPT-6.1 Sol | `openai/gpt-6.1-sol`, `openai-api/gpt-6.1-sol`, `openai-codex/gpt-6.1-sol`, `azure/gpt-6.1-sol`, `github-copilot/gpt-6.1-sol` | 500,000 on `openai-codex` and `openai` (ChatGPT sign-in); 272,000 on `openai` and `openai-api` (API key); 1,050,000 on `azure`, `github-copilot` | $2 / $0.10 / $2.50 / $10 | $4 / $0.20 / $5 / $15 with API key; none with ChatGPT sign-in | `-fast` on `openai`, `openai-api`, `openai-codex`: $4 / $0.20 / $5 / $20 (above 272K with API key: $8 / $0.40 / $10 / $30) | `-ultrafast` on `openai`, `openai-api`, `openai-codex`: $12 / $0.60 / $15 / $60 (above 272K with API key: $24 / $1.20 / $30 / $90) |
97
+ | GPT-6.1 Terra | `openai/gpt-6.1-terra`, `openai-api/gpt-6.1-terra`, `openai-codex/gpt-6.1-terra`, `azure/gpt-6.1-terra`, `github-copilot/gpt-6.1-terra` | 500,000 on `openai-codex`; 272,000 on `openai` and `openai-api`; 1,050,000 on `azure`, `github-copilot` | $1 / $0.05 / $1.25 / $5 | $2 / $0.10 / $2.50 / $7.50 (including Codex) | `-fast` on `openai` and `openai-api`: $2 / $0.10 / $2.50 / $10 (above 272K: $4 / $0.20 / $5 / $15) | |
98
+
99
+ #### Reasoning levels and capabilities
100
+
101
+ | Model | Reasoning levels | `off` | `minimal` | Tool search | Additional tools | Mid-conversation effort |
102
+ | --- | --- | --- | --- | --- | --- | --- |
103
+ | GPT-6.2 Astra | `low`, `medium`, `high`, `xhigh`, `max` | No | No | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
104
+ | GPT-6.2 Sol | `low`, `medium`, `high`, `xhigh`, `max` | No | No | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
105
+ | GPT-6 Astra | `low`, `medium`, `high`, `xhigh`, `max` | No | No | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
106
+ | GPT-6 Astra (Bedrock) | `low`, `medium`, `high`, `xhigh`, `max` | No | No | No | No | No |
107
+ | GPT-6.1 Sol | `low`, `medium`, `high`, `xhigh`, `max` | No | Codex UI alias sending `low`; no elsewhere | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
108
+ | GPT-6.1 Terra | `off`, `low`, `medium`, `high`, `xhigh`, `max` | Yes (sends `none`) | Codex UI alias sending `low`; no elsewhere | `openai`, `openai-api`, `openai-codex` | `openai`, `openai-api`, `openai-codex`, `github-copilot` | `openai` and `openai-api` with API key |
95
109
 
96
110
  Notes for every row:
97
111
 
@@ -179,8 +193,6 @@ Atomic clamps unsupported thinking levels to the nearest supported level, then m
179
193
 
180
194
  For OpenAI-compatible servers that share reasoning and answer budgets (vLLM, Qwen/DashScope/SGLang, llama.cpp), set `compat.thinkingTokenBudgetField` (or its vLLM alias `compat.supportsThinkingTokenBudget: true`). Atomic sends the capped thinking budget and reserves at least 1024 tokens for the answer. Atomic's default budgets are 1024 (`minimal`), 2048 (`low`), 8192 (`medium`), and 16384 (`high`), overridable via `thinkingBudgets`; `xhigh` and `max` use the `high` budget, and the field is omitted if no positive budget remains. Avoid putting a fixed thinking-token cap in `samplingParams`, because it ignores `thinkingBudgets` and answer reservation.
181
195
 
182
- Model references check for an exact unmodified ID before interpreting thinking suffixes or glob characters. If a catalog contains `provider/literal[free]:high`, that literal ID matches first without stripping `:high` or treating `[free]` as a glob. Only when the literal ID is absent does Atomic parse a thinking suffix and then apply glob or fuzzy matching.
183
-
184
196
  ### Request-wide cost tiers
185
197
 
186
198
  Declare request-wide long-context pricing in `cost.tiers`. Both base `cost` and every tier require all four USD-per-million-token rates (`input`, `output`, `cacheRead`, `cacheWrite`); each tier also requires `inputTokensAbove`:
@@ -229,7 +241,7 @@ In `modelOverrides`, scalar cost fields merge individually and preserve inherite
229
241
 
230
242
  ### Thinking level map
231
243
 
232
- Use `thinkingLevelMap` to map Atomic thinking levels (`off`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`) to provider values. Levels are selectable only when the active model supports them.
244
+ Use `thinkingLevelMap` to map Atomic thinking levels (`off`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`) to provider values. Levels are selectable only when the active model supports them. In `modelOverrides`, `thinkingLevelMap` merges per key with the base model's map, so you only need to specify the keys you want to change or hide with `null`.
233
245
 
234
246
  | Value | Meaning |
235
247
  | --- | --- |
@@ -268,11 +280,11 @@ Model where thinking cannot be disabled:
268
280
 
269
281
  Requesting `off` on a model with `"off": null` runs it at its lowest supported level rather than leaving effort to the provider's default. Sessions, `:off` subagents, and branch summaries select the lowest supported level in the map, so mark unsupported levels `null`.
270
282
 
271
- SDK requests arriving without a reasoning level fall back inside the provider adapter. OpenAI Responses, OpenAI Completions, and Mistral send the lowest mapped string value (or keep the provider default if none is mapped); `thinkingFormat: "openrouter"` sends the lowest supported level even without an explicit string value; budget-based Gemini models use that level's `thinkingBudgets` value. The response records `thinking_off_fallback` in `diagnostics`.
283
+ SDK requests arriving without a reasoning level fall back automatically. OpenAI Responses, OpenAI Completions, and Mistral send the lowest mapped string value (or keep the provider default if none is mapped); `thinkingFormat: "openrouter"` sends the lowest supported level even without an explicit string value; budget-based Gemini models use that level's `thinkingBudgets` value. The response records `thinking_off_fallback` in `diagnostics`.
272
284
 
273
285
  Move older `compat.reasoningEffortMap` entries to model-level `thinkingLevelMap`.
274
286
 
275
- Running `/thinking` opens the thinking-level selector, and `/thinking <level>` selects a level directly. Choosing a level applies it immediately and saves it as the startup default in both `settings.modelThinkingLevels` (for the active model) and `settings.defaultThinkingLevel`. Open `/settings` and select **Default thinking level per model** to review saved per-model levels.
287
+ Running `/thinking` opens the thinking-level selector, and `/thinking <level>` selects a level directly (case-insensitive, matching `:level` suffixes in `--model`, `enabledModels`, and `fallbackModels`). Choosing a level applies it immediately and saves it as the startup default in both `settings.modelThinkingLevels` (for the active model) and `settings.defaultThinkingLevel`. Open `/settings` and select **Default thinking level per model** to review saved per-model levels.
276
288
 
277
289
  ### Context window
278
290
 
@@ -286,7 +298,7 @@ Running `/thinking` opens the thinking-level selector, and `/thinking <level>` s
286
298
  }
287
299
  ```
288
300
 
289
- Built-in models inherit `contextWindow` from Atomic's built-in `@bastani/atomic-ai` catalog, and discovered GitHub Copilot models read it from your account's `/models` list. Override one with `modelOverrides`:
301
+ Built-in models inherit `contextWindow` from Atomic's built-in model catalog, and discovered GitHub Copilot models read it from your account's `/models` list. Override one with `modelOverrides`:
290
302
 
291
303
  ```json
292
304
  {
@@ -355,7 +367,7 @@ Merge rules:
355
367
 
356
368
  ## Per-model overrides
357
369
 
358
- Use `modelOverrides` to patch specific built-in or extension-registered models without replacing the provider's model list. See [Model overrides fields](/models-configuration#model-overrides) for all supported fields.
370
+ Use `modelOverrides` to patch specific built-in, custom, or extension-registered chat models without replacing the provider's model list. See [Model overrides fields](/models-configuration#model-overrides) for all supported fields.
359
371
 
360
372
  ```json
361
373
  {
@@ -380,18 +392,19 @@ Override rules:
380
392
 
381
393
  - Atomic reads a single `models.json` from the active agent directory and never merges `.pi` and `.atomic` model files.
382
394
  - Atomic retains parsed `modelOverrides` for models registered later by extensions through `atomic.registerProvider()`; unknown IDs are ignored otherwise.
383
- - `modelOverrides` composes over built-in and extension models, with override fields winning and headers shallow-merged. A same-ID custom entry in `models` replaces the overridden built-in entry (including its headers) and is not modified by `modelOverrides`.
384
- - Provider-level headers stay separate and combine at request time.
395
+ - `modelOverrides` runs after `models` and extension registrations, so it applies to built-in, extension-registered, and same-ID custom chat models (as well as derived `-fast` and `-ultrafast` variants).
396
+ - Nested objects merge per key rather than wiping siblings: `compat` (including `openRouterRouting`, `vercelGatewayRouting`, `chatTemplateKwargs`, and `chatTemplateArgs`), `inputLimits` (including `images` and `images.resize`), `promptCache`, `thinkingLevelMap`, `samplingParams`, and `samplingParamsByThinkingLevel` (per level).
397
+ - `headers` shallow-merges (when both a custom `models` entry and `modelOverrides` set the same header key, the custom `models` entry's header wins). Provider-level headers stay separate and combine at request time.
385
398
  - Scalar `cost` overrides preserve inherited `tiers`; providing `cost.tiers` replaces the entire array (`[]` clears it).
386
399
 
387
400
  ## Derived fast model variants
388
401
 
389
- For providers that enable fast mode via a request parameter (OpenAI and xAI `service_tier`, Anthropic `speed`), Atomic derives `<id>-fast` variants after composing built-in catalogs, `models.json` entries, extension models, and base `modelOverrides`. Any `modelOverrides` entry keyed on the derived `-fast` ID then applies to that derived entry. GitHub Copilot publishes its own fast IDs without derivation. See [Fast models](/providers#fast-models) for eligibility.
402
+ For providers that enable fast mode via a request parameter (OpenAI and xAI `service_tier`, Anthropic `speed`), Atomic derives `<id>-fast` (and eligible `<id>-ultrafast`) variants after composing built-in catalogs, `models.json` entries, extension models, and base `modelOverrides`. Any `modelOverrides` entry keyed on the derived `-fast` or `-ultrafast` ID then applies to that derived entry. GitHub Copilot publishes its own fast IDs without derivation. See [Fast models](/providers#fast-models) for eligibility.
390
403
 
391
404
  Rules for `models.json`:
392
405
 
393
- - **Custom entries in `models` never get derived fast variants**, even when replacing a built-in model ID. Use `modelOverrides` instead of `models` to customize a built-in model while keeping its derived fast sibling.
394
- - **Exact IDs win.** If a provider, `models.json`, or an extension defines the exact `<base>-fast` ID, Atomic keeps that entry without deriving a duplicate and warns at startup. The `-fast` suffix alone never adds fast routing.
406
+ - **Custom entries in `models` never get derived fast or ultrafast variants**, even when replacing a built-in model ID. Use `modelOverrides` instead of `models` to customize a built-in model while keeping its derived sibling.
407
+ - **Exact IDs win.** If a provider, `models.json`, or an extension defines the exact `<base>-fast` or `<base>-ultrafast` ID, Atomic keeps that entry without deriving a duplicate and warns at startup. The `-fast` or `-ultrafast` suffix alone never adds fast routing.
395
408
  - **`modelOverrides` works on derived IDs.** Overriding the base model flows down to its derived sibling; overriding the derived ID (such as `modelOverrides["gpt-5.6-sol-fast"]`) wins while keeping fast-route metadata intact.
396
409
 
397
410
  Derived `-fast` variants inherit the base model's `cost` because the adapter applies the priority/speed multiplier at request time. Do not pre-multiply costs in overrides. Ultrafast variants carry their published Ultrafast rates directly and can be overridden by their own ID.