@bastani/atomic 0.10.9-alpha.1 → 0.10.10-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/README.md +211 -155
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +27 -12
  7. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
  9. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  10. package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
  11. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  12. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
  13. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
  14. package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
  15. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  16. package/dist/_shared/runtime-O4KCSG4C.js +5 -5
  17. package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
  18. package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
  19. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  20. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  21. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
  22. package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
  23. package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
  24. package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
  25. package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
  26. package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
  27. package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
  28. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
  29. package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
  30. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
  31. package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
  32. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
  33. package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
  34. package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
  35. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  36. package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
  37. package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
  38. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
  39. package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
  40. package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
  41. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  42. package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
  43. package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
  44. package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
  45. package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
  46. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  47. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  48. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  49. package/dist/builtin/intercom/README.md +85 -114
  50. package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
  51. package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
  52. package/dist/builtin/intercom/group.ts +7 -3
  53. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  54. package/dist/builtin/intercom/package.json +1 -1
  55. package/dist/builtin/mcp/README.md +37 -27
  56. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  57. package/dist/builtin/mcp/package.json +1 -1
  58. package/dist/builtin/subagents/CHANGELOG.md +8 -0
  59. package/dist/builtin/subagents/README.md +71 -138
  60. package/dist/builtin/subagents/package.json +1 -1
  61. package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
  62. package/dist/builtin/web-access/CHANGELOG.md +9 -0
  63. package/dist/builtin/web-access/README.md +60 -87
  64. package/dist/builtin/web-access/index.bundle.mjs +387 -351
  65. package/dist/builtin/web-access/package.json +1 -1
  66. package/dist/cli/args.js +2 -2
  67. package/dist/cli/auth-cli.code.js +4 -4
  68. package/dist/cli/auth-cli.impl.js +3 -3
  69. package/dist/cli/auth-cli.js +3 -3
  70. package/dist/cli/blueprint-command.code.js +2 -2
  71. package/dist/cli/blueprint-command.impl.js +3 -3
  72. package/dist/cli/blueprint-command.js +3 -3
  73. package/dist/cli/intercom-command.code.js +3 -3
  74. package/dist/cli/intercom-command.impl.js +3 -3
  75. package/dist/cli/intercom-command.js +3 -3
  76. package/dist/cli/list-models.code.js +3 -3
  77. package/dist/cli/list-models.impl.js +3 -3
  78. package/dist/cli/list-models.js +3 -3
  79. package/dist/cli/session-picker.code.js +2 -2
  80. package/dist/cli/session-picker.impl.js +3 -3
  81. package/dist/cli/session-picker.js +3 -3
  82. package/dist/cli/startup-ui.code.js +2 -2
  83. package/dist/cli/startup-ui.impl.js +3 -3
  84. package/dist/cli/startup-ui.js +3 -3
  85. package/dist/cli/storage-command.impl.js +3 -3
  86. package/dist/cli/storage-command.js +3 -3
  87. package/dist/cli/storage-search-session.code.js +2 -2
  88. package/dist/cli/storage-search-session.impl.js +3 -3
  89. package/dist/cli/storage-search-session.js +3 -3
  90. package/dist/cli/team-command.code.js +2 -2
  91. package/dist/cli/team-command.impl.js +3 -3
  92. package/dist/cli/team-command.js +3 -3
  93. package/dist/cli.js +2 -2
  94. package/dist/core/agent-session-methods.d.ts +4 -1
  95. package/dist/core/agent-session-methods.js.map +1 -1
  96. package/dist/core/agent-session.d.ts +3 -0
  97. package/dist/core/compaction/compactor.d.ts +20 -14
  98. package/dist/core/compaction/errors.d.ts +120 -0
  99. package/dist/core/compaction/index.d.ts +1 -0
  100. package/dist/core/compaction/model-resolver.d.ts +2 -2
  101. package/dist/core/debug.impl.js +3 -3
  102. package/dist/core/debug.js +3 -3
  103. package/dist/core/export-html/card-projection.impl.js +3 -3
  104. package/dist/core/export-html/card-projection.js +3 -3
  105. package/dist/core/export-html/index.code.js +2 -2
  106. package/dist/core/export-html/index.impl.js +3 -3
  107. package/dist/core/export-html/index.js +3 -3
  108. package/dist/core/export-html/json-spans.impl.js +3 -3
  109. package/dist/core/export-html/json-spans.js +3 -3
  110. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  111. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  112. package/dist/core/export-html/tool-renderer.code.js +1 -1
  113. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  114. package/dist/core/export-html/tool-renderer.js +3 -3
  115. package/dist/core/extensions/api-types.d.ts +1 -1
  116. package/dist/core/extensions/api-types.js.map +1 -1
  117. package/dist/core/extensions/index.d.ts +1 -1
  118. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  119. package/dist/core/extensions/jiti-loader.js +3 -3
  120. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  121. package/dist/core/extensions/jiti-static-loader.js +3 -3
  122. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  123. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  124. package/dist/core/extensions/loader-host-modules.js +3 -3
  125. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  126. package/dist/core/extensions/provider-types.d.ts +18 -6
  127. package/dist/core/extensions/provider-types.js.map +1 -1
  128. package/dist/core/extensions/runner-context.js +1 -1
  129. package/dist/core/intercom-broker-control-host.code.js +1 -1
  130. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  131. package/dist/core/intercom-broker-control-host.js +3 -3
  132. package/dist/core/intercom-broker-control.code.js +3 -3
  133. package/dist/core/intercom-broker-control.impl.js +3 -3
  134. package/dist/core/intercom-broker-control.js +3 -3
  135. package/dist/core/model-config.d.ts +40 -0
  136. package/dist/core/model-registry.js +1 -1
  137. package/dist/core/model-resolver-scope.d.ts +4 -4
  138. package/dist/core/model-runtime.d.ts +1 -1
  139. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  140. package/dist/core/package-manager-storage-adapters.js +3 -3
  141. package/dist/core/provider-composer-internal.d.ts +11 -2
  142. package/dist/core/sdk.code.js +3 -3
  143. package/dist/core/sdk.impl.js +3 -3
  144. package/dist/core/sdk.js +3 -3
  145. package/dist/core/session-manager-core.js +5 -5
  146. package/dist/core/session-manager-list.impl.js +3 -3
  147. package/dist/core/session-manager-list.js +3 -3
  148. package/dist/core/session-manager.code.js +1 -1
  149. package/dist/core/session-manager.impl.js +3 -3
  150. package/dist/core/session-manager.js +3 -3
  151. package/dist/core/session-storage.impl.js +3 -3
  152. package/dist/core/session-storage.js +3 -3
  153. package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
  154. package/dist/core/storage/index.js +2 -2
  155. package/dist/core/storage/node-sqlite-thread.js +2 -2
  156. package/dist/core/storage/node-sqlite.js +2 -2
  157. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  158. package/dist/core/storage/offline-snapshot-file.js +3 -3
  159. package/dist/core/storage/provider.js +2 -2
  160. package/dist/core/storage/selection.js +2 -2
  161. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  162. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  163. package/dist/core/storage/session/branch-fork-source.js +3 -3
  164. package/dist/core/storage/session/card-view.impl.js +3 -3
  165. package/dist/core/storage/session/card-view.js +3 -3
  166. package/dist/core/storage/session/child-reader.code.js +3 -3
  167. package/dist/core/storage/session/child-reader.impl.js +3 -3
  168. package/dist/core/storage/session/child-reader.js +3 -3
  169. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  170. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  171. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  172. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  173. package/dist/core/storage/session/expanded-child-details.js +3 -3
  174. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  175. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  176. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  177. package/dist/core/storage/session/fork-row-index.js +3 -3
  178. package/dist/core/storage/session/fork-staging.code.js +2 -2
  179. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  180. package/dist/core/storage/session/fork-staging.js +3 -3
  181. package/dist/core/storage/session/fork-window.code.js +3 -3
  182. package/dist/core/storage/session/fork-window.impl.js +3 -3
  183. package/dist/core/storage/session/fork-window.js +3 -3
  184. package/dist/core/storage/session/history-pages.impl.js +3 -3
  185. package/dist/core/storage/session/history-pages.js +3 -3
  186. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  187. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  188. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  189. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  190. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  191. package/dist/core/storage/session/memory-session-store.js +3 -3
  192. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  193. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  194. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  195. package/dist/core/storage/session/released-history-files.code.js +3 -3
  196. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  197. package/dist/core/storage/session/released-history-files.js +3 -3
  198. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  199. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  200. package/dist/core/storage/session/session-resume.impl.js +3 -3
  201. package/dist/core/storage/session/session-resume.js +3 -3
  202. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  203. package/dist/core/storage/session/snapshot-cut.js +3 -3
  204. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  205. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  206. package/dist/core/storage/session/snapshot-history.js +3 -3
  207. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  208. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  209. package/dist/core/storage/session/sql-session-store.js +3 -3
  210. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  211. package/dist/core/storage/session/tree-outline.js +3 -3
  212. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  213. package/dist/core/storage/session/tree-presentation.js +3 -3
  214. package/dist/core/storage/storage-status.impl.js +3 -3
  215. package/dist/core/storage/storage-status.js +3 -3
  216. package/dist/core/storage/team.impl.js +3 -3
  217. package/dist/core/storage/team.js +3 -3
  218. package/dist/core/structured-output/index.code.js +1 -1
  219. package/dist/core/structured-output/index.impl.js +3 -3
  220. package/dist/core/structured-output/index.js +3 -3
  221. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  222. package/dist/core/tasks/task-completion-entry.js +3 -3
  223. package/dist/core/tasks/task-file-history.code.js +3 -3
  224. package/dist/core/tasks/task-file-history.impl.js +3 -3
  225. package/dist/core/tasks/task-file-history.js +3 -3
  226. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  227. package/dist/core/tasks/task-reference-archive.js +3 -3
  228. package/dist/core/tasks/task-reference-identity.code.js +1 -1
  229. package/dist/core/tasks/task-reference-identity.js +3 -3
  230. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  231. package/dist/core/tasks/task-reference-stream.js +3 -3
  232. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  233. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  234. package/dist/core/tasks/task-view-source.impl.js +3 -3
  235. package/dist/core/tasks/task-view-source.js +3 -3
  236. package/dist/core/tools/read-url.code.js +2 -2
  237. package/dist/core/tools/read-url.impl.js +3 -3
  238. package/dist/core/tools/read-url.js +3 -3
  239. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  240. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  241. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  242. package/dist/core/worktree-snapshot/errors.js +3 -3
  243. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  244. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  245. package/dist/extensions/codemode/execute.code.js +1 -1
  246. package/dist/extensions/codemode/execute.impl.js +3 -3
  247. package/dist/extensions/codemode/execute.js +3 -3
  248. package/dist/extensions/codemode/renderer.code.js +2 -2
  249. package/dist/extensions/codemode/renderer.impl.js +3 -3
  250. package/dist/extensions/codemode/renderer.js +3 -3
  251. package/dist/extensions/mcp/cli.code.js +2 -2
  252. package/dist/extensions/mcp/cli.impl.js +3 -3
  253. package/dist/extensions/mcp/cli.js +3 -3
  254. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  255. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  256. package/dist/extensions/mcp/cli.lazy.js +3 -3
  257. package/dist/extensions/mcp/runtime.code.js +1 -1
  258. package/dist/extensions/mcp/runtime.impl.js +3 -3
  259. package/dist/extensions/mcp/runtime.js +3 -3
  260. package/dist/index-extensions.d.ts +1 -1
  261. package/dist/index.d.ts +8 -1
  262. package/dist/index.js +7 -7
  263. package/dist/main-first-time-setup.code.js +2 -2
  264. package/dist/main-first-time-setup.impl.js +3 -3
  265. package/dist/main-first-time-setup.js +3 -3
  266. package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
  267. package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
  268. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  269. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  270. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  271. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  272. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  273. package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
  274. package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
  275. package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
  276. package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
  277. package/dist/modes/print-mode.js +1 -1
  278. package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
  279. package/dist/modes/rpc/rpc-types.d.ts +29 -2
  280. package/dist/package-manager-cli.code.js +5 -5
  281. package/dist/package-manager-cli.impl.js +3 -3
  282. package/dist/package-manager-cli.js +3 -3
  283. package/dist/rpc-entry.js +1 -1
  284. package/dist/startup-files.json +1 -1
  285. package/dist/startup-stages/5.js +1 -1
  286. package/dist/startup-stages/7.js +1 -1
  287. package/dist/startup-stages/8.js +1 -2
  288. package/dist/startup-stages/9.js +2 -1
  289. package/dist/utils/native-module.d.ts +44 -0
  290. package/dist/utils/startup-database-spare.code.js +3 -3
  291. package/dist/utils/startup-database-spare.impl.js +3 -3
  292. package/dist/utils/startup-database-spare.js +3 -3
  293. package/dist/utils/tools-manager.code.js +1 -1
  294. package/dist/utils/tools-manager.impl.js +3 -3
  295. package/dist/utils/tools-manager.js +3 -3
  296. package/docs/background-tasks.md +235 -243
  297. package/docs/build.md +12 -11
  298. package/docs/codemode.md +60 -51
  299. package/docs/compaction/reference.md +61 -24
  300. package/docs/compaction.md +117 -65
  301. package/docs/computer-use.md +179 -146
  302. package/docs/containerization.md +79 -33
  303. package/docs/custom-provider/api-reference.md +148 -11
  304. package/docs/custom-provider/oauth.md +44 -27
  305. package/docs/custom-provider/override.md +14 -7
  306. package/docs/custom-provider/registration.md +75 -65
  307. package/docs/custom-provider/streaming.md +42 -19
  308. package/docs/custom-provider.md +25 -61
  309. package/docs/development.md +47 -43
  310. package/docs/docs.json +33 -33
  311. package/docs/environment-variables.md +83 -57
  312. package/docs/extensions/api-reference.md +323 -734
  313. package/docs/extensions/authoring.md +186 -269
  314. package/docs/extensions/events.md +308 -375
  315. package/docs/extensions/examples.md +122 -74
  316. package/docs/extensions/ui.md +217 -197
  317. package/docs/extensions.md +152 -259
  318. package/docs/getting-started/authentication.md +27 -14
  319. package/docs/getting-started/first-session.md +25 -26
  320. package/docs/getting-started/installation.md +62 -84
  321. package/docs/getting-started/project-instructions.md +39 -14
  322. package/docs/guides/configuration.md +42 -20
  323. package/docs/guides/intercom.md +17 -13
  324. package/docs/guides/non-interactive.md +29 -16
  325. package/docs/guides/orchestration.md +16 -10
  326. package/docs/guides/resume-on-any-machine.md +54 -49
  327. package/docs/guides/subagents.md +22 -14
  328. package/docs/guides/team-setup.md +37 -26
  329. package/docs/guides.md +22 -21
  330. package/docs/herdr.md +21 -16
  331. package/docs/index.md +16 -17
  332. package/docs/intercom/operations.md +68 -66
  333. package/docs/intercom/reference.md +196 -191
  334. package/docs/intercom.md +103 -92
  335. package/docs/json.md +71 -71
  336. package/docs/keybindings.md +63 -50
  337. package/docs/libraries/agent-core.md +49 -8
  338. package/docs/libraries/ai.md +21 -12
  339. package/docs/libraries/codemode.md +28 -6
  340. package/docs/libraries/schema.md +7 -7
  341. package/docs/libraries/telemetry.md +7 -7
  342. package/docs/libraries/tui.md +74 -94
  343. package/docs/libraries.md +5 -5
  344. package/docs/llama-cpp.md +38 -33
  345. package/docs/mcp-servers.md +96 -90
  346. package/docs/models/reference.md +46 -33
  347. package/docs/models-configuration.md +12 -6
  348. package/docs/models.md +93 -88
  349. package/docs/orchestration/migrating-workflows.md +21 -19
  350. package/docs/orchestration/patterns.md +35 -20
  351. package/docs/orchestration.md +22 -21
  352. package/docs/packages/authoring.md +28 -19
  353. package/docs/packages/reference.md +75 -16
  354. package/docs/packages.md +31 -33
  355. package/docs/programmatic.md +22 -21
  356. package/docs/prompt-templates.md +63 -41
  357. package/docs/providers/reference.md +35 -19
  358. package/docs/providers.md +61 -71
  359. package/docs/quickstart.md +32 -46
  360. package/docs/reference/cli.md +249 -252
  361. package/docs/reference.md +23 -20
  362. package/docs/rpc/examples.md +74 -17
  363. package/docs/rpc/extension-ui.md +79 -62
  364. package/docs/rpc/protocol.md +816 -358
  365. package/docs/rpc.md +75 -151
  366. package/docs/sdk/reference.md +175 -45
  367. package/docs/sdk/structured-decisions.md +92 -62
  368. package/docs/sdk/web-server.md +79 -46
  369. package/docs/sdk.md +237 -195
  370. package/docs/security.md +106 -43
  371. package/docs/session-format.md +96 -59
  372. package/docs/sessions.md +149 -113
  373. package/docs/settings.md +289 -204
  374. package/docs/shell-aliases.md +15 -6
  375. package/docs/skills/authoring.md +17 -9
  376. package/docs/skills/reference.md +23 -21
  377. package/docs/skills.md +104 -97
  378. package/docs/storage.md +140 -242
  379. package/docs/subagents/authoring.md +147 -16
  380. package/docs/subagents/reference.md +100 -30
  381. package/docs/subagents.md +220 -252
  382. package/docs/terminal-setup.md +97 -69
  383. package/docs/termux.md +51 -85
  384. package/docs/themes/reference.md +51 -37
  385. package/docs/themes.md +49 -54
  386. package/docs/tmux.md +38 -21
  387. package/docs/tools.md +198 -147
  388. package/docs/tui/reference.md +64 -32
  389. package/docs/tui.md +38 -66
  390. package/docs/usage.md +76 -78
  391. package/docs/verification.md +25 -25
  392. package/docs/web-access.md +72 -55
  393. package/docs/windows.md +53 -58
  394. package/docs/worktree-snapshots.md +62 -65
  395. package/package.json +8 -8
  396. package/schemas/models.schema.json +51 -0
  397. package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
  398. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
  399. package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
  400. package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
  401. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <p align="center">
2
2
  <a href="https://github.com/bastani-inc/atomic">
3
- <img alt="Atomic" src="https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/docs/logo.svg" width="324">
3
+ <img alt="Atomic logo" src="https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/docs/logo.svg" width="324">
4
4
  </a>
5
5
  </p>
6
6
 
@@ -17,49 +17,58 @@
17
17
 
18
18
  ---
19
19
 
20
- Atomic is a terminal coding-agent runtime. Use built-in tools for file edits and shell commands, codemode to script multi-step checks, and subagents to delegate work to isolated contexts. Extend Atomic with TypeScript [Extensions](#extensions), [Skills](#skills), [Prompt Templates](#prompt-templates), and [Themes](#themes), or bundle and share them as [Atomic Packages](#atomic-packages) via npm or git.
20
+ Atomic is a terminal coding-agent runtime. Use built-in tools for file edits and shell commands, codemode to script multi-step checks, and subagents to delegate work to isolated contexts. Extend Atomic with TypeScript [extensions](#extensions), [skills](#skills), [prompt templates](#prompt-templates), and [themes](#themes), or share them as [Atomic packages](#atomic-packages) via npm or git.
21
21
 
22
22
  Atomic bundles first-party integrations for subagents, MCP, web access, and Intercom. See [Orchestration](docs/orchestration.md) for multi-step tasks and [Migrating workflows](docs/orchestration/migrating-workflows.md) to convert an earlier workflow file to a skill.
23
23
 
24
- Run Atomic interactively, in print or JSON mode, over RPC for process integration, or embedded via the TypeScript SDK.
24
+ Run Atomic interactively, in print or JSON mode, over RPC for process integration, or embedded through the TypeScript SDK.
25
25
 
26
- Full documentation: [docs.bastani.ai](https://docs.bastani.ai/) · Contributing: [CONTRIBUTING.md](https://github.com/bastani-inc/atomic/blob/main/CONTRIBUTING.md)
26
+ Full documentation: [docs.bastani.ai](https://docs.bastani.ai/) | Contributing: [CONTRIBUTING.md](https://github.com/bastani-inc/atomic/blob/main/CONTRIBUTING.md)
27
27
 
28
- ## Table of Contents
28
+ ## Table of contents
29
29
 
30
- - [Quick Start](#quick-start)
31
- - [Providers & Models](#providers--models)
32
- - [Interactive Mode](#interactive-mode)
30
+ - [Quick start](#quick-start)
31
+ - [Providers and models](#providers-and-models)
32
+ - [Interactive mode](#interactive-mode)
33
33
  - [Editor](#editor)
34
34
  - [Commands](#commands)
35
- - [Keyboard Shortcuts](#keyboard-shortcuts)
36
- - [Message Queue](#message-queue)
35
+ - [Keyboard shortcuts](#keyboard-shortcuts)
36
+ - [Message queue](#message-queue)
37
37
  - [Sessions](#sessions)
38
+ - [Management](#management)
38
39
  - [Branching](#branching)
39
40
  - [Compaction](#compaction)
40
41
  - [Settings](#settings)
41
- - [Context Files](#context-files)
42
+ - [Model scoping with enabledModels](#model-scoping-with-enabledmodels)
43
+ - [Telemetry and update checks](#telemetry-and-update-checks)
44
+ - [Context files](#context-files)
42
45
  - [Customization](#customization)
43
- - [Prompt Templates](#prompt-templates)
46
+ - [Prompt templates](#prompt-templates)
44
47
  - [Skills](#skills)
45
48
  - [Extensions](#extensions)
46
49
  - [Themes](#themes)
47
- - [Atomic Packages](#atomic-packages)
48
- - [Programmatic Usage](#programmatic-usage)
50
+ - [Atomic packages](#atomic-packages)
51
+ - [Programmatic usage](#programmatic-usage)
49
52
  - [Philosophy](#philosophy)
50
- - [CLI Reference](#cli-reference)
53
+ - [CLI reference](#cli-reference)
54
+ - [Contributing and development](#contributing-and-development)
55
+ - [License](#license)
56
+ - [See also](#see-also)
51
57
 
52
58
  ---
53
59
 
54
- ## Quick Start
60
+ ## Quick start
55
61
 
56
- Install globally with npm or Bun:
62
+ Install globally with npm, pnpm, or Bun (Node.js 22.19+ or Bun 1.4.5+):
57
63
 
58
64
  ```bash
59
65
  npm install -g @bastani/atomic
60
- # or: bun install -g @bastani/atomic
66
+ # or: pnpm add -g @bastani/atomic
67
+ # or: bun add -g @bastani/atomic
61
68
  ```
62
69
 
70
+ For environments without Node.js or a package manager, use the self-contained release archive installer (`install.sh` on macOS/Linux or `install.ps1` on Windows). See [Installation](docs/getting-started/installation.md).
71
+
63
72
  Authenticate with an API key:
64
73
 
65
74
  ```bash
@@ -67,98 +76,112 @@ export ANTHROPIC_API_KEY=sk-ant-...
67
76
  atomic
68
77
  ```
69
78
 
70
- Or sign in with an existing subscription:
79
+ Or sign in with an existing subscription or browser login:
71
80
 
72
81
  ```bash
73
82
  atomic
74
83
  /login # Select a provider
75
84
  ```
76
85
 
77
- By default, Atomic provides built-in coding tools (`read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, plus `powershell` on native Windows when available). `edit` performs exact-text replacement without requiring an earlier `read`; see [docs/tools.md](docs/tools.md).
86
+ By default, Atomic provides built-in coding tools (`read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, plus `powershell` on native Windows when available). `edit` performs exact-text replacement without requiring an earlier `read`. See [docs/tools.md](docs/tools.md).
78
87
 
79
88
  **Platform guides:** [Windows](docs/windows.md) | [Alpine/musl Linux](docs/getting-started/installation.md#alpine-and-musl-linux-archives) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)
80
89
 
81
90
  ---
82
91
 
83
- ## Providers & Models
92
+ <div id="providers--models"></div>
93
+
94
+ ## Providers and models
84
95
 
85
96
  Atomic ships a curated list of tool-capable models for each built-in provider. Authenticate via `/login` or an API key, then pick any model with `/model` (`Ctrl+L`).
86
97
 
87
- **Subscriptions (`/login`):**
98
+ **Subscriptions and browser logins (`/login`):**
99
+
100
+ - OpenRouter (browser PKCE, optional key minting)
88
101
  - Anthropic Claude Pro/Max
89
102
  - OpenAI ChatGPT Plus/Pro (Codex)
103
+ - OpenAI ChatGPT sign-in (`openai`)
90
104
  - GitHub Copilot
91
- - OpenRouter (browser PKCE, optional key minting)
92
- - Kimi Code (device authorization with token refresh)
105
+ - Kimi Code (device authorization with automatic token refresh)
106
+ - Meta (Muse subscription)
93
107
  - xAI (Grok/X subscription)
94
108
 
95
109
  **API keys:**
96
- Anthropic, Ant Ling, OpenAI, Azure OpenAI, DeepSeek, NVIDIA NIM, Google Gemini, Google Vertex, Amazon Bedrock, Mistral, Groq, Cerebras, Cloudflare AI Gateway, Cloudflare Workers AI, xAI, OpenRouter, Vercel AI Gateway, ZAI, ZAI Coding Plan (China), OpenCode Zen, OpenCode Go, Hugging Face, Fireworks, Together AI, Baseten, Kimi For Coding, Meta, MiniMax, MiniMax (China), Moonshot AI, Moonshot AI (China), Qwen Token Plan, Qwen Token Plan (Individual), Qwen Token Plan (China), Xiaomi MiMo, Xiaomi MiMo Token Plan (China / Amsterdam / Singapore).
110
+ Anthropic, Anthropic API (`anthropic-api`), Ant Ling, OpenAI, OpenAI API (`openai-api`), OpenAI Decisions (`openai-decisions`), OpenAI Images (`openai-images`), Azure OpenAI, DeepSeek, NVIDIA NIM, Google Gemini, Google Vertex, Amazon Bedrock, Mistral, Groq, Cerebras, Cloudflare AI Gateway, Cloudflare Workers AI, xAI, OpenRouter, Vercel AI Gateway, ZAI, ZAI Coding Plan (China), OpenCode Zen, OpenCode Go, Hugging Face, Fireworks, Together AI, Baseten, Kimi For Coding, Meta, MiniMax, MiniMax (China), Moonshot AI, Moonshot AI (China), Morph, Qwen Token Plan, Qwen Token Plan (Individual), Qwen Token Plan (China), Qwen Token Plan (Individual, China), TypeSafe, Xiaomi MiMo, Xiaomi MiMo Token Plan (China / Amsterdam / Singapore).
97
111
 
98
112
  See [docs/providers.md](docs/providers.md) for provider setup and environment variables.
99
113
 
100
- **Model runtime capabilities:**
101
- - **Constrained tool sampling:** Model-capability-aware strict JSON-schema and OpenAI Lark/regex tool sampling. Unsupported `require` constraints fail instead of silently downgrading; RPC model listings expose flags via `ModelInfo.compat`. See [extensions](docs/extensions/authoring.md#constrained-sampling) and [RPC](docs/rpc/protocol.md#get_available_models).
102
- - **Bearer auth for Anthropic:** Setting `ANTHROPIC_AUTH_TOKEN` enables Anthropic models using header-only bearer auth (no synthesized `x-api-key`) across chat and summary/compaction requests.
103
- - **Custom providers & models:** Add OpenAI-, Anthropic-, or Google-compatible providers in the active agent directory's `models.json` (normally `~/.atomic/agent/models.json`; not merged with legacy `.pi`). Supports `samplingParams`, `compat.supportsThinkingTokenBudget`, `compat.supportsFinishReason`, and persisted `llama.cpp` models. Use extensions for custom APIs or OAuth. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).
114
+ **Model capabilities and custom endpoints:**
115
+
116
+ - **Structured tool arguments:** Models that support strict JSON-schema or grammar-constrained tool calling enforce tool input schemas automatically. When a tool requires strict constraints that a model does not support, the call fails with an error instead of silently falling back. See [Extension authoring](docs/extensions/authoring.md#constrained-sampling) and [RPC protocol](docs/rpc/protocol.md#get_available_models).
117
+ - **Bearer auth for Anthropic:** Setting `ANTHROPIC_AUTH_TOKEN` authenticates Anthropic-compatible gateways with an `Authorization: Bearer` header (without sending `x-api-key`) across chat and summary requests.
118
+ - **Custom providers and models:** Add OpenAI-, Anthropic-, or Google-compatible providers in the active agent directory's `models.json` (normally `~/.atomic/agent/models.json`; not merged with legacy `.pi`). Configure custom sampling parameters, thinking token budgets, finish-reason behavior, and persisted `llama.cpp` models there, or write an extension for custom APIs and OAuth. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).
104
119
 
105
120
  ---
106
121
 
107
- ## Interactive Mode
122
+ ## Interactive mode
108
123
 
109
- <p align="center"><img src="docs/images/interactive-mode.png" alt="Interactive Mode" width="600"></p>
124
+ <p align="center"><img src="docs/images/interactive-mode.png" alt="Atomic interactive terminal UI showing the startup header, conversation messages, prompt editor, and footer status bar" width="600"></p>
110
125
 
111
126
  The fullscreen TUI has four areas from top to bottom:
112
127
 
113
- - **Startup header** — keybinding hints (`/hotkeys` for all), loaded context files, prompt templates, skills, and extensions.
114
- - **Messages** — prompts, responses, tool calls and results, notices, errors, and extension UI.
115
- - **Editor** — input box; border color reflects thinking level, and a status row shows streaming activity.
116
- - **Footer** — working directory, session name, token/cache usage, cost, context usage, and active model.
128
+ - **Startup header:** Keybinding hints (`/hotkeys` for all), loaded context files, prompt templates, skills, and extensions.
129
+ - **Messages:** Prompts, responses, tool calls and results, notices, errors, and extension UI.
130
+ - **Editor:** Input box whose border color reflects the active thinking level, with a status row showing streaming activity.
131
+ - **Footer:** Working directory, session name, token and cache usage, cost, context usage, and active model.
117
132
 
118
- [Extensions](#extensions) can replace the editor, show temporary UI (such as `/settings` or Q&A selectors), or add widgets, status lines, custom footers, and overlays.
133
+ [Extensions](#extensions) can replace the editor, show temporary dialogs (such as `/settings` or selectors), or add widgets, status lines, custom footers, and overlays.
119
134
 
120
135
  ### Editor
121
136
 
122
137
  | Feature | How |
123
138
  | --- | --- |
124
139
  | File reference | Type `@` to fuzzy-search project files |
125
- | Path completion | `Tab` to complete paths |
126
- | Multi-line | `Shift+Enter` (or `Ctrl+Enter` on Windows Terminal) |
127
- | Images | `Ctrl+V` (`Alt+V` on Windows) or drag onto terminal |
140
+ | Path completion | Press `Tab` to complete paths |
141
+ | Multi-line input | Press `Shift+Enter` or `Ctrl+J` (`Ctrl+Enter` or `Shift+Enter` on Windows Terminal) |
142
+ | Images | Press `Ctrl+V` (`Alt+V` or `Ctrl+V` on Windows and WSL) or drag onto the terminal |
128
143
  | Shell commands | `!command` runs and sends output to the model; `!!command` runs without sending output |
129
144
 
130
- See [docs/keybindings.md](docs/keybindings.md) for editing shortcuts.
145
+ See [docs/keybindings.md](docs/keybindings.md) for all editing shortcuts.
131
146
 
132
147
  ### Commands
133
148
 
134
- Type `/` in the editor to open commands. [Extensions](#extensions) register custom commands, [skills](#skills) run as `/skill:<name>`, and [prompt templates](#prompt-templates) expand as `/<template>`.
149
+ Type `/` in the editor to browse commands. [Extensions](#extensions) register custom commands, [skills](#skills) run as `/skill:<name>`, and [prompt templates](#prompt-templates) expand as `/<template>`.
150
+
151
+ **Core commands:**
135
152
 
136
153
  | Command | Description |
137
154
  | --- | --- |
138
- | `/login`, `/logout` | OAuth and API key authentication |
139
- | `/model` | Switch model and save as the startup default |
140
- | `/thinking` | Switch thinking level and save as the startup default |
155
+ | `/login [provider]`, `/logout [provider]` | Configure or remove OAuth and API key credentials |
156
+ | `/model [provider/model]` | Switch model and save as the startup default |
157
+ | `/thinking [level]` | Switch thinking level and save as the startup default |
141
158
  | `/scoped-models` | Enable or disable models for `Ctrl+P` cycling |
142
159
  | `/settings` | Edit theme, message delivery, transport, and other preferences |
143
- | `/resume` | Pick a previous session |
160
+ | `/resume [id]` | Browse and pick a past session, or open one directly |
144
161
  | `/new` | Start a new session |
145
162
  | `/name <name>` | Set the session display name |
146
- | `/session` | Show session ID, file, messages, tokens, and cost |
163
+ | `/session [snapshot]` | Show session ID, storage, messages, tokens, and cost, or inspect worktree snapshots |
147
164
  | `/tree` | Jump to any point in the session and branch from there |
148
165
  | `/fork` | Create a new session from an earlier user message |
149
166
  | `/clone` | Duplicate the active branch into a new session |
150
- | `/compact [instructions]` | Clear the context window; the agent recovers needed details from history |
167
+ | `/compact [instructions]` | Clear or compact the context window; the agent recovers needed details from history |
151
168
  | `/copy` | Copy the last assistant message to clipboard |
152
- | `/export [file]` | Export the session to HTML |
153
- | `/share` | Upload as a private GitHub gist with a shareable HTML link |
154
- | `/reload` | Reload keybindings, extensions, skills, prompts, and context files (themes hot-reload automatically) |
169
+ | `/export [file]` | Export the session to HTML (default) or `.jsonl` |
170
+ | `/import <file>` | Import and resume a session from a JSONL export |
171
+ | `/share` | Upload as a secret GitHub gist with a shareable HTML link |
172
+ | `/tools` | Show active, inactive, and missing tools |
173
+ | `/tasks` | Inspect and manage running subagents and background shells |
174
+ | `/trust` | Save the project trust decision for future sessions |
175
+ | `/reload` | Reload keybindings, extensions, skills, prompts, and context files (active custom themes hot-reload on save) |
155
176
  | `/hotkeys` | List all keyboard shortcuts |
156
177
  | `/changelog` | Show version history |
157
178
  | `/exit`, `/quit` | Exit Atomic |
158
179
 
159
- ### Keyboard Shortcuts
180
+ **Bundled extension commands:** `/agents` (browse subagents), `/mcp` (manage MCP servers), `/intercom` (open session Intercom overlay), `/websearch` (open search curator), `/curator` (toggle or configure the search curator workflow), `/search` (browse stored web search results), `/google-account` (show the active Google account for Gemini Web), and `/llama` (manage `llama.cpp` router models).
181
+
182
+ ### Keyboard shortcuts
160
183
 
161
- Run `/hotkeys` for the full list. Customize in `~/.atomic/agent/keybindings.json` (or under `ATOMIC_CODING_AGENT_DIR`). See [docs/keybindings.md](docs/keybindings.md).
184
+ Run `/hotkeys` for the full list. Customize bindings in `~/.atomic/agent/keybindings.json` (or under `ATOMIC_CODING_AGENT_DIR`). See [docs/keybindings.md](docs/keybindings.md).
162
185
 
163
186
  | Key | Action |
164
187
  | --- | --- |
@@ -167,22 +190,22 @@ Run `/hotkeys` for the full list. Customize in `~/.atomic/agent/keybindings.json
167
190
  | `Escape` | Abort active work and hold queued messages |
168
191
  | `Escape` twice | Open `/tree` |
169
192
  | `Ctrl+L` | Open model selector |
170
- | `Ctrl+P` / `Shift+Ctrl+P` | Cycle scoped models forward / backward |
193
+ | `Ctrl+P` / `Shift+Ctrl+P` (`Alt+P` on Windows/WSL) | Cycle scoped models forward / backward |
171
194
  | `Shift+Tab` | Cycle thinking level |
172
195
  | `Ctrl+O` | Collapse or expand tool output |
173
196
  | `Ctrl+T` | Collapse or expand thinking blocks |
174
197
  | `Ctrl+G` | Open the current editor buffer in your external editor |
175
198
 
176
- ### Message Queue
199
+ ### Message queue
177
200
 
178
201
  Send messages while the agent is still working:
179
202
 
180
- - **`Enter`** queues a *steering* message, delivered after the current turn's tool calls finish.
181
- - **`Alt+Enter`** queues a *follow-up* message, delivered after the agent finishes all work. (On Windows Terminal, remap `Alt+Enter` from fullscreen first; see [docs/terminal-setup.md](docs/terminal-setup.md).)
203
+ - **`Enter`** queues a steering message, delivered after the current turn's tool calls finish.
204
+ - **`Alt+Enter`** on macOS/Linux or **`Ctrl+Q`** on Windows and WSL queues a follow-up message, delivered after the agent finishes all work.
182
205
  - **`Escape`** or **`Ctrl+C`** aborts active work and pauses queued messages in place. Sending the next regular message resumes held messages once in order. While idle, `Ctrl+C` clears the editor and a second quick press quits without releasing held messages.
183
- - **`Alt+Up`** pulls queued messages back into the editor instead of resuming them.
206
+ - **`Alt+Up`** on macOS/Linux or **`Alt+Q`** on Windows and WSL pulls queued messages back into the editor instead of resuming them.
184
207
 
185
- Configure `steeringMode` and `followUpMode` (`"one-at-a-time"` default, or `"all"`) and `transport` (`"sse"`, `"websocket"`, `"websocket-cached"`, `"auto"`) in [settings](docs/settings.md).
208
+ Configure `steeringMode` and `followUpMode` (`"one-at-a-time"` default, or `"all"`) and `transport` (`"sse"`, `"websocket"`, `"websocket-cached"`, `"auto"`) in [docs/settings.md](docs/settings.md).
186
209
 
187
210
  ---
188
211
 
@@ -192,7 +215,7 @@ Sessions store an append-only tree of entries (`id` and `parentId`), enabling in
192
215
 
193
216
  ### Management
194
217
 
195
- Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`; legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable).
218
+ Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`). Legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable.
196
219
 
197
220
  ```bash
198
221
  atomic -c # Continue the most recent session
@@ -209,29 +232,29 @@ Run `/session` interactively to copy the current session ID for `--session`, `--
209
232
 
210
233
  ### Branching
211
234
 
212
- - **`/tree`** — Jump to any earlier entry and continue on a new branch without creating a new session.
213
- - Type to search, `Ctrl+←`/`Ctrl+→` or `Alt+←`/`Alt+→` to fold/jump branches, `←`/`→` to page.
214
- - `Ctrl+O` cycles filters (`default` → `no-tools` → `user-only` → `labeled-only` → `all`).
235
+ - **`/tree`:** Jump to any earlier entry and continue on a new branch without creating a new session.
236
+ - Type to search, `Ctrl+Left`/`Ctrl+Right` or `Alt+Left`/`Alt+Right` to fold or jump branches, `Left`/`Right` to page.
237
+ - `Ctrl+O` cycles filters in order: `default`, `no-tools`, `user-only`, `labeled-only`, and `all`.
215
238
  - `Shift+L` bookmarks an entry with a label; `Shift+T` toggles label timestamps.
216
- - **`/fork`** — Pick an earlier user message on the active branch, copy the path up to it into a new session, and load that prompt into the editor.
217
- - **`/clone`** — Duplicate the full active branch into a new session at the current point.
218
- - **`--fork <id|prefix>`** — Fork an existing session from the CLI into the current project.
239
+ - **`/fork`:** Pick an earlier user message on the active branch, copy the path up to it into a new session, and load that prompt into the editor.
240
+ - **`/clone`:** Duplicate the full active branch into a new session at the current point.
241
+ - **`--fork <id|prefix>`:** Fork an existing session from the CLI into the current project.
219
242
 
220
- <p align="center"><img src="docs/images/tree-view.png" alt="Tree View" width="600"></p>
243
+ <p align="center"><img src="docs/images/tree-view.png" alt="Atomic interactive session tree view displaying branched turns, bookmarks, and filter options" width="600"></p>
221
244
 
222
245
  ### Compaction
223
246
 
224
247
  When a session approaches the context limit, compaction clears the active context window without a model call by default. Atomic leaves a recovery pointer telling the agent where earlier history lives and what to recover first (`<keepContext>` spans, requests, and constraints) using `read` and `search`. Setting `compactionModel` (such as `morph/morph-compactor`) replaces the context with that model's summary instead.
225
248
 
226
- - **Manual:** `/compact [instructions]` (instructions guide what the agent recovers first).
249
+ - **Manual:** Run `/compact [instructions]` (instructions guide what the agent recovers first).
227
250
  - **Automatic:** Enabled by default on context overflow (compacts and retries once) or near the limit. Configure in `/settings` or `settings.json`.
228
251
  - **Full history stays intact:** Use `/tree` to revisit earlier entries. See [docs/compaction.md](docs/compaction.md).
229
252
 
230
- Extensions can hide or replace an earlier message for future model turns using `context_edit` without altering raw history or usage records (Atomic uses the same mechanism when retrying a failed attempt):
253
+ Extensions can hide or replace an earlier message for future model turns using `context_edit` without altering raw history or usage records:
231
254
 
232
255
  ```typescript
233
- const assistantId = sessionManager.appendMessage(partialAssistant);
234
- sessionManager.appendContextEdit(assistantId, null); // Omitted from model context, kept in history.
256
+ const assistantId = await sessionManager.appendMessage(partialAssistant);
257
+ await sessionManager.appendContextEdit(assistantId, null); // Omitted from model context, kept in history.
235
258
  ```
236
259
 
237
260
  ---
@@ -247,21 +270,33 @@ Use `/settings` interactively, or edit JSON files directly:
247
270
 
248
271
  See [docs/settings.md](docs/settings.md) for every option and default.
249
272
 
273
+ ### Model scoping with enabledModels
274
+
275
+ Set `enabledModels` in `settings.json` (or pass `--models <patterns>` on the CLI) to limit the models cycled with `Ctrl+P` and restrict which models subagents can choose.
276
+
277
+ - **Exact matches:** `provider/model-id` (for example `anthropic/claude-sonnet-4-6`) matches that model directly, case-insensitively.
278
+ - **Glob patterns:** Entries containing `*`, `?`, or `[...]` match against both `provider/id` and the bare model ID (for example `anthropic/claude-*` or `*:high`).
279
+ - **Fuzzy matching:** Entries without glob characters that do not match an exact ID fall back to substring matching across available models.
280
+ - **Thinking suffixes:** Append `:off`, `:minimal`, `:low`, `:medium`, `:high`, `:xhigh`, or `:max` (case-insensitive) to pin a thinking level for that entry.
281
+ - **Interactive behavior:** Saving selections in `/scoped-models` writes exact `provider/id` entries. Picking an out-of-scope model with `/model` automatically appends it to global `enabledModels`.
282
+
283
+ See [docs/settings.md](docs/settings.md) for full precedence, deduplication, and `fallbackModels` details.
284
+
250
285
  ### Telemetry and update checks
251
286
 
252
287
  Atomic runs two independent startup network checks:
253
288
 
254
289
  - **Update check:** Checks for a newer Atomic release. Disable with `ATOMIC_SKIP_VERSION_CHECK=1` (legacy `PI_SKIP_VERSION_CHECK=1`).
255
- - **Version-adoption telemetry:** Measures whether releases reach real interactive launches and which versions stay in use. The metric is version-adoption pings / first-interactive-launch pings, not installs, users, MAU, or retention. Repeated eligible launches on several machines overcount. Opt-outs, offline mode, and dropped best-effort requests undercount. Sends one bodyless `GET` request to `https://atomic-version-adoption.bastani-atomic.workers.dev/v1/version-adoption?version=<version>` with the standard `atomic/<version> (<platform>; <runtime>; <arch>)` User-Agent (no UUID, cookie, auth header, or user data).
290
+ - **Version-adoption telemetry:** Measures whether releases reach real interactive launches and which versions stay in use. The metric is version-adoption pings and first-interactive-launch pings, not installs, users, MAU, or retention. Repeated eligible launches on several machines overcount; opt-outs, offline mode, and dropped best-effort requests undercount. Atomic sends one bodyless `GET` request to `https://atomic-version-adoption.bastani-atomic.workers.dev/v1/version-adoption?version=<version>` with the standard `atomic/<version> (<platform>; <runtime>; <arch>)` User-Agent (no UUID, cookie, auth header, or user data).
256
291
  - **When it fires:** Interactive mode only, and only on the first launch with fresh settings or the first launch after upgrading to a version with changelog entries. Never on every launch, npm install, reinstall keeping settings, or `-p`/RPC modes.
257
- - **What is stored:** Atomic stores only UTC date, version, and an aggregate count, retained as aggregates. Cloudflare, the hosting provider, necessarily processes transient connection metadata (IP, TLS) to serve the request. That is not a promise of platform-wide zero logging.
258
- - **Opt out:** Set `"enableInstallTelemetry": false` in `settings.json` or `ATOMIC_TELEMETRY=0` (`PI_TELEMETRY=0`). Set `ATOMIC_TELEMETRY=1`/`true`/`yes` to force on. Does not affect update checks.
292
+ - **What is stored:** Atomic stores only UTC date, version, and an aggregate count. Cloudflare, the hosting provider, processes transient connection metadata (IP, TLS) to serve the request.
293
+ - **Opt out:** Set `"enableInstallTelemetry": false` in `settings.json` or `ATOMIC_TELEMETRY=0` (`PI_TELEMETRY=0`). Set `ATOMIC_TELEMETRY=1`/`true`/`yes` to force on. This setting does not affect update checks.
259
294
 
260
- Pass `--offline` or set `ATOMIC_OFFLINE=1` (`PI_OFFLINE=1`) to disable all startup network calls (update checks, package update checks, and version-adoption telemetry).
295
+ Pass `--offline` or set `ATOMIC_OFFLINE=1` (`PI_OFFLINE=1`) to disable all startup network calls (update checks, package update checks, and version-adoption telemetry). Setting `ATOMIC_OFFLINE=0` or `false` keeps Atomic online.
261
296
 
262
297
  ---
263
298
 
264
- ## Context Files
299
+ ## Context files
265
300
 
266
301
  At startup, Atomic loads `AGENTS.override.md`, `AGENTS.md`, or `CLAUDE.md` from:
267
302
 
@@ -269,49 +304,55 @@ At startup, Atomic loads `AGENTS.override.md`, `AGENTS.md`, or `CLAUDE.md` from:
269
304
  2. Parent directories walking down to the current directory
270
305
  3. The current directory
271
306
 
272
- Within a directory, `AGENTS.override.md` replaces `AGENTS.md` and `CLAUDE.md`; files from different directories concatenate. Disable with `--no-context-files` (`-nc`).
307
+ Within a directory, `AGENTS.override.md` replaces `AGENTS.md` and `CLAUDE.md`. Files from different directories concatenate. Disable with `--no-context-files` (`-nc`).
273
308
 
274
- ### System Prompt
309
+ ### System prompt
275
310
 
276
- Replace the default system prompt with `.atomic/SYSTEM.md` (project) or `~/.atomic/agent/SYSTEM.md` (global); append with `APPEND_SYSTEM.md` (legacy `.pi/` paths also work).
311
+ Replace the default system prompt with `.atomic/SYSTEM.md` (project) or `~/.atomic/agent/SYSTEM.md` (global). Append to it with `APPEND_SYSTEM.md` (legacy `.pi/` paths also work).
277
312
 
278
313
  ---
279
314
 
280
315
  ## Customization
281
316
 
282
- ### Prompt Templates
317
+ ### Prompt templates
283
318
 
284
- Save reusable Markdown prompts in `~/.atomic/agent/prompts/`, `.atomic/prompts/` (legacy `.pi/` paths work), or an [Atomic package](#atomic-packages). Expand them with `/<name>`:
319
+ Save reusable Markdown prompts in `~/.atomic/agent/prompts/`, `.atomic/prompts/` (legacy `.pi/` paths work), or an [Atomic package](#atomic-packages). Expand them with `/<name>` using positional arguments (`$1`, `$2`, `$@`, `$ARGUMENTS`, or defaults like `${1:-correctness}`):
285
320
 
286
321
  ```markdown
287
322
  <!-- ~/.atomic/agent/prompts/review.md -->
288
323
  Review this code for bugs, security issues, and performance problems.
289
- Focus on: {{focus}}
324
+ Focus on: ${1:-correctness}
325
+ Additional context: $ARGUMENTS
290
326
  ```
291
327
 
292
328
  See [docs/prompt-templates.md](docs/prompt-templates.md).
293
329
 
294
330
  ### Skills
295
331
 
296
- On-demand capability packages following the [Agent Skills standard](https://agentskills.io). Trigger with `/skill:<name>` or let the agent load them automatically:
332
+ Skills are on-demand capability packages following the [Agent Skills standard](https://agentskills.io). Trigger a skill with `/skill:<name>` or let the agent load it automatically from its description. Every `SKILL.md` requires YAML frontmatter with `name` and a non-empty `description`:
297
333
 
298
334
  ```markdown
299
- <!-- ~/.atomic/agent/skills/my-skill/SKILL.md -->
300
- # My Skill
301
- Use this skill when the user asks about X.
335
+ ---
336
+ name: my-skill
337
+ description: Use this skill when the user asks about X.
338
+ ---
339
+
340
+ # My skill
302
341
 
303
342
  ## Steps
304
343
  1. Do this
305
344
  2. Then that
306
345
  ```
307
346
 
308
- Discovered from `~/.atomic/agent/skills/`, `~/.agents/skills/`, `.atomic/skills/`, `.agents/skills/` (walking up from `cwd`), legacy `.pi/skills/`, and [Atomic packages](#atomic-packages). See [docs/skills.md](docs/skills.md).
347
+ Skills are discovered from `~/.atomic/agent/skills/`, `~/.agents/skills/`, `.atomic/skills/`, `.agents/skills/` (walking up from `cwd`), legacy `.pi/skills/`, and [Atomic packages](#atomic-packages). See [docs/skills.md](docs/skills.md).
309
348
 
310
349
  ### Extensions
311
350
 
312
- TypeScript modules that register tools, commands, keybindings, event handlers, and custom TUI components:
351
+ Extensions are TypeScript modules that register tools, commands, keybindings, event handlers, and custom TUI components:
313
352
 
314
353
  ```typescript
354
+ import type { ExtensionAPI } from "@bastani/atomic";
355
+
315
356
  export default function (atomic: ExtensionAPI) {
316
357
  atomic.registerTool({ name: "deploy", ... });
317
358
  atomic.registerCommand("stats", { ... });
@@ -319,42 +360,19 @@ export default function (atomic: ExtensionAPI) {
319
360
  }
320
361
  ```
321
362
 
322
- The default export may be `async`; Atomic awaits it before continuing startup (for example to fetch a remote model list before `atomic.registerProvider()`). The factory parameter can have any name; older extensions and examples call it `pi`.
363
+ The default export may be `async`; Atomic awaits it before continuing startup (for example, to fetch a remote model list before calling `atomic.registerProvider()`). The factory parameter can have any name; older extensions and examples call it `pi`.
323
364
 
324
- `turn_end` and `agent_before_settle` handlers can append structural entries and request a one-shot continuation (later handlers see earlier proposals; error and aborted turns always exit):
325
-
326
- ```typescript
327
- let replacedResponse = false;
328
- atomic.on("turn_end", (event) => {
329
- if (replacedResponse || event.outcome !== "completed" || event.toolResults.length > 0) return;
330
- replacedResponse = true;
331
- return {
332
- entries: [
333
- ...event.entries,
334
- { type: "context_edit", targetId: event.messageEntryId, replacement: null },
335
- {
336
- type: "custom_message",
337
- customType: "replacement-instruction",
338
- content: "Answer again using the persisted user request.",
339
- display: false,
340
- },
341
- ],
342
- continue: true,
343
- };
344
- });
345
- ```
346
-
347
- Always guard `continue: true` so it cannot loop indefinitely. Use `agent_before_settle` for final checks after retries, compaction, and queued input finish. See [docs/extensions/events.md](docs/extensions/events.md#agent_start-/-agent_end-/-agent_before_settle-/-agent_settled).
365
+ `turn_end` and `agent_before_settle` handlers can append structural entries and request a one-shot continuation (always guard `continue: true` so it cannot loop indefinitely; error and aborted turns always exit). See [Extension events](docs/extensions/events.md#agent_start--agent_end--agent_before_settle--agent_settled).
348
366
 
349
367
  Place extensions in `~/.atomic/agent/extensions/`, `.atomic/extensions/` (legacy `.pi/` paths work), or an [Atomic package](#atomic-packages). See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).
350
368
 
351
369
  ### Themes
352
370
 
353
- Built-in themes: `dark`, `light`, `catppuccin-frappe`, `catppuccin-latte`, `catppuccin-macchiato`, and `catppuccin-mocha`. Active custom themes hot-reload on save.
371
+ Built-in themes: `dark`, `light`, `catppuccin-frappe`, `catppuccin-latte`, `catppuccin-macchiato`, and `catppuccin-mocha`. Active custom themes watch their file path and hot-reload automatically on save (including project, package, `--theme`, and renamed themes).
354
372
 
355
373
  Place custom themes in `~/.atomic/agent/themes/`, `.atomic/themes/` (legacy `.pi/` paths work), or an [Atomic package](#atomic-packages). See [docs/themes.md](docs/themes.md).
356
374
 
357
- ### Atomic Packages
375
+ ### Atomic packages
358
376
 
359
377
  Share extensions, skills, prompts, themes, subagent definitions, MCP servers, and storage adapters via npm or git. Browse packages on [npmjs.com](https://www.npmjs.com/search?q=keywords%3Aatomic-package) or [Discord](https://discord.com/channels/1456806362351669492/1457744485428629628).
360
378
 
@@ -376,12 +394,12 @@ atomic update --extensions # Update packages only
376
394
  atomic update --models # Force-refresh model catalogs
377
395
  atomic update --self --force # Reinstall Atomic even if current
378
396
  atomic update npm:@foo/atomic-tools # Update one package
379
- atomic config # Enable/disable resources
397
+ atomic config [-l] # Enable/disable resources
380
398
  ```
381
399
 
382
400
  - Pass `-l` for project-local installs (`.atomic/git/`, `.atomic/npm/`; global git installs go to `~/.atomic/agent/git/`).
383
- - Pinned `@ref` git packages are skipped by `atomic update --extensions` / `--all`; run `atomic install git:host/user/repo@new-ref` to move to a new ref.
384
- - Git packages run `npm install --omit=dev` (put runtime packages in `dependencies`). Set `npmCommand` in `settings.json` (for example `["mise", "exec", "node@20", "--", "npm"]`) to pin an npm wrapper; custom `npmCommand` runs plain `install`.
401
+ - Pinned `@ref` git packages are skipped by `atomic update --extensions` and `--all`. Run `atomic install git:host/user/repo@new-ref` to move to a new ref.
402
+ - Git packages install runtime dependencies automatically: `npm` runs `install --omit=dev --legacy-peer-deps --no-audit --no-fund`, `bun` runs `install --omit=dev --omit=peer`, and `pnpm` runs `install --prod ...`. Set `npmCommand` in `settings.json` (for example `["mise", "exec", "node@20", "--", "npm"]`) to wrap a package manager; Atomic detects the underlying `npm`, `bun`, or `pnpm` command and only falls back to plain `install` for unrecognized package managers.
385
403
 
386
404
  Declare resources under the `atomic` key in `package.json` (legacy `pi` key is still accepted), or rely on convention directories (`extensions/`, `skills/`, `prompts/`, `themes/`):
387
405
 
@@ -402,7 +420,7 @@ See [docs/packages.md](docs/packages.md).
402
420
 
403
421
  ---
404
422
 
405
- ## Programmatic Usage
423
+ ## Programmatic usage
406
424
 
407
425
  ### SDK
408
426
 
@@ -419,7 +437,7 @@ await session.prompt("What files are in the current directory?");
419
437
 
420
438
  For multi-session runtime replacement, use `createAgentSessionRuntime()` and `AgentSessionRuntime`. See [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).
421
439
 
422
- ### RPC Mode
440
+ ### RPC mode
423
441
 
424
442
  Integrate from any language over stdin/stdout:
425
443
 
@@ -427,7 +445,7 @@ Integrate from any language over stdin/stdout:
427
445
  atomic --mode rpc
428
446
  ```
429
447
 
430
- RPC uses strict LF-delimited JSONL framing. Split records on `\n` only—avoid line readers like Node `readline` that also split on Unicode line separators inside JSON payloads. See [docs/rpc.md](docs/rpc.md).
448
+ RPC uses strict LF-delimited JSONL framing. Split records on `\n` only, and avoid line readers like Node `readline` that also split on Unicode line separators inside JSON payloads. See [docs/rpc.md](docs/rpc.md).
431
449
 
432
450
  ---
433
451
 
@@ -435,22 +453,23 @@ RPC uses strict LF-delimited JSONL framing. Split records on `\n` only—avoid l
435
453
 
436
454
  Atomic pairs a small, extensible core with bundled first-party integrations for common engineering workflows:
437
455
 
438
- - **Extensible core:** Swap tools, UI components, providers, and workflows through [extensions](#extensions), [skills](#skills), and [Atomic packages](#atomic-packages).
456
+ - **Extensible core:** Swap tools, UI components, providers, and procedures through [extensions](#extensions), [skills](#skills), and [Atomic packages](#atomic-packages).
439
457
  - **Bundled integrations:** Subagents, MCP, web access, and Intercom ship as packaged extensions so they remain configurable and replaceable.
440
458
  - **Explicit security:** Control trust per project with `/trust`, isolate execution in containers, or add custom confirmation hooks via extensions.
441
459
  - **Composable task execution:** Combine codemode scripts, subagents, background tasks (`/tasks`), and file-based todos rather than locking into one rigid pipeline.
442
460
 
443
461
  ---
444
462
 
445
- ## CLI Reference
463
+ ## CLI reference
446
464
 
447
465
  ```bash
448
466
  atomic [options] [--] [@files...] [messages...]
449
467
  ```
450
468
 
451
- ### Package Commands
469
+ ### Subcommands
452
470
 
453
471
  ```bash
472
+ # Packages and resources
454
473
  atomic install <source> [-l] # Install package (-l for project-local)
455
474
  atomic remove <source> [-l] # Remove package (alias: uninstall)
456
475
  atomic update [source|self|atomic] # Update Atomic or one package
@@ -461,31 +480,43 @@ atomic update --self # Update Atomic only
461
480
  atomic update --self --force # Reinstall Atomic even if current
462
481
  atomic update --extension <src> # Update one package
463
482
  atomic list # List installed packages
464
- atomic config # Enable/disable package resources
483
+ atomic config [-l] # Enable/disable package resources
484
+
485
+ # Credentials, integrations, and storage
486
+ atomic auth <login|logout|check|print-api-key|print-bearer-token>
487
+ atomic mcp <add|remove|list|login|logout>
488
+ atomic storage <status|join|migrate|move-snapshot-chunks|search-session|export|import>
489
+ atomic team <join|status|leave>
490
+ atomic intercom <status|restart|upgrade>
491
+ atomic blueprint <cache-key|prebuild>
465
492
  ```
466
493
 
494
+ Run `atomic <command> --help` for full subcommand options, or see [docs/reference/cli.md](docs/reference/cli.md).
495
+
467
496
  ### Modes
468
497
 
469
498
  | Flag | Description |
470
499
  | --- | --- |
471
500
  | *(default)* | Interactive fullscreen TUI |
472
- | `-p`, `--print` | Print response and exit (also merges piped stdin into the initial prompt) |
501
+ | `-p`, `--print` | Print response and exit (merges piped stdin separated by a newline from prompt text) |
473
502
  | `--mode json` | Stream events as JSON lines ([docs/json.md](docs/json.md)) |
474
503
  | `--mode rpc` | JSON-RPC over stdin/stdout ([docs/rpc.md](docs/rpc.md)) |
475
504
  | `--export <in> [out]` | Export a session to HTML |
476
505
 
477
- ### Model Options
506
+ ### Model options
478
507
 
479
508
  | Option | Description |
480
509
  | --- | --- |
481
- | `--provider <name>` | Select provider (`anthropic`, `openai`, `google`, etc.) |
482
- | `--model <pattern>` | Model ID or pattern (supports `provider/id` and `:<thinking>`) |
510
+ | `--provider <name>` | Provider to search for `--model` (requires `--model`) |
511
+ | `--model <pattern>` | Model ID or pattern (supports `provider/id` and case-insensitive `:<thinking>`) |
483
512
  | `--api-key <key>` | API key override |
484
513
  | `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max` |
485
- | `--models <patterns>` | Comma-separated patterns for `Ctrl+P` cycling |
514
+ | `--models <patterns>` | Comma-separated patterns for `Ctrl+P` cycling (globs and fuzzy matching) |
515
+ | `--fallback-models <models>` | Comma-separated `provider/model[:thinking]` IDs to fall back to in order for this run |
516
+ | `--no-fallback` | Disable automatic model fallback for this run |
486
517
  | `--list-models [search]` | List available models |
487
518
 
488
- ### Session Options
519
+ ### Session and storage options
489
520
 
490
521
  | Option | Description |
491
522
  | --- | --- |
@@ -495,59 +526,66 @@ atomic config # Enable/disable package resources
495
526
  | `--import <file>` | Import a format-4 JSONL export into storage |
496
527
  | `--session-id <id>` | Open or create an exact project session ID |
497
528
  | `--fork <id\|prefix>` | Fork by exact ID or unique 8-hex UUID prefix |
498
- | `--session-dir <dir>` | Custom session storage directory |
529
+ | `--session-dir <dir>` | Select JSONL session storage and lookup directory |
530
+ | `--session-store <path>` | Select a SQLite session database |
531
+ | `--session-prefix <prefix>` | Table prefix for `--session-store` (default: empty) |
532
+ | `--storage <json>` | Shared storage selection JSON for this process (never saved) |
533
+ | `--storage-file <path>` | Read the `--storage` JSON selection from a file |
499
534
  | `--name <name>`, `-n <name>` | Set session display name |
500
535
  | `--no-session` | No resumable session ([released history may use disk](docs/sessions.md)) |
501
536
 
502
- ### Tool Options
537
+ ### Tool options
503
538
 
504
539
  | Option | Description |
505
540
  | --- | --- |
506
- | `--tools <list>`, `-t <list>` | Allowlist tool names (built-in, extension, custom); ordinary `intercom` remains available |
507
- | `--exclude-tools <list>`, `-xt <list>` | Denylist tool names; ordinary `intercom` cannot be excluded |
508
- | `--no-builtin-tools`, `-nbt` | Disable built-in tools while keeping extension/custom tools |
509
- | `--no-tools`, `-nt` | Disable all tools except ordinary `intercom` |
541
+ | `--tools <list>`, `-t <list>` | Comma-separated allowlist of tool names or `*` patterns (built-in, extension, custom). Keeps MCP tools unless an entry starts with `mcp__`. Only `+name`/`-name` entries modify the default selection. Intercom follows the allowlist and exclusions. |
542
+ | `--exclude-tools <list>`, `-xt <list>` | Comma-separated denylist of tool names or `*` patterns, including MCP tools and Intercom |
543
+ | `--no-builtin-tools`, `-nbt` | Disable built-in tools by default while keeping extension and custom tools enabled |
544
+ | `--no-tools`, `-nt` | Disable every tool, including Intercom, even when `--tools` is also passed |
510
545
 
511
546
  Default built-in tools: `read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, plus `powershell` on native Windows when available. See [docs/tools.md](docs/tools.md).
512
547
 
513
- ### Project Trust Options
548
+ ### Project trust options
514
549
 
515
550
  | Option | Description |
516
551
  | --- | --- |
517
552
  | `--approve`, `-a` | Trust project-local resources for this run |
518
553
  | `--no-approve`, `-na` | Ignore project-local resources for this run |
519
554
 
520
- Project trust gates `.atomic`/`.pi` resources, project settings, project context files, and project `.agents/skills`. Manage saved decisions with `/trust`; see [docs/security.md](docs/security.md).
555
+ Project trust gates `.atomic`/`.pi` resources, project settings, project context files, and project `.agents/skills`. Manage saved decisions with `/trust`. See [docs/security.md](docs/security.md).
521
556
 
522
- ### Resource Options
557
+ ### Resource options
523
558
 
524
559
  | Option | Description |
525
560
  | --- | --- |
526
561
  | `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |
527
- | `--no-extensions`, `-ne` | Disable optional extension discovery (Intercom stays loaded) |
562
+ | `--no-extensions`, `-ne` | Disable optional extension discovery (bundled Intercom stays loaded) |
563
+ | `--no-mcp` | Disable built-in MCP support for this run |
528
564
  | `--skill <path>` | Load skill (repeatable) |
529
565
  | `--no-skills`, `-ns` | Disable skill discovery |
530
566
  | `--prompt-template <path>` | Load prompt template (repeatable) |
531
567
  | `--no-prompt-templates`, `-np` | Disable prompt template discovery |
532
568
  | `--theme <path>` | Load theme (repeatable) |
569
+ | `--use-theme <name[/name]>` | Set the interactive theme for this run without saving it |
533
570
  | `--no-themes` | Disable theme discovery |
534
571
  | `--no-context-files`, `-nc` | Disable context-file loading |
535
572
 
536
- Combine `--no-*` with explicit flags to override `settings.json` (for example `--no-extensions -e ./my-ext.ts`).
573
+ Combine `--no-*` with explicit flags to override `settings.json` (for example, `--no-extensions -e ./my-ext.ts`).
537
574
 
538
- ### Other Options
575
+ ### Other options
539
576
 
540
577
  | Option | Description |
541
578
  | --- | --- |
542
579
  | `--system-prompt <text>` | Replace default system prompt (context files and skills still append) |
543
- | `--append-system-prompt <text>` | Append to system prompt |
580
+ | `--append-system-prompt <text>` | Append text or file contents to the system prompt (repeatable) |
544
581
  | `--offline` | Disable startup network operations (update checks, package updates, telemetry) |
582
+ | `--debug` | Turn on debug mode for this run (same as `ATOMIC_DEBUG=1`) |
545
583
  | `--verbose` | Force verbose startup |
546
584
  | `--` | Stop option parsing; remaining args are prompts or `@file` inputs |
547
585
  | `-h`, `--help` | Show help |
548
586
  | `-v`, `--version` | Show version |
549
587
 
550
- ### File Arguments
588
+ ### File arguments
551
589
 
552
590
  Prefix files with `@` to attach them to the prompt:
553
591
 
@@ -571,28 +609,41 @@ atomic --tools read,search,find -p "Review the code" # Read-only mode
571
609
  atomic --thinking high "Solve this complex problem" # Explicit thinking level
572
610
  ```
573
611
 
574
- ### Environment Variables
612
+ ### Environment variables
613
+
614
+ When both an `ATOMIC_*` variable and its legacy `PI_*` alias are set, the `ATOMIC_*` variable takes precedence. See [docs/environment-variables.md](docs/environment-variables.md) for the complete reference.
575
615
 
576
616
  | Variable | Description |
577
617
  | --- | --- |
578
- | `AI_AGENT` | Set to `atomic` by CLI, RPC, binary entry points, and Atomic-owned child processes so tooling can identify them (caller env object is not mutated). |
618
+ | `AI_AGENT` | Set to `atomic` by CLI, RPC, binary entry points, and Atomic-owned child processes so tooling can identify them (the caller environment object is not mutated). |
579
619
  | `ATOMIC_CODING_AGENT_DIR` | Override config directory (default `~/.atomic/agent`; legacy `PI_CODING_AGENT_DIR`). |
580
- | `ATOMIC_CODING_AGENT_SESSION_DIR` | Override session directory (overridden by `--session-dir`; legacy `PI_CODING_AGENT_SESSION_DIR`). |
620
+ | `ATOMIC_CODING_AGENT_SESSION_DIR` | Non-empty value selects a JSONL session directory (overridden by `--session-dir` and `--no-session`; no legacy `PI_*` alias). |
621
+ | `ATOMIC_STORAGE` | Shared storage selection JSON for sessions and Intercom. |
622
+ | `ATOMIC_SESSIONS_STORAGE` | Session-only storage selection JSON (conflicts with `ATOMIC_CODING_AGENT_SESSION_DIR`). |
623
+ | `ATOMIC_PROFILE` | Set to `ci` to select the team database from `ATOMIC_TEAM_*` without writing settings. |
624
+ | `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX` | Team database settings used with `ATOMIC_PROFILE=ci`. |
581
625
  | `ATOMIC_PACKAGE_DIR` | Override package directory (for Nix/Guix store paths; legacy `PI_PACKAGE_DIR`). |
582
- | `ATOMIC_OFFLINE` | Disable startup network calls (legacy `PI_OFFLINE`). |
626
+ | `ATOMIC_OFFLINE` | Set to `1`, `true`, or `yes` to disable startup network calls (`0`/`false` stays online; legacy `PI_OFFLINE`). |
583
627
  | `ATOMIC_SKIP_VERSION_CHECK` | Skip startup version check (legacy `PI_SKIP_VERSION_CHECK`). |
628
+ | `ATOMIC_SELF_UPDATE_COMMAND` | Custom command for `atomic update` self-updates (legacy `PI_SELF_UPDATE_COMMAND`). |
584
629
  | `ATOMIC_TELEMETRY` | Override version-adoption pings (`1`/`true`/`yes` or `0`/`false`/`no`; legacy `PI_TELEMETRY`). |
630
+ | `ATOMIC_DEBUG` | Set to `1` to enable debug mode for this run (legacy `PI_DEBUG`). |
585
631
  | `ATOMIC_REDUCED_MOTION` | Set to `1` to skip startup animations and use a static working indicator. |
586
- | `ATOMIC_NO_PTY` | Set to `1` to disable PTY allocation for bash commands (legacy `PI_NO_PTY`). |
632
+ | `ATOMIC_NO_PTY` | Set to `1` to disable PTY allocation for `bash` and `powershell` commands (legacy `PI_NO_PTY`). |
633
+ | `ATOMIC_CACHE_RETENTION` | Provider prompt-cache retention (`long` default, `short`, or `none`; legacy `PI_CACHE_RETENTION`). |
634
+ | `ATOMIC_OAUTH_CALLBACK_HOST` | Bind host for the local OAuth callback server during `/login` (default `127.0.0.1`; legacy `PI_OAUTH_CALLBACK_HOST`). |
635
+ | `ATOMIC_SHARE_VIEWER_URL` | Base URL for `/share` links (default `https://bastani.ai/session/`; legacy `PI_SHARE_VIEWER_URL`). |
636
+ | `ATOMIC_STDIN_TIMEOUT_MS` | Print-mode wait in milliseconds for piped stdin before starting (default `2000`; `0` waits until EOF; legacy `PI_STDIN_TIMEOUT_MS`). |
637
+ | `ATOMIC_TOOL_ABORT_GRACE_MS` | Grace period in milliseconds for an interrupted tool call before moving on (default `10000`). |
638
+ | `ATOMIC_HEAP_MB` | Node heap limit in MiB for the agent process (`0` keeps Node's default; legacy `PI_HEAP_MB`). |
587
639
  | `NODE_COMPILE_CACHE` | Override Node's compile-cache directory (`NODE_DISABLE_COMPILE_CACHE=1` disables it). |
588
- | `PI_CACHE_RETENTION` | Provider prompt-cache retention knob (`long` where supported; no `ATOMIC_*` alias). |
589
640
  | `VISUAL`, `EDITOR` | External editor opened by `Ctrl+G`. |
590
641
 
591
642
  Shell commands (`bash` and `powershell`) receive an execution-time session snapshot in `ATOMIC_SESSION_ID`, `ATOMIC_PROVIDER`, `ATOMIC_MODEL`, and `ATOMIC_REASONING_LEVEL` (with matching `PI_*` aliases). Session file paths are not exposed, and other environment variables pass through unchanged.
592
643
 
593
644
  ---
594
645
 
595
- ## Contributing & Development
646
+ ## Contributing and development
596
647
 
597
648
  See [CONTRIBUTING.md](https://github.com/bastani-inc/atomic/blob/main/CONTRIBUTING.md) and [docs/development.md](docs/development.md).
598
649
 
@@ -600,8 +651,13 @@ See [CONTRIBUTING.md](https://github.com/bastani-inc/atomic/blob/main/CONTRIBUTI
600
651
 
601
652
  MIT
602
653
 
603
- ## See Also
654
+ ## See also
604
655
 
605
- - [@bastani/atomic-ai](https://www.npmjs.com/package/@bastani/atomic-ai): Core LLM toolkit
606
- - [@bastani/atomic-agent-core](https://www.npmjs.com/package/@bastani/atomic-agent-core): Agent framework
607
- - [@bastani/atomic-tui](https://www.npmjs.com/package/@bastani/atomic-tui): Terminal UI components
656
+ - [@bastani/atomic-ai](https://www.npmjs.com/package/@bastani/atomic-ai): Unified LLM client and provider catalog
657
+ - [@bastani/atomic-agent-core](https://www.npmjs.com/package/@bastani/atomic-agent-core): Agent loop with tool execution, streaming, and hooks
658
+ - [@bastani/atomic-tui](https://www.npmjs.com/package/@bastani/atomic-tui): Differential terminal UI library
659
+ - [@bastani/atomic-codemode](https://www.npmjs.com/package/@bastani/atomic-codemode): Sandboxed JavaScript execution for tool scripting
660
+ - [@bastani/atomic-schema](https://www.npmjs.com/package/@bastani/atomic-schema): TypeScript-first JSON Schema builder and validator
661
+ - [@bastani/atomic-telemetry](https://www.npmjs.com/package/@bastani/atomic-telemetry): Typed OpenTelemetry span helpers and renderers
662
+ - [@bastani/atomic-storage-libsql](https://www.npmjs.com/package/@bastani/atomic-storage-libsql): Optional Turso / libSQL storage adapter
663
+ - [@bastani/atomic-storage-postgres](https://www.npmjs.com/package/@bastani/atomic-storage-postgres): Optional PostgreSQL storage adapter