@bastani/atomic 0.10.9 → 0.10.10-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +211 -155
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +27 -12
  7. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
  9. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  10. package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
  11. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  12. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
  13. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
  14. package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
  15. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  16. package/dist/_shared/runtime-O4KCSG4C.js +5 -5
  17. package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
  18. package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
  19. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  20. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  21. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
  22. package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
  23. package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
  24. package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
  25. package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
  26. package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
  27. package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
  28. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
  29. package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
  30. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
  31. package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
  32. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
  33. package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
  34. package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
  35. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  36. package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
  37. package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
  38. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
  39. package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
  40. package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
  41. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  42. package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
  43. package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
  44. package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
  45. package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
  46. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  47. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  48. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  49. package/dist/builtin/intercom/README.md +85 -114
  50. package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
  51. package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
  52. package/dist/builtin/intercom/group.ts +7 -3
  53. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  54. package/dist/builtin/intercom/package.json +1 -1
  55. package/dist/builtin/mcp/README.md +37 -27
  56. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  57. package/dist/builtin/mcp/package.json +1 -1
  58. package/dist/builtin/subagents/CHANGELOG.md +8 -0
  59. package/dist/builtin/subagents/README.md +71 -138
  60. package/dist/builtin/subagents/package.json +1 -1
  61. package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
  62. package/dist/builtin/web-access/CHANGELOG.md +9 -0
  63. package/dist/builtin/web-access/README.md +60 -87
  64. package/dist/builtin/web-access/index.bundle.mjs +387 -351
  65. package/dist/builtin/web-access/package.json +1 -1
  66. package/dist/cli/args.js +2 -2
  67. package/dist/cli/auth-cli.code.js +4 -4
  68. package/dist/cli/auth-cli.impl.js +3 -3
  69. package/dist/cli/auth-cli.js +3 -3
  70. package/dist/cli/blueprint-command.code.js +2 -2
  71. package/dist/cli/blueprint-command.impl.js +3 -3
  72. package/dist/cli/blueprint-command.js +3 -3
  73. package/dist/cli/intercom-command.code.js +3 -3
  74. package/dist/cli/intercom-command.impl.js +3 -3
  75. package/dist/cli/intercom-command.js +3 -3
  76. package/dist/cli/list-models.code.js +3 -3
  77. package/dist/cli/list-models.impl.js +3 -3
  78. package/dist/cli/list-models.js +3 -3
  79. package/dist/cli/session-picker.code.js +2 -2
  80. package/dist/cli/session-picker.impl.js +3 -3
  81. package/dist/cli/session-picker.js +3 -3
  82. package/dist/cli/startup-ui.code.js +2 -2
  83. package/dist/cli/startup-ui.impl.js +3 -3
  84. package/dist/cli/startup-ui.js +3 -3
  85. package/dist/cli/storage-command.impl.js +3 -3
  86. package/dist/cli/storage-command.js +3 -3
  87. package/dist/cli/storage-search-session.code.js +2 -2
  88. package/dist/cli/storage-search-session.impl.js +3 -3
  89. package/dist/cli/storage-search-session.js +3 -3
  90. package/dist/cli/team-command.code.js +2 -2
  91. package/dist/cli/team-command.impl.js +3 -3
  92. package/dist/cli/team-command.js +3 -3
  93. package/dist/cli.js +2 -2
  94. package/dist/core/agent-session-methods.d.ts +4 -1
  95. package/dist/core/agent-session-methods.js.map +1 -1
  96. package/dist/core/agent-session.d.ts +3 -0
  97. package/dist/core/compaction/compactor.d.ts +20 -14
  98. package/dist/core/compaction/errors.d.ts +120 -0
  99. package/dist/core/compaction/index.d.ts +1 -0
  100. package/dist/core/compaction/model-resolver.d.ts +2 -2
  101. package/dist/core/debug.impl.js +3 -3
  102. package/dist/core/debug.js +3 -3
  103. package/dist/core/export-html/card-projection.impl.js +3 -3
  104. package/dist/core/export-html/card-projection.js +3 -3
  105. package/dist/core/export-html/index.code.js +2 -2
  106. package/dist/core/export-html/index.impl.js +3 -3
  107. package/dist/core/export-html/index.js +3 -3
  108. package/dist/core/export-html/json-spans.impl.js +3 -3
  109. package/dist/core/export-html/json-spans.js +3 -3
  110. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  111. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  112. package/dist/core/export-html/tool-renderer.code.js +1 -1
  113. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  114. package/dist/core/export-html/tool-renderer.js +3 -3
  115. package/dist/core/extensions/api-types.d.ts +1 -1
  116. package/dist/core/extensions/api-types.js.map +1 -1
  117. package/dist/core/extensions/index.d.ts +1 -1
  118. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  119. package/dist/core/extensions/jiti-loader.js +3 -3
  120. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  121. package/dist/core/extensions/jiti-static-loader.js +3 -3
  122. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  123. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  124. package/dist/core/extensions/loader-host-modules.js +3 -3
  125. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  126. package/dist/core/extensions/provider-types.d.ts +18 -6
  127. package/dist/core/extensions/provider-types.js.map +1 -1
  128. package/dist/core/extensions/runner-context.js +1 -1
  129. package/dist/core/intercom-broker-control-host.code.js +1 -1
  130. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  131. package/dist/core/intercom-broker-control-host.js +3 -3
  132. package/dist/core/intercom-broker-control.code.js +3 -3
  133. package/dist/core/intercom-broker-control.impl.js +3 -3
  134. package/dist/core/intercom-broker-control.js +3 -3
  135. package/dist/core/model-config.d.ts +40 -0
  136. package/dist/core/model-registry.js +1 -1
  137. package/dist/core/model-resolver-scope.d.ts +4 -4
  138. package/dist/core/model-runtime.d.ts +1 -1
  139. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  140. package/dist/core/package-manager-storage-adapters.js +3 -3
  141. package/dist/core/provider-composer-internal.d.ts +11 -2
  142. package/dist/core/sdk.code.js +3 -3
  143. package/dist/core/sdk.impl.js +3 -3
  144. package/dist/core/sdk.js +3 -3
  145. package/dist/core/session-manager-core.js +5 -5
  146. package/dist/core/session-manager-list.impl.js +3 -3
  147. package/dist/core/session-manager-list.js +3 -3
  148. package/dist/core/session-manager.code.js +1 -1
  149. package/dist/core/session-manager.impl.js +3 -3
  150. package/dist/core/session-manager.js +3 -3
  151. package/dist/core/session-storage.impl.js +3 -3
  152. package/dist/core/session-storage.js +3 -3
  153. package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
  154. package/dist/core/storage/index.js +2 -2
  155. package/dist/core/storage/node-sqlite-thread.js +2 -2
  156. package/dist/core/storage/node-sqlite.js +2 -2
  157. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  158. package/dist/core/storage/offline-snapshot-file.js +3 -3
  159. package/dist/core/storage/provider.js +2 -2
  160. package/dist/core/storage/selection.js +2 -2
  161. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  162. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  163. package/dist/core/storage/session/branch-fork-source.js +3 -3
  164. package/dist/core/storage/session/card-view.impl.js +3 -3
  165. package/dist/core/storage/session/card-view.js +3 -3
  166. package/dist/core/storage/session/child-reader.code.js +3 -3
  167. package/dist/core/storage/session/child-reader.impl.js +3 -3
  168. package/dist/core/storage/session/child-reader.js +3 -3
  169. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  170. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  171. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  172. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  173. package/dist/core/storage/session/expanded-child-details.js +3 -3
  174. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  175. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  176. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  177. package/dist/core/storage/session/fork-row-index.js +3 -3
  178. package/dist/core/storage/session/fork-staging.code.js +2 -2
  179. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  180. package/dist/core/storage/session/fork-staging.js +3 -3
  181. package/dist/core/storage/session/fork-window.code.js +3 -3
  182. package/dist/core/storage/session/fork-window.impl.js +3 -3
  183. package/dist/core/storage/session/fork-window.js +3 -3
  184. package/dist/core/storage/session/history-pages.impl.js +3 -3
  185. package/dist/core/storage/session/history-pages.js +3 -3
  186. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  187. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  188. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  189. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  190. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  191. package/dist/core/storage/session/memory-session-store.js +3 -3
  192. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  193. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  194. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  195. package/dist/core/storage/session/released-history-files.code.js +3 -3
  196. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  197. package/dist/core/storage/session/released-history-files.js +3 -3
  198. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  199. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  200. package/dist/core/storage/session/session-resume.impl.js +3 -3
  201. package/dist/core/storage/session/session-resume.js +3 -3
  202. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  203. package/dist/core/storage/session/snapshot-cut.js +3 -3
  204. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  205. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  206. package/dist/core/storage/session/snapshot-history.js +3 -3
  207. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  208. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  209. package/dist/core/storage/session/sql-session-store.js +3 -3
  210. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  211. package/dist/core/storage/session/tree-outline.js +3 -3
  212. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  213. package/dist/core/storage/session/tree-presentation.js +3 -3
  214. package/dist/core/storage/storage-status.impl.js +3 -3
  215. package/dist/core/storage/storage-status.js +3 -3
  216. package/dist/core/storage/team.impl.js +3 -3
  217. package/dist/core/storage/team.js +3 -3
  218. package/dist/core/structured-output/index.code.js +1 -1
  219. package/dist/core/structured-output/index.impl.js +3 -3
  220. package/dist/core/structured-output/index.js +3 -3
  221. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  222. package/dist/core/tasks/task-completion-entry.js +3 -3
  223. package/dist/core/tasks/task-file-history.code.js +3 -3
  224. package/dist/core/tasks/task-file-history.impl.js +3 -3
  225. package/dist/core/tasks/task-file-history.js +3 -3
  226. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  227. package/dist/core/tasks/task-reference-archive.js +3 -3
  228. package/dist/core/tasks/task-reference-identity.code.js +1 -1
  229. package/dist/core/tasks/task-reference-identity.js +3 -3
  230. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  231. package/dist/core/tasks/task-reference-stream.js +3 -3
  232. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  233. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  234. package/dist/core/tasks/task-view-source.impl.js +3 -3
  235. package/dist/core/tasks/task-view-source.js +3 -3
  236. package/dist/core/tools/read-url.code.js +2 -2
  237. package/dist/core/tools/read-url.impl.js +3 -3
  238. package/dist/core/tools/read-url.js +3 -3
  239. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  240. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  241. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  242. package/dist/core/worktree-snapshot/errors.js +3 -3
  243. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  244. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  245. package/dist/extensions/codemode/execute.code.js +1 -1
  246. package/dist/extensions/codemode/execute.impl.js +3 -3
  247. package/dist/extensions/codemode/execute.js +3 -3
  248. package/dist/extensions/codemode/renderer.code.js +2 -2
  249. package/dist/extensions/codemode/renderer.impl.js +3 -3
  250. package/dist/extensions/codemode/renderer.js +3 -3
  251. package/dist/extensions/mcp/cli.code.js +2 -2
  252. package/dist/extensions/mcp/cli.impl.js +3 -3
  253. package/dist/extensions/mcp/cli.js +3 -3
  254. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  255. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  256. package/dist/extensions/mcp/cli.lazy.js +3 -3
  257. package/dist/extensions/mcp/runtime.code.js +1 -1
  258. package/dist/extensions/mcp/runtime.impl.js +3 -3
  259. package/dist/extensions/mcp/runtime.js +3 -3
  260. package/dist/index-extensions.d.ts +1 -1
  261. package/dist/index.d.ts +8 -1
  262. package/dist/index.js +7 -7
  263. package/dist/main-first-time-setup.code.js +2 -2
  264. package/dist/main-first-time-setup.impl.js +3 -3
  265. package/dist/main-first-time-setup.js +3 -3
  266. package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
  267. package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
  268. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  269. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  270. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  271. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  272. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  273. package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
  274. package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
  275. package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
  276. package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
  277. package/dist/modes/print-mode.js +1 -1
  278. package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
  279. package/dist/modes/rpc/rpc-types.d.ts +29 -2
  280. package/dist/package-manager-cli.code.js +5 -5
  281. package/dist/package-manager-cli.impl.js +3 -3
  282. package/dist/package-manager-cli.js +3 -3
  283. package/dist/rpc-entry.js +1 -1
  284. package/dist/startup-files.json +1 -1
  285. package/dist/startup-stages/5.js +1 -1
  286. package/dist/startup-stages/7.js +1 -1
  287. package/dist/startup-stages/8.js +1 -2
  288. package/dist/startup-stages/9.js +2 -1
  289. package/dist/utils/native-module.d.ts +44 -0
  290. package/dist/utils/startup-database-spare.code.js +3 -3
  291. package/dist/utils/startup-database-spare.impl.js +3 -3
  292. package/dist/utils/startup-database-spare.js +3 -3
  293. package/dist/utils/tools-manager.code.js +1 -1
  294. package/dist/utils/tools-manager.impl.js +3 -3
  295. package/dist/utils/tools-manager.js +3 -3
  296. package/docs/background-tasks.md +235 -243
  297. package/docs/build.md +12 -11
  298. package/docs/codemode.md +60 -51
  299. package/docs/compaction/reference.md +61 -24
  300. package/docs/compaction.md +117 -65
  301. package/docs/computer-use.md +179 -146
  302. package/docs/containerization.md +79 -33
  303. package/docs/custom-provider/api-reference.md +148 -11
  304. package/docs/custom-provider/oauth.md +44 -27
  305. package/docs/custom-provider/override.md +14 -7
  306. package/docs/custom-provider/registration.md +75 -65
  307. package/docs/custom-provider/streaming.md +42 -19
  308. package/docs/custom-provider.md +25 -61
  309. package/docs/development.md +47 -43
  310. package/docs/docs.json +33 -33
  311. package/docs/environment-variables.md +83 -57
  312. package/docs/extensions/api-reference.md +323 -734
  313. package/docs/extensions/authoring.md +186 -269
  314. package/docs/extensions/events.md +308 -375
  315. package/docs/extensions/examples.md +122 -74
  316. package/docs/extensions/ui.md +217 -197
  317. package/docs/extensions.md +152 -259
  318. package/docs/getting-started/authentication.md +27 -14
  319. package/docs/getting-started/first-session.md +25 -26
  320. package/docs/getting-started/installation.md +62 -84
  321. package/docs/getting-started/project-instructions.md +39 -14
  322. package/docs/guides/configuration.md +42 -20
  323. package/docs/guides/intercom.md +17 -13
  324. package/docs/guides/non-interactive.md +29 -16
  325. package/docs/guides/orchestration.md +16 -10
  326. package/docs/guides/resume-on-any-machine.md +54 -49
  327. package/docs/guides/subagents.md +22 -14
  328. package/docs/guides/team-setup.md +37 -26
  329. package/docs/guides.md +22 -21
  330. package/docs/herdr.md +21 -16
  331. package/docs/index.md +16 -17
  332. package/docs/intercom/operations.md +68 -66
  333. package/docs/intercom/reference.md +196 -191
  334. package/docs/intercom.md +103 -92
  335. package/docs/json.md +71 -71
  336. package/docs/keybindings.md +63 -50
  337. package/docs/libraries/agent-core.md +49 -8
  338. package/docs/libraries/ai.md +21 -12
  339. package/docs/libraries/codemode.md +28 -6
  340. package/docs/libraries/schema.md +7 -7
  341. package/docs/libraries/telemetry.md +7 -7
  342. package/docs/libraries/tui.md +74 -94
  343. package/docs/libraries.md +5 -5
  344. package/docs/llama-cpp.md +38 -33
  345. package/docs/mcp-servers.md +96 -90
  346. package/docs/models/reference.md +46 -33
  347. package/docs/models-configuration.md +12 -6
  348. package/docs/models.md +93 -88
  349. package/docs/orchestration/migrating-workflows.md +21 -19
  350. package/docs/orchestration/patterns.md +35 -20
  351. package/docs/orchestration.md +22 -21
  352. package/docs/packages/authoring.md +28 -19
  353. package/docs/packages/reference.md +75 -16
  354. package/docs/packages.md +31 -33
  355. package/docs/programmatic.md +22 -21
  356. package/docs/prompt-templates.md +63 -41
  357. package/docs/providers/reference.md +35 -19
  358. package/docs/providers.md +61 -71
  359. package/docs/quickstart.md +32 -46
  360. package/docs/reference/cli.md +249 -252
  361. package/docs/reference.md +23 -20
  362. package/docs/rpc/examples.md +74 -17
  363. package/docs/rpc/extension-ui.md +79 -62
  364. package/docs/rpc/protocol.md +816 -358
  365. package/docs/rpc.md +75 -151
  366. package/docs/sdk/reference.md +175 -45
  367. package/docs/sdk/structured-decisions.md +92 -62
  368. package/docs/sdk/web-server.md +79 -46
  369. package/docs/sdk.md +237 -195
  370. package/docs/security.md +106 -43
  371. package/docs/session-format.md +96 -59
  372. package/docs/sessions.md +149 -113
  373. package/docs/settings.md +289 -204
  374. package/docs/shell-aliases.md +15 -6
  375. package/docs/skills/authoring.md +17 -9
  376. package/docs/skills/reference.md +23 -21
  377. package/docs/skills.md +104 -97
  378. package/docs/storage.md +140 -242
  379. package/docs/subagents/authoring.md +147 -16
  380. package/docs/subagents/reference.md +100 -30
  381. package/docs/subagents.md +220 -252
  382. package/docs/terminal-setup.md +97 -69
  383. package/docs/termux.md +51 -85
  384. package/docs/themes/reference.md +51 -37
  385. package/docs/themes.md +49 -54
  386. package/docs/tmux.md +38 -21
  387. package/docs/tools.md +198 -147
  388. package/docs/tui/reference.md +64 -32
  389. package/docs/tui.md +38 -66
  390. package/docs/usage.md +76 -78
  391. package/docs/verification.md +25 -25
  392. package/docs/web-access.md +72 -55
  393. package/docs/windows.md +53 -58
  394. package/docs/worktree-snapshots.md +62 -65
  395. package/package.json +8 -8
  396. package/schemas/models.schema.json +51 -0
  397. package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
  398. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
  399. package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
  400. package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
  401. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
package/docs/usage.md CHANGED
@@ -1,19 +1,14 @@
1
1
  ---
2
- title: "Interactive use"
3
- description: "Interactive mode, slash commands, the message queue, sessions, and context files."
2
+ title: "Interactive mode"
3
+ sidebarTitle: "Interactive mode"
4
+ description: "Use Atomic's terminal editor, slash commands, startup typing, message queue, sessions, and context files."
4
5
  ---
5
6
 
6
- # Using Atomic
7
+ Interactive mode runs Atomic in a fullscreen terminal interface for day-to-day coding, slash commands, message queueing, and session navigation. For every CLI command, flag, and exit code, see the [CLI reference](/reference/cli).
7
8
 
8
- This page collects day-to-day usage details that do not fit on the quickstart page.
9
+ ## Terminal interface
9
10
 
10
- ## On this page and its reference
11
-
12
- This page covers interactive use: the interactive loop, slash commands, the message queue, sessions, context files, and the design principles behind them. Every command, flag, argument, and environment variable now lives in the [CLI reference](/reference/cli).
13
-
14
- ## Interactive mode
15
-
16
- <p align="center"><img src="images/interactive-mode.png" alt="Interactive Mode" width="600" /></p>
11
+ <p align="center"><img src="images/interactive-mode.png" alt="Screenshot of Atomic interactive mode in a dark terminal window displaying the purple Atomic logo, a user prompt, inline tool call results, token and cost statistics above the bottom input box, and the esc to interrupt footer hint." width="600" /></p>
17
12
 
18
13
  The interface has four main areas:
19
14
 
@@ -24,11 +19,11 @@ The interface has four main areas:
24
19
 
25
20
  Built-in views such as `/settings` or custom extension UI can temporarily replace the editor.
26
21
 
27
- ### Startup and working identity
22
+ ### Startup animation and working indicator
28
23
 
29
- The startup animation shows Atomic's identity. Press any key, including Ctrl+C, to finish it immediately and continue normal input. Setting `quietStartup` to `true` hides it, while `"header"` keeps it. Non-TTY sessions and `ATOMIC_REDUCED_MOTION=1` show the settled identity without animation. Setting `NO_COLOR` turns off foreground and background colors and text styles (bold, italic, dim, underline, inverse, and strikethrough).
24
+ The startup animation introduces Atomic on launch. Press any key, including `Ctrl+C`, to finish it immediately and continue normal input. Setting `quietStartup` to `true` hides it, while `"header"` keeps it. Non-TTY sessions and `ATOMIC_REDUCED_MOTION=1` show the settled logo without animation. Setting `NO_COLOR` (to any value, including an empty string) or `FORCE_COLOR=0` turns off foreground and background colors and text styles (bold, italic, dim, underline, inverse, and strikethrough).
30
25
 
31
- Startup lists loaded context files, skills, prompts, and extensions by name. Custom themes are not listed; choose them in `/settings`. Duplicate local extension names include path details. Expand the startup block to inspect source paths.
26
+ Startup lists loaded context files, skills, prompts, and extensions by name. Custom themes are not listed; choose them in `/settings`. Duplicate local extension names include path details. Expand the startup block with `Ctrl+O` to inspect source paths.
32
27
 
33
28
  While the agent works, `∀` pulses beside a status message with the current run's elapsed time and output tokens. A new run starts a fresh meter; steering keeps the current meter. Retry, fallback, compaction, cancellation, and error notices take precedence, and approval prompts hide ordinary activity. Set `ATOMIC_REDUCED_MOTION=1` for a static mark (elapsed time still updates once per second) or `NO_COLOR` for plain unstyled output. Extensions can [customize the indicator](/tui#pattern-4b-working-indicator-customization).
34
29
 
@@ -37,31 +32,37 @@ Compaction shows a still `∀` mark with elapsed time and the cancel key. Openin
37
32
  ### Editor features
38
33
 
39
34
  | Feature | How |
40
- |---------|-----|
35
+ | --- | --- |
41
36
  | File reference | Type `@` to fuzzy-search project files |
42
- | Path completion | Press Tab to complete paths |
37
+ | Path completion | Press `Tab` to complete paths |
43
38
  | Prompt history | `↑` and `↓` walk past prompts; `Ctrl+R` searches them and places the chosen prompt in the editor without sending |
44
39
  | Multi-line input | `Shift+Enter` or `Ctrl+J` |
45
40
  | Images | Paste with `Ctrl+V` (`Alt+V` or `Ctrl+V` on Windows and WSL), or drag into the terminal |
46
41
  | Shell command | `!command` runs a command and includes output in model context |
47
42
  | Hidden shell command | `!!command` runs a command without sending output to model context |
48
- | External editor | `Ctrl+G` opens `externalEditor`, `$VISUAL`, or `$EDITOR` |
43
+ | External editor | `Ctrl+G` opens `externalEditor`, `$VISUAL`, or `$EDITOR` (falling back to `notepad` on Windows or `nano` on macOS and Linux) |
49
44
 
50
- The `@` and `/` menus end with a hint line naming active keys. `Tab` completes without sending. `Enter` inserts an `@` path; for a `/`-prefixed completion (including an absolute path), `Enter` submits the completed prompt. Remapped menu keys appear only when an app shortcut or earlier menu action does not claim them first.
45
+ **`@` file picker and completion menus:** The `@` picker searches with `fd` (`--follow --hidden`, respecting `.gitignore` and skipping `.git/`), supports quoted paths with spaces (`@"path with spaces"`), and wraps paths containing spaces automatically. If `fd` is unavailable, it falls back to single-directory listing like `Tab`. Both `@` and `/` menus end with a hint line naming active keys: `Tab` completes without sending, and `Enter` inserts an `@` path or submits a `/`-prefixed completion (including absolute paths). Remapped menu keys appear only when an app shortcut or earlier menu action does not claim them first.
51
46
 
52
- `Ctrl+R` searches the viewed agent's recorded prompts, newest first, including prompts sent through templates or skills and prompts rewritten by an `input` hook. Editor `↑` and `↓` walk what you typed during the current run (on `main`, the main chat's prompts; while viewing a subagent, that subagent's prompts; queued messages come back with `Alt+Up` or `Alt+Q` rather than `↑`). `Esc` clears search text and then closes the search without touching your draft or interrupting the agent.
47
+ **Prompt history:** Editor `↑` and `↓` keep up to 100 recent adjacent-deduplicated prompts typed during the current run (per viewed agent: `main` or the selected subagent; retrieve queued messages with `Alt+Up` or `Alt+Q` instead). `Ctrl+R` searches the viewed agent's recorded prompts newest first, including prompts expanded from templates or skills and prompts transformed by an `input` hook. When an `input` hook transforms a prompt, Atomic saves and searches the transformed text in `Ctrl+R`, while editor `↑` and `↓` walk the raw text you typed. `Esc` clears search text and then closes search without touching your draft or interrupting the agent. Avoid typing secrets directly into prompts.
53
48
 
54
- When an `input` hook transforms a prompt, Atomic saves the transformed text to session history and searches that transformed text in `Ctrl+R`. Only editor `↑` and `↓` walk the raw text you typed during the current run. Avoid typing secrets directly into prompts.
49
+ **Interactive shell commands (`!` and `!!`):** Only one interactive `!` or `!!` command can run at a time; submitting another warns that a command is already running and restores your text. On native Windows, `!` and `!!` run PowerShell (preferring PowerShell 7 `pwsh.exe`, then Windows PowerShell `powershell.exe`; see [Windows](/windows)). Linux, macOS, and WSL use Bash. Extension-provided execution hooks take precedence. `shellCommandPrefix` is prepended to each command, so match the active shell's syntax (`shellPath` configures Bash, not Windows interactive PowerShell). `Esc` or `Ctrl+C` cancels a running command. While viewing a subagent, `!` and `!!` commands are refused; switch to `main` to run them.
50
+
51
+ **Suspend and subshell:** On native Windows, `Alt+Z` opens an interactive PowerShell subshell; type `exit` to return to the same Atomic session while background tasks keep running, and `Ctrl+Z` stays editor undo. On POSIX systems and WSL, `Ctrl+Z` suspends Atomic and `fg` resumes it.
55
52
 
56
53
  See [Keybindings](/keybindings) for all shortcuts and customization.
57
54
 
58
- On native Windows, `!` and `!!` run PowerShell (preferring PowerShell 7 `pwsh.exe`, then Windows PowerShell `powershell.exe`; see [Windows](/windows)). Linux, macOS, and WSL use Bash. Extension-provided execution hooks take precedence. `shellCommandPrefix` is prepended to each command, so match the active shell's syntax (`shellPath` configures Bash, not Windows interactive PowerShell). `Esc` or `Ctrl+C` cancels a running command. While viewing a subagent, `!` and `!!` commands are refused; switch to `main` to run them.
55
+ ## Startup typing
59
56
 
60
- On native Windows, `Alt+Z` opens an interactive PowerShell subshell; type `exit` to return to the same Atomic session while background tasks keep running, and `Ctrl+Z` stays editor undo. On POSIX systems and WSL, `Ctrl+Z` suspends Atomic and `fg` resumes it.
57
+ On eligible interactive starts, Atomic opens the prompt editor immediately so you can start typing right away, and keeps your text while the session finishes loading.
61
58
 
62
- ## Startup typing
59
+ Immediate startup typing activates in a fullscreen terminal when all of these hold:
63
60
 
64
- On eligible interactive starts, Atomic opens the prompt editor immediately so you can start typing right away, and your text is kept while the session finishes loading. This applies in a fullscreen terminal when no startup dialog (such as first-run setup or a project trust prompt), custom editor display setting, or CLI flag outside `--offline`, `--no-mcp`, `--verbose`, `--approve`/`-a`, and `--no-approve`/`-na` is active. Static built-in global themes (`dark`, `light`, and the Catppuccin palettes) stay eligible; `system` and `light/dark` pairs use standard startup.
61
+ - Standard input and output are a TTY, `CI` is unset, and `TERM` is not `dumb`.
62
+ - No startup dialog (such as first-run setup or a project trust prompt) is shown.
63
+ - No CLI flags are passed outside `--offline`, `--no-mcp`, `--verbose`, `--approve`/`-a`, and `--no-approve`/`-na`.
64
+ - None of these editor display settings are set in global, legacy, or project settings: `editorPaddingX`, `autocompleteMaxVisible`, `showHardwareCursor`, `terminal`, `fullscreenScrollbar`, `fullscreenCopyOnSelect`, or `fullscreenWheelScrollLines`.
65
+ - No project or legacy `theme` override is set, and the global `theme` is unset or one of the six static built-in themes (`dark`, `light`, `catppuccin-frappe`, `catppuccin-latte`, `catppuccin-macchiato`, `catppuccin-mocha`). `system` and `light/dark` pairs use standard startup.
65
66
 
66
67
  While the session is still loading:
67
68
 
@@ -85,63 +86,72 @@ When a startup screen appears (project trust, first-run setup, resume picker, or
85
86
 
86
87
  Type `/` in the editor to open command completion. Extensions can register custom commands, skills run as `/skill:name`, and prompt templates expand via `/templatename`. While viewing a subagent, built-in commands target `main` (confirming commands that replace or rewrite the main chat, refusing `/model` and `/thinking`, and using `/copy` for the viewed subagent's last message), while skills, prompt templates, and user or project extension commands target the viewed subagent; see [Commands while viewing a subagent](/background-tasks#commands-while-viewing-a-subagent).
87
88
 
89
+ Commands that take no arguments (such as `/new`, `/tools`, `/reload`, `/tree`, `/fork`, `/clone`, `/settings`, and `/session` with anything other than `snapshot`) match only when entered bare. Appending extra text sends that text to the model as a normal prompt.
90
+
88
91
  `/settings` lists each setting and value, shortening long labels on narrow terminals. Type to search; press `Enter` or `Space` to step a value or open its picker (`›`). `Right` never changes or saves a setting. The selected setting's description appears below the list, and `Esc` clears search before closing.
89
92
 
90
93
  | Command | Description |
91
- |---------|-------------|
92
- | `/login`, `/logout` | Manage OAuth or API-key credentials |
93
- | `/model` | Switch models and save the startup default |
94
- | `/thinking` | Switch thinking level and save the startup default |
94
+ | --- | --- |
95
+ | `/login [provider]` | Sign in with an OAuth subscription or save an API key. Accepts an optional provider ID or display name |
96
+ | `/logout [provider]` | Remove stored credentials from `~/.atomic/agent/auth.json` (leaves environment variables and `models.json` unchanged) |
97
+ | `/model [provider/model]` | Switch models and save the startup default. An exact case-insensitive match (`provider/id` or bare `id`, no `:thinking` suffix) switches immediately; other text opens the picker pre-filtered. Searches scoped models when active, otherwise all available models |
98
+ | `/thinking [level]` | Set the thinking level (case-insensitive) and save the startup default. Rejects levels unsupported by the current model with an error listing available levels |
95
99
  | `/scoped-models` | Enable, disable, and reorder models for `Ctrl+P` cycling |
96
100
  | `/settings` | Change theme, message delivery, transport, and other preferences |
97
- | `/resume` | Browse and resume previous sessions |
101
+ | `/resume [id\|prefix]` | Open a session directly by full ID or unique 8-hex prefix, or browse previous sessions when called with no argument |
98
102
  | `/new` | Start a new session |
99
- | `/name <name>` | Set the session display name |
103
+ | `/name [name]` | Set the session display name, or print the current name when called with no argument |
100
104
  | `/session [snapshot]` | Show session location, ID, messages, tokens, and cost; `snapshot` shows worktree snapshots and diffs |
101
105
  | `/tools` | Show active tools, why other tools are off, and unregistered names in `defaultTools` |
102
- | `/tasks` | Inspect agents and background shells, view output, and manage running tasks |
106
+ | `/tasks [taskId]` | Inspect background subagents and shells, or open a specific task directly by task ID |
103
107
  | `/tree` | Jump to any point in the session tree and continue from there |
104
108
  | `/fork` | Create a new session from an earlier user message |
105
109
  | `/clone` | Duplicate the current active branch into a new session |
106
- | `/compact [instructions]` | Clear or compact the context window; the agent recovers needed details from session history |
110
+ | `/compact [instructions]` | Clear or compact the context window so the agent recovers details from session history. A manual `/compact` can take over an automatic compaction in progress; a second manual call warns and is ignored |
107
111
  | `/copy` | Copy the last assistant message to the clipboard |
108
- | `/export [file]` | Export the session to HTML (default) or format-4 `.jsonl` when `file` ends in `.jsonl` |
109
- | `/import <file>` | Import a format-4 `.jsonl` session export and replace the current session |
110
- | `/share` | Upload as a private GitHub gist with a shareable HTML link |
112
+ | `/export [file]` | Export the session to HTML (default) or to a JSONL export when `file` ends in `.jsonl` (case-insensitive). Accepts quoted paths with spaces and rejects unclosed quotes |
113
+ | `/import <file>` | Import an exported `.jsonl` session (accepts quoted paths; asks for confirmation before replacing the current session) |
114
+ | `/share` | Upload a private GitHub gist with a shareable HTML link. Requires `gh` installed and authenticated (`gh auth login`); strips worktree snapshot contents and large tool-output blobs from the uploaded copy |
111
115
  | `/trust` | Save a project trust decision for future sessions |
112
- | `/llama` | Manage local `llama.cpp` router models (load, unload, or download from Hugging Face) |
113
- | `/reload` | Reload keybindings, extensions, skills, prompts, themes, and context files |
116
+ | `/reload` | Reload keybindings, extensions, skills, prompts, themes, context files, system prompt files, `settings.json`, and `models.json` (refused while the agent is streaming or compaction is active) |
114
117
  | `/hotkeys` | Show all keyboard shortcuts |
115
118
  | `/changelog` | Display the full version history |
119
+ | `/debug` | Unlisted diagnostic command that appends a UI and message snapshot to `~/.atomic/agent/atomic-debug.log` and prints the file path (see [Debugging](/development#debugging)) |
116
120
  | `/exit`, `/quit` | Exit Atomic |
117
121
 
118
- Bundled integrations also register `/agents` (subagents), `/mcp` (MCP servers), `/intercom` (Intercom overlay), and `/curator`, `/websearch`, `/search`, `/google-account` ([Web access](/web-access)).
122
+ **Bundled extension commands:** Atomic's bundled extensions also register `/agents` (subagents), `/mcp` (MCP servers), `/intercom` (Intercom overlay), `/llama` (load, unload, or download local `llama.cpp` router models from Hugging Face; see [Local models](/llama-cpp)), and `/curator`, `/websearch`, `/search`, `/google-account` ([Web access](/web-access)).
119
123
 
120
124
  ## Message queue
121
125
 
122
- You can submit messages while the agent works. The same queue and interrupt keys apply on `main` and while viewing a subagent, except `Esc` pauses a viewed subagent instead of interrupting `main`:
126
+ You can submit messages while the agent works. Atomic runs your session in a background session process separate from the terminal UI so queued input and interrupts stay responsive.
127
+
128
+ ### Queueing and interrupting
129
+
130
+ The same queue and interrupt keys apply on `main` and while viewing a subagent, except `Esc` pauses a viewed subagent instead of interrupting `main`:
123
131
 
124
- - **Enter** queues a steering message, delivered after the current assistant turn finishes its tool calls.
125
- - **Alt+Enter** (**Ctrl+Q** on Windows and WSL) queues a follow-up message, delivered after the agent finishes all work.
126
- - **Escape** aborts active or queued work and restores still-queued steering and follow-up messages to the editor. The session stays paused until you submit the next ordinary chat message, which releases any held queue before starting the turn. Another `Escape` while paused restores newly queued text without releasing the pause.
127
- - **Ctrl+C** clears editor text first. On an empty editor, it aborts active or queued work and pauses queued messages in place in their original order until your next ordinary submission. After the abort settles, `Ctrl+C` on an empty editor displays `Press Ctrl+C again to exit` without releasing the hold, and a second press within 0.8 seconds exits.
128
- - **Alt+Up** (**Alt+Q** on Windows and WSL) retrieves queued messages back to the editor without aborting active work or resuming a paused session. It restores only messages the agent has not already taken into its turn, and reports an error without dropping messages if the engine is unreachable.
132
+ - **`Enter`** queues a steering message, delivered after the current assistant turn finishes its tool calls.
133
+ - **`Alt+Enter`** (**`Ctrl+Q`** on Windows and WSL) queues a follow-up message, delivered after the agent finishes all work.
134
+ - **`Escape`** aborts active or queued work and restores still-queued steering and follow-up messages to the editor. The session stays paused until you submit the next ordinary chat message, which releases any held queue before starting the turn. Another `Escape` while paused restores newly queued text without releasing the pause.
135
+ - **`Ctrl+C`** clears editor text first. On an empty editor, it aborts active or queued work and pauses queued messages in place in their original order until your next ordinary submission. After the abort settles, `Ctrl+C` on an empty editor displays `Press Ctrl+C again to exit` without releasing the hold, and a second press within 0.8 seconds exits.
136
+ - **`Alt+Up`** (**`Alt+Q`** on Windows and WSL) retrieves queued messages back to the editor without aborting active work or resuming a paused session. It restores only messages the agent has not already taken into its turn, and reports an error without dropping messages if the background session process is unreachable.
129
137
 
130
- Each queue keeps submission order, and steering messages run ahead of follow-ups. Messages submitted during compaction, prompt templates, skills, and messages sent from slash commands via `atomic.sendUserMessage()` wait in queue order until compaction ends or is cancelled. Non-prompt slash commands such as `/settings`, `/tasks`, and `/model` run immediately during compaction.
138
+ Each queue keeps submission order, and steering messages run ahead of follow-ups. Messages submitted during compaction, prompt templates, skills, and messages sent by slash commands wait in queue order until compaction ends or is cancelled. Non-prompt slash commands such as `/settings`, `/tasks`, and `/model` run immediately during compaction.
131
139
 
132
140
  Messages submitted while Atomic prepares a prompt, waits to retry a failed request, or finishes end-of-run extension hooks queue the same way and join the next turn boundary in order. If the first message sent after compaction fails, it stays queued ahead of later messages so your next submission retries them in order, and `Alt+Up` (or `Alt+Q`) returns them together.
133
141
 
134
142
  Interrupts hold only messages still waiting in the queue. A message the agent already picked up stays in the transcript; if an interrupt cancels its reply before any output prints, Atomic answers it rather than stranding it. A reply that already began printing stays as printed, and sending a message while a recovered reply streams queues cleanly until it finishes.
135
143
 
136
- Both abort paths request cooperative cancellation and leave the engine running during normal interrupts. Pending tool calls abort immediately with `Operation aborted`. Any active tool call still running 10 seconds after the interrupt (configurable via `ATOMIC_TOOL_ABORT_GRACE_MS`; see [Environment variables](/environment-variables)) receives `Operation aborted: <tool> did not stop within 10 seconds after the turn was interrupted`, letting the turn finish while discarding any later output from that call.
144
+ On Windows and WSL, follow-up queueing defaults to `Ctrl+Q` and dequeue defaults to `Alt+Q`, avoiding Windows Terminal's `Alt+Enter` fullscreen binding. Only remap `Alt+Enter` in [Terminal setup](/terminal-setup) if you explicitly rebind an action to `alt+enter`.
137
145
 
138
- `Ctrl+C` also provides explicit recovery. It closes an extension's custom UI if that UI does not handle `Ctrl+C`. If the engine stops answering, or a cancel or queue-clear request fails or stalls for over one second (even while heartbeats continue), `Ctrl+C` terminates and replaces the engine. Recovery never triggers automatically. Replacing the engine interrupts running tools; check `/tasks` and the transcript before repeating actions.
146
+ Configure delivery behavior with `steeringMode` and `followUpMode` in [Settings](/settings#message-delivery).
139
147
 
140
- If sending fails, Atomic restores your unsent text (including pasted content) to the editor above any text typed while the send was pending, along with later queued messages in order, without adding a redundant red error. See [Keybindings](/keybindings#application).
148
+ ### Interrupt grace period and recovery
141
149
 
142
- On Windows and WSL, follow-up queueing defaults to `Ctrl+Q` and dequeue defaults to `Alt+Q`, avoiding Windows Terminal's `Alt+Enter` fullscreen binding. Only remap `Alt+Enter` in [Terminal setup](/terminal-setup) if you explicitly rebind an action to `alt+enter`.
150
+ Both abort paths request cooperative cancellation and keep the background session process running during normal interrupts. Pending tool calls abort immediately with `Operation aborted`. Any active tool call still running 10 seconds after the interrupt (configurable via `ATOMIC_TOOL_ABORT_GRACE_MS`; see [Environment variables](/environment-variables)) receives `Operation aborted: <tool> did not stop within 10 seconds after the turn was interrupted`, letting the turn finish while discarding any later output from that call.
143
151
 
144
- Configure delivery behavior with `steeringMode` and `followUpMode` in [Settings](/settings#message-delivery).
152
+ `Ctrl+C` also provides explicit recovery. It closes an extension's custom UI if that UI does not handle `Ctrl+C`. If the background session process stops answering, or a cancel or queue-clear request fails or stalls for over one second, `Ctrl+C` terminates and restarts the session process. Recovery never triggers automatically. Restarting the session process interrupts running tools; check `/tasks` and the transcript before repeating actions.
153
+
154
+ If sending fails, Atomic restores your unsent text (including pasted content) to the editor above any text typed while the send was pending, along with later queued messages in order, without adding a redundant red error. See [Keybindings](/keybindings#application).
145
155
 
146
156
  ## Sessions
147
157
 
@@ -159,13 +169,20 @@ Useful interactive session commands:
159
169
 
160
170
  See [Sessions](/sessions) and [Compaction](/compaction) for storage selection, ID matching, branching, and compaction details.
161
171
 
162
- ## Context files
172
+ ## Context and system prompt files
163
173
 
164
- Atomic loads `AGENTS.override.md`, `AGENTS.md`, or `CLAUDE.md` from `~/.atomic/agent/`, ancestor directories, and the current directory. See [Project instructions](/getting-started/project-instructions) for discovery order and override rules. Disable context files for one run with `--no-context-files` or `-nc`.
174
+ Atomic loads `AGENTS.override.md`, `AGENTS.md`, `AGENTS.MD`, `CLAUDE.md`, or `CLAUDE.MD` from global config directories, ancestor directories up to the filesystem root, and the current directory. See [Add project instructions](/getting-started/project-instructions) for exact single-file-per-directory priority, worktree shadowing, and untrusted-project rules. Disable context files for one run with `--no-context-files` or `-nc`.
165
175
 
166
176
  ### System prompt files
167
177
 
168
- Replace the default system prompt with `.atomic/SYSTEM.md` (project) or `~/.atomic/agent/SYSTEM.md` (global). Append to the default prompt with `APPEND_SYSTEM.md` in either location.
178
+ Replace the default system prompt with `SYSTEM.md` or append standing instructions with `APPEND_SYSTEM.md`. Atomic loads only the **first existing file** in this order:
179
+
180
+ 1. `.atomic/SYSTEM.md` (trusted projects only)
181
+ 2. `.pi/SYSTEM.md` (trusted projects only)
182
+ 3. `~/.atomic/agent/SYSTEM.md`
183
+ 4. `~/.pi/agent/SYSTEM.md`
184
+
185
+ `APPEND_SYSTEM.md` uses the exact same four-path order, so a project `APPEND_SYSTEM.md` **replaces** (does not concatenate with) a global `APPEND_SYSTEM.md`. Passing `--system-prompt` overrides `SYSTEM.md`, and passing `--append-system-prompt` replaces any discovered `APPEND_SYSTEM.md`. Context files and skills still append even when `SYSTEM.md` or `--system-prompt` replaces the default prompt.
169
186
 
170
187
  The default prompt instructs the agent to write self-describing code without unnecessary comments unless requested. Ask for comments directly in your prompt or add a standing rule in a context file or `APPEND_SYSTEM.md`.
171
188
 
@@ -173,37 +190,18 @@ The agent recalls earlier sessions in this project through `history://` when you
173
190
 
174
191
  ## Exporting and sharing sessions
175
192
 
176
- Use `/export [file]` to write a session to HTML (default) or to format-4 `.jsonl` when the filename ends in `.jsonl`. In exported HTML, press `T` to toggle thinking, `O` to toggle tool output, and `H` to show custom messages hidden in the terminal.
193
+ Use `/export [file]` to write a session to HTML (default) or to a JSONL export when the filename ends in `.jsonl` (case-insensitive). Quoted filenames work for paths containing spaces, and unclosed quotes return an error. In exported HTML, press `T` to toggle thinking, `O` to toggle tool output, and `H` to show custom messages hidden in the terminal.
177
194
 
178
- `atomic --export <session.jsonl> [file]` renders an `Agent(...)` card for a single subagent launch on the selected branch, showing the prompt, tool calls, and answer saved in the receipt without opening the child's session. Background handoffs are labeled as handoffs rather than running children, and **Recorded arguments and result** shows the original record. Parallel launches and other extension tools keep their normal export format.
195
+ `atomic --export <session.jsonl> [file]` renders a single subagent launch on the selected branch as an `Agent(...)` card showing its prompt, tool calls, and final answer. Parallel launches and other extension tools keep their normal export format.
179
196
 
180
- Use `/share` to upload a private GitHub gist with a shareable link that opens in `https://bastani.ai/session/` (override with `ATOMIC_SHARE_VIEWER_URL`).
197
+ Use `/share` to upload a private GitHub gist with a shareable link that opens in `https://bastani.ai/session/` (override with `ATOMIC_SHARE_VIEWER_URL`). `/share` requires the GitHub CLI (`gh`) installed and authenticated, and strips worktree snapshot contents and large tool-output blobs before uploading.
181
198
 
182
199
  Treat exported and shared sessions as sensitive. Transcripts can contain source code, file paths, and credentials; review a session before sharing it with anyone who has the link.
183
200
 
184
- ## Design principles
185
-
186
- Atomic keeps the core CLI small and bundles first-party integrations for subagents, MCP, web access, and [Intercom](/intercom). For reusable multi-step procedures, write a [skill](/skills#skills-as-workflows).
187
-
188
- ## Moved sections
189
-
190
- CLI flags, commands, and environment variables moved to the [CLI reference](/reference/cli):
201
+ ## CLI reference
191
202
 
192
- <a id="cli-reference" />
193
- <a id="package-commands" />
194
- <a id="credential-commands" />
195
- <a id="modes" />
196
- <a id="model-options" />
197
- <a id="session-options" />
198
- <a id="tool-options" />
199
- <a id="project-trust-options" />
200
- <a id="resource-options" />
201
- <a id="other-options" />
202
- <a id="file-arguments" />
203
- <a id="examples" />
204
- <a id="environment-variables" />
203
+ All CLI commands, flags, model-matching rules, and environment variables live in the [CLI reference](/reference/cli):
205
204
 
206
- - [CLI reference](/reference/cli#cli-reference), [Package commands](/reference/cli#package-commands), and [Credential commands](/reference/cli#credential-commands)
207
205
  - [Modes](/reference/cli#modes), [Model options](/reference/cli#model-options), and [Session options](/reference/cli#session-options)
208
206
  - [Tool options](/reference/cli#tool-options), [Project trust options](/reference/cli#project-trust-options), [Resource options](/reference/cli#resource-options), and [Other options](/reference/cli#other-options)
209
- - [File arguments](/reference/cli#file-arguments), [Examples](/reference/cli#examples), and [Environment variables](/reference/cli#environment-variables)
207
+ - [File arguments](/reference/cli#file-arguments), [Examples](/reference/cli#examples), [Package commands](/reference/cli#package-commands), [Credential commands](/reference/cli#credential-commands), and [Environment variables](/reference/cli#environment-variables)
@@ -1,14 +1,11 @@
1
1
  ---
2
- title: "Verification and evidence"
3
- description: "Choose checks that exercise the change, reproduce a result, and show reviewers what passed and what remains unverified."
2
+ title: "Verify changes with evidence"
3
+ sidebarTitle: "Verification"
4
+ description: "Choose real checks for code, terminal, browser, and desktop changes, capture reproducible evidence, and attach it to pull requests."
4
5
  ---
5
6
 
6
- # Verification and evidence
7
-
8
7
  Good verification tests the exact behavior that changed. A unit test and its output may be enough for a library fix. When a change affects what a user sees or does, exercise that interaction directly. A recording helps when motion or timing matters, though it does not replace a required test.
9
8
 
10
- <a id="select-the-verification-environment" />
11
-
12
9
  ## Choose checks that answer the question
13
10
 
14
11
  Start with the project's required tests, build, typecheck, and lint. Then ask what could still fail if all of those pass:
@@ -22,7 +19,7 @@ Start with the project's required tests, build, typecheck, and lint. Then ask wh
22
19
 
23
20
  ### Reuse past verification
24
21
 
25
- Past sessions, commits, and pull requests can suggest useful checks, but they do not prove the current revision works. See [Computer use](/computer-use) for tool setup, operating-system permissions, and coverage limits.
22
+ Past sessions, commits, and pull requests can suggest useful checks, but they do not prove the current revision works. See [Automate browsers, desktops, and terminals](/computer-use) for tool setup, operating-system permissions, and coverage limits.
26
23
 
27
24
  ## Define a reproducible scenario
28
25
 
@@ -34,9 +31,6 @@ Wait for an observable result with a deadline instead of a fixed sleep, and save
34
31
 
35
32
  ## Capture evidence appropriate to the change
36
33
 
37
- <a id="terminal-contracts" />
38
- <a id="reproduce-stage-skill-terminal-evidence" />
39
-
40
34
  ### Terminal changes
41
35
 
42
36
  Use Herdr when requested and running inside a Herdr-managed pane. Otherwise use a dedicated tmux session on macOS or Linux, or native psmux on Windows. See [Terminal automation with Herdr](/computer-use#terminal-automation-with-herdr) for setup and commands.
@@ -49,7 +43,7 @@ Use [agent-browser](/computer-use#browser-automation-with-agent-browser) for sup
49
43
 
50
44
  Keep a screenshot for layout checks or a short recording for multi-step motion. For example, in a dedicated session named `pr-check`:
51
45
 
52
- ```sh
46
+ ```bash
53
47
  agent-browser --session pr-check snapshot > after.yaml
54
48
  agent-browser --session pr-check screenshot after.png
55
49
  ```
@@ -60,25 +54,21 @@ For motion, run `agent-browser --session pr-check record start flow.webm` before
60
54
 
61
55
  For Mobile Safari, run `agent-browser -p ios` against a real iOS Simulator (`set device` in Chromium changes the viewport, not the WebKit engine), and record with `xcrun simctl`. For a native mobile app, use device or emulator tooling such as XCUITest or UI Automator instead of browser captures.
62
56
 
63
- <a id="desktop-safety" />
64
-
65
57
  ### Native desktop changes
66
58
 
67
59
  Use [agent-desktop](/computer-use#desktop-automation-with-agent-desktop) in a dedicated graphical session after verifying `agent-desktop status`. Observe the app, act on a ref from that snapshot, wait for the intended postcondition with a timeout, and read it back.
68
60
 
69
- Keep the snapshot, action, and wait JSON together with before and after screenshots. A partial accessibility tree (`data.complete: false`) requires another observation before acting. If a click or save times out, inspect the app and saved files before retrying because the action may already have landed. Always let the human user grant OS consent dialogs directly.
70
-
71
- <a id="use-evidence-in-a-workflow" />
61
+ Keep the snapshot, action, and wait JSON together with before and after screenshots. A partial accessibility tree (`data.complete: false`) requires another observation before acting. If a click or save times out, inspect the app and saved files before retrying because the action may already have landed. Grant OS consent dialogs yourself when prompted; Atomic pauses for your approval instead of trying to click through system permission dialogs.
72
62
 
73
63
  ## Verify delegated work
74
64
 
75
- When delegating verification to [subagents](/subagents), give them the same scenario and acceptance criteria you plan to check in the parent session. Ask for the tested revision, commands, observed results, and artifact paths.
65
+ When you delegate verification to [subagents](/subagents), give them the same scenario and acceptance criteria you want checked directly. Ask for the tested revision, exact commands, observed results, and saved artifact paths.
76
66
 
77
- After a child completes, inspect its evidence or rerun key checks from the parent session through codemode. A launch receipt, a filename, or agreement between reviewers does not replace the actual check result. Pass real failures into a bounded repair round and verify the new candidate before accepting it. Approving a change stays separate from permission to publish it.
67
+ After a subagent finishes, inspect its evidence or have Atomic rerun key checks directly through [codemode](/codemode). A task confirmation, a filename, or agreement between reviewers does not replace an actual check result. Fix real failures and rerun the checks against the updated revision before accepting the change. Approving a change stays separate from permission to publish it, which Atomic confirms separately (for example via [`ask_user_question`](/tools#ask_user_question)).
78
68
 
79
69
  ### Switching between delegated and direct execution
80
70
 
81
- Apply the same verification rules when working directly in the parent session. If you switch from delegated work to direct execution, reconcile running children, modified files, and any in-flight side effects before repeating a command.
71
+ Apply the same verification rules when running checks directly in your main session. If you switch from subagent verification to direct execution, finish or stop running subagents and check modified files and background tasks before repeating a command.
82
72
 
83
73
  ## When a tool or environment is unavailable
84
74
 
@@ -86,11 +76,21 @@ Check installed tools and cached runtimes first, and install missing dependencie
86
76
 
87
77
  For example, a passing headless-browser test does not verify a native file dialog. Report skipped or simulated scenarios clearly instead of counting them as real-platform passes.
88
78
 
89
- ### qlty setup and fallback
79
+ ### Code quality checks with `qlty`
80
+
81
+ [`qlty`](https://qlty.sh) coordinates repository linters, formatters, and built-in static analysis (Atomic ships a bundled `qlty` skill; see [Skills](/skills)). Repository scripts and CI checks remain authoritative, so use `qlty` alongside them rather than replacing project tooling.
90
82
 
91
- When a repository uses `qlty`, keep its existing `.qlty/qlty.toml` intact and run the relevant `qlty check`. Avoid adding a competing formatter or initializing config during a read-only review. If config changes are in scope and no config exists, run `qlty init --no` and review the output, or follow the bundled `qlty` skill's manual setup guide.
83
+ - **Install.** On macOS and Linux, install with `curl https://qlty.sh | sh` after reviewing the installer (default binary path is `~/.qlty/bin`; override with `QLTY_NO_MODIFY_PATH=1` or `QLTY_INSTALL_BIN_PATH`). If you verify release attestations before installing, use `gh` 2.67.0 or later so missing attestations are not accepted as valid (CVE-2025-25204).
84
+ - **Run scoped checks.** `qlty check` and `qlty fmt` inspect changed files by default. Pass `--all` to cover the whole repository, `--upstream origin/main` to compare against a branch, or `--filter` and `--skip` with plugin names (or `plugin:rule` entries on `check`) to narrow scope. Built-in `qlty metrics` and `qlty smells` run offline once `qlty` is installed:
85
+
86
+ ```bash
87
+ qlty check
88
+ qlty check --upstream origin/main
89
+ qlty metrics --functions path/to/file.ts
90
+ qlty smells path/to/file.ts
91
+ ```
92
92
 
93
- Cached plugins and built-in metrics such as `qlty metrics` work offline, while uncached plugins may need downloads. Valid TOML does not prove a linter ran. Record which checks actually executed, continue with available repository checks, and flag any required check that stayed blocked.
93
+ - **Config and offline fallback.** Keep an existing `.qlty/qlty.toml` intact rather than re-initializing over it or adding competing formatters during a read-only review. If config changes are in scope and no `.qlty/qlty.toml` exists, run `qlty init --no` and review the generated file. Cached plugins and built-in metrics work offline, while uncached plugins need network downloads. Valid TOML does not prove a linter ran; record which checks executed, continue with available repository checks, and flag any required check that stayed blocked.
94
94
 
95
95
  ## Include evidence in a PR
96
96
 
@@ -100,9 +100,9 @@ State the tested revision and environment, actions taken, expected and actual ou
100
100
 
101
101
  Upload evidence only to an authorized repository after reviewing and redacting personal data, credentials, private source, and unrelated windows. Local capture does not authorize publication.
102
102
 
103
- On a supported GitHub host, check `gh --version` and `gh pr create --help` for [attachment support](https://docs.github.com/en/github-cli/github-cli/attaching-files-with-github-cli) (`gh` 2.99.0 or newer). In a POSIX shell:
103
+ On a supported GitHub host, check `gh --version` and `gh pr create --help` for GitHub CLI [attachment support](https://docs.github.com/en/github-cli/github-cli/attaching-files-with-github-cli) (`gh` 2.99.0 or newer). In a POSIX shell:
104
104
 
105
- ```sh
105
+ ```bash
106
106
  gh pr create --title "Fix settings save" --body-file body.md \
107
107
  --attach 'before.png#Settings before saving' \
108
108
  --attach 'after.png#Settings after reopening' \
@@ -111,4 +111,4 @@ gh pr create --title "Fix settings save" --body-file body.md \
111
111
 
112
112
  Use a single line or PowerShell continuation syntax on Windows. To add evidence to an existing pull request, use `gh pr edit` or an authorized `gh pr comment` with `--body-file` and `--attach`. The `#text` suffix sets image alt text; omit it for video.
113
113
 
114
- Read back the pull request or comment to confirm the hosted links render before reporting an upload. If the CLI, host, permissions, or file size prevent attachment, keep the artifacts local, explain the limitation, and offer the normal manual upload path instead of uploading to an unrelated service.
114
+ Read back the pull request or comment to confirm the hosted links render before reporting an upload. If the CLI, host, permissions, or file size prevent attachment, keep the artifacts local, explain the limitation, and use the manual upload path instead of uploading to an unrelated service.