@bastani/atomic 0.10.18 → 0.10.19-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 (334) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +27 -5
  3. package/dist/_shared/config-binary-install-SNFYFXWB.js +70 -0
  4. package/dist/_shared/config-binary-install-SNFYFXWB.js.map +1 -0
  5. package/dist/_shared/dist-KOELCESV.js +2 -2
  6. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  7. package/dist/_shared/lib-4PES5P4V.js +2 -2
  8. package/dist/_shared/{mode-interactive-sdk-7KXUFI2F.js → mode-interactive-sdk-JXBZ3H27.js} +434 -11
  9. package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -0
  10. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +21 -6
  11. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  12. package/dist/_shared/mode-shared-2QJSCUM6.js +7 -6
  13. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  14. package/dist/_shared/p0-cli-BB45ZQY6.js +56 -3
  15. package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
  16. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  17. package/dist/_shared/runtime-O4KCSG4C.js +3 -3
  18. package/dist/_shared/{sdk-OHKMDJ74.js → sdk-BHX35EPK.js} +40 -9
  19. package/dist/_shared/sdk-BHX35EPK.js.map +1 -0
  20. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  21. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  22. package/dist/_shared/{startup-0-0-OV6RAEAP.js → startup-0-0-4EDVBK5P.js} +464 -7
  23. package/dist/_shared/startup-0-0-4EDVBK5P.js.map +1 -0
  24. package/dist/_shared/{startup-0-1-EZAJI6RE.js → startup-0-1-H5IXVRXQ.js} +85 -7
  25. package/dist/_shared/startup-0-1-H5IXVRXQ.js.map +1 -0
  26. package/dist/_shared/startup-0-2-YZZOC22D.js +4 -4
  27. package/dist/_shared/startup-0-3-DE2NCS6A.js +4 -4
  28. package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
  29. package/dist/_shared/startup-0-5-HZX3ZPTP.js +44 -11
  30. package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
  31. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  32. package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
  33. package/dist/_shared/startup-14-0-MLX36RBG.js +3 -3
  34. package/dist/_shared/startup-15-0-YUKGAC63.js +3 -3
  35. package/dist/_shared/{startup-15-1-4S7FLMNG.js → startup-15-1-WQZBOTMZ.js} +70 -28
  36. package/dist/_shared/{startup-15-1-4S7FLMNG.js.map → startup-15-1-WQZBOTMZ.js.map} +1 -1
  37. package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
  38. package/dist/_shared/{startup-8-1-LZFXSD3Z.js → startup-8-1-QZMXUGHI.js} +242 -20
  39. package/dist/_shared/startup-8-1-QZMXUGHI.js.map +1 -0
  40. package/dist/_shared/storage-command-7MGXLJGZ.js +5 -5
  41. package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
  42. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  43. package/dist/_shared/team-DOQKICG2.js +2 -2
  44. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  45. package/dist/binary-self-update.js +281 -0
  46. package/dist/binary-self-update.js.map +1 -0
  47. package/dist/builtin/intercom/index.bundle.mjs +2 -1
  48. package/dist/builtin/intercom/package.json +1 -1
  49. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  50. package/dist/builtin/mcp/package.json +1 -1
  51. package/dist/builtin/subagents/CHANGELOG.md +15 -0
  52. package/dist/builtin/subagents/package.json +1 -1
  53. package/dist/builtin/subagents/skills/agent-browser/SKILL.md +1 -1
  54. package/dist/builtin/subagents/skills/impeccable/SKILL.md +3 -3
  55. package/dist/builtin/subagents/skills/impeccable/reference/audit.md +2 -2
  56. package/dist/builtin/subagents/skills/impeccable/reference/critique.md +3 -3
  57. package/dist/builtin/subagents/skills/impeccable/reference/generate.md +1 -1
  58. package/dist/builtin/subagents/skills/impeccable/reference/init.md +0 -2
  59. package/dist/builtin/subagents/skills/impeccable/reference/live.md +4 -2
  60. package/dist/builtin/subagents/skills/impeccable/reference/new-work-comp.md +1 -1
  61. package/dist/builtin/subagents/skills/impeccable/reference/new-work-world.md +1 -1
  62. package/dist/builtin/subagents/skills/impeccable/scripts/VERSION +1 -1
  63. package/dist/builtin/subagents/skills/impeccable/scripts/engine-checksums.txt +5 -5
  64. package/dist/builtin/subagents/skills/impeccable/scripts/impeccable +28 -5
  65. package/dist/builtin/subagents/skills/impeccable/scripts/impeccable.cmd +11 -2
  66. package/dist/builtin/subagents/skills/impeccable/scripts/live-browser.js +10 -6
  67. package/dist/builtin/subagents/skills/research-codebase/SKILL.md +13 -19
  68. package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
  69. package/dist/builtin/subagents/skills/subagent/SKILL.md +7 -7
  70. package/dist/builtin/subagents/skills/workflow/SKILL.md +98 -0
  71. package/dist/builtin/subagents/src/extension/index.bundle.mjs +2 -1
  72. package/dist/builtin/web-access/index.bundle.mjs +2 -1
  73. package/dist/builtin/web-access/package.json +1 -1
  74. package/dist/cli/args.js +2 -2
  75. package/dist/cli/auth-cli.code.js +3 -3
  76. package/dist/cli/auth-cli.impl.js +3 -3
  77. package/dist/cli/auth-cli.js +3 -3
  78. package/dist/cli/blueprint-command.code.js +2 -2
  79. package/dist/cli/blueprint-command.impl.js +3 -3
  80. package/dist/cli/blueprint-command.js +3 -3
  81. package/dist/cli/intercom-command.code.js +2 -2
  82. package/dist/cli/intercom-command.impl.js +3 -3
  83. package/dist/cli/intercom-command.js +3 -3
  84. package/dist/cli/list-models.code.js +2 -2
  85. package/dist/cli/list-models.impl.js +3 -3
  86. package/dist/cli/list-models.js +3 -3
  87. package/dist/cli/session-picker.code.js +1 -1
  88. package/dist/cli/session-picker.impl.js +3 -3
  89. package/dist/cli/session-picker.js +3 -3
  90. package/dist/cli/startup-ui.code.js +1 -1
  91. package/dist/cli/startup-ui.impl.js +3 -3
  92. package/dist/cli/startup-ui.js +3 -3
  93. package/dist/cli/storage-command.impl.js +3 -3
  94. package/dist/cli/storage-command.js +3 -3
  95. package/dist/cli/storage-search-session.code.js +3 -3
  96. package/dist/cli/storage-search-session.impl.js +3 -3
  97. package/dist/cli/storage-search-session.js +3 -3
  98. package/dist/cli/team-command.code.js +1 -1
  99. package/dist/cli/team-command.impl.js +3 -3
  100. package/dist/cli/team-command.js +3 -3
  101. package/dist/cli/usage-command.js +22 -0
  102. package/dist/cli/usage-command.js.map +1 -0
  103. package/dist/cli.js +2 -2
  104. package/dist/config-binary-install.js +3 -0
  105. package/dist/config-binary-install.js.map +1 -0
  106. package/dist/core/agent-session-services.js +3 -0
  107. package/dist/core/agent-session-services.js.map +1 -0
  108. package/dist/core/debug.impl.js +3 -3
  109. package/dist/core/debug.js +3 -3
  110. package/dist/core/export-html/card-projection.impl.js +3 -3
  111. package/dist/core/export-html/card-projection.js +3 -3
  112. package/dist/core/export-html/index.code.js +2 -2
  113. package/dist/core/export-html/index.impl.js +3 -3
  114. package/dist/core/export-html/index.js +3 -3
  115. package/dist/core/export-html/json-spans.impl.js +3 -3
  116. package/dist/core/export-html/json-spans.js +3 -3
  117. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  118. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  119. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  120. package/dist/core/export-html/tool-renderer.js +3 -3
  121. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  122. package/dist/core/extensions/jiti-loader.js +3 -3
  123. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  124. package/dist/core/extensions/jiti-static-loader.js +3 -3
  125. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  126. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  127. package/dist/core/extensions/loader-host-modules.js +3 -3
  128. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  129. package/dist/core/extensions/runner-context.js +2 -2
  130. package/dist/core/intercom-broker-control-host.code.js +1 -1
  131. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  132. package/dist/core/intercom-broker-control-host.js +3 -3
  133. package/dist/core/intercom-broker-control.code.js +3 -3
  134. package/dist/core/intercom-broker-control.impl.js +3 -3
  135. package/dist/core/intercom-broker-control.js +3 -3
  136. package/dist/core/{legacy-workflow-files.d.ts → legacy-workflows.d.ts} +1 -1
  137. package/dist/core/model-runtime.d.ts +8 -2
  138. package/dist/core/package-manager-storage-adapters.code.js +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/resource-loader-core.d.ts +1 -1
  142. package/dist/core/resource-loader-internals.d.ts +1 -1
  143. package/dist/core/resource-loader-types.d.ts +1 -1
  144. package/dist/core/resource-loader-types.js.map +1 -1
  145. package/dist/core/sdk.code.js +4 -4
  146. package/dist/core/sdk.impl.js +3 -3
  147. package/dist/core/sdk.js +3 -3
  148. package/dist/core/session-manager-core.js +5 -5
  149. package/dist/core/session-manager-list.impl.js +3 -3
  150. package/dist/core/session-manager-list.js +3 -3
  151. package/dist/core/session-manager.code.js +1 -1
  152. package/dist/core/session-manager.impl.js +3 -3
  153. package/dist/core/session-manager.js +3 -3
  154. package/dist/core/session-storage.code.js +1 -1
  155. package/dist/core/session-storage.impl.js +3 -3
  156. package/dist/core/session-storage.js +3 -3
  157. package/dist/core/settings-manager.js +5 -0
  158. package/dist/core/settings-manager.js.map +1 -0
  159. package/dist/core/storage/index.js +2 -2
  160. package/dist/core/storage/node-sqlite-thread.js +2 -2
  161. package/dist/core/storage/node-sqlite.js +2 -2
  162. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  163. package/dist/core/storage/offline-snapshot-file.js +3 -3
  164. package/dist/core/storage/provider.js +2 -2
  165. package/dist/core/storage/selection.js +2 -2
  166. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  167. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  168. package/dist/core/storage/session/branch-fork-source.js +3 -3
  169. package/dist/core/storage/session/card-view.impl.js +3 -3
  170. package/dist/core/storage/session/card-view.js +3 -3
  171. package/dist/core/storage/session/child-reader.code.js +3 -3
  172. package/dist/core/storage/session/child-reader.impl.js +3 -3
  173. package/dist/core/storage/session/child-reader.js +3 -3
  174. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  175. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  176. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  177. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  178. package/dist/core/storage/session/expanded-child-details.js +3 -3
  179. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  180. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  181. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  182. package/dist/core/storage/session/fork-row-index.js +3 -3
  183. package/dist/core/storage/session/fork-staging.code.js +2 -2
  184. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  185. package/dist/core/storage/session/fork-staging.js +3 -3
  186. package/dist/core/storage/session/fork-window.code.js +3 -3
  187. package/dist/core/storage/session/fork-window.impl.js +3 -3
  188. package/dist/core/storage/session/fork-window.js +3 -3
  189. package/dist/core/storage/session/history-pages.impl.js +3 -3
  190. package/dist/core/storage/session/history-pages.js +3 -3
  191. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  192. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  193. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  194. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  195. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  196. package/dist/core/storage/session/memory-session-store.js +3 -3
  197. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  198. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  199. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  200. package/dist/core/storage/session/released-history-files.code.js +2 -2
  201. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  202. package/dist/core/storage/session/released-history-files.js +3 -3
  203. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  204. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  205. package/dist/core/storage/session/session-resume.impl.js +3 -3
  206. package/dist/core/storage/session/session-resume.js +3 -3
  207. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  208. package/dist/core/storage/session/snapshot-cut.js +3 -3
  209. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  210. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  211. package/dist/core/storage/session/snapshot-history.js +3 -3
  212. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  213. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  214. package/dist/core/storage/session/sql-session-store.js +3 -3
  215. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  216. package/dist/core/storage/session/tree-outline.js +3 -3
  217. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  218. package/dist/core/storage/session/tree-presentation.js +3 -3
  219. package/dist/core/storage/storage-status.impl.js +3 -3
  220. package/dist/core/storage/storage-status.js +3 -3
  221. package/dist/core/storage/team.impl.js +3 -3
  222. package/dist/core/storage/team.js +3 -3
  223. package/dist/core/structured-output/index.code.js +1 -1
  224. package/dist/core/structured-output/index.impl.js +3 -3
  225. package/dist/core/structured-output/index.js +3 -3
  226. package/dist/core/subscription-usage-credential.d.ts +2 -0
  227. package/dist/core/subscription-usage-endpoints.d.ts +54 -0
  228. package/dist/core/subscription-usage.d.ts +55 -0
  229. package/dist/core/subscription-usage.js +3 -0
  230. package/dist/core/subscription-usage.js.map +1 -0
  231. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  232. package/dist/core/tasks/task-completion-entry.js +3 -3
  233. package/dist/core/tasks/task-file-history.code.js +3 -3
  234. package/dist/core/tasks/task-file-history.impl.js +3 -3
  235. package/dist/core/tasks/task-file-history.js +3 -3
  236. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  237. package/dist/core/tasks/task-reference-archive.js +3 -3
  238. package/dist/core/tasks/task-reference-identity.js +3 -3
  239. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  240. package/dist/core/tasks/task-reference-stream.js +3 -3
  241. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  242. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  243. package/dist/core/tasks/task-view-source.code.js +1 -1
  244. package/dist/core/tasks/task-view-source.impl.js +3 -3
  245. package/dist/core/tasks/task-view-source.js +3 -3
  246. package/dist/core/tools/edit-diff.d.ts +4 -6
  247. package/dist/core/tools/read-url.code.js +3 -3
  248. package/dist/core/tools/read-url.impl.js +3 -3
  249. package/dist/core/tools/read-url.js +3 -3
  250. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  251. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  252. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  253. package/dist/core/worktree-snapshot/errors.js +3 -3
  254. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  255. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  256. package/dist/extensions/codemode/execute.code.js +1 -1
  257. package/dist/extensions/codemode/execute.impl.js +3 -3
  258. package/dist/extensions/codemode/execute.js +3 -3
  259. package/dist/extensions/codemode/renderer.code.js +2 -2
  260. package/dist/extensions/codemode/renderer.impl.js +3 -3
  261. package/dist/extensions/codemode/renderer.js +3 -3
  262. package/dist/extensions/mcp/cli.code.js +2 -2
  263. package/dist/extensions/mcp/cli.impl.js +3 -3
  264. package/dist/extensions/mcp/cli.js +3 -3
  265. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  266. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  267. package/dist/extensions/mcp/cli.lazy.js +3 -3
  268. package/dist/extensions/mcp/runtime.code.js +1 -1
  269. package/dist/extensions/mcp/runtime.impl.js +3 -3
  270. package/dist/extensions/mcp/runtime.js +3 -3
  271. package/dist/index.d.ts +3 -0
  272. package/dist/index.js +7 -7
  273. package/dist/main-first-time-setup.code.js +1 -1
  274. package/dist/main-first-time-setup.impl.js +3 -3
  275. package/dist/main-first-time-setup.js +3 -3
  276. package/dist/main.js +2 -2
  277. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  278. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  279. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  280. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  281. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  282. package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -0
  283. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  284. package/dist/modes/interactive/interactive-mode.js +1 -1
  285. package/dist/modes/interactive-engine/isolated-runtime.d.ts +3 -0
  286. package/dist/modes/print-mode.js +1 -1
  287. package/dist/modes/rpc/rpc-client-api.d.ts +3 -0
  288. package/dist/modes/rpc/rpc-types.d.ts +25 -0
  289. package/dist/package-manager-cli.code.js +31 -8
  290. package/dist/package-manager-cli.code.js.map +1 -1
  291. package/dist/package-manager-cli.impl.js +3 -3
  292. package/dist/package-manager-cli.js +3 -3
  293. package/dist/rpc-entry.js +2 -2
  294. package/dist/startup-files.json +1 -1
  295. package/dist/startup-stages/12.js +1 -1
  296. package/dist/startup-stages/4.js +1 -1
  297. package/dist/startup-stages/6.js +1 -1
  298. package/dist/subscription-usage-sdk.d.ts +9 -0
  299. package/dist/utils/changelog.d.ts +1 -0
  300. package/dist/utils/startup-database-spare.code.js +2 -2
  301. package/dist/utils/startup-database-spare.impl.js +3 -3
  302. package/dist/utils/startup-database-spare.js +3 -3
  303. package/dist/utils/tools-manager.code.js +1 -1
  304. package/dist/utils/tools-manager.impl.js +3 -3
  305. package/dist/utils/tools-manager.js +3 -3
  306. package/docs/changelog.mdx +41 -6
  307. package/docs/containerization.md +17 -15
  308. package/docs/docs.json +1 -0
  309. package/docs/getting-started/installation.md +132 -80
  310. package/docs/guides/subscription-usage.md +133 -0
  311. package/docs/guides/team-setup.md +14 -3
  312. package/docs/guides.md +3 -0
  313. package/docs/index.md +18 -6
  314. package/docs/intercom/operations.md +1 -1
  315. package/docs/orchestration/migrating-workflows.md +16 -10
  316. package/docs/orchestration/patterns.md +8 -2
  317. package/docs/orchestration.md +17 -8
  318. package/docs/quickstart.md +7 -15
  319. package/docs/reference/cli.md +29 -22
  320. package/docs/rpc/protocol.md +9 -1
  321. package/docs/rpc.md +1 -1
  322. package/docs/sdk/reference.md +5 -1
  323. package/docs/skills.md +20 -4
  324. package/docs/slash-commands.md +3 -2
  325. package/docs/tools.md +57 -12
  326. package/docs/usage.md +1 -0
  327. package/docs/windows.md +4 -4
  328. package/package.json +9 -9
  329. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +0 -1
  330. package/dist/_shared/sdk-OHKMDJ74.js.map +0 -1
  331. package/dist/_shared/startup-0-0-OV6RAEAP.js.map +0 -1
  332. package/dist/_shared/startup-0-1-EZAJI6RE.js.map +0 -1
  333. package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +0 -1
  334. package/dist/builtin/subagents/skills/workflow-files/SKILL.md +0 -28
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.18`;
9
+ const key = `${root.href}#0.10.19-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.18") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.18`;
9
+ const key = `${root.href}#0.10.19-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.18") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -1,3 +1,3 @@
1
1
  import "../_shared/rolldown-runtime-BGM3D5V3.js";
2
- export { GIT_RELEASE, detectLinuxLibc, ensureTool, getGitDistributionTarget, getGitInstallDir, getGitReleaseMarker, getGitShellEnvironment, getGitShellEnvironmentAsync, getGitStatus, getGitStatusAsync, getLatestVersion, getToolEnv, getToolPath, parseGitVersion, plainStatMtimeMs, resetGitProvisionStateForTest, resolveGit, resolveGitSync, resolveInstalledGit, withGitProvisionSettingsForTest } from "../_shared/startup-0-1-EZAJI6RE.js";
2
+ export { GIT_RELEASE, detectLinuxLibc, ensureTool, getGitDistributionTarget, getGitInstallDir, getGitReleaseMarker, getGitShellEnvironment, getGitShellEnvironmentAsync, getGitStatus, getGitStatusAsync, getLatestVersion, getToolEnv, getToolPath, parseGitVersion, plainStatMtimeMs, resetGitProvisionStateForTest, resolveGit, resolveGitSync, resolveInstalledGit, withGitProvisionSettingsForTest } from "../_shared/startup-0-1-H5IXVRXQ.js";
3
3
  //# sourceMappingURL=tools-manager.code.js.map
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.18`;
9
+ const key = `${root.href}#0.10.19-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.18") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -6,7 +6,7 @@ try {
6
6
  } catch (error) {
7
7
  const root = new URL("../", import.meta.url);
8
8
  const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
9
- const key = `${root.href}#0.10.18`;
9
+ const key = `${root.href}#0.10.19-alpha.1`;
10
10
  let release = releases.get(key);
11
11
  if (release === undefined) {
12
12
  const current = (async () => {
@@ -27,8 +27,8 @@ try {
27
27
  release = current;
28
28
  }
29
29
  const running = await release;
30
- if (running === undefined || running.version === "0.10.18") throw error;
31
- throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.18 while this session was running; restart it to keep using this feature.", {
30
+ if (running === undefined || running.version === "0.10.19-alpha.1") throw error;
31
+ throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.19-alpha.1 while this session was running; restart it to keep using this feature.", {
32
32
  cause: error,
33
33
  });
34
34
  }
@@ -7,18 +7,53 @@ description: "What's new in Atomic"
7
7
  Generated from packages/coding-agent/CHANGELOG.md by scripts/sync-changelog-docs.ts. Don't edit it by hand.
8
8
  Every stable release is listed, newest first. Prereleases are listed only for versions newer than the
9
9
  newest stable release, so 1.2.0-alpha.N entries show until 1.2.0 ships and then drop out.
10
- After each release, the publish-release skill regenerates this page in its own docs PR.
10
+ The publish-release skill regenerates this page as part of preparing the release PR.
11
11
  */}
12
12
 
13
- <Update label="November 28, 2026" description="0.10.18-alpha.1">
13
+ <Update label="November 28, 2026" description="0.10.19-alpha.1">
14
14
 
15
- Atomic makes it easier to resume the right session, keeps live sessions open through PostgreSQL stalls, and makes terminal output easier to read.
15
+ Atomic makes it easier to check subscription limits, update an archive installation, and keep coding when an edit or model request needs a second try.
16
16
 
17
- **Sessions and storage**
17
+ **Breaking change:** The bundled `workflow-files` skill name no longer works. Replace `/skill:workflow-files` with `/skill:workflow`, `skill://workflow-files` with `skill://workflow`, and `workflow-files` with `workflow` in subagent skill lists ([#6854](https://github.com/bastani-inc/atomic/pull/6854)).
18
+
19
+ **Subscription usage**
20
+
21
+ - **Check limits without interrupting a reply.** `/usage` shows how much you’ve used, when limits reset, and any credits your provider reports across signed-in accounts. Get the same report with `atomic usage` or `atomic usage --json`, the `get_usage` RPC command, or the SDK’s `getSubscriptionUsage()` ([#6850](https://github.com/bastani-inc/atomic/pull/6850)).
22
+ - **Keep useful usage figures even when a provider sends a bad duration.** The percentage used and reset time stay visible. The terminal leaves out the unknown length; CLI JSON, RPC, and SDK reports return `null` for it ([#6855](https://github.com/bastani-inc/atomic/pull/6855)).
23
+
24
+ **Updates, editing, and model fallback**
25
+
26
+ - **Update archive installs in place.** `atomic update` updates release-archive installs on macOS, Linux, and Windows, and only reports success if the launcher points to the requested release and that version starts. Restart open sessions to use it ([#6843](https://github.com/bastani-inc/atomic/pull/6843), [#6853](https://github.com/bastani-inc/atomic/pull/6853)).
27
+ - **Apply edits despite indentation differences.** If the target text matches in exactly one place apart from indentation, `edit` uses the file’s indentation for the replacement. If it can’t find a match, it shows the closest lines and what differs ([#6845](https://github.com/bastani-inc/atomic/pull/6845)).
28
+ - **Get a reply from the backup model.** After a rate-limit error such as HTTP 429, Atomic waits for the previous attempt to finish before asking the backup model, rather than ending the turn without a reply. This fixes the intermittent failure on Windows ([#6848](https://github.com/bastani-inc/atomic/pull/6848)).
29
+
30
+ **Bundled skills**
31
+
32
+ - **Plan and migrate work with `/skill:workflow`.** The renamed skill explains how to organize multi-step work and turn old workflow files into skills without running those files ([#6852](https://github.com/bastani-inc/atomic/pull/6852), [#6854](https://github.com/bastani-inc/atomic/pull/6854)).
33
+ - **Keep design choices when a preview goes idle.** `impeccable` stops waiting on idle previews without losing your choices, and setup no longer starts with a sign-in prompt ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
34
+ - **Avoid launching duplicate research.** `research-codebase` explains how to wait for research tasks that are already running ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
35
+ - **Make subagent handoffs clearer.** The `subagent` skill explains when to reuse the parent conversation and when to put one agent in charge of file edits ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
36
+
37
+ </Update>
38
+
39
+ <Update label="November 28, 2026" description="0.10.18">
40
+
41
+ Atomic keeps shared PostgreSQL sessions moving through stalls and maintenance, makes conversations easier to resume, and makes tool output and background updates easier to read.
42
+
43
+ **Breaking change:** Task heartbeat updates no longer include a subagent’s token count. If your extension shows token usage from heartbeat data, read `TaskRecord.metrics.tokenCount` instead ([#6837](https://github.com/bastani-inc/atomic/pull/6837)).
44
+
45
+ **Sessions and background work**
18
46
 
19
47
  - **Resume the right conversation.** `atomic --continue` prefers a conversation you can pick up over a newer empty session. The resume command follows the session you switched to, and you can continue in another folder if the original is gone ([#6828](https://github.com/bastani-inc/atomic/pull/6828)).
20
- - **Keep working through PostgreSQL stalls.** A stalled database call no longer ends a live session. Atomic tells you it’s waiting and retries pending saves in order, including subagent records ([#6830](https://github.com/bastani-inc/atomic/pull/6830)).
21
- - **Treat PostgreSQL timeouts as failures.** Once a call times out, a late reply cannot turn it into a success, and a stalled cancellation no longer holds up later calls ([#6830](https://github.com/bastani-inc/atomic/pull/6830)).
48
+ - **See activity, not token counts, in task heartbeats.** Background updates still show what subagents are doing. Usage is still available in the agent panel and `/tasks` ([#6837](https://github.com/bastani-inc/atomic/pull/6837)).
49
+
50
+ **Shared PostgreSQL storage**
51
+
52
+ - **Keep working through database stalls.** A stalled PostgreSQL call no longer ends a live session. Atomic tells you it’s waiting and retries pending saves in order, including subagent records ([#6830](https://github.com/bastani-inc/atomic/pull/6830)).
53
+ - **Treat timeouts as failures.** A late PostgreSQL reply cannot turn a timed-out call into a success, and a stalled cancellation no longer holds up later calls ([#6830](https://github.com/bastani-inc/atomic/pull/6830)).
54
+ - **Keep agent check-ins and message recovery from holding up other sessions.** Agents sharing PostgreSQL are less likely to pause during check-ins, and an agent that has already reconnected keeps its unanswered messages ([#6834](https://github.com/bastani-inc/atomic/pull/6834)).
55
+ - **Back off when snapshot cleanup finds the database busy.** In the default cleanup mode, Atomic retries later instead of making session writes queue behind cleanup that hasn’t started ([#6833](https://github.com/bastani-inc/atomic/pull/6833)).
56
+ - **Opt in to faster snapshot cleanup.** The default stays compatible with older clients. Once every Atomic client using the PostgreSQL database has upgraded to `0.10.18` and restarted, the database owner can enable faster cleanup so deleting old worktree snapshots no longer pauses unrelated saves. The owner can switch back before starting an older client; see [how to check, enable, or disable the mode](/storage/postgres#enable-faster-worktree-snapshot-cleanup) ([#6838](https://github.com/bastani-inc/atomic/pull/6838)).
22
57
 
23
58
  **Terminal and workspace tools**
24
59
 
@@ -71,21 +71,7 @@ atomic --no-mcp --tools read,write,edit,bash,find,ls -e ~/.local/share/atomic-go
71
71
 
72
72
  Run the whole `atomic` process inside Docker for a clean local container boundary.
73
73
 
74
- Create `Dockerfile.atomic` using Node.js and npm:
75
-
76
- ```dockerfile
77
- FROM node:24-bookworm-slim
78
-
79
- RUN apt-get update \
80
- && apt-get install -y --no-install-recommends bash ca-certificates git ripgrep \
81
- && rm -rf /var/lib/apt/lists/*
82
- RUN npm install -g --ignore-scripts @bastani/atomic
83
-
84
- WORKDIR /workspace
85
- ENTRYPOINT ["atomic"]
86
- ```
87
-
88
- For an image without Node.js or npm, use the release-archive installer instead:
74
+ Create `Dockerfile.atomic` with the native installer:
89
75
 
90
76
  ```dockerfile
91
77
  FROM debian:bookworm-slim
@@ -118,6 +104,22 @@ docker run --rm -it \
118
104
 
119
105
  `-v "$PWD:/workspace"` mounts your current directory at `/workspace`, so edits under `/workspace` write directly to your host files.
120
106
 
107
+ ### Advanced installation options
108
+
109
+ You can also install Atomic as a global npm package in a Node.js image. This is not recommended. Use a base image with [Node.js 24.20.0 or newer](/getting-started/installation#nodejs-version):
110
+
111
+ ```dockerfile
112
+ FROM node:24-bookworm-slim
113
+
114
+ RUN apt-get update \
115
+ && apt-get install -y --no-install-recommends bash ca-certificates git ripgrep \
116
+ && rm -rf /var/lib/apt/lists/*
117
+ RUN npm install -g --ignore-scripts @bastani/atomic
118
+
119
+ WORKDIR /workspace
120
+ ENTRYPOINT ["atomic"]
121
+ ```
122
+
121
123
  ### Persisting settings and sessions in Docker
122
124
 
123
125
  Mount a named volume on `/root/.atomic` (`-v atomic-home:/root/.atomic`) to persist both container-local settings (`/root/.atomic/agent`) and the default SQLite session database (`/root/.atomic/workflows/journal.sqlite`).
package/docs/docs.json CHANGED
@@ -31,6 +31,7 @@
31
31
  "group": "Use Atomic daily",
32
32
  "pages": [
33
33
  "usage",
34
+ "guides/subscription-usage",
34
35
  "guides/non-interactive",
35
36
  "guides/configuration",
36
37
  "sessions",
@@ -1,70 +1,15 @@
1
1
  ---
2
2
  title: "Install Atomic"
3
3
  sidebarTitle: "Install Atomic"
4
- description: "Install Atomic with a package manager or standalone release archive, verify your setup, configure Git, and uninstall cleanly."
4
+ description: "Install Atomic with the native installer, verify your setup, configure Git, and uninstall Atomic."
5
5
  ---
6
6
 
7
- **Outcome:** `atomic` is on your `PATH` and `atomic --version` prints the installed version.
7
+ ## Native install (recommended) {#release-archive}
8
8
 
9
- **Prerequisites:** A supported shell. See [Prerequisites](/quickstart#prerequisites).
10
-
11
- | How you want to install | Best choice | Runtime requirement |
12
- | --- | --- | --- |
13
- | Global CLI via npm, pnpm, or Bun | [Package managers](#package-managers) | [Node.js 24.20.0+](#nodejs-version) (or `bun --bun` with Bun 1.4.5+) |
14
- | Zero-dependency install with pinned runtime | [Release archive](#release-archive) | None (bundles its own runtime) |
15
-
16
- ## Package managers
17
-
18
- Install globally with npm, pnpm, or Bun:
9
+ Open a terminal and run the command for your system. If you use WSL, run the macOS/Linux/WSL command inside your WSL terminal.
19
10
 
20
11
  <Tabs>
21
- <Tab title="npm">
22
- ```bash
23
- npm install -g @bastani/atomic
24
- ```
25
- </Tab>
26
- <Tab title="pnpm">
27
- ```bash
28
- pnpm add -g @bastani/atomic
29
- ```
30
- </Tab>
31
- <Tab title="Bun">
32
- ```bash
33
- bun add -g @bastani/atomic
34
- ```
35
- </Tab>
36
- </Tabs>
37
-
38
- - **Runtime requirement:** All package-manager installs—**including `bun add -g @bastani/atomic`**—run on [Node.js 24.20.0 or newer](#nodejs-version) by default. Running a package-manager install on Bun requires launching explicitly with `bun --bun` and **Bun 1.4.5+**.
39
- - **No install scripts required:** Pass `--ignore-scripts` if your environment disables npm lifecycle scripts.
40
- - **Native bindings:** Your package manager selects the matching platform package (`@bastani/atomic-natives-<platform>`) automatically.
41
- - **Local storage by default:** Sessions save in `~/.atomic/workflows/journal.sqlite` with no database server needed. To share sessions across machines, see [Sharing storage across hosts](/storage#sharing-storage-across-hosts).
42
-
43
- ### Node.js version
44
-
45
- Package-manager installs require **Node.js 24 LTS, version 24.20.0 or newer**. If you cannot upgrade Node.js right away, use the [release archive](#release-archive), which bundles its own runtime.
46
-
47
- <Note>
48
- Node.js 24.20.0 fixes both an upstream SQLite WAL-reset bug that could corrupt Atomic's session database on releases earlier than 24.15.0 and an IPv6 TLS proxy bug affecting 24.17.0 through 24.19.0.
49
- </Note>
50
-
51
- - **Check your version:** Run `node --version`. It must print `v24.20.0` or a later `v24` release (or a newer major version).
52
- - **On an older Node.js:** `atomic` stops at startup with `Atomic needs Node.js 24.20.0 or newer, but this is Node.js <version>.` and links back to this section.
53
- - **Upgrade:** Install the current Node.js 24 LTS release from [nodejs.org](https://nodejs.org/en/download), or with a version manager (`nvm install 24`, `fnm install 24`, or `mise use -g node@24`), then reinstall Atomic with `npm install -g @bastani/atomic`.
54
-
55
- ### Package manager troubleshooting
56
-
57
- - **Optional native packages:** Do not disable optional dependencies (`npm install --omit=optional`, `pnpm install --no-optional`, or `bun install --omit=optional`) in a project. Without your platform's native package, Atomic stops at startup naming the missing package; reinstall without those flags to fix it. (Global `npm install -g` still pulls transitive optional native packages even with `--omit=optional`.)
58
- - **Dependency resolution:** Atomic pins its direct dependencies to exact versions while your package manager resolves sub-dependencies at install time. Use the [release archive](#release-archive) if you want the exact tested dependency tree.
59
- - **Older Linux lockfiles:** On Linux, `npm ci` from an older lockfile lacking C-library tags can install both glibc and musl native packages; Atomic loads the matching one automatically.
60
- - **Mismatched native module after an update:** Atomic refuses to start if its native module comes from a different release. If you updated Atomic while it was running, restart it; otherwise reinstall to repair the installation. For local native-binding diagnostics and overrides, see [Diagnostics and debugging](/development).
61
-
62
- ## Release archive
63
-
64
- Install the self-contained release archive without Node.js or a package manager:
65
-
66
- <Tabs>
67
- <Tab title="macOS / Linux">
12
+ <Tab title="macOS, Linux, WSL">
68
13
  ```bash
69
14
  curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh
70
15
  ```
@@ -76,7 +21,9 @@ Install the self-contained release archive without Node.js or a package manager:
76
21
  </Tab>
77
22
  </Tabs>
78
23
 
79
- The installer downloads the matching GitHub Release archive and `SHA256SUMS`, verifies the SHA-256 checksum, and installs into a versioned directory. Keep the installed directory (`node_modules`, libraries, and licenses) intact.
24
+ After installation, [verify that `atomic` is on your `PATH`](#verify-the-install).
25
+
26
+ The installer downloads the matching GitHub release archive, verifies its SHA-256 checksum, and installs it into a versioned directory. Keep the installed directory intact.
80
27
 
81
28
  | Platform | Default payload directory | Default launcher | PATH behavior |
82
29
  | --- | --- | --- | --- |
@@ -129,6 +76,31 @@ Health checks verify that `current` points to the target version inside the inst
129
76
 
130
77
  </Accordion>
131
78
 
79
+ ### Update a native install {#update-a-release-archive-install}
80
+
81
+ If you used the native installer, run these commands to update to the latest stable release and check the installed version:
82
+
83
+ ```bash
84
+ atomic update
85
+ atomic --version
86
+ ```
87
+
88
+ A successful update prints a line like `Updated atomic from 0.10.19-alpha.1 to 0.10.19`. The second command prints the version new sessions will use. Open sessions stay on the old version. To reopen your most recent session in this project with the new version, exit Atomic and run `atomic --continue` from the project directory.
89
+
90
+ | To | Run |
91
+ | --- | --- |
92
+ | Update Atomic and your installed packages | `atomic update --all` |
93
+ | Include prereleases, which are previews of upcoming stable versions | `atomic update --prerelease` |
94
+ | Install a particular release | `atomic update --version 0.10.19-alpha.1`. Use any [published version](https://github.com/bastani-inc/atomic/releases) without a `v` prefix. |
95
+
96
+ Running `atomic update` without a version won't downgrade a prerelease to an older stable release. To switch back, pass the stable version explicitly.
97
+
98
+ - If the download fails, Atomic keeps the current version. Check your connection and try again. If Atomic keeps reporting a checksum mismatch, report the error and the release you tried to install.
99
+ - If the update can't confirm the new version, try `atomic update` again. If `atomic` no longer starts or the update fails again, rerun the [release archive installer](#release-archive).
100
+ - If Atomic says the install directory isn't writable, run the update as the account that owns the installation.
101
+ - If an update succeeds but `atomic --version` still shows the older version in a new terminal, check which command your shell is using. Run `command -v atomic` on macOS or Linux, or `Get-Command atomic` in PowerShell. Put the updated installation's launcher directory first on `PATH`.
102
+ - If your current or requested version doesn't support archive updates, or you unpacked the archive by hand, rerun the [installer](#release-archive). If another tool installed Atomic, use that tool or [configure a custom update command](/reference/cli#custom-update-command).
103
+
132
104
  ### Alpine and musl Linux archives
133
105
 
134
106
  The shell installer automatically detects Alpine (`/etc/alpine-release`) and downloads `atomic-linux-x64-musl.tar.gz` or `atomic-linux-arm64-musl.tar.gz`. Keep the complete archive intact—including its bundled `libgcc` and `libstdc++` libraries—so stock Alpine runs without extra C++ runtime packages.
@@ -139,18 +111,105 @@ The shell installer automatically detects Alpine (`/etc/alpine-release`) and dow
139
111
  atomic --version
140
112
  ```
141
113
 
142
- You should see a single version line (for example `0.10.14`). If your shell reports `command not found`, open a new terminal or add the installer's bin directory to your `PATH`.
114
+ Run this in a new terminal. It should print the installed version. If your shell can't find `atomic`, follow the native installer's instructions to add its bin directory to your `PATH`.
143
115
 
144
116
  <Tip>
145
117
  **Linux and SSH clipboard support:** To copy text from `/copy` or fullscreen selection on Linux, install `wl-clipboard` (Wayland) or `xclip` / `xsel` (X11). Over SSH or headless Linux, Atomic automatically forwards clipboard writes via OSC 52. See [Clipboard and OSC 52](/terminal-setup#clipboard-and-osc-52).
146
118
  </Tip>
147
119
 
148
- ## Which runtime runs Atomic
120
+ ## Switch to the native installer
121
+
122
+ Installing with npm, pnpm, or Bun is not recommended. If you installed Atomic with one of these package managers, switch to the native installer:
123
+
124
+ <Steps>
125
+ <Step title="Run the native installer">
126
+ <Tabs>
127
+ <Tab title="macOS, Linux, WSL">
128
+ ```bash
129
+ curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh
130
+ ```
131
+ </Tab>
132
+ <Tab title="Windows PowerShell">
133
+ ```powershell
134
+ irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex
135
+ ```
136
+ </Tab>
137
+ </Tabs>
138
+ </Step>
139
+ <Step title="Remove the old global package">
140
+ Run the command for the package manager you used:
141
+
142
+ <Tabs>
143
+ <Tab title="npm">
144
+ ```bash
145
+ npm uninstall -g @bastani/atomic
146
+ ```
147
+ </Tab>
148
+ <Tab title="pnpm">
149
+ ```bash
150
+ pnpm remove -g @bastani/atomic
151
+ ```
152
+ </Tab>
153
+ <Tab title="Bun">
154
+ ```bash
155
+ bun remove -g @bastani/atomic
156
+ ```
157
+ </Tab>
158
+ </Tabs>
159
+ </Step>
160
+ <Step title="Verify the install">
161
+ Open a new terminal and run `atomic --version`. Your settings and sessions stay in place.
162
+ </Step>
163
+ </Steps>
164
+
165
+ ## Advanced installation options
166
+
167
+ ### Package managers
168
+
169
+ You can also install Atomic as a global package with npm, pnpm, or Bun. This is not recommended.
149
170
 
150
- - **Package-manager installs** (`npm`, `pnpm`, and `bun add -g`) run on **Node.js** via `#!/usr/bin/env node` unless you explicitly launch with `bun --bun` (Bun 1.4.5+). Installing Bun separately does not switch an existing npm or pnpm install to Bun.
151
- - **Standalone release archives** bundle and run on **Bun**.
171
+ <Tabs>
172
+ <Tab title="npm">
173
+ ```bash
174
+ npm install -g @bastani/atomic
175
+ ```
176
+ </Tab>
177
+ <Tab title="pnpm">
178
+ ```bash
179
+ pnpm add -g @bastani/atomic
180
+ ```
181
+ </Tab>
182
+ <Tab title="Bun">
183
+ ```bash
184
+ bun add -g @bastani/atomic
185
+ ```
186
+ </Tab>
187
+ </Tabs>
152
188
 
153
- Both runtimes ship an up-to-date, consistent SQLite library for local session storage (macOS release archives bundle their own SQLite copy so they do not depend on the macOS system SQLite). Run `atomic storage status` to inspect the active SQLite library version.
189
+ - To update a global install with your package manager, rerun the same command with `@latest` appended to the package name.
190
+ - npm lifecycle scripts aren't required. You can pass `--ignore-scripts`.
191
+ - Your package manager selects the native package for your platform (`@bastani/atomic-natives-<platform>`). Keep optional dependencies enabled.
192
+
193
+ ### Node.js version
194
+
195
+ Package-manager installs, including `bun add -g`, run on **Node.js 24.20.0 or newer** by default. To run a package-manager install on Bun, use `bun --bun` with **Bun 1.4.5 or newer**. Installing Bun separately does not change which runtime `atomic` uses.
196
+
197
+ <Note>
198
+ Node.js 24.20.0 fixes both an upstream SQLite WAL-reset bug that could corrupt Atomic's session database on releases earlier than 24.15.0 and an IPv6 TLS proxy bug affecting 24.17.0 through 24.19.0.
199
+ </Note>
200
+
201
+ - Run `node --version` to check your version. If it's older than `v24.20.0`, Atomic stops at startup.
202
+ - To upgrade, install the current Node.js 24 LTS release from [nodejs.org](https://nodejs.org/en/download) or use a version manager (`nvm install 24`, `fnm install 24`, or `mise use -g node@24`). Then rerun the install command for your package manager.
203
+
204
+ ### Package manager troubleshooting
205
+
206
+ - **Optional native packages:** Do not disable optional dependencies (`npm install --omit=optional`, `pnpm install --no-optional`, or `bun install --omit=optional`) in a project. Without your platform's native package, Atomic stops at startup and names the missing package. Reinstall without those flags. Global `npm install -g` still pulls transitive optional native packages even with `--omit=optional`.
207
+ - **Older Linux lockfiles:** On Linux, `npm ci` from an older lockfile lacking C-library tags can install both glibc and musl native packages. Atomic loads the matching one automatically.
208
+ - **Mismatched native module after an update:** Atomic refuses to start if its native module comes from a different release. If you updated Atomic while it was running, restart it. Otherwise, reinstall. For local native-binding diagnostics and overrides, see [Diagnostics and debugging](/development).
209
+
210
+ ## Which runtime runs Atomic
211
+
212
+ Native installs bundle and run on Bun. Package-manager installs use [Node.js by default](#nodejs-version). Run `atomic storage status` to see the SQLite version used for local sessions.
154
213
 
155
214
  ## Git
156
215
 
@@ -187,12 +246,9 @@ Run Linux package-manager commands as root. See [git-scm.com/downloads](https://
187
246
 
188
247
  ## Updating while Intercom is running
189
248
 
190
- Sessions on one machine share a single [Intercom](/intercom) broker process. Both the release-archive installers and `atomic update` finish by running `atomic intercom upgrade` with the newly installed binary:
249
+ [Intercom](/intercom) lets Atomic sessions exchange messages. The release archive installer and `atomic update` normally update Intercom too. If sessions are connected, the update leaves them running. The next session you start with the new version takes over.
191
250
 
192
- - If no sessions are connected, the older broker stops and the next session starts the new one.
193
- - If sessions are still connected, they are not interrupted; the next session launched on the new version takes over the broker.
194
-
195
- You can run `atomic intercom upgrade` manually at any time (it is idempotent), and you should run it after upgrading directly via a package manager such as `npm install -g @bastani/atomic`. Pinning an older release without `atomic intercom upgrade` skips this step silently; `atomic update` skips it with a note if `atomic` on `PATH` points to a different binary than the one updated.
251
+ If the update warns that it couldn't update Intercom, check `atomic --version` in a new terminal. If it shows the version you just installed, run `atomic intercom upgrade`. Run the same command if you updated Atomic directly with a package manager.
196
252
 
197
253
  <Accordion title="Upgrading on Windows from 0.10.4 or earlier">
198
254
 
@@ -203,18 +259,14 @@ Earlier Intercom brokers (0.10.4 and earlier) locked files inside the npm instal
203
259
  ## Uninstall
204
260
 
205
261
  <Tabs>
206
- <Tab title="Package manager">
207
- ```bash
208
- npm uninstall -g @bastani/atomic
209
- # or: pnpm remove -g @bastani/atomic
210
- # or: bun remove -g @bastani/atomic
211
- ```
212
- </Tab>
213
- <Tab title="macOS / Linux archive">
262
+ <Tab title="Native: macOS, Linux, WSL">
214
263
  Delete `~/.local/share/atomic` and `~/.local/bin/atomic` (or your custom `ATOMIC_INSTALL_DIR` and `ATOMIC_BIN_DIR` launcher).
215
264
  </Tab>
216
- <Tab title="Windows archive">
217
- Delete `%LOCALAPPDATA%\atomic`. If you set `ATOMIC_BIN_DIR`, also remove `atomic.cmd` and the `atomic-current` junction from that directory, then remove it from User `PATH`.
265
+ <Tab title="Native: Windows">
266
+ Delete the Atomic install folder. By default it is `%LOCALAPPDATA%\atomic`. If you set `ATOMIC_BIN_DIR` to a separate folder, remove `atomic.cmd`, the `atomic-current` folder link, and any Atomic update folder links named like `.atomic-a1b2c3` from that folder. Remove the folder from your user `PATH` only if no other commands use it.
267
+ </Tab>
268
+ <Tab title="Package manager">
269
+ Run the [uninstall command for your package manager](#switch-to-the-native-installer).
218
270
  </Tab>
219
271
  </Tabs>
220
272
 
@@ -0,0 +1,133 @@
1
+ ---
2
+ title: "Check subscription usage"
3
+ sidebarTitle: "Subscription usage"
4
+ description: "See how much of your AI subscriptions you have used and when the limits reset."
5
+ ---
6
+
7
+ Type `/usage` in Atomic to see how much of your subscription allowance is left and when it resets. You can check without interrupting a reply. **Current** marks the account selected in this session. Press `r` to check again, the arrow keys to scroll, or `Esc` to close.
8
+
9
+ ```text
10
+ Subscription usage
11
+
12
+ OpenAI Codex · Current · openai-codex
13
+ Session (5 h) █████░░░░░░░ 42.5% used Resets in 2 h 14 min · Sat 4:30 PM
14
+ Weekly (7 d) ██████████░░ 87% used Resets in 2 d 3 h · Mon 5:16 PM
15
+ Reset credits: 1 available
16
+ ```
17
+
18
+ A usage window is the period a provider's limit covers. In this example, `Session (5 h)` is the provider's five-hour window, not the current Atomic chat. The weekly bar shows 87% used, so 13% is left until the Monday reset. Atomic shows reset times in your terminal's local time.
19
+
20
+ Atomic shows only the windows your provider reports for your plan. A full bar means the account has reached that limit. If the provider offers reset credits, the report shows how many are available. Checking usage does not spend them or change settings. For token counts and costs for this Atomic session, use `/session` instead.
21
+
22
+ | Sign-in | What you can see |
23
+ | --- | --- |
24
+ | **OpenAI Codex** (`openai-codex`) | The short and weekly windows, extra model limits, plan, usage credits, and reset credits when reported. |
25
+ | **Anthropic Claude** (`anthropic`) | The five-hour and weekly windows, model-specific weekly windows such as Sonnet and Opus, and whether extra usage is on. Anthropic can bill use from tools like Atomic separately from what the Claude plan includes. |
26
+ | **Grok** (`xai`) | Weekly credits, per-product use, and monthly use on accounts with monthly billing. |
27
+ | **GitHub Copilot** (`github-copilot`) | Premium requests, chat, and completions if your plan reports them. Some of these may be unlimited. |
28
+ | **Kimi Code** (`kimi-coding`) | The short and longer limits Kimi reports for your plan, including separate code use when available. |
29
+ | **OpenRouter sign-in** (`openrouter`) | The sign-in’s credit cap, amount left, and spending in USD, not a subscription window. |
30
+ | **Sign in with ChatGPT for the OpenAI API** (`openai`) | Figures from the account’s last model response. If it did not report subscription windows, Atomic shows the request and token limits instead. For full plan windows, sign in through OpenAI Codex (`openai-codex`). |
31
+ | **Meta** | This sign-in does not report subscription usage. |
32
+
33
+ ### If an account has no usage numbers
34
+
35
+ Read the message below the account name. If a provider’s check fails, other accounts can still show their usage. Where possible, Atomic shows figures from a recent reply and marks them as older.
36
+
37
+ | What the report says | What it means and what to do |
38
+ | --- | --- |
39
+ | API key (`api_key`) | You pay for API use instead of using a subscription allowance. Check the provider’s billing dashboard. |
40
+ | No subscription figures (`unsupported`, `no_subscription`) | That provider or account does not make plan figures available to Atomic. Check its own usage page. |
41
+ | Not signed in (`not_signed_in`) or sign in again (`sign_in_again`) | There’s no saved sign-in for this account, or the provider rejected it. Use `/login` or `atomic auth login <provider>`. |
42
+ | Claude login lacks usage access (`needs_profile_scope`) | A setup token can run models but can’t read usage. Use `/login anthropic` or `atomic auth login anthropic` and complete the full Claude sign-in instead. If you set a setup token in your environment, remove it when switching. |
43
+ | No access (`forbidden`) | The provider did not grant this login permission to read its usage. Check the account’s permissions or its usage page. |
44
+ | No usage observed yet (`not_observed`) | Send a normal prompt with that ChatGPT sign-in, then reopen `/usage` or press `r`. The standalone CLI can’t read figures from an open session’s last reply; use RPC to check that session from a script. |
45
+ | Offline (`offline`) | Atomic did not contact the provider. Turn off offline mode and try again if you want a live check. |
46
+ | Too many checks (`rate_limited`) | Wait a little before trying again. |
47
+ | Timeout, connection, or provider error (`timeout`, `request_failed`, `http_error`, `malformed`) | The provider was unreachable, too slow, or returned a report Atomic could not read. Press `r` to retry; if it persists, check the provider’s own usage page. |
48
+
49
+ ## Check from a script
50
+
51
+ Use the text report in a terminal and the JSON report in scripts. Neither starts a chat.
52
+
53
+ ```bash
54
+ atomic usage
55
+ atomic usage --json
56
+ ```
57
+
58
+ Add `--offline` to list accounts without contacting providers. If you have not signed in, the text report tells you to run `atomic auth login`. The JSON report is `{"accounts":[]}`.
59
+
60
+ `--json` prints one JSON object. The command can succeed even if one account has no figures or a check fails. Read each account's `status` before using its data. To check an open session from an RPC client, send [`get_usage`](/rpc/protocol#get_usage).
61
+
62
+ ```json
63
+ {
64
+ "accounts": [
65
+ {
66
+ "provider": "openai-codex",
67
+ "name": "OpenAI Codex",
68
+ "current": true,
69
+ "status": "ready",
70
+ "source": "live",
71
+ "windows": [
72
+ { "label": "Session", "usedPercent": 42.5, "durationSeconds": 18000, "resetsAt": "2026-11-28T16:30:00.000Z" },
73
+ { "label": "Weekly", "usedPercent": 87, "durationSeconds": 604800, "resetsAt": "2026-11-30T17:16:00.000Z" }
74
+ ],
75
+ "resetCredits": 1
76
+ },
77
+ {
78
+ "provider": "anthropic",
79
+ "name": "Anthropic",
80
+ "current": false,
81
+ "status": "unavailable",
82
+ "reason": "needs_profile_scope",
83
+ "message": "This login lacks usage access (user:profile). Sign in to Claude again without a setup token."
84
+ }
85
+ ]
86
+ }
87
+ ```
88
+
89
+ ### JSON and SDK contract
90
+
91
+ `atomic usage --json` and the SDK return the same stable `SubscriptionUsageReport` structure. Credentials, tokens and raw provider responses are never part of the report. Fields described as optional are omitted when not reported; missing values do not mean zero. Consumers can ignore new fields or reason codes if added in the future.
92
+
93
+ | Field | Meaning |
94
+ | --- | --- |
95
+ | `accounts` | An array of results. It is empty if there are no accounts to check. |
96
+ | `provider`, `name`, `current` | `provider` is the account ID, such as `openai-codex`. `name` is the display name. `current` is `true` for the selected account in an open session or the configured default in a standalone report, if known. |
97
+ | `status` | `ready` means figures are available. `unavailable` explains why there are no figures. `failed` means the check did not complete. |
98
+ | `source`, `observedAt` | For a `ready` account, `live` means a provider usage check supplied the figures. Atomic can reuse those figures briefly. `recent_response` means a live check did not supply figures, so Atomic used a recent reply. `last_request` means the figures came from an ordinary reply without a separate usage check. `observedAt` on `last_request` is when Atomic saw those figures, in UTC. |
99
+ | `windows` | The limits the provider reported. Each has a `label` such as `Weekly`, a `usedPercent`, a length in seconds (`durationSeconds`), and a reset time in UTC (`resetsAt`). A percentage of `0` means unused, `100` means full, and some providers report more than `100`. Unknown lengths and reset times are `null`. |
100
+ | `rateLimits` | Optional limits from the last OpenAI API request, distinct from subscription windows. Each entry says whether it covers `requests` or `tokens` (`kind`), plus any `limit`, `remaining`, or `resetsAt` the provider reported. |
101
+ | `plan`, `resetCredits` | Optional. The provider’s plan name and the number of reset credits still available. |
102
+ | `credits`, `extraUsage` | Optional. `credits` describes ordinary usage credits: whether you have any (`available`), whether they’re unlimited (`unlimited`), and how many remain (`balance`). `extraUsage` says whether Claude’s paid extra use is on (`enabled`) and how much of it has been used (`usedPercent`), if known. |
103
+ | `creditCap`, `unlimitedWindows` | Optional. The OpenRouter cap (`limit`, or `null` if uncapped), dollars left (`remaining`), how often it resets (`reset`), and dollars used this day, week, or month (`dailyUsed`, `weeklyUsed`, `monthlyUsed`). `unlimitedWindows` lists any limits the provider reports as unlimited. |
104
+ | `reason`, `message` | On `unavailable`, `failed`, or `recent_response` results, a code for scripts and a plain explanation for people. |
105
+
106
+ The [account message table](#if-an-account-has-no-usage-numbers) explains the codes. If Atomic shows figures from a recent reply, `reason` still explains why the latest check did not return figures.
107
+
108
+ ## Check from the SDK
109
+
110
+ Install `@bastani/atomic` and import `getSubscriptionUsage`. It checks all configured accounts by default. Pass `accounts` to check selected IDs, `maxAgeMs: 0` to skip the cache (normally one minute), or `signal` to cancel the whole check. To include accounts registered only on an SDK session, pass `modelRuntime: session.modelRuntime`.
111
+
112
+ ```typescript
113
+ import { getSubscriptionUsage } from "@bastani/atomic";
114
+
115
+ const { accounts } = await getSubscriptionUsage({
116
+ accounts: ["openai-codex", "anthropic"],
117
+ signal: AbortSignal.timeout(10_000),
118
+ });
119
+
120
+ const byWeeklyCapacity = accounts.flatMap((account) => {
121
+ if (account.status !== "ready" || account.source !== "live") return [];
122
+ const weekly = account.windows.find((window) => window.label === "Weekly");
123
+ if (!weekly) return [];
124
+ return [{ provider: account.provider, remainingPercent: Math.max(0, 100 - weekly.usedPercent) }];
125
+ }).sort((a, b) => b.remainingPercent - a.remainingPercent);
126
+
127
+ if (byWeeklyCapacity.length) console.table(byWeeklyCapacity);
128
+ else console.log("No current weekly usage was reported.");
129
+ ```
130
+
131
+ This example compares weekly limits only. If OpenAI Codex reports 87% used, its row shows `13` under `remainingPercent`. It skips figures from earlier model replies.
132
+
133
+ The SDK call rejects if you cancel it or Atomic can't read the saved accounts. A problem with one provider appears in that account's result without rejecting the whole report.