@bastani/atomic 0.10.9 → 0.10.10-alpha.2

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 (406) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +226 -163
  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} +150 -62
  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 +87 -116
  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 +61 -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 +74 -141
  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 +61 -88
  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 +238 -243
  297. package/docs/build.md +21 -15
  298. package/docs/changelog.mdx +1 -1
  299. package/docs/codemode.md +68 -51
  300. package/docs/compaction/reference.md +65 -26
  301. package/docs/compaction.md +118 -66
  302. package/docs/computer-use.md +179 -146
  303. package/docs/containerization.md +87 -33
  304. package/docs/custom-provider/api-reference.md +152 -13
  305. package/docs/custom-provider/oauth.md +45 -28
  306. package/docs/custom-provider/override.md +14 -7
  307. package/docs/custom-provider/registration.md +77 -67
  308. package/docs/custom-provider/streaming.md +42 -19
  309. package/docs/custom-provider.md +26 -62
  310. package/docs/development.md +81 -42
  311. package/docs/docs.json +54 -38
  312. package/docs/environment-variables.md +92 -64
  313. package/docs/extensions/api-reference.md +326 -735
  314. package/docs/extensions/authoring.md +186 -269
  315. package/docs/extensions/events.md +308 -375
  316. package/docs/extensions/examples.md +122 -74
  317. package/docs/extensions/ui.md +217 -197
  318. package/docs/extensions.md +189 -259
  319. package/docs/getting-started/authentication.md +27 -14
  320. package/docs/getting-started/first-session.md +25 -26
  321. package/docs/getting-started/installation.md +62 -84
  322. package/docs/getting-started/project-instructions.md +39 -14
  323. package/docs/guides/configuration.md +62 -20
  324. package/docs/guides/intercom.md +20 -12
  325. package/docs/guides/non-interactive.md +31 -16
  326. package/docs/guides/orchestration.md +17 -9
  327. package/docs/guides/resume-on-any-machine.md +63 -52
  328. package/docs/guides/subagents.md +26 -14
  329. package/docs/guides/team-setup.md +49 -27
  330. package/docs/guides.md +30 -23
  331. package/docs/herdr.md +22 -17
  332. package/docs/index.md +24 -17
  333. package/docs/intercom/operations.md +90 -66
  334. package/docs/intercom/reference.md +219 -192
  335. package/docs/intercom.md +111 -92
  336. package/docs/json.md +73 -71
  337. package/docs/keybindings.md +74 -48
  338. package/docs/libraries/agent-core.md +52 -9
  339. package/docs/libraries/ai.md +90 -63
  340. package/docs/libraries/codemode.md +31 -8
  341. package/docs/libraries/schema.md +12 -9
  342. package/docs/libraries/storage-libsql.md +92 -0
  343. package/docs/libraries/storage-postgres.md +119 -0
  344. package/docs/libraries/telemetry.md +42 -9
  345. package/docs/libraries/tui.md +74 -94
  346. package/docs/libraries.md +25 -8
  347. package/docs/llama-cpp.md +38 -33
  348. package/docs/mcp-servers.md +140 -88
  349. package/docs/models/reference.md +53 -36
  350. package/docs/models-configuration.md +19 -13
  351. package/docs/models.md +102 -87
  352. package/docs/orchestration/migrating-workflows.md +22 -20
  353. package/docs/orchestration/patterns.md +36 -21
  354. package/docs/orchestration.md +24 -21
  355. package/docs/packages/authoring.md +29 -18
  356. package/docs/packages/reference.md +77 -16
  357. package/docs/packages.md +34 -34
  358. package/docs/programmatic.md +28 -21
  359. package/docs/prompt-templates.md +65 -41
  360. package/docs/providers/reference.md +36 -20
  361. package/docs/providers.md +78 -76
  362. package/docs/quickstart.md +42 -54
  363. package/docs/reference/cli.md +256 -254
  364. package/docs/reference.md +30 -23
  365. package/docs/rpc/examples.md +121 -17
  366. package/docs/rpc/extension-ui.md +86 -63
  367. package/docs/rpc/protocol.md +817 -358
  368. package/docs/rpc.md +78 -152
  369. package/docs/sdk/reference.md +309 -73
  370. package/docs/sdk/storage.md +614 -0
  371. package/docs/sdk/structured-decisions.md +168 -65
  372. package/docs/sdk/web-server.md +80 -46
  373. package/docs/sdk.md +168 -215
  374. package/docs/security.md +117 -44
  375. package/docs/session-format.md +127 -76
  376. package/docs/sessions.md +155 -113
  377. package/docs/settings.md +293 -205
  378. package/docs/shell-aliases.md +15 -6
  379. package/docs/skills/authoring.md +17 -9
  380. package/docs/skills/reference.md +23 -21
  381. package/docs/skills.md +148 -97
  382. package/docs/storage.md +172 -260
  383. package/docs/subagents/authoring.md +148 -15
  384. package/docs/subagents/reference.md +105 -29
  385. package/docs/subagents.md +247 -250
  386. package/docs/terminal-setup.md +97 -69
  387. package/docs/termux.md +51 -85
  388. package/docs/themes/reference.md +51 -37
  389. package/docs/themes.md +52 -55
  390. package/docs/tmux.md +38 -21
  391. package/docs/tools.md +209 -147
  392. package/docs/tui/reference.md +64 -32
  393. package/docs/tui.md +38 -66
  394. package/docs/usage.md +94 -86
  395. package/docs/verification.md +25 -25
  396. package/docs/web-access.md +106 -54
  397. package/docs/windows.md +55 -57
  398. package/docs/worktree-snapshots.md +82 -74
  399. package/examples/sdk/11-sessions.ts +4 -4
  400. package/package.json +8 -8
  401. package/schemas/models.schema.json +58 -7
  402. package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
  403. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
  404. package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
  405. package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
  406. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
package/docs/settings.md CHANGED
@@ -1,26 +1,29 @@
1
1
  ---
2
- title: "Settings"
3
- description: "Complete reference for ~/.atomic/agent/settings.json and project .atomic/settings.json options."
2
+ title: "Settings reference"
3
+ sidebarTitle: "Settings"
4
+ description: "Reference for every option in global and project settings.json files, including model scoping, fallbacks, retries, tools, and storage."
4
5
  ---
5
6
 
6
- # Settings
7
-
8
- Atomic reads JSON settings from two scopes, with project settings overriding global settings:
7
+ Atomic reads JSON settings from two scopes, with trusted project settings overriding global settings:
9
8
 
10
9
  | Location | Scope |
11
10
  | --- | --- |
12
11
  | `~/.atomic/agent/settings.json` | Global (all projects; legacy `~/.pi/agent/settings.json` is a fallback) |
13
12
  | `.atomic/settings.json` | Project override (requires project trust; legacy `.pi/settings.json` is a fallback) |
14
13
 
15
- Edit these files directly or run `/settings` for common options.
16
-
17
- - **Automatic startup defaults.** Changing the model or thinking level interactively (`/model`, `/thinking`, or cycling shortcuts) saves `defaultProvider`, `defaultModel`, `defaultThinkingLevel`, and `modelThinkingLevels`. `/scoped-models` saves `enabledModels`. SDK calls, session restores, and fallbacks do not overwrite these defaults unless explicitly requested.
18
- - **Schema and safe merges.** Add `"$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/settings.schema.json"` for editor completion and validation. Atomic preserves `$schema`, unknown keys (such as extension settings like `subagents.agentOverrides`), and concurrent edits. Saving writes only changed fields to `.atomic` (and only changed keys inside object settings such as `modelThinkingLevels`). To clear an inherited array such as `packages`, set `"packages": []` explicitly.
19
- - **Per-file precedence and validation.** `.atomic` overrides `.pi` per file, so legacy `queueMode` in `.atomic` beats `steeringMode` in `.pi`. Wrong-typed values are ignored with a one-time warning without rewriting the file; wrong-typed array entries are dropped while keeping valid entries. Settings that validate themselves and fail closed are `decisionModel`, `compactionModel`, `storage`, `sessions`, `snapshots`, `httpIdleTimeoutMs`, `websocketConnectTimeoutMs`, and `streamDeadlineMs`. Leading UTF-8 BOMs are stripped.
14
+ Edit these files directly or run `/settings` to change common options interactively. For a starter file and project-override walkthrough, see [Configure Atomic](/guides/configuration). For programmatic access through `SettingsManager` and `createAgentSession()`, see [SDK](/sdk) and [Settings management](/sdk/reference#settings-management).
20
15
 
21
- ## On this page and its guide
16
+ ## How settings load and save
22
17
 
23
- This page is the full settings reference. For first-time setup and project-override examples, see [Configure Atomic](/guides/configuration).
18
+ - **Strict JSON and syntax errors.** `settings.json` must be valid JSON (no `//` comments or trailing commas; leading UTF-8 BOMs are stripped). If a file has a JSON syntax error, Atomic warns, uses defaults for that scope, and stops writing to that scope so your file is never overwritten.
19
+ - **Automatic startup defaults.** Interactive model or thinking switches (`/model`, `/thinking`, or cycling shortcuts) save `defaultProvider`, `defaultModel`, `defaultThinkingLevel`, and `modelThinkingLevels`. `/scoped-models` saves `enabledModels`. SDK calls, session restores, and automatic fallbacks do not overwrite saved defaults unless you request it.
20
+ - **Schema and safe merges.** Add `"$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/settings.schema.json"` for editor completion and validation. Atomic preserves `$schema`, unknown keys (such as extension settings like `subagents.agentOverrides`), symlinks, and concurrent edits from external editors. Saving writes only changed fields to `.atomic` (and only changed keys inside object settings such as `modelThinkingLevels`).
21
+ - **Scope merging and legacy `.pi` files.** Within a single scope, `.atomic` overrides `.pi` per file, so legacy `queueMode` in `.atomic` beats `steeringMode` in `.pi`, and setting an array to `[]` in `.atomic` clears the `.pi` array in that same scope. Across global and project scopes, `packages`, `extensions`, `skills`, `prompts`, and `themes` combine rather than replace; setting `"packages": []` in `.atomic/settings.json` clears only a legacy `.pi/settings.json` in that project, not global `~/.atomic/agent/settings.json`. Non-resource arrays (`enabledModels`, `fallbackModels`, `npmCommand`, `resume.cache`) replace the global array.
22
+ - **Invalid values.** For most settings, a wrong-typed value is ignored with a one-time warning without rewriting your file, and wrong-typed entries in list settings are dropped while keeping valid entries. The settings below behave more strictly:
23
+ - **Stops startup (or `/reload`) with an error:** an invalid `httpIdleTimeoutMs`, or an invalid active `storage` or `sessions.storage` selection (`StorageConfigError`).
24
+ - **Stops the first model request with an error:** an invalid `websocketConnectTimeoutMs` or `streamDeadlineMs`.
25
+ - **Stops the feature with an error:** an invalid `decisionModel` throws `DecisionConfigError` (wrong type or whitespace-padded string) when `getDecisionModel()` runs during `decide()`, `structured_output`, or opening `/settings`. An unregistered ID, bare ID without `provider/`, image model, or compactor model throws `DecisionModelUnavailableError` when calling `decide()` or `structured_output` with no explicit `model` (opening `/settings` shows it as unavailable without throwing). An invalid `snapshots` block throws `WorkspaceConfigError` at session creation, resume, or `atomic blueprint` (except `snapshots.pool.maxIdlePerRepository`, which falls back to `2`). A negative or non-integer `compaction.reserveTokens` throws a plain `Error` when compaction settings are read.
26
+ - **Special handling for `compactionModel`:** a non-string value throws a plain `Error` when compaction runs or `/settings` opens instead of falling back to `"auto"`. Leading or trailing whitespace in `settings.json` is trimmed on read, while `setCompactionModel()` and RPC `set_compaction_model` reject whitespace-padded strings with `CompactionConfigError`. Saved non-compactor model IDs (chat, classifier, or image) reset to `"auto"` on startup (rewriting trusted `settings.json`). Unknown string IDs stay in the file and clear context with a notice on compaction.
24
27
 
25
28
  ## Project trust
26
29
 
@@ -34,62 +37,91 @@ See [Project trust](/security#project-trust) for the full list of trust-gated in
34
37
 
35
38
  ## All settings
36
39
 
37
- ### Herdr
38
-
39
- | Setting | Type | Default | Description |
40
- | --- | --- | --- | --- |
41
- | `herdr.enabled` | boolean | `true` | Enable the built-in Herdr status reporter in eligible Herdr panes (`mode: "tui"` with UI and Herdr env vars; never claimed by child sessions). Reload or restart after changing. |
42
-
43
- See [Herdr](/herdr) for state aggregation, reporter conflicts, and privacy.
40
+ ### Models and thinking
44
41
 
45
- ### Model & thinking
42
+ Set up provider credentials in [Model providers](/providers) and define custom endpoints or overrides in [Configure custom models](/models).
46
43
 
47
44
  | Setting | Type | Default | Description |
48
45
  | --- | --- | --- | --- |
49
46
  | `defaultProvider` | string | unset | Startup provider, saved automatically on interactive model switch |
50
47
  | `defaultModel` | string | unset | Startup model ID, saved automatically on interactive model switch |
51
- | `decisionModel` | string | `""` | Model for `structured_output` (when omitted) and `decide()`: exact `provider/model` (chat or classifier), or `""`/`"auto"` for the current chat model. See [decisionModel](#decisionmodel). |
48
+ | `enabledModels` | string[] | unset | Scoped model patterns controlling startup fallback, `Ctrl+P` cycling, `/model`, and subagent allowlists. See [Model scope (`enabledModels`)](#enabledmodels). |
49
+ | `fallbackModels` | string[] | unset | Ordered main-chat fallback chain (`provider/model` with optional `:effort` suffix). See [`fallbackModels`](#fallbackmodels). |
50
+ | `decisionModel` | string | `""` | Model for `structured_output` (when omitted) and `decide()`: exact `provider/model` (chat or classifier), or `""`/`"auto"` for the current chat model. See [`decisionModel`](#decisionmodel). |
52
51
  | `defaultThinkingLevel` | string | unset | Startup thinking level (`"off"`, `"minimal"`, `"low"`, `"medium"`, `"high"`, `"xhigh"`, `"max"`), clamped to model support |
53
52
  | `modelThinkingLevels` | object | unset | Per-model startup thinking levels keyed by `"provider/modelId"` |
54
53
  | `hideThinkingBlock` | boolean | `false` | Hide thinking blocks in output |
55
54
  | `thinkingBudgets` | object | unset | Custom token budgets per thinking level (native on Anthropic, Google, and Bedrock; OpenAI-compatible when `compat.thinkingTokenBudgetField` or `supportsThinkingTokenBudget` is set) |
56
55
  | `showCacheMissNotices` | boolean | `false` | Show notices for significant prompt-cache misses, billed compaction or branch summaries, and provider recovery diagnostics (such as dropped Anthropic thinking blocks), including on resume |
57
- | `cacheWarming` | `"off" \| "streaming" \| "idle"` | `"idle"` | Keep eligible prompt caches warm during runs (`"streaming"`) or up to 30 min between runs (`"idle"`). `"off"` disables. Refreshes incur provider cost. Global setting only. |
58
- | `fallbackModels` | string[] | unset | Ordered main-chat fallback chain (`"provider/model"` with optional `:effort` suffix) |
56
+ | `cacheWarming` | `"off" \| "streaming" \| "idle"` | `"idle"` | Keep eligible prompt caches warm during runs (`"streaming"`, up to 60 min after the starting request) or up to 30 min between runs (`"idle"`). `"off"` disables. Refreshes incur provider cost. Global setting only. |
59
57
 
60
- - **Cache warming.** Runs only when the model declares `promptCache` ([Models configuration](/models-configuration)) and estimated avoided miss cost is at least $0.05. Recorded in usage and never added to context; extensions can intercept via `cache_warming_decision`.
61
- - **Unsupported saved default provider.** If `defaultProvider` and `defaultModel` name a provider still unsupported after extensions load, Atomic does not switch providers silently. Interactive mode warns, print and JSON modes warn on stderr and exit nonzero (stdout stays valid JSONL), and RPC rejects `prompt` until an explicit `set_model` or model cycle succeeds. If the provider is supported but the model is unknown or unauthenticated, normal auto-selection applies.
62
- - **Subagents (`model: "auto"`).** Subagents use `defaultProvider`/`defaultModel` when authenticated (at agent `thinking`, else `modelThinkingLevels`, else `defaultThinkingLevel`, else `medium`), falling back to the launching session's model. Built-in agent overrides can also be configured under `subagents.agentOverrides` in `settings.json`; see [Subagent reference](/subagents/reference#automatic-model-selection).
58
+ - **Cache warming.** Runs only when the model declares `promptCache` ([`models.json` field reference](/models-configuration)) and estimated avoided miss cost is at least $0.05. Recorded in usage and never added to context; extensions can intercept via `cache_warming_decision`.
59
+ - **Compaction model (`compactionModel`).** Compaction is configured under [Compaction](#compaction) (default `""`, equivalent to `"auto"`, or a registered compactor ID such as `morph/morph-compactor`). See [Remote compaction models](/models#remote-compaction-models).
60
+ - **Unsupported saved default provider.** If `defaultProvider` and `defaultModel` name a provider that is still unsupported after extensions load, Atomic does not switch providers silently. Interactive mode warns, print and JSON modes warn on stderr and exit nonzero (stdout stays valid JSONL), and RPC rejects `prompt` until an explicit `set_model` or model cycle succeeds. If the provider is supported but the model is unknown or unauthenticated, normal auto-selection applies.
61
+ - **Subagents (`model: "auto"`).** Subagents use `defaultProvider`/`defaultModel` when authenticated (at agent `thinking`, else `modelThinkingLevels`, else `defaultThinkingLevel`, else `medium`), falling back to the launching session's model. When `enabledModels` or `--models` is active, subagent model selection must stay inside that scope. Built-in agent overrides can also be configured under `subagents.agentOverrides` in `settings.json`; see [Subagent reference](/subagents/reference#automatic-model-selection).
63
62
 
64
- #### decisionModel
63
+ #### Model scope (enabledModels) {#enabledmodels}
64
+
65
+ `enabledModels` (and the one-run CLI flag `--models`) restricts the active set of authenticated models for a session. Setting `enabledModels` to `[]` or omitting it disables scoping so every authenticated model is active.
65
66
 
66
67
  ```json
67
- { "decisionModel": "" }
68
+ {
69
+ "enabledModels": [
70
+ "anthropic/claude-opus-5:high",
71
+ "openai-codex/gpt-6*",
72
+ "qwen/qwen3-coder:exacto"
73
+ ]
74
+ }
68
75
  ```
69
76
 
70
- Controls which model answers `structured_output` calls (when no `model` is passed; classifiers answer finite `Choice` schemas, otherwise Atomic tries `fallbackModels` and then the current chat model) and extension [`decide()`](/sdk/structured-decisions#decide) calls. It does not change your chat model or subagent execution model.
77
+ ##### How patterns match
71
78
 
72
- - **Configure.** Set in JSON or open `/settings` and select **Decision model** (edits project override if present, otherwise global). `""` or `"auto"` uses the current chat model. To pin a model, use an exact registered classifier (such as `typesafe/jev-latest`, `vercel-ai-gateway/typesafe-ai/jev`, `opencode/jev-1.13`, or `opencode/jev-1.13-free`) or chat `provider/model` (image models and whitespace-padded IDs fail). Run `/reload` or restart running isolated engines.
73
- - **Fallback and deadlines.** A failed explicit classifier (missing credentials, context error, refusal, or malformed output) falls back silently to the current chat model and logs in [debug mode](#debug-mode). Chat models get 1 initial attempt plus 3 corrective retries, with a total wall-clock budget from [`httpIdleTimeoutMs`](#http) (default 10 minutes). Cancellation does not fall back.
74
- - **Provider, credentials, and cost.** The decision model's provider receives the decision context, so choose a permitted provider. Authenticate a pinned classifier with its provider login (for example `/login typesafe` or `TYPESAFE_API_KEY`). Classifiers do not appear in `/model`. An explicit empty project value overrides a global selection and restores the current chat model. Falling back to the current chat model can incur chat-provider charges.
75
- - **Legacy migration.** Valid legacy `routerModel` values migrate automatically when `decisionModel` is absent without rewriting the file. Removed `modelRouting` and built-in override `modelConstraints`/`taskNeeds` keys are removed automatically on startup from writable `.atomic` settings with a one-time notice.
79
+ Atomic resolves `enabledModels` and `--models` patterns against **authenticated, available models only** (including models registered by extensions once they finish loading). Each pattern is resolved in three steps:
76
80
 
77
- See [Structured decisions](/sdk/structured-decisions) and [TypeSafe Jev](/providers#typesafe-jev).
81
+ 1. **Exact unmodified match first.** Atomic checks for a case-insensitive exact match against `provider/id` or bare `id` before interpreting `:thinking` suffixes or glob characters. Literal catalog IDs containing colons or brackets (such as `qwen/qwen3-coder:exacto` or `provider/model[1m]`) match directly without being parsed as suffixes or globs.
82
+ 2. **Glob patterns (`*`, `?`, `[`).** If the pattern contains `*`, `?`, or `[` and did not match verbatim:
83
+ - Atomic checks for a valid trailing `:thinking` suffix (`:off`, `:minimal`, `:low`, `:medium`, `:high`, `:xhigh`, or `:max`, case-insensitive).
84
+ - It tries an exact match on the base ID before globbing, so a literal bracketed ID with a suffix (such as `provider/model[1m]:high`) still matches exactly.
85
+ - Otherwise, it runs case-insensitive glob matching against **both** `provider/id` and bare `id`.
86
+ 3. **Fuzzy substring match (non-globs).** If the pattern has no glob characters and did not match verbatim:
87
+ - Atomic checks for a trailing `:thinking` suffix (case-insensitive). If the suffix is not a valid thinking level, Atomic warns and drops the suffix so the model still resolves at its default thinking level.
88
+ - It matches the remaining text as a case-insensitive substring against `model.id` or `model.name`. When multiple IDs match a fuzzy pattern, Atomic prefers non-dated aliases over dated `YYYYMMDD` IDs, then sorts reverse-alphabetically by model ID so newer versions win.
78
89
 
79
- #### thinkingBudgets
90
+ Additional matching rules:
80
91
 
81
- ```json
82
- {
83
- "thinkingBudgets": {
84
- "minimal": 1024,
85
- "low": 4096,
86
- "medium": 10240,
87
- "high": 32768
88
- }
89
- }
90
- ```
92
+ - **Provider-qualified vs bare IDs.** Use `provider/id` to pin a single provider. A bare ID or pattern matching multiple authenticated providers adds **every** matching provider to the scope.
93
+ - **Order and deduplication.** Results keep the order of your patterns. Duplicate `(provider, id)` matches are removed while preserving the first occurrence (and its `:thinking` suffix, if any).
94
+ - **Project overrides.** Setting `"enabledModels": []` in `.atomic/settings.json` clears a global `enabledModels` list for that project.
91
95
 
92
- A changed budget applies to new sessions. A resumed session keeps the budget it last used on the same model and thinking level so the provider does not re-bill the cached conversation; switching models or thinking levels applies the new setting.
96
+ ##### What `enabledModels` controls
97
+
98
+ When a scope is active, it governs five areas across your session:
99
+
100
+ - **New-session startup model.** On a new session (without `--model`, `--continue`, or `--resume`), Atomic starts on your saved `defaultProvider`/`defaultModel` if it is in scope (applying that scope entry's `:thinking` suffix unless `--thinking` overrides it). If your saved default is outside scope, Atomic starts on the **first matched model** in `enabledModels` / `--models` instead.
101
+ - **`Ctrl+P` model cycling.** Cycles only through your scoped models in order.
102
+ - **`/model` picker and `/model <name>`.** `/model` opens filtered to your scoped models (press `Tab` to toggle between scoped models and all models; press `←`/`→` on a reasoning model row to set thinking effort before selecting). Direct `/model <name>` searches only your scoped models.
103
+ - **Subagent allowlist.** Child subagents inherit the active `enabledModels` / `--models` scope using the same matching rules. Any subagent start model (including `model: "auto"`, agent frontmatter `model`, or per-call `model` overrides) and any child fallback candidate outside scope is rejected with an error. If your `enabledModels` patterns match zero available models, subagent launches are blocked rather than widening to all models.
104
+ - **Extensions and SDK.** Extensions read the active resolved scope through [`ctx.scopedModels`](/extensions/api-reference#ctx-modelregistry-ctx-model-ctx-scopedmodels) (read-only). SDK hosts can resolve patterns with `resolveModelScopeFromModels()`; see [Resolving scoped models](/sdk/reference#resolving-scoped-models).
105
+
106
+ **What stays independent:** Main-chat `fallbackModels` is independent of `enabledModels`, so you can keep an out-of-scope emergency fallback for main-chat turns. Child subagent fallback chains remain bound by the parent session's `enabledModels` scope.
107
+
108
+ ##### Side effects from `/model` and `/scoped-models`
109
+
110
+ - **Picking an out-of-scope model in `/model`:** If you press `Tab` in `/model` and pick a model outside your active scope, Atomic adds it to the active session's scope. When global `settings.json` has a non-empty `enabledModels` list, Atomic also appends `"provider/id"` to global `enabledModels` and saves `settings.json`. (If the scope came only from project settings or `--models`, global `enabledModels` is not created.)
111
+ - **Editing in `/scoped-models`:** Every toggle, reorder, enable-all, or clear-all saves immediately to **global** `settings.json` as explicit `provider/id` entries. Hand-written globs (such as `"claude-*"`) and `:thinking` suffixes (such as `"anthropic/claude-opus-5:high"`) are replaced by exact `provider/id` strings without thinking suffixes. Unmatched patterns stay visible as unavailable rows until you uncheck them.
112
+ - **Enabling or clearing all in `/scoped-models`:** Enabling every available model deletes `enabledModels`. Clearing all saves `"enabledModels": []` and unscopes the active session so all models appear again.
113
+
114
+ ##### Comparison of model-selection settings and flags
115
+
116
+ | Mechanism | Matching rules | Globs (`*`, `?`, `[`) | Fuzzy match | `:thinking` suffix | Ambiguous bare ID |
117
+ | --- | --- | --- | --- | --- | --- |
118
+ | `enabledModels` / `--models` | Exact, then glob, then fuzzy (authenticated models only) | Yes (case-insensitive) | Yes | Lenient (case-insensitive; invalid warns and drops) | Adds all matching authenticated providers (no warning) |
119
+ | `fallbackModels` / `--fallback-models` | Exact, then fuzzy (skips unauthenticated at runtime) | No | Yes | Strict (case-insensitive; invalid fails match) | Prefers current or default provider; else skips |
120
+ | `--model` (CLI) | Exact, then fuzzy (searches all models; synthesizes unknown ID if provider known) | No | Yes | Strict (case-insensitive; invalid kept literally) | Breaks tie by sole authenticated provider; else errors |
121
+ | `/model <name>` | Exact `provider/id` or bare `id` (scoped models only when scoped; opens picker on miss) | No | No | No (use `←`/`→` or `/thinking`) | Opens picker instead of switching |
122
+ | `defaultProvider` + `defaultModel` | Exact ID lookup (`provider` normalized) | No | No | No (uses `modelThinkingLevels` / `defaultThinkingLevel`) | Not applicable (both required) |
123
+ | `decisionModel` | Exact case-sensitive `provider/model` (classifiers before chat models) | No | No | No | Not applicable (`provider/model` required) |
124
+ | `compactionModel` | Exact case-sensitive `provider/model` (registered compactors only) | No | No | No | Not applicable (`provider/model` required) |
93
125
 
94
126
  #### fallbackModels
95
127
 
@@ -107,15 +139,46 @@ Ordered fallback chain for main-chat turns after same-model retries exhaust on a
107
139
  }
108
140
  ```
109
141
 
110
- - **Entry format.** Use `provider/model` (preferred; bare IDs also work, including IDs with `/` or `:` such as `qwen/qwen3-coder:exacto`) with an optional `:off`, `:minimal`, `:low`, `:medium`, `:high`, `:xhigh`, or `:max` suffix (clamped to model support). Run `atomic --list-models` for IDs. Unmatched entries warn once after extensions load and are skipped.
142
+ - **Entry format and matching.** Use `provider/model` (preferred; bare IDs and fuzzy substrings also match, and exact unmodified IDs containing `/` or `:` such as `qwen/qwen3-coder:exacto` match first) with an optional case-insensitive `:off`, `:minimal`, `:low`, `:medium`, `:high`, `:xhigh`, or `:max` suffix (clamped to model support). Run `atomic --list-models` for IDs. An invalid `:thinking` suffix or unmatched entry warns once after extensions load and is skipped. If an ambiguous bare ID matches multiple authenticated providers, Atomic prefers the current or default provider and skips the entry if neither matches.
143
+ - **Thinking level without a suffix.** When a fallback candidate omits `:effort`, Atomic uses `defaultThinkingLevel`, else the current session's thinking level, else `"medium"`, clamped to model support (`modelThinkingLevels` is not consulted during fallback).
111
144
  - **CLI precedence.** `--model` runs strictly as named and falls back only to `--fallback-models`, ignoring settings `fallbackModels`. `--no-fallback` disables fallback for one run, and `--fallback-models` replaces this list for one run. Extension-registered providers work in both. Press `Esc` during a retry wait or model switch to stop the pending request. See [CLI model options](/reference/cli#model-options).
112
145
  - **Triggers.** Rate limits, quota exhaustion (`The usage limit has been reached`), transient errors (unrecognized errors without a status code retry same-model first), content-filter refusals (OpenAI HTTP 422 `cyber_policy`, Anthropic refusal, or `content_filter`; skips same-model retry unless `retry.fallbackOnContentFilter: false`), and refused TLS certificates (skips same-model retry; each fallback is tried once). Context overflow compacts first and falls back only if compaction is off, fails, or does not clear the overflow. With `retry.enabled: false`, retryable errors advance immediately. Non-retryable errors and `Esc` cancellations never fall back.
113
- - **Turn-scoped exclusions.** Unauthenticated providers are skipped before sending a request (if none have credentials, Atomic fails immediately and lists the missing providers). Rejected credentials (HTTP 401, `invalid_api_key`, `authentication_error`) exclude the whole provider for the turn. Model-scoped HTTP 403 or incompatible-request errors exclude only that model across all reasoning suffixes.
114
- - **Persistence and billing.** Once a fallback runs, it stays active for later turns (keeping thinking-level changes) until you switch via `/model` or model cycling. Print mode reports fallbacks on stderr and ends with `Model: ran on <fallback>, not the requested <model>.`. `fallbackModels` is independent of `enabledModels`. Because switching providers changes billing and data-handling terms, list only approved providers.
146
+ - **Skipping broken providers or models during a turn.** Unauthenticated providers are skipped before sending a request (if none have credentials, Atomic fails immediately and lists the missing providers). Rejected credentials (HTTP 401, `invalid_api_key`, `authentication_error`) exclude the whole provider for the rest of the current turn. Model-scoped HTTP 403 or incompatible-request errors exclude only that model across all reasoning suffixes.
147
+ - **Persistence, print output, and billing.** Once a fallback runs, it stays active for later turns (keeping thinking-level changes) until you switch via `/model` or model cycling. In print mode (`-p`), both fallback progress notices and the final `Model: ran on <fallback>, not the requested <model>.` line are written to **stderr** so stdout stays clean. Main-chat `fallbackModels` is independent of `enabledModels`, whereas child subagents launched from a scoped session restrict their fallback candidates to the session's `enabledModels` scope. Because switching providers changes billing and data-handling terms, list only approved providers.
148
+
149
+ #### decisionModel
150
+
151
+ ```json
152
+ { "decisionModel": "" }
153
+ ```
154
+
155
+ Controls which model answers `structured_output` calls (when no `model` is passed; classifiers answer finite `Choice` schemas, otherwise Atomic tries `fallbackModels` and then the current chat model) and extension [`decide()`](/sdk/structured-decisions#decide) calls. It does not change your chat model or subagent execution model.
156
+
157
+ - **Configure.** Set in JSON, open `/settings` and select **Decision model** (edits project override if present, otherwise global), or call `session.setDecisionModel(model, scope?)` / RPC `set_decision_model`. Selections made through `/settings`, the SDK, or RPC take effect immediately in the active session without running `/reload` or restarting. `""` or `"auto"` uses the current chat model. To pin a model, specify an exact case-sensitive `provider/model` of a registered classifier (such as `typesafe/jev-latest`, `vercel-ai-gateway/typesafe-ai/jev`, `opencode/jev-1.13`, or `opencode/jev-1.13-free`) or chat model (classifiers are checked before chat models). Run `/reload` only if you edited `settings.json` directly outside Atomic.
158
+ - **Errors and fallback.** A wrong JSON type or whitespace-padded string throws `DecisionConfigError` when `getDecisionModel()` runs during `decide()`, `structured_output`, or opening `/settings`. An unregistered ID, bare ID without `provider/`, image model, or compactor model throws `DecisionModelUnavailableError` during `decide()` or `structured_output` with no explicit `model` instead of falling back (opening `/settings` shows the ID as unavailable without throwing). Once a registered classifier is selected, runtime failures (missing credentials, context error, refusal, or malformed output) fall back silently to the current chat model and log in [debug mode](#debug-mode). Chat models get 1 initial attempt plus 3 corrective retries within [`httpIdleTimeoutMs`](#http) (default 10 minutes). Cancellation does not fall back.
159
+ - **Provider, credentials, and cost.** The decision model's provider receives the decision context, so choose a permitted provider. Authenticate a pinned classifier with its provider login (for example `/login typesafe` or `TYPESAFE_API_KEY`). Classifiers do not appear in `/model`. An explicit empty project value overrides a global selection and restores the current chat model. Falling back to the current chat model can incur chat-provider charges.
160
+ - **Legacy migration.** Valid legacy `routerModel` values migrate automatically when `decisionModel` is absent without rewriting the file. Removed `modelRouting` and built-in override `modelConstraints`/`taskNeeds` keys are removed automatically on startup from writable `.atomic` settings with a one-time notice.
161
+
162
+ See [Structured decisions](/sdk/structured-decisions), [Classifier models](/models#use-classifier-models), [Local classification](/llama-cpp#classification), and [TypeSafe Jev](/providers#typesafe-jev).
163
+
164
+ #### thinkingBudgets
165
+
166
+ ```json
167
+ {
168
+ "thinkingBudgets": {
169
+ "minimal": 1024,
170
+ "low": 4096,
171
+ "medium": 10240,
172
+ "high": 32768
173
+ }
174
+ }
175
+ ```
176
+
177
+ A changed budget applies to new sessions. A resumed session keeps the budget it last used on the same model and thinking level so the provider does not re-bill the cached conversation; switching models or thinking levels applies the new setting.
115
178
 
116
179
  ### Fast models
117
180
 
118
- Fast inference uses canonical `<model-id>-fast` model IDs (not a separate setting) anywhere models are configured (`/model`, `fallbackModels`, `enabledModels`, and subagents). Reasoning suffixes work normally (`openai-codex/gpt-5.6-sol-fast:medium`), and fast and normal IDs act as separate candidates:
181
+ Fast and Ultrafast inference use canonical `<model-id>-fast` and `<model-id>-ultrafast` model IDs (not a separate setting) anywhere models are configured (`/model`, `fallbackModels`, `enabledModels`, and subagents). Reasoning suffixes work normally (`openai-codex/gpt-5.6-sol-fast:medium`, `openai/gpt-6.2-astra-ultrafast:high`), and standard, fast, and ultrafast IDs act as separate candidates:
119
182
 
120
183
  ```json
121
184
  {
@@ -126,13 +189,13 @@ Fast inference uses canonical `<model-id>-fast` model IDs (not a separate settin
126
189
  }
127
190
  ```
128
191
 
129
- See [Providers](/providers#fast-models) for supported providers and precedence over custom `-fast` IDs.
192
+ See [Fast models](/providers#fast-models) and [Fast and Ultrafast tiers](/providers#fast-and-ultrafast-tiers) for supported providers, eligibility, and precedence over custom `-fast` or `-ultrafast` IDs.
130
193
 
131
- ### UI & display
194
+ ### Interface and display
132
195
 
133
196
  | Setting | Type | Default | Description |
134
197
  | --- | --- | --- | --- |
135
- | `theme` | string | `"dark"` | `"dark"`, `"light"`, `"system"` (terminal-derived palette), Catppuccin built-in, or custom theme ([Themes](/themes)) |
198
+ | `theme` | string | `"dark"` | `"dark"`, `"light"`, `"system"` (terminal-derived palette), Catppuccin built-in, or custom theme ([Themes](/themes)). Values containing `/` are ignored. |
136
199
  | `fullscreenScrollbar` | string | `"auto"` | `"auto"` (show while scrolling), `"always"` (reserved right column), or `"hidden"`. Draggable in the main chat; also shown when viewing a subagent or shell output (not draggable). |
137
200
  | `fullscreenExitOutput` | string | `"transcript"` | `"transcript"` prints the final transcript and resume hint on exit; `"resume-hint"` restores the previous screen and prints only the resume hint. Configurable in `/settings`. |
138
201
  | `fullscreenCopyOnSelect` | boolean | `true` | Auto-copy text selection on mouse release (`false` highlights only; `/copy` copies the last assistant message). Configurable in `/settings`. |
@@ -140,65 +203,77 @@ See [Providers](/providers#fast-models) for supported providers and precedence o
140
203
  | `quietStartup` | boolean or `"header"` | `false` | `true` hides the startup header; `"header"` keeps it but hides the model scope line |
141
204
  | `defaultProjectTrust` | string | `"ask"` | Fallback project trust (`"ask"`, `"always"`, `"never"`). Global setting only. |
142
205
  | `collapseChangelog` | boolean | `false` | Show a one-line update notice instead of What's New highlights (`/changelog` shows full history) |
143
- | `enableInstallTelemetry` | boolean | `true` | Send version-adoption ping on first interactive launch (fresh settings or after upgrade with changelog entries) and provider attribution headers; does not control update checks |
144
- | `firstRunOnboardingStartedVersion` | string | unset | Managed onboarding state (leave unchanged) |
145
- | `onboardedVersion` | string | unset | Managed onboarding completion state (leave unchanged) |
146
- | `teamJoin` | object | unset | Managed `atomic team join` record used by `atomic team leave` (leave unchanged) |
147
- | `enableAnalytics` | boolean | `false` | Opt in to analytics during first-run setup. Storage only; Atomic does not transmit analytics. |
148
- | `trackingId` | string | unset | Locally generated analytics ID when analytics is enabled |
149
- | `deviceId` | string | unset | Managed global install ID created when a provider sign-in needs it (project values ignored) |
150
206
  | `doubleEscapeAction` | string | `"tree"` | Double-Esc action: `"tree"`, `"fork"`, or `"none"` |
151
207
  | `treeFilterMode` | string | `"default"` | Default `/tree` filter: `"default"`, `"no-tools"`, `"user-only"`, `"labeled-only"`, `"all"` |
152
208
  | `editorPaddingX` | number | `0` | Horizontal input editor padding (`0` to `3`) |
153
209
  | `outputPad` | number | `1` | Horizontal transcript padding (`0` or `1`) |
154
210
  | `externalEditor` | string | unset | Command for `Ctrl+G` external editor (overrides `$VISUAL` and `$EDITOR`; defaults to Notepad on Windows, `nano` elsewhere) |
155
211
  | `autocompleteMaxVisible` | number | `5` | Max visible autocomplete items (`3` to `20`) in default and `ctx.ui.setEditorComponent()` editors |
156
- | `showHardwareCursor` | boolean | `false` | Use hardware terminal cursor instead of drawn cursor (still positioned for IME) |
212
+ | `showHardwareCursor` | boolean | `false` | Use hardware terminal cursor instead of drawn cursor (still positioned for IME; falls back to `ATOMIC_HARDWARE_CURSOR=1` or legacy `PI_HARDWARE_CURSOR=1` when unset) |
157
213
 
158
214
  Interactive mode runs fullscreen with stacked transient notices. Closing an overlay clears text selection inside it. `Ctrl+G` checks `externalEditor`, then `$VISUAL`, then `$EDITOR`, then Notepad (Windows) or `nano` (POSIX) in main chat, embedded chat, and extension dialogs; saving empty clears text, while an editor error preserves the original text.
159
215
 
160
- ### Debug mode
216
+ #### Terminal and images
161
217
 
162
218
  | Setting | Type | Default | Description |
163
219
  | --- | --- | --- | --- |
164
- | `debug` | boolean | `false` | Write verbose debug output to the debug log shown by `/debug` (**Debug mode** in `/settings`). Global setting only. |
220
+ | `terminal.showImages` | boolean | `true` | Render inline images when supported |
221
+ | `terminal.imageWidthCells` | number | `60` | Inline image width in terminal cells |
222
+ | `terminal.clearOnShrink` | boolean | `false` | Clear blank rows when content shrinks (fallback env: `ATOMIC_CLEAR_ON_SHRINK=1`) |
223
+ | `terminal.showTerminalProgress` | boolean | `false` | Show OSC 9;4 progress bar in terminal tab |
224
+ | `images.autoResize` | boolean | `true` | Resize images over 2000x2000 for `@file`, `read`, and tool results (runs after `tool_result` hooks; keeps original on error) |
225
+ | `images.blockImages` | boolean | `false` | Block all images from being sent to the model |
226
+ | `terminal.hyperlinks` | boolean or `"auto"` | `"auto"` | JSON-only override for OSC 8 hyperlink detection (env: `ATOMIC_HYPERLINKS=1\|0\|auto`) |
227
+ | `terminal.images` | `"kitty"`, `"iterm2"`, `"auto"`, or `false` | `"auto"` | JSON-only override for inline image protocol (env: `ATOMIC_IMAGE_PROTOCOL=kitty\|iterm2\|none\|auto`) |
228
+ | `terminal.trueColor` | boolean or `"auto"` | `"auto"` | JSON-only override for 24-bit color detection (env: `ATOMIC_TRUE_COLOR=1\|0\|auto`) |
165
229
 
166
- Use `--debug` or `ATOMIC_DEBUG=1` for a single run (shows a `debug` badge in the footer). Toggling in `/settings` applies immediately to new work; already-running workers and the Intercom broker apply it on next restart. See [Debugging](/development#debugging).
230
+ Explicit JSON values for `terminal.hyperlinks`, `terminal.images`, and `terminal.trueColor` override their `ATOMIC_*` and legacy `PI_*` environment variables.
167
231
 
168
- ### Telemetry and update checks
232
+ #### Markdown
169
233
 
170
- - **Version-adoption telemetry.** Controlled by `enableInstallTelemetry` (disable with `"enableInstallTelemetry": false` or `ATOMIC_TELEMETRY=0`; force on with `ATOMIC_TELEMETRY=1`/`true`/`yes`, where `ATOMIC_TELEMETRY` beats legacy `PI_TELEMETRY`). Sends one bodyless `GET https://atomic-version-adoption.bastani-atomic.workers.dev/v1/version-adoption?version=<version>` with `User-Agent: atomic/<version> (<platform>; <runtime>; <arch>)` and no UUID, cookie, auth header, or user content. Fires only in interactive mode on first launch with fresh settings or after upgrading to a release with changelog entries, never on every launch, npm install, or `-p`/RPC. Atomic stores only UTC date, version, and an aggregate count; Cloudflare processes transient connection metadata (IP, TLS) to serve the request. Separate from `enableAnalytics` and `trackingId`.
171
- - **Update checks.** Queries `https://registry.npmjs.org/@bastani/atomic/latest`. Disable independently with `ATOMIC_SKIP_VERSION_CHECK=1` (`PI_SKIP_VERSION_CHECK=1`).
172
- - **Offline mode.** `--offline` or `ATOMIC_OFFLINE=1` (`PI_OFFLINE=1`) disables all startup network requests (update checks, package update checks, version-adoption telemetry, and model catalog refreshes).
234
+ | Setting | Type | Default | Description |
235
+ | --- | --- | --- | --- |
236
+ | `markdown.codeBlockIndent` | string | `" "` | Indentation for code blocks |
237
+ | `markdown.mermaid` | string | `"streaming"` | Display-only Mermaid rendering: `"off"`, `"final"`, or `"streaming"` (invalid or oversized diagrams stay as code) |
238
+ | `markdown.latex` | boolean | `true` | Display-only Unicode math rendering (supports whitespace and matrix layouts; stored messages keep source Markdown) |
173
239
 
174
- ### Network proxy
240
+ #### Warnings
175
241
 
176
242
  | Setting | Type | Default | Description |
177
243
  | --- | --- | --- | --- |
178
- | `httpProxy` | string | unset | HTTP proxy URL applied as `HTTP_PROXY` and `HTTPS_PROXY`. Global setting only. |
244
+ | `warnings.anthropicExtraUsage` | boolean | `true` | Warn when Anthropic subscription auth may incur paid extra usage |
179
245
 
180
- ```json
181
- { "httpProxy": "http://127.0.0.1:7890" }
182
- ```
246
+ #### Managed state keys
183
247
 
184
- Both the npm-installed `atomic` and the standalone binary route `https://` requests through `HTTP_PROXY` when `HTTPS_PROXY` is unset, and skip hosts listed in `NO_PROXY`. The binary uses Bun's HTTP client, which handles proxy variables differently in these cases:
248
+ Atomic manages these keys automatically in global `settings.json`. Leave them unchanged unless troubleshooting:
185
249
 
186
- | Setup | npm-installed `atomic` | Standalone binary |
187
- | --- | --- | --- |
188
- | `ALL_PROXY` naming an `http://` or `https://` proxy | Not read | Used when the request's own variable is unset |
189
- | An empty lowercase variable (`http_proxy=""`, `no_proxy=""`) with the uppercase one set | The empty value counts: no proxy, no exemptions | The uppercase value is used |
190
- | An address block in `NO_PROXY` (`10.0.0.0/8`) | Not matched | Exempts the addresses in it |
191
- | Proxy variables changed while Atomic runs | Read at startup and when `httpIdleTimeoutMs` changes | Read for each request |
192
- | An `http://` endpoint through a proxy | Sent through a `CONNECT` tunnel | Sent to the proxy with the full URL |
193
- | A SOCKS proxy (`socks5://`) in `HTTP_PROXY` or `HTTPS_PROXY` | Used | Requests fail with `UnsupportedProxyProtocol` |
194
-
195
- The OpenAI Codex WebSocket uses the same proxy as the install's other requests. In the binary it also reads proxy variables from a credential's [`env`](/providers#auth-file); an `ALL_PROXY` naming a SOCKS proxy is skipped for WebSocket and those requests fall back to SSE.
250
+ | Setting | Type | Default | Description |
251
+ | --- | --- | --- | --- |
252
+ | `firstRunOnboardingStartedVersion` | string | unset | Version when first-run onboarding started |
253
+ | `onboardedVersion` | string | unset | Version when onboarding completed |
254
+ | `lastChangelogVersion` | string | unset | Most recent version whose changelog notice was displayed |
255
+ | `teamJoin` | object | unset | `atomic team join` record used by `atomic team leave` |
256
+ | `enableAnalytics` | boolean | `false` | Opt-in flag saved during first-run setup (storage only; Atomic does not transmit analytics) |
257
+ | `trackingId` | string | unset | Locally generated analytics ID when `enableAnalytics` is enabled |
258
+ | `deviceId` | string | unset | Global install ID created when a provider sign-in needs one (project values ignored) |
196
259
 
197
- ### Warnings
260
+ ### Message delivery
198
261
 
199
262
  | Setting | Type | Default | Description |
200
263
  | --- | --- | --- | --- |
201
- | `warnings.anthropicExtraUsage` | boolean | `true` | Warn when Anthropic subscription auth may incur paid extra usage |
264
+ | `steeringMode` | string | `"one-at-a-time"` | Steering message delivery: `"one-at-a-time"` or `"all"` |
265
+ | `followUpMode` | string | `"one-at-a-time"` | Follow-up message delivery: `"one-at-a-time"` or `"all"` |
266
+ | `transport` | string | `"auto"` | Multi-transport provider preference: `"auto"`, `"websocket-cached"`, `"websocket"`, or `"sse"` (legacy boolean `websockets` migrates here) |
267
+ | `websocketConnectTimeoutMs` | number or string | `15000` | WebSocket handshake timeout (ms, duration string, or `"disabled"`/`0`) |
268
+ | `streamDeadlineMs` | number or string | `300000` | Max idle gap between provider stream events below HTTP (ms, duration string like `"30s"`, `"5m"`, `"1h"`, or `"disabled"`/`0`). Cuts stalled streams for retry or fallback; Anthropic `ping` events reset the timer. |
269
+
270
+ How `transport` modes work on providers that support both WebSocket and SSE (such as OpenAI Codex):
271
+
272
+ - `"auto"` (default) and `"websocket-cached"`: use WebSocket with connection-scoped continuation (`previous_response_id`, 5-minute idle cache TTL, 55-minute max connection age). If the WebSocket fails before streaming starts, Atomic falls back to SSE for the rest of the session.
273
+ - `"websocket"`: use WebSocket without cached continuation (sends the full request body on every turn), still falling back to SSE on pre-stream transport failures.
274
+ - `"sse"`: disable WebSocket and always stream over SSE (with zstd request-body compression on Codex).
275
+
276
+ For the global HTTP idle timeout, see [HTTP](#http) (`httpIdleTimeoutMs`).
202
277
 
203
278
  ### Compaction
204
279
 
@@ -206,7 +281,7 @@ The OpenAI Codex WebSocket uses the same proxy as the install's other requests.
206
281
  | --- | --- | --- | --- |
207
282
  | `compaction.enabled` | boolean | `true` | Enable automatic compaction |
208
283
  | `compaction.reserveTokens` | number | `16384` | Non-negative safe integer; triggers auto-compaction when usage exceeds `contextWindow - reserveTokens` |
209
- | `compactionModel` | string | `"auto"` | `"auto"` or `""` clears context so the agent recovers from history; an exact registered compactor ID (such as `morph/morph-compactor`) compacts via that model. Saved chat or classifier IDs reset to `"auto"` on startup. See [Compaction model](/compaction#compaction-model). |
284
+ | `compactionModel` | string | `""` | `""` (equivalent to `"auto"`) clears context so the agent recovers from history; an exact registered compactor ID (such as `morph/morph-compactor`) compacts via that model. Selecting **Compaction model** in `/settings` edits the project override if set, otherwise global (saving `""` for Automatic). Whitespace in `settings.json` is trimmed on read, while `setCompactionModel()` and RPC `set_compaction_model` reject whitespace-padded strings with `CompactionConfigError`. Non-string values throw a plain `Error` when compaction runs or `/settings` opens. Saved non-compactor IDs (chat, classifier, or image) reset to `"auto"` on startup. See [Compaction model](/compaction#compaction-model), [Remote compaction models](/models#remote-compaction-models), and [Compactor request contract](/compaction/reference#compactor-request-contract). |
210
285
 
211
286
  ```json
212
287
  {
@@ -220,43 +295,19 @@ The OpenAI Codex WebSocket uses the same proxy as the install's other requests.
220
295
 
221
296
  Removed legacy keys (`compression_ratio`, `preserve_recent`, `keepContextShare`, `query`, `planningTimeoutMs`, `modelOverrides`, `background`, `backgroundThresholdPercent`, `historyRecall`) are ignored silently. See [Compaction](/compaction).
222
297
 
223
- ### Branch summary
298
+ #### Branch summary
224
299
 
225
300
  | Setting | Type | Default | Description |
226
301
  | --- | --- | --- | --- |
227
302
  | `branchSummary.reserveTokens` | number | `16384` | Tokens reserved when selecting branch history for summary |
228
303
  | `branchSummary.skipPrompt` | boolean | `false` | Skip the "Summarize branch?" prompt on `/tree` switches (defaults to no summary) |
229
304
 
230
- ### Session summary
305
+ #### Session summary
231
306
 
232
307
  | Setting | Type | Default | Description |
233
308
  | --- | --- | --- | --- |
234
309
  | `sessionSummary.enabled` | boolean | `true` | Generate one-line summaries for saved sessions in `/resume` when idle (skipped for `--no-session`) |
235
310
 
236
- ### Resume
237
-
238
- | Setting | Type | Default | Description |
239
- | --- | --- | --- | --- |
240
- | `resume.waitForBlueprint` | `"prompt"` \| `"tools"` | `"prompt"` (TUI) / `"tools"` (non-UI) | Controls whether restored worktree builds finish before opening (`"prompt"`) or run concurrently while holding tool calls (`"tools"`). When a `project_trust` extension handler can still decline a saved trust decision, Atomic behaves like `"tools"` so no project build step runs before trust settles. See [Start the first turn while the build runs](/guides/resume-on-any-machine#start-the-first-turn-while-the-build-runs). |
241
- | `resume.cache` | array | unset | Extra entries for [`atomic blueprint cache-key`](/guides/resume-on-any-machine#caches-for-runners): `{ "paths": [...], "kind"?: "store" \| "build", "keyFiles"?: [...] }`. `"store"` paths are absolute or `~` outside the repo; `"build"` paths are repo-relative. Globs, `!` exclusions, and credential paths are refused with a warning. Project list replaces global. |
242
- | `resume.setupCommand` | string | unset | Deprecated (global only; prints warning). Move commands into `.atomic/blueprint.yaml` `maintenance` ([Set the environment up with a blueprint](/guides/resume-on-any-machine#set-the-environment-up-with-a-blueprint)). |
243
-
244
- ### Snapshots
245
-
246
- | Setting | Type | Default | Description |
247
- | --- | --- | --- | --- |
248
- | `snapshots.enabled` | boolean | `true` | Record worktree snapshots so sessions resume with repository state |
249
- | `snapshots.includeUntracked` | boolean | `true` | Capture non-ignored, non-denied untracked files |
250
- | `snapshots.maxFileBytes` | number | `5242880` | Max single file size captured (bytes) |
251
- | `snapshots.maxSnapshotBytes` | number | `52428800` | Max total captured snapshot or unpushed-commit bundle size (bytes) |
252
- | `snapshots.fullEvery` | number | `10` | Restart patch chain from `HEAD` after this many snapshots |
253
- | `snapshots.autoCollect` | boolean | `true` | Garbage-collect unreferenced snapshot content in background and on session close |
254
- | `snapshots.collectIntervalSeconds` | number | `3600` | Minimum interval between automatic GC passes per database (seconds) |
255
- | `snapshots.graceSeconds` | number | `3600` | Protect snapshot data stored or reused within this window (`0` disables) |
256
- | `snapshots.pool.maxIdlePerRepository` | number | `2` | Idle restored worktrees kept per repository ([Restored worktrees](/worktree-snapshots#restored-worktrees)) |
257
-
258
- See [Worktree snapshots](/worktree-snapshots).
259
-
260
311
  ### Retry
261
312
 
262
313
  | Setting | Type | Default | Description |
@@ -266,8 +317,8 @@ See [Worktree snapshots](/worktree-snapshots).
266
317
  | `retry.baseDelayMs` | number | `2000` | Base exponential backoff delay (2s, 4s, 8s) |
267
318
  | `retry.maxAgentDelayMs` | number | `60000` | Cap on agent-level backoff (`0` retries immediately) |
268
319
  | `retry.fallbackOnContentFilter` | boolean | `true` | Advance to next `fallbackModels` entry on content-filter refusals (such as OpenAI HTTP 422 `cyber_policy`); `false` retries on the same model |
269
- | `retry.provider.timeoutMs` | number | SDK default | Provider or SDK request timeout (ms) |
270
- | `retry.provider.maxRetries` | number | `0` | Provider or SDK-level retries (leave `0` to let agent-level retry handle backoff) |
320
+ | `retry.provider.timeoutMs` | number | Provider client default | Per-request provider timeout in ms (when unset, uses the provider client's built-in timeout, such as 10 min for OpenAI/Anthropic or 60s for Mistral Conversations) |
321
+ | `retry.provider.maxRetries` | number | `0` | Provider client retries (leave `0` so agent-level retry controls backoff) |
271
322
  | `retry.provider.maxRetryDelayMs` | number | `60000` | Max server-hinted retry delay before failing fast (`0` disables cap; legacy `retry.maxDelayMs` migrates here) |
272
323
 
273
324
  - **Server retry hints.** Atomic honors `Retry-After-Ms`, `Retry-After`, Cloudflare 5xx `retry_after`, and Google `RetryInfo.retryDelay` up to `retry.provider.maxRetryDelayMs`, failing immediately if the server asks for longer (such as a 5-hour quota reset). This applies across OpenAI, OpenAI-compatible, Codex, Anthropic, Azure OpenAI, Mistral, Google, Vertex, and Bedrock. Cloudflare 520 to 524 and connection resets count as transient; non-retryable 4xx and quota errors fail immediately.
@@ -291,41 +342,31 @@ See [Worktree snapshots](/worktree-snapshots).
291
342
  }
292
343
  ```
293
344
 
294
- ### HTTP
345
+ ### Tools
295
346
 
296
347
  | Setting | Type | Default | Description |
297
348
  | --- | --- | --- | --- |
298
- | `httpIdleTimeoutMs` | number or string | `600000` | Global HTTP dispatcher idle timeout in ms, duration string (`"30s"`, `"5m"`, `"1h"`), or `"disabled"`/`0`. |
299
-
300
- Applies to `fetch`, provider SDK HTTP clients, and the default total wall-clock budget for one [structured decision](/sdk/structured-decisions#cancellation-and-failures) (`structured_output`, `generateStructuredOutput()`, `decide()`). `/settings` presets offer `30 sec` (`30000`), `1 min` (`60000`), `5 min` (`300000`), `10 min` (`600000`), `30 min` (`1800000`), and `Disabled` (`"disabled"` or `0`). The standalone binary checks this timeout on a coarse timer, ending a silent request up to about 8 seconds late (or up to about two minutes late for timeouts longer than four minutes).
301
-
302
- ### Message delivery
349
+ | `defaultTools` | string[] | unset | Initial built-in tools: plain names replace defaults; `+name` and `-name` modify them |
350
+ | `codemode.mode` | `"on"` or `"only"` | `"on"` | `"on"` keeps direct tools declared alongside codemode; `"only"` hides ordinary direct tools so the model uses scripts (model-only tools stay top-level) |
351
+ | `codemode.inlineBudget` | number | `3000` | Estimated token budget for inline codemode tool declarations (`0` lists namespaces only; omitted tools remain discoverable via `searchTools()`) |
303
352
 
304
- | Setting | Type | Default | Description |
305
- | --- | --- | --- | --- |
306
- | `steeringMode` | string | `"one-at-a-time"` | Steering message delivery: `"one-at-a-time"` or `"all"` |
307
- | `followUpMode` | string | `"one-at-a-time"` | Follow-up message delivery: `"one-at-a-time"` or `"all"` |
308
- | `transport` | string | `"auto"` | Multi-transport provider preference: `"sse"`, `"websocket"`, `"websocket-cached"`, or `"auto"` (legacy boolean `websockets` migrates here) |
309
- | `websocketConnectTimeoutMs` | number or string | `15000` | WebSocket handshake timeout (ms, duration string, or `"disabled"`/`0`) |
310
- | `streamDeadlineMs` | number or string | `300000` | Max idle gap between provider stream events below HTTP (ms, duration string like `30s`, `5m`, `1h`, or `"disabled"`/`0`). Cuts stalled streams for retry or fallback; Anthropic `ping` events reset the timer. |
353
+ Built-in tool names include `read`, `bash`, `powershell`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, `tool_search`, and `ls`.
311
354
 
312
- For the global HTTP idle timeout, see [HTTP](#http) (`httpIdleTimeoutMs`).
355
+ ```json
356
+ { "defaultTools": ["bash", "edit", "write"] }
357
+ ```
313
358
 
314
- ### Terminal & Images
359
+ ```json
360
+ { "defaultTools": ["read", "powershell", "edit", "write"] }
361
+ ```
315
362
 
316
- | Setting | Type | Default | Description |
317
- | --- | --- | --- | --- |
318
- | `terminal.showImages` | boolean | `true` | Render inline images when supported |
319
- | `terminal.imageWidthCells` | number | `60` | Inline image width in terminal cells |
320
- | `terminal.clearOnShrink` | boolean | `false` | Clear blank rows when content shrinks (fallback env: `ATOMIC_CLEAR_ON_SHRINK=1`) |
321
- | `terminal.showTerminalProgress` | boolean | `false` | Show OSC 9;4 progress bar in terminal tab |
322
- | `images.autoResize` | boolean | `true` | Resize images over 2000x2000 for `@file`, `read`, and tool results (runs after `tool_result` hooks; keeps original on error) |
323
- | `images.blockImages` | boolean | `false` | Block all images from being sent to the model |
324
- | `terminal.hyperlinks` | boolean or `"auto"` | `"auto"` | JSON-only override for OSC 8 hyperlink detection (env: `ATOMIC_HYPERLINKS=1\|0\|auto`) |
325
- | `terminal.images` | `"kitty"`, `"iterm2"`, `"auto"`, or `false` | `"auto"` | JSON-only override for inline image protocol (env: `ATOMIC_IMAGE_PROTOCOL=kitty\|iterm2\|none\|auto`) |
326
- | `terminal.trueColor` | boolean or `"auto"` | `"auto"` | JSON-only override for 24-bit color detection (env: `ATOMIC_TRUE_COLOR=1\|0\|auto`) |
363
+ ```json
364
+ { "defaultTools": ["-bash", "+ls"] }
365
+ ```
327
366
 
328
- Explicit JSON values for `terminal.hyperlinks`, `terminal.images`, and `terminal.trueColor` override their `ATOMIC_*` and legacy `PI_*` environment variables.
367
+ - **Merging and modifiers.** Modifier-only arrays start from standard defaults (project modifier-only arrays layer over global `defaultTools`). Plain names or `[]` replace the prior list (`[]` keeps extension and custom tools).
368
+ - **`codemode` and `tool_search`.** `codemode` is on by default (remove with `["-codemode"]`, or include explicitly in a replacement list); `tool_search` is opt-in (`["+tool_search"]`). See [codemode](/tools#codemode) and [tool search](/tools#tool_search).
369
+ - **CLI and `/reload`.** Plain `--tools` replaces the set as an allowlist; modifier-only `--tools` adjusts the resolved selection (including on `/reload`). `--no-tools` disables every tool even with an allowlist or modifiers. `--no-builtin-tools` suppresses coding defaults only when no allowlist is given. `--exclude-tools` filters the result. `/reload` adds newly enabled `defaultTools` without re-enabling tools disabled mid-session.
329
370
 
330
371
  ### Shell
331
372
 
@@ -335,7 +376,7 @@ Explicit JSON values for `terminal.hyperlinks`, `terminal.images`, and `terminal
335
376
  | `shellCommandPrefix` | string | unset | Prefix prepended to shell commands (PowerShell syntax on native Windows interactive shells; Bash syntax elsewhere, such as `"shopt -s expand_aliases"`) |
336
377
  | `search.contextBefore` | number | `1` | Context lines before each `search` match |
337
378
  | `search.contextAfter` | number | `3` | Context lines after each `search` match |
338
- | `npmCommand` | string[] | unset | Command argv for npm lookup, install, uninstall, and git-package dependency installs (runs plain `install` when set, for example `["mise", "exec", "node@20", "--", "npm"]`) |
379
+ | `npmCommand` | string[] | unset | Command argv for npm lookup, install, uninstall, and git-package dependency installs (runs plain `install` when set, for example `["mise", "exec", "node@20", "--", "npm"]`). `atomic update` reads `npmCommand` from global settings only. |
339
380
  | `selfUpdateCommand` | string[] | unset | Command argv for `atomic update` using `{packageName}`, `{version}`, and `{installSpec}` (`ATOMIC_SELF_UPDATE_COMMAND` overrides; global settings only; [Custom update command](/reference/cli#custom-update-command)) |
340
381
 
341
382
  On Windows, write JSON paths with forward slashes or escaped backslashes:
@@ -348,32 +389,6 @@ On Windows, write JSON paths with forward slashes or escaped backslashes:
348
389
  { "shellPath": "C:\\Program Files\\Git\\bin\\bash.exe" }
349
390
  ```
350
391
 
351
- ### Tools
352
-
353
- | Setting | Type | Default | Description |
354
- | --- | --- | --- | --- |
355
- | `defaultTools` | string[] | unset | Initial built-in tools: plain names replace defaults; `+name` and `-name` modify them |
356
- | `codemode.mode` | `"on"` or `"only"` | `"on"` | `"on"` keeps direct tools declared alongside codemode; `"only"` hides ordinary direct tools so the model uses scripts (model-only tools stay top-level) |
357
- | `codemode.inlineBudget` | number | `3000` | Estimated token budget for inline codemode tool declarations (`0` lists namespaces only; omitted tools remain discoverable via `searchTools()`) |
358
-
359
- Built-in tool names include `read`, `bash`, `powershell`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, `tool_search`, and `ls`.
360
-
361
- ```json
362
- { "defaultTools": ["bash", "edit", "write"] }
363
- ```
364
-
365
- ```json
366
- { "defaultTools": ["read", "powershell", "edit", "write"] }
367
- ```
368
-
369
- ```json
370
- { "defaultTools": ["-bash", "+ls"] }
371
- ```
372
-
373
- - **Merging and modifiers.** Modifier-only arrays start from standard defaults (project modifier-only arrays layer over global `defaultTools`). Plain names or `[]` replace the prior list (`[]` keeps extension and custom tools).
374
- - **`codemode` and `tool_search`.** `codemode` is on by default (remove with `["-codemode"]`, or include explicitly in a replacement list); `tool_search` is opt-in (`["+tool_search"]`). See [codemode](/tools#codemode) and [tool search](/tools#tool_search).
375
- - **CLI and `/reload`.** Plain `--tools` replaces the set as an allowlist; modifier-only `--tools` adjusts the resolved selection (including on `/reload`). `--no-tools` disables every tool even with an allowlist or modifiers. `--no-builtin-tools` suppresses coding defaults only when no allowlist is given. `--exclude-tools` filters the result. `/reload` adds newly enabled `defaultTools` without re-enabling tools disabled mid-session.
376
-
377
392
  ### Tasks
378
393
 
379
394
  | Setting | Type | Default | Description |
@@ -397,34 +412,98 @@ Built-in tool names include `read`, `bash`, `powershell`, `kill`, `edit`, `write
397
412
  ```
398
413
 
399
414
  - **Default.** `~/.atomic/workflows/journal.sqlite` (`session_` tables; under `<agentDir>/workflows/` when `ATOMIC_CODING_AGENT_DIR` is set unless it adopted a parent store; see [Storage home](/storage#storage-home)). JSONL is opt-in via `dir`, `--session-dir`, or `ATOMIC_CODING_AGENT_SESSION_DIR` (legacy `sessionDir` was removed).
400
- - **Precedence.** Highest to lowest: SDK `sessionStore`, `--no-session`, `--session-dir` or `--session-store`, `--storage` or `--storage-file`, `ATOMIC_SESSIONS_STORAGE` or `ATOMIC_CODING_AGENT_SESSION_DIR`, `ATOMIC_STORAGE`, `sessions.storage`, `storage`, and default SQLite. Project selections replace global objects whole rather than merging; an explicit `{}` on `sessions.storage` selects default SQLite rather than inheriting `storage`. Relative paths in settings and JSON flags or env vars resolve from [storage home](/storage#storage-home); `--session-dir`, `--session-store`, and `ATOMIC_CODING_AGENT_SESSION_DIR` resolve from `cwd`.
401
- - **Errors.** Only the winning setting (plus set `ATOMIC_STORAGE` and `ATOMIC_SESSIONS_STORAGE`) is validated. Invalid config throws `StorageConfigError` (`source`, `field`, `reason`), and open failures throw typed errors without falling back to memory. See [Choosing a store](/sessions#choosing-a-store), [Selecting storage per process](/storage#selecting-storage-per-process), and [Storage errors](/storage#storage-errors).
415
+ - **Precedence.** Highest to lowest: SDK `sessionStore`, SDK `storage` (`createAgentSession({ storage })`, see [SDK storage](/sdk/storage)), `--no-session`, `--session-dir`, or `--session-store`, `--storage` or `--storage-file`, `ATOMIC_SESSIONS_STORAGE` or `ATOMIC_CODING_AGENT_SESSION_DIR`, `ATOMIC_STORAGE`, `ATOMIC_PROFILE=ci`, `sessions.storage`, `storage`, and default SQLite. Project selections replace global objects whole rather than merging; an explicit `{}` on `sessions.storage` selects default SQLite rather than inheriting `storage`. Relative paths in settings and JSON flags or env vars resolve from [storage home](/storage#storage-home); `--session-dir`, `--session-store`, and `ATOMIC_CODING_AGENT_SESSION_DIR` resolve from `cwd`. See [Storage and team variables](/environment-variables#storage-and-team-variables).
416
+ - **Errors.** Only the winning setting is validated from `settings.json`, whereas process-level selections (`--storage`, `--storage-file`, `ATOMIC_STORAGE`, `ATOMIC_SESSIONS_STORAGE`, and `ATOMIC_PROFILE=ci` with `ATOMIC_TEAM_*`) are validated unconditionally even when outranked. Invalid config throws `StorageConfigError` (`source`, `field`, `reason`) or `TeamProfileConfigError`, and open failures throw typed errors without falling back to memory. See [Choosing a store](/sessions#choosing-a-store), [Selecting storage per process](/storage#selecting-storage-per-process), and [Storage errors](/storage#storage-errors).
402
417
 
403
- ### Models
418
+ #### Storage adapters
404
419
 
405
- | Setting | Type | Default | Description |
406
- | --- | --- | --- | --- |
407
- | `enabledModels` | string[] | unset | Patterns for `Ctrl+P` model cycling (same syntax as `--models`; re-resolved after deferred extension loading). Independent of `fallbackModels`. |
420
+ Install an adapter [Atomic package](/storage#adapters-from-atomic-packages) (such as [`@bastani/atomic-storage-postgres`](/libraries/storage-postgres) or [`@bastani/atomic-storage-libsql`](/libraries/storage-libsql)), or pass its directory via `--extension` or SDK `additionalExtensionPaths` (which takes precedence over settings), and reference it in `storage` or `sessions.storage`:
408
421
 
409
422
  ```json
410
423
  {
411
- "enabledModels": ["claude-*", "gpt-4o", "gemini-2*"],
412
- "fallbackModels": ["anthropic/claude-opus-4-8:xhigh", "github-copilot/gpt-5.6-sol:high"]
424
+ "storage": {
425
+ "adapter": "@example/atomic-sqlite",
426
+ "options": { "url": "libsql://database.example" },
427
+ "secrets": { "authToken": { "env": "DATABASE_TOKEN" } },
428
+ "prefix": "project_"
429
+ }
413
430
  }
414
431
  ```
415
432
 
416
- ### Markdown
433
+ - An empty shared `storage: {}` uses `<storageHome>/storage.sqlite`.
434
+ - `secrets` accepts `{ "env": "VAR" }` or `{ "file": "token.txt" }` (relative paths resolve from [storage home](/storage#storage-home), falling back to parent if an existing file lives there; one trailing `\n` or `\r\n` is stripped).
435
+ - Adapter modules execute code; review them before trusting project settings. See [Selecting an adapter](/storage#selecting-an-adapter).
436
+
437
+ ### Snapshots
438
+
439
+ | Setting | Type | Default | Description |
440
+ | --- | --- | --- | --- |
441
+ | `snapshots.enabled` | boolean | `true` | Record worktree snapshots so sessions resume with repository state |
442
+ | `snapshots.includeUntracked` | boolean | `true` | Capture non-ignored, non-denied untracked files |
443
+ | `snapshots.maxFileBytes` | number | `5242880` | Max single file size captured (bytes) |
444
+ | `snapshots.maxSnapshotBytes` | number | `52428800` | Max total captured snapshot or unpushed-commit bundle size (bytes) |
445
+ | `snapshots.fullEvery` | number | `10` | Restart patch chain from `HEAD` after this many snapshots |
446
+ | `snapshots.autoCollect` | boolean | `true` | Garbage-collect unreferenced snapshot content in background and on session close |
447
+ | `snapshots.collectIntervalSeconds` | number | `3600` | Minimum interval between automatic GC passes per database (seconds) |
448
+ | `snapshots.graceSeconds` | number | `3600` | Protect snapshot data stored or reused within this window (`0` disables) |
449
+ | `snapshots.pool.maxIdlePerRepository` | number | `2` | Idle restored worktrees kept per repository ([Restored worktrees](/worktree-snapshots#restored-worktrees)) |
450
+
451
+ See [Worktree snapshots](/worktree-snapshots).
452
+
453
+ ### Resume
417
454
 
418
455
  | Setting | Type | Default | Description |
419
456
  | --- | --- | --- | --- |
420
- | `markdown.codeBlockIndent` | string | `" "` | Indentation for code blocks |
421
- | `markdown.mermaid` | string | `"streaming"` | Display-only Mermaid rendering: `"off"`, `"final"`, or `"streaming"` (invalid or oversized diagrams stay as code) |
422
- | `markdown.latex` | boolean | `true` | Display-only Unicode math rendering (supports whitespace and matrix layouts; stored messages keep source Markdown) |
457
+ | `resume.waitForBlueprint` | `"prompt"` \| `"tools"` | `"prompt"` (interactive) / `"tools"` (non-interactive) | Controls whether restored worktree builds finish before opening (`"prompt"`) or run concurrently while holding tool calls (`"tools"`). Applies to `-p`, `--mode json`, `--mode rpc`, and SDK sessions as `"tools"` by default. When a `project_trust` extension handler can still decline a saved trust decision, Atomic behaves like `"tools"` so no project build step runs before trust settles. See [Start the first turn while the build runs](/guides/resume-on-any-machine#start-the-first-turn-while-the-build-runs). |
458
+ | `resume.cache` | array | unset | Extra entries for [`atomic blueprint cache-key`](/guides/resume-on-any-machine#caches-for-runners): `{ "paths": [...], "kind"?: "store" \| "build", "keyFiles"?: [...] }`. `"store"` paths are absolute or `~` outside the repo; `"build"` paths are repo-relative. Globs, `!` exclusions, and credential paths are refused with a warning. Project list replaces global. |
459
+ | `resume.setupCommand` | string | unset | Deprecated (global only; prints warning). Move commands into `.atomic/blueprint.yaml` `maintenance` ([Set the environment up with a blueprint](/guides/resume-on-any-machine#set-the-environment-up-with-a-blueprint)). |
460
+
461
+ ### HTTP
462
+
463
+ | Setting | Type | Default | Description |
464
+ | --- | --- | --- | --- |
465
+ | `httpIdleTimeoutMs` | number or string | `600000` | Global HTTP dispatcher idle timeout in ms, integer duration string (`"30s"`, `"5m"`, `"1h"`), or `"disabled"`/`0`. |
466
+
467
+ Accepted duration forms for `httpIdleTimeoutMs`, `websocketConnectTimeoutMs`, and `streamDeadlineMs`:
468
+
469
+ - Non-negative finite number (floored to whole milliseconds; `0` disables).
470
+ - Numeric string (such as `"60000"`).
471
+ - Integer duration with unit `ms`, `s`, `m`, or `h`, case-insensitive (such as `"500ms"`, `"30s"`, `"5m"`, `"1h"`). Decimal durations (`"1.5m"`), negative values, blank strings, and other units (`"d"`) are rejected.
472
+ - `"disabled"` (case-insensitive), equivalent to `0`.
473
+
474
+ `httpIdleTimeoutMs` applies to `fetch`, provider HTTP clients, and the default total wall-clock budget for one [structured decision](/sdk/structured-decisions#cancellation-and-failures) (`structured_output`, `generateStructuredOutput()`, `decide()`). `/settings` presets offer `30 sec` (`30000`), `1 min` (`60000`), `5 min` (`300000`), `10 min` (`600000`), `30 min` (`1800000`), and `Disabled` (`"disabled"` or `0`). The standalone binary checks this timeout on a coarse timer, ending a silent request up to about 8 seconds late (or up to about two minutes late for timeouts longer than four minutes).
475
+
476
+ ### Network proxy
477
+
478
+ | Setting | Type | Default | Description |
479
+ | --- | --- | --- | --- |
480
+ | `httpProxy` | string | unset | HTTP proxy URL applied as `HTTP_PROXY` and `HTTPS_PROXY` when those environment variables are unset. Global setting only. |
481
+
482
+ ```json
483
+ { "httpProxy": "http://127.0.0.1:7890" }
484
+ ```
485
+
486
+ Existing `HTTP_PROXY` and `HTTPS_PROXY` environment variables take precedence over `httpProxy` in `settings.json`.
487
+
488
+ Both the npm-installed `atomic` and the standalone binary route `https://` requests through `HTTP_PROXY` when `HTTPS_PROXY` is unset, and skip hosts listed in `NO_PROXY`. The binary uses Bun's HTTP client, which handles proxy variables differently in these cases:
489
+
490
+ | Setup | npm-installed `atomic` | Standalone binary |
491
+ | --- | --- | --- |
492
+ | `ALL_PROXY` naming an `http://` or `https://` proxy | Not read | Used when the request's own variable is unset |
493
+ | An empty lowercase variable (`http_proxy=""`, `no_proxy=""`) with the uppercase one set | The empty value counts: no proxy, no exemptions | The uppercase value is used |
494
+ | An address block in `NO_PROXY` (`10.0.0.0/8`) | Not matched | Exempts the addresses in it |
495
+ | Proxy variables changed while Atomic runs | Read at startup and when `httpIdleTimeoutMs` changes | Read for each request |
496
+ | An `http://` endpoint through a proxy | Sent through a `CONNECT` tunnel | Sent to the proxy with the full URL |
497
+ | A SOCKS proxy (`socks5://`) in `HTTP_PROXY` or `HTTPS_PROXY` | Used | Requests fail with `UnsupportedProxyProtocol` |
498
+
499
+ The OpenAI Codex WebSocket uses the same proxy as the install's other requests. In the binary it also reads proxy variables from a credential's [`env`](/providers#auth-file); an `ALL_PROXY` naming a SOCKS proxy is skipped for WebSocket and those requests fall back to SSE.
423
500
 
424
501
  ### Resources
425
502
 
426
503
  Paths in `~/.atomic/agent/settings.json` resolve from `~/.atomic/agent`; paths in `.atomic/settings.json` resolve from `.atomic`. Supports absolute paths, `~`, globs, `!exclusions`, `+exact-include`, and `-exact-exclude`.
427
504
 
505
+ All five resource lists (`packages`, `extensions`, `skills`, `prompts`, and `themes`) combine global and project entries rather than replacing them.
506
+
428
507
  | Setting | Type | Default | Description |
429
508
  | --- | --- | --- | --- |
430
509
  | `packages` | array | `[]` | npm, git, or local packages (string or object filter form) |
@@ -434,30 +513,8 @@ Paths in `~/.atomic/agent/settings.json` resolve from `~/.atomic/agent`; paths i
434
513
  | `themes` | string[] | `[]` | Local theme files or directories |
435
514
  | `enableSkillCommands` | boolean | `true` | Register skills as `/skill:<name>` commands |
436
515
 
437
- <a id="workflow-storage" />
438
- <a id="local-worker-pools" />
439
-
440
516
  Legacy `workflows` settings no longer run workflows. Atomic reads their paths only when you ask to [convert a workflow to a skill](/orchestration/migrating-workflows).
441
517
 
442
- #### Storage adapters
443
-
444
- Install an adapter [Atomic package](/storage#adapters-from-atomic-packages) (or pass its directory via `--extension` or SDK `additionalExtensionPaths`, which takes precedence over settings) and reference it in `storage` or `sessions.storage`:
445
-
446
- ```json
447
- {
448
- "storage": {
449
- "adapter": "@example/atomic-sqlite",
450
- "options": { "url": "libsql://database.example" },
451
- "secrets": { "authToken": { "env": "DATABASE_TOKEN" } },
452
- "prefix": "project_"
453
- }
454
- }
455
- ```
456
-
457
- - An empty shared `storage: {}` uses `<storageHome>/storage.sqlite`.
458
- - `secrets` accepts `{ "env": "VAR" }` or `{ "file": "token.txt" }` (relative paths resolve from [storage home](/storage#storage-home), falling back to parent if an existing file lives there; one trailing `\n` or `\r\n` is stripped).
459
- - Adapter modules execute code; review them before trusting project settings. See [Selecting an adapter](/storage#selecting-an-adapter).
460
-
461
518
  #### packages
462
519
 
463
520
  Load all resources with a string entry, or filter specific resources with an object entry (`"autoload": false` disables discovery and applies only explicit patterns):
@@ -478,7 +535,38 @@ Load all resources with a string entry, or filter specific resources with an obj
478
535
 
479
536
  See [Atomic packages](/packages).
480
537
 
481
- <a id="example" />
482
- <a id="project-overrides" />
538
+ ### Integrations
539
+
540
+ - **Herdr:** Configure `herdr.enabled` below to control terminal pane status reporting.
541
+ - **MCP servers:** Configured separately in `mcp.json` (global and project); see [MCP servers](/mcp-servers).
542
+ - **Subagents:** Configure built-in agent overrides under `subagents.agentOverrides` in `settings.json`; see [Subagent reference](/subagents/reference).
543
+ - **Intercom:** Multi-node routing uses global `storage`; see [Intercom operations](/intercom/operations).
544
+ - **Codemode:** Configure `codemode.mode` and `codemode.inlineBudget` under [Tools](#tools).
545
+
546
+ #### Herdr
547
+
548
+ | Setting | Type | Default | Description |
549
+ | --- | --- | --- | --- |
550
+ | `herdr.enabled` | boolean | `true` | Enable the built-in Herdr status reporter in interactive terminal sessions running inside a Herdr pane (disabled for subagents and non-interactive modes). Run `/reload` or restart after changing; setting `false` releases the pane registration cleanly on `/reload`. |
551
+
552
+ See [Herdr](/herdr) for state aggregation, reporter conflicts, and privacy.
553
+
554
+ ### Telemetry and update checks
555
+
556
+ | Setting | Type | Default | Description |
557
+ | --- | --- | --- | --- |
558
+ | `enableInstallTelemetry` | boolean | `true` | Send version-adoption ping on first interactive launch (fresh settings or after upgrade with changelog entries) and provider attribution headers; does not control update checks |
559
+
560
+ - **Version-adoption telemetry.** Controlled by `enableInstallTelemetry` (disable with `"enableInstallTelemetry": false` or `ATOMIC_TELEMETRY=0`; force on with `ATOMIC_TELEMETRY=1`/`true`/`yes`, where `ATOMIC_TELEMETRY` beats legacy `PI_TELEMETRY`). Sends one bodyless `GET https://atomic-version-adoption.bastani-atomic.workers.dev/v1/version-adoption?version=<version>` with `User-Agent: atomic/<version> (<platform>; <runtime>; <arch>)` and no UUID, cookie, auth header, or user content. Fires only in interactive mode on first launch with fresh settings or after upgrading to a release with changelog entries, never on every launch, npm install, or `-p`/RPC. Atomic stores only UTC date, version, and an aggregate count; Cloudflare processes transient connection metadata (IP, TLS) to serve the request. Separate from `enableAnalytics` and `trackingId`.
561
+ - **Update checks.** Queries `https://registry.npmjs.org/@bastani/atomic/latest`. Disable independently with `ATOMIC_SKIP_VERSION_CHECK=1` (`PI_SKIP_VERSION_CHECK=1`).
562
+ - **Offline mode.** `--offline` or `ATOMIC_OFFLINE=1` (`1`, `true`, or `yes`, falling back to `PI_OFFLINE`; `0` or `false` keeps network checks enabled) disables all startup network requests (update checks, package update checks, version-adoption telemetry, and model catalog refreshes).
563
+
564
+ ### Debug mode
565
+
566
+ | Setting | Type | Default | Description |
567
+ | --- | --- | --- | --- |
568
+ | `debug` | boolean | `false` | Write verbose debug output to the debug log shown by `/debug` (**Debug mode** in `/settings`). Global setting only. |
569
+
570
+ Use `--debug` or `ATOMIC_DEBUG=1` for a single run (shows a `debug` badge in the footer). Toggling in `/settings` applies immediately to new work; already-running workers and the Intercom broker apply it on next restart. See [Debugging](/development#debugging).
483
571
 
484
572
  For a complete example config and project-override walkthrough, see [Configure Atomic](/guides/configuration#example) and [Project overrides](/guides/configuration#project-overrides).