@bastani/atomic 0.10.10-alpha.1 → 0.10.10

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 (292) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/README.md +22 -15
  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 +2 -2
  7. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +2 -2
  8. package/dist/_shared/mode-shared-2QJSCUM6.js +2 -2
  9. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  10. package/dist/_shared/sdk-RRLVN7ER.js +2 -2
  11. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  12. package/dist/_shared/startup-0-0-4VG2G44V.js +2 -2
  13. package/dist/_shared/startup-0-1-XTIL65D4.js +2 -2
  14. package/dist/_shared/startup-0-2-27OWFHV6.js +7 -6
  15. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -1
  16. package/dist/_shared/startup-0-3-T4DVFYWX.js +2 -2
  17. package/dist/_shared/startup-0-4-ZMJV547D.js +2 -2
  18. package/dist/_shared/startup-0-5-FD2P735I.js +2 -2
  19. package/dist/_shared/startup-10-0-TDQNBDDL.js +2 -2
  20. package/dist/_shared/startup-15-1-4S7FLMNG.js +2 -2
  21. package/dist/_shared/startup-8-0-34CBHPZH.js +2 -2
  22. package/dist/_shared/startup-8-1-4KANEHRA.js +2 -2
  23. package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
  24. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  25. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  26. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  27. package/dist/builtin/intercom/README.md +4 -4
  28. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  29. package/dist/builtin/intercom/package.json +1 -1
  30. package/dist/builtin/mcp/README.md +28 -4
  31. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  32. package/dist/builtin/mcp/package.json +1 -1
  33. package/dist/builtin/subagents/CHANGELOG.md +8 -0
  34. package/dist/builtin/subagents/README.md +3 -3
  35. package/dist/builtin/subagents/package.json +1 -1
  36. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  37. package/dist/builtin/web-access/CHANGELOG.md +9 -0
  38. package/dist/builtin/web-access/README.md +2 -2
  39. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  40. package/dist/builtin/web-access/package.json +1 -1
  41. package/dist/cli/auth-cli.impl.js +3 -3
  42. package/dist/cli/auth-cli.js +3 -3
  43. package/dist/cli/blueprint-command.impl.js +3 -3
  44. package/dist/cli/blueprint-command.js +3 -3
  45. package/dist/cli/intercom-command.code.js +2 -2
  46. package/dist/cli/intercom-command.impl.js +3 -3
  47. package/dist/cli/intercom-command.js +3 -3
  48. package/dist/cli/list-models.impl.js +3 -3
  49. package/dist/cli/list-models.js +3 -3
  50. package/dist/cli/session-picker.impl.js +3 -3
  51. package/dist/cli/session-picker.js +3 -3
  52. package/dist/cli/startup-ui.impl.js +3 -3
  53. package/dist/cli/startup-ui.js +3 -3
  54. package/dist/cli/storage-command.impl.js +3 -3
  55. package/dist/cli/storage-command.js +3 -3
  56. package/dist/cli/storage-search-session.impl.js +3 -3
  57. package/dist/cli/storage-search-session.js +3 -3
  58. package/dist/cli/team-command.impl.js +3 -3
  59. package/dist/cli/team-command.js +3 -3
  60. package/dist/cli.js +2 -2
  61. package/dist/core/debug.impl.js +3 -3
  62. package/dist/core/debug.js +3 -3
  63. package/dist/core/export-html/card-projection.impl.js +3 -3
  64. package/dist/core/export-html/card-projection.js +3 -3
  65. package/dist/core/export-html/index.code.js +2 -2
  66. package/dist/core/export-html/index.impl.js +3 -3
  67. package/dist/core/export-html/index.js +3 -3
  68. package/dist/core/export-html/json-spans.impl.js +3 -3
  69. package/dist/core/export-html/json-spans.js +3 -3
  70. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  71. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  72. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  73. package/dist/core/export-html/tool-renderer.js +3 -3
  74. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  75. package/dist/core/extensions/jiti-loader.js +3 -3
  76. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  77. package/dist/core/extensions/jiti-static-loader.js +3 -3
  78. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  79. package/dist/core/extensions/loader-host-modules.js +3 -3
  80. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  81. package/dist/core/intercom-broker-control-host.js +3 -3
  82. package/dist/core/intercom-broker-control.code.js +2 -2
  83. package/dist/core/intercom-broker-control.impl.js +3 -3
  84. package/dist/core/intercom-broker-control.js +3 -3
  85. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  86. package/dist/core/package-manager-storage-adapters.js +3 -3
  87. package/dist/core/sdk.impl.js +3 -3
  88. package/dist/core/sdk.js +3 -3
  89. package/dist/core/session-manager-core.js +2 -2
  90. package/dist/core/session-manager-list.impl.js +3 -3
  91. package/dist/core/session-manager-list.js +3 -3
  92. package/dist/core/session-manager.impl.js +3 -3
  93. package/dist/core/session-manager.js +3 -3
  94. package/dist/core/session-storage.impl.js +3 -3
  95. package/dist/core/session-storage.js +3 -3
  96. package/dist/core/storage/index.js +2 -2
  97. package/dist/core/storage/node-sqlite-thread.js +2 -2
  98. package/dist/core/storage/node-sqlite.js +2 -2
  99. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  100. package/dist/core/storage/offline-snapshot-file.js +3 -3
  101. package/dist/core/storage/provider.js +2 -2
  102. package/dist/core/storage/selection.js +2 -2
  103. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  104. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  105. package/dist/core/storage/session/branch-fork-source.js +3 -3
  106. package/dist/core/storage/session/card-view.impl.js +3 -3
  107. package/dist/core/storage/session/card-view.js +3 -3
  108. package/dist/core/storage/session/child-reader.code.js +2 -2
  109. package/dist/core/storage/session/child-reader.impl.js +3 -3
  110. package/dist/core/storage/session/child-reader.js +3 -3
  111. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  112. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  113. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  114. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  115. package/dist/core/storage/session/expanded-child-details.js +3 -3
  116. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  117. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  118. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  119. package/dist/core/storage/session/fork-row-index.js +3 -3
  120. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  121. package/dist/core/storage/session/fork-staging.js +3 -3
  122. package/dist/core/storage/session/fork-window.code.js +2 -2
  123. package/dist/core/storage/session/fork-window.impl.js +3 -3
  124. package/dist/core/storage/session/fork-window.js +3 -3
  125. package/dist/core/storage/session/history-pages.impl.js +3 -3
  126. package/dist/core/storage/session/history-pages.js +3 -3
  127. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  128. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  129. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  130. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  131. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  132. package/dist/core/storage/session/memory-session-store.js +3 -3
  133. package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
  134. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  135. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  136. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  137. package/dist/core/storage/session/released-history-files.js +3 -3
  138. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  139. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  140. package/dist/core/storage/session/session-resume.impl.js +3 -3
  141. package/dist/core/storage/session/session-resume.js +3 -3
  142. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  143. package/dist/core/storage/session/snapshot-cut.js +3 -3
  144. package/dist/core/storage/session/snapshot-history.code.js +2 -2
  145. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  146. package/dist/core/storage/session/snapshot-history.js +3 -3
  147. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  148. package/dist/core/storage/session/sql-session-store.js +3 -3
  149. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  150. package/dist/core/storage/session/tree-outline.js +3 -3
  151. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  152. package/dist/core/storage/session/tree-presentation.js +3 -3
  153. package/dist/core/storage/storage-status.impl.js +3 -3
  154. package/dist/core/storage/storage-status.js +3 -3
  155. package/dist/core/storage/team.impl.js +3 -3
  156. package/dist/core/storage/team.js +3 -3
  157. package/dist/core/structured-output/index.impl.js +3 -3
  158. package/dist/core/structured-output/index.js +3 -3
  159. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  160. package/dist/core/tasks/task-completion-entry.js +3 -3
  161. package/dist/core/tasks/task-file-history.code.js +2 -2
  162. package/dist/core/tasks/task-file-history.impl.js +3 -3
  163. package/dist/core/tasks/task-file-history.js +3 -3
  164. package/dist/core/tasks/task-reference-archive.code.js +2 -2
  165. package/dist/core/tasks/task-reference-archive.js +3 -3
  166. package/dist/core/tasks/task-reference-identity.js +3 -3
  167. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  168. package/dist/core/tasks/task-reference-stream.js +3 -3
  169. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  170. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  171. package/dist/core/tasks/task-view-source.impl.js +3 -3
  172. package/dist/core/tasks/task-view-source.js +3 -3
  173. package/dist/core/tools/read-url.impl.js +3 -3
  174. package/dist/core/tools/read-url.js +3 -3
  175. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  176. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  177. package/dist/core/worktree-snapshot/errors.js +3 -3
  178. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  179. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  180. package/dist/extensions/codemode/execute.impl.js +3 -3
  181. package/dist/extensions/codemode/execute.js +3 -3
  182. package/dist/extensions/codemode/renderer.impl.js +3 -3
  183. package/dist/extensions/codemode/renderer.js +3 -3
  184. package/dist/extensions/mcp/cli.impl.js +3 -3
  185. package/dist/extensions/mcp/cli.js +3 -3
  186. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  187. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  188. package/dist/extensions/mcp/cli.lazy.js +3 -3
  189. package/dist/extensions/mcp/runtime.impl.js +3 -3
  190. package/dist/extensions/mcp/runtime.js +3 -3
  191. package/dist/main-first-time-setup.impl.js +3 -3
  192. package/dist/main-first-time-setup.js +3 -3
  193. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  194. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  195. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  196. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  197. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  198. package/dist/package-manager-cli.code.js +2 -2
  199. package/dist/package-manager-cli.impl.js +3 -3
  200. package/dist/package-manager-cli.js +3 -3
  201. package/dist/startup-files.json +1 -1
  202. package/dist/utils/startup-database-spare.impl.js +3 -3
  203. package/dist/utils/startup-database-spare.js +3 -3
  204. package/dist/utils/tools-manager.impl.js +3 -3
  205. package/dist/utils/tools-manager.js +3 -3
  206. package/docs/background-tasks.md +8 -5
  207. package/docs/build.md +11 -6
  208. package/docs/changelog.mdx +1 -1
  209. package/docs/codemode.md +10 -2
  210. package/docs/compaction/reference.md +6 -4
  211. package/docs/compaction.md +3 -3
  212. package/docs/containerization.md +13 -5
  213. package/docs/custom-provider/api-reference.md +8 -6
  214. package/docs/custom-provider/oauth.md +4 -4
  215. package/docs/custom-provider/registration.md +3 -3
  216. package/docs/custom-provider.md +8 -8
  217. package/docs/development.md +40 -5
  218. package/docs/docs.json +21 -5
  219. package/docs/environment-variables.md +20 -18
  220. package/docs/extensions/api-reference.md +8 -6
  221. package/docs/extensions/authoring.md +4 -4
  222. package/docs/extensions.md +43 -6
  223. package/docs/guides/configuration.md +21 -1
  224. package/docs/guides/intercom.md +4 -0
  225. package/docs/guides/non-interactive.md +4 -2
  226. package/docs/guides/orchestration.md +4 -2
  227. package/docs/guides/resume-on-any-machine.md +12 -6
  228. package/docs/guides/subagents.md +4 -0
  229. package/docs/guides/team-setup.md +13 -2
  230. package/docs/guides.md +10 -4
  231. package/docs/herdr.md +4 -4
  232. package/docs/index.md +12 -4
  233. package/docs/intercom/operations.md +26 -4
  234. package/docs/intercom/reference.md +25 -3
  235. package/docs/intercom.md +13 -5
  236. package/docs/json.md +2 -0
  237. package/docs/keybindings.md +17 -4
  238. package/docs/libraries/agent-core.md +4 -2
  239. package/docs/libraries/ai.md +71 -53
  240. package/docs/libraries/codemode.md +3 -2
  241. package/docs/libraries/schema.md +5 -2
  242. package/docs/libraries/storage-libsql.md +92 -0
  243. package/docs/libraries/storage-postgres.md +119 -0
  244. package/docs/libraries/telemetry.md +35 -2
  245. package/docs/libraries.md +23 -6
  246. package/docs/llama-cpp.md +2 -2
  247. package/docs/mcp-servers.md +50 -4
  248. package/docs/models/reference.md +13 -9
  249. package/docs/models-configuration.md +7 -7
  250. package/docs/models.md +18 -8
  251. package/docs/orchestration/migrating-workflows.md +2 -2
  252. package/docs/orchestration/patterns.md +8 -8
  253. package/docs/orchestration.md +5 -3
  254. package/docs/packages/authoring.md +3 -1
  255. package/docs/packages/reference.md +3 -1
  256. package/docs/packages.md +5 -3
  257. package/docs/programmatic.md +14 -8
  258. package/docs/prompt-templates.md +5 -3
  259. package/docs/providers/reference.md +7 -7
  260. package/docs/providers.md +22 -10
  261. package/docs/quickstart.md +13 -11
  262. package/docs/reference/cli.md +10 -5
  263. package/docs/reference.md +8 -4
  264. package/docs/rpc/examples.md +47 -0
  265. package/docs/rpc/extension-ui.md +7 -1
  266. package/docs/rpc/protocol.md +3 -2
  267. package/docs/rpc.md +3 -1
  268. package/docs/sdk/reference.md +144 -38
  269. package/docs/sdk/storage.md +614 -0
  270. package/docs/sdk/structured-decisions.md +77 -4
  271. package/docs/sdk/web-server.md +3 -2
  272. package/docs/sdk.md +26 -115
  273. package/docs/security.md +17 -7
  274. package/docs/session-format.md +38 -24
  275. package/docs/sessions.md +21 -15
  276. package/docs/settings.md +17 -14
  277. package/docs/skills.md +47 -3
  278. package/docs/storage.md +38 -24
  279. package/docs/subagents/authoring.md +3 -1
  280. package/docs/subagents/reference.md +8 -2
  281. package/docs/subagents.md +35 -6
  282. package/docs/terminal-setup.md +1 -1
  283. package/docs/themes.md +5 -3
  284. package/docs/tmux.md +4 -4
  285. package/docs/tools.md +11 -0
  286. package/docs/usage.md +25 -15
  287. package/docs/web-access.md +35 -0
  288. package/docs/windows.md +9 -6
  289. package/docs/worktree-snapshots.md +22 -11
  290. package/examples/sdk/11-sessions.ts +4 -4
  291. package/package.json +8 -8
  292. package/schemas/models.schema.json +7 -7
package/docs/themes.md CHANGED
@@ -25,8 +25,8 @@ Atomic ships seven built-in themes:
25
25
  Atomic loads custom themes from these sources:
26
26
 
27
27
  - **Global:** `~/.atomic/agent/themes/*.json` (legacy `~/.pi/agent/themes/*.json`)
28
- - **Project** (only after you trust the project): `.atomic/themes/*.json` (legacy `.pi/themes/*.json`)
29
- - **Packages:** `themes/` directories, `atomic.themes`, or legacy `pi.themes` entries in `package.json`
28
+ - **Project** (only after you grant [project trust](/security#project-trust)): `.atomic/themes/*.json` (legacy `.pi/themes/*.json`)
29
+ - **Packages:** `themes/` directories, `atomic.themes`, or legacy `pi.themes` entries in `package.json` ([Authoring packages](/packages/authoring))
30
30
  - **Settings:** `themes` array in global or project `settings.json`, which accepts files, directories, and filter patterns (`!glob`, `+path`, `-path` with `~` expansion; see [Package filtering](/packages/reference#package-filtering))
31
31
  - **CLI:** `--theme <path>` (repeatable) loads a theme file; `--use-theme <name>` (see [Initial theme](#initial-theme)) selects an already-loaded theme for one run without saving it
32
32
 
@@ -46,7 +46,7 @@ Discovery rules:
46
46
 
47
47
  ## Selecting a theme
48
48
 
49
- Atomic does not have a `/theme` slash command. Select a theme through `/settings`, `--use-theme`, or `settings.json`:
49
+ Atomic does not have a `/theme` slash command. Select a theme through `/settings`, `--use-theme`, or `settings.json` ([Interface and display settings](/settings#interface-and-display)):
50
50
 
51
51
  ```json
52
52
  {
@@ -65,6 +65,8 @@ A malformed auto value with extra `/` characters or an empty side falls back to
65
65
 
66
66
  The main chat uses the terminal's default background, including transparency. Headers, footers, and tool cards keep their theme colors.
67
67
 
68
+ Setting `NO_COLOR` (to any value) or `FORCE_COLOR=0` disables all theme colors and text styles. Setting `FORCE_COLOR=1` or `2` caps truecolor themes at the 256-color palette, and `NO_COLOR` always takes precedence over `FORCE_COLOR` ([Terminal compatibility](/themes/reference#terminal-compatibility), [Environment variables](/environment-variables#terminal-and-display-variables)).
69
+
68
70
  ### Initial theme
69
71
 
70
72
  Start an interactive run with a theme without changing the saved setting:
package/docs/tmux.md CHANGED
@@ -6,7 +6,7 @@ description: "Configure tmux for modified keys, Escape timing, hyperlinks, clipb
6
6
 
7
7
  Atomic works inside tmux, though tmux strips modifier keys, delays `Escape`, and filters hyperlinks by default. Without configuration, `Shift+Enter` and `Ctrl+Enter` arrive as plain `Enter`.
8
8
 
9
- For terminal automation, prefer Herdr when available, with tmux or native Windows psmux as fallbacks. See [Computer use](/computer-use#terminal-automation-with-herdr) for tool selection and session control. This page covers running Atomic interactively inside tmux.
9
+ For terminal automation, prefer [Herdr](/herdr) when available, with tmux or native Windows psmux as fallbacks. See [Computer use](/computer-use#terminal-automation-with-herdr) for tool selection and session control, and invoke the bundled `/skill:tmux` skill ([Bundled skills](/skills#bundled-skills)) when you want Atomic to inspect or drive tmux or psmux sessions, windows, and panes. This page covers running Atomic interactively inside tmux.
10
10
 
11
11
  ## Recommended tmux configuration
12
12
 
@@ -31,7 +31,7 @@ tmux
31
31
  What each setting does:
32
32
 
33
33
  - **`extended-keys on` (or `always`) and `extended-keys-format csi-u`:** Forwards modified keys such as `Shift+Enter` and `Ctrl+Enter` in CSI-u format. Whenever `$TMUX` is set, Atomic checks `tmux show -gv extended-keys` and `tmux show -gv extended-keys-format` at startup and displays a warning if `extended-keys` is not `on` or `always`, or if `extended-keys-format` is `xterm`. (`extended-keys-format` requires tmux 3.5 or later.)
34
- - **`escape-time 10`:** Lowers tmux's Escape key delay from older defaults (up to 500 ms) to 10 ms so pressing `Escape` cancels runs and closes dialogs without lag.
34
+ - **`escape-time 10`:** Lowers tmux's Escape key delay from older defaults (up to 500 ms) to 10 ms so pressing `Escape` cancels runs and closes dialogs without lag. Over high-latency SSH inside tmux, you can also increase `ATOMIC_TUI_ESC_TIMEOUT` if `Alt` keys register as `Escape` ([SSH and Escape key delay](/terminal-setup#ssh-and-escape-key-delay)).
35
35
  - **`mouse on`:** Forwards clicks, wheel scrolling, and drag selection to Atomic's fullscreen viewport.
36
36
  - **`set-clipboard on`:** Allows OSC 52 clipboard copies to reach your outer terminal.
37
37
  - **`terminal-features ',*:hyperlinks'`:** Advertises OSC 8 hyperlink forwarding so Atomic renders clickable links.
@@ -67,8 +67,8 @@ Enabling extended keys restores the default `Shift+Enter` newline shortcut and c
67
67
 
68
68
  ## Inline images, hyperlinks, mouse, and clipboard
69
69
 
70
- - **Inline images:** Atomic disables inline image protocols whenever `$TMUX` is set or `TERM` starts with `tmux`, even if tmux has `allow-passthrough on`. If your outer terminal and tmux configuration support image passthrough, explicitly override the protocol with `terminal.images` in `~/.atomic/agent/settings.json` or `ATOMIC_IMAGE_PROTOCOL=kitty` (or `iterm2`).
71
- - **OSC 8 hyperlinks:** Inside tmux, Atomic runs `tmux display-message -p '#{client_termfeatures}'` (250 ms timeout) and emits clickable hyperlinks only when `hyperlinks` is listed. Add `set -as terminal-features ',*:hyperlinks'` to `~/.tmux.conf`, or force hyperlinks with `"terminal": { "hyperlinks": true }` or `ATOMIC_HYPERLINKS=1`.
70
+ - **Inline images:** Atomic disables inline image protocols whenever `$TMUX` is set or `TERM` starts with `tmux`, even if tmux has `allow-passthrough on`. If your outer terminal and tmux configuration support image passthrough, explicitly override the protocol with `terminal.images` in `~/.atomic/agent/settings.json` ([Terminal and images settings](/settings#terminal-and-images)) or `ATOMIC_IMAGE_PROTOCOL=kitty` (or `iterm2`; see [Terminal and display variables](/environment-variables#terminal-and-display-variables)).
71
+ - **OSC 8 hyperlinks:** Inside tmux, Atomic runs `tmux display-message -p '#{client_termfeatures}'` (250 ms timeout) and emits clickable hyperlinks only when `hyperlinks` is listed. Add `set -as terminal-features ',*:hyperlinks'` to `~/.tmux.conf`, or force hyperlinks with `"terminal": { "hyperlinks": true }` ([Terminal and images settings](/settings#terminal-and-images)) or `ATOMIC_HYPERLINKS=1` ([Terminal and display variables](/environment-variables#terminal-and-display-variables)).
72
72
  - **Clipboard over SSH (OSC 52):** Over SSH inside tmux, OSC 52 copies require `set -g set-clipboard on` (and `set -g allow-passthrough on` depending on your tmux version) so copied text reaches your local terminal clipboard. See [Clipboard and mouse behavior](/terminal-setup#clipboard-and-mouse-behavior).
73
73
  - **Mouse scrolling and selection:** With `set -g mouse on`, Atomic handles clicks, drag selection, and wheel scrolling inside panes. Inside tmux, Atomic uses button-motion mouse reporting (`1002h`) instead of all-motion reporting (`1003h`) to keep terminal traffic light.
74
74
  - **Program status (OSC 7501):** tmux does not forward OSC 7501 status reports. See [Program status](/terminal-setup#program-status).
package/docs/tools.md CHANGED
@@ -21,6 +21,17 @@ Bundled integrations also add [public repository search](#code_search), [web acc
21
21
 
22
22
  **Malformed tool arguments.** If a model produces invalid or truncated JSON tool arguments, Atomic rejects the call instead of executing a partial request and returns the original arguments so the model can retry.
23
23
 
24
+ ## Enabling and restricting tools
25
+
26
+ Control which tools a session exposes from the CLI, settings, SDK, or extensions:
27
+
28
+ | Where | How to configure | Reference |
29
+ | --- | --- | --- |
30
+ | CLI (single run) | `--tools`, `--exclude-tools`, `--no-builtin-tools`, `--no-tools` | [CLI tool options](/reference/cli#tool-options) |
31
+ | Settings (persistent) | `defaultTools` in `~/.atomic/agent/settings.json` or trusted `.atomic/settings.json` | [Tool settings](/settings#tools) |
32
+ | SDK (`createAgentSession`) | `tools`, `excludedTools`, `noTools`, `customTools`, and `builtins` (`subagents`, `mcp`, `web-access`, `intercom`) | [SDK tools](/sdk/reference#tools) and [Custom tools](/sdk/reference#custom-tools) |
33
+ | Extensions | Register or override tools with `atomic.registerTool()` and `defineTool()` | [Authoring custom tools](/extensions/authoring#custom-tools) |
34
+
24
35
  ## `read` and path selectors
25
36
 
26
37
  `read` reads files, directories, images, documents, archives, SQLite databases, internal Atomic resources, and public HTTP(S) URLs through one `path` parameter.
package/docs/usage.md CHANGED
@@ -15,7 +15,7 @@ The interface has four main areas:
15
15
  - **Startup header.** Shortcuts plus named lists of loaded context files, prompt templates, skills, and extensions. Press the expand-tools shortcut (`Ctrl+O` by default) to switch those lists to source paths.
16
16
  - **Messages.** User messages, assistant responses, tool calls, tool results, notifications, errors, and extension UI.
17
17
  - **Editor.** The prompt box where you type. Its border color shows the current thinking level.
18
- - **Footer.** Token usage, cache usage, cost, and context usage sit above the editor. Below it, Atomic shows the current model, reasoning level, working directory, Git branch, and session name while idle, or the bound interrupt key while working (`esc to interrupt` on `main`, `esc to pause` while viewing a subagent). When background subagents run, the [agent panel](/background-tasks#the-agent-panel) appears below the footer; selecting a subagent swaps the transcript and points the prompt at it. Press `?` on an empty prompt for the key overview.
18
+ - **Footer.** Token usage, cache usage, cost, and context usage sit above the editor. Below it, Atomic shows the current model, reasoning level, working directory, Git branch, and session name while idle, or the bound interrupt key while working (`esc to interrupt` on `main`, `esc to pause` while viewing a subagent). When background subagents run, the [agent panel](/background-tasks#the-agent-panel) appears below the footer; selecting a subagent swaps the transcript and points the prompt at it. Press `↓` on an empty prompt to focus the agent panel, `←` on an empty prompt while viewing a subagent to return to `main`, `Ctrl+X Ctrl+K` (twice within 3 seconds) to stop all background work, and `?` on an empty prompt for the key overview.
19
19
 
20
20
  Built-in views such as `/settings` or custom extension UI can temporarily replace the editor.
21
21
 
@@ -29,6 +29,14 @@ While the agent works, `∀` pulses beside a status message with the current run
29
29
 
30
30
  Compaction shows a still `∀` mark with elapsed time and the cancel key. Opening a chat during compaction displays how long compaction has been running. Afterwards, one line marks the boundary: `⚛ Context cleared · 182.0k tokens`, or `⚛ Context compacted · morph/morph-compactor · 182.0k → 21.4k tokens` when a compactor model ran. Press `Ctrl+O` to inspect where the earlier conversation lives in session history, what the agent recovers first, and any compacted text.
31
31
 
32
+ ### Transcript interaction
33
+
34
+ - **Clickable blocks.** Single-click any expandable block (tool calls, grouped summaries, `!` shell blocks, finished-agent cards, compaction boundaries) to open or fold that block without affecting others. `Ctrl+O` resets all blocks together.
35
+ - **Clickable key hints.** Click key hints under the prompt, in dialogs, or in `/tasks` to run that key or command while keeping your prompt draft.
36
+ - **Scrolling and jump to bottom.** Scroll the transcript with the mouse wheel, or hold `Alt+wheel` to scroll five times as far when your terminal forwards Alt with wheel events. While scrolled up, the current turn's opening prompt stays pinned at the top and a `↓ jump to bottom · ctrl+end` pill appears above the editor.
37
+
38
+ See [Transcript scrolling and mouse](/keybindings#tui-fullscreen-viewport) for selection, auto-copy, and paging shortcuts.
39
+
32
40
  ### Editor features
33
41
 
34
42
  | Feature | How |
@@ -37,7 +45,7 @@ Compaction shows a still `∀` mark with elapsed time and the cancel key. Openin
37
45
  | Path completion | Press `Tab` to complete paths |
38
46
  | Prompt history | `↑` and `↓` walk past prompts; `Ctrl+R` searches them and places the chosen prompt in the editor without sending |
39
47
  | Multi-line input | `Shift+Enter` or `Ctrl+J` |
40
- | Images | Paste with `Ctrl+V` (`Alt+V` or `Ctrl+V` on Windows and WSL), or drag into the terminal |
48
+ | Images | Paste with `Ctrl+V` (`Alt+V` or `Ctrl+V` on Windows and WSL), or drag into the terminal ([Terminal setup](/terminal-setup)) |
41
49
  | Shell command | `!command` runs a command and includes output in model context |
42
50
  | Hidden shell command | `!!command` runs a command without sending output to model context |
43
51
  | External editor | `Ctrl+G` opens `externalEditor`, `$VISUAL`, or `$EDITOR` (falling back to `notepad` on Windows or `nano` on macOS and Linux) |
@@ -46,7 +54,9 @@ Compaction shows a still `∀` mark with elapsed time and the cancel key. Openin
46
54
 
47
55
  **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.
48
56
 
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.
57
+ **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`](/shell-aliases) is prepended to each command, so match the active shell's syntax (`shellPath` in [Shell settings](/settings#shell) 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.
58
+
59
+ **Double-Escape (`doubleEscapeAction`):** Pressing `Escape` twice within 500 ms on an empty, idle editor opens `/tree` by default. Set `doubleEscapeAction` to `"tree"`, `"fork"`, or `"none"` in [Settings](/settings#interface-and-display).
50
60
 
51
61
  **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.
52
62
 
@@ -84,7 +94,7 @@ When a startup screen appears (project trust, first-run setup, resume picker, or
84
94
 
85
95
  ## Slash commands
86
96
 
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).
97
+ Type `/` in the editor to open command completion. [Extensions](/extensions) can register custom commands, [skills](/skills) run as `/skill:name`, and [prompt templates](/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).
88
98
 
89
99
  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
100
 
@@ -92,18 +102,18 @@ Commands that take no arguments (such as `/new`, `/tools`, `/reload`, `/tree`, `
92
102
 
93
103
  | Command | Description |
94
104
  | --- | --- |
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 |
105
+ | `/login [provider]` | Sign in with an OAuth subscription or save an API key. Accepts an optional provider ID or display name ([Authentication](/getting-started/authentication), [Providers](/providers)) |
106
+ | `/logout [provider]` | Remove stored credentials from `~/.atomic/agent/auth.json` (leaves environment variables and `models.json` unchanged; see [Authentication](/getting-started/authentication)) |
107
+ | `/model [provider/model]` | Switch models and save the startup default ([Models](/models)). 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
108
  | `/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 |
99
- | `/scoped-models` | Enable, disable, and reorder models for `Ctrl+P` cycling |
100
- | `/settings` | Change theme, message delivery, transport, and other preferences |
109
+ | `/scoped-models` | Enable, disable, and reorder models for `Ctrl+P` cycling ([`enabledModels`](/settings#enabledmodels)) |
110
+ | `/settings` | Change [theme](/themes) (Atomic has no `/theme` command), message delivery, transport, and other [settings](/settings) |
101
111
  | `/resume [id\|prefix]` | Open a session directly by full ID or unique 8-hex prefix, or browse previous sessions when called with no argument |
102
112
  | `/new` | Start a new session |
103
113
  | `/name [name]` | Set the session display name, or print the current name when called with no argument |
104
- | `/session [snapshot]` | Show session location, ID, messages, tokens, and cost; `snapshot` shows worktree snapshots and diffs |
105
- | `/tools` | Show active tools, why other tools are off, and unregistered names in `defaultTools` |
106
- | `/tasks [taskId]` | Inspect background subagents and shells, or open a specific task directly by task ID |
114
+ | `/session [snapshot]` | Show session location, ID, messages, tokens, and cost; `snapshot` shows [worktree snapshots](/worktree-snapshots) and diffs |
115
+ | `/tools` | Show active [tools](/tools), why other tools are off, and unregistered names in `defaultTools` |
116
+ | `/tasks [taskId]` | Inspect [background tasks](/background-tasks) (subagents and shells), or open a specific task directly by task ID |
107
117
  | `/tree` | Jump to any point in the session tree and continue from there |
108
118
  | `/fork` | Create a new session from an earlier user message |
109
119
  | `/clone` | Duplicate the current active branch into a new session |
@@ -112,14 +122,14 @@ Commands that take no arguments (such as `/new`, `/tools`, `/reload`, `/tree`, `
112
122
  | `/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
123
  | `/import <file>` | Import an exported `.jsonl` session (accepts quoted paths; asks for confirmation before replacing the current session) |
114
124
  | `/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 |
115
- | `/trust` | Save a project trust decision for future sessions |
125
+ | `/trust` | Save a [project trust](/security) decision for future sessions |
116
126
  | `/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) |
117
127
  | `/hotkeys` | Show all keyboard shortcuts |
118
128
  | `/changelog` | Display the full version history |
119
129
  | `/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)) |
120
130
  | `/exit`, `/quit` | Exit Atomic |
121
131
 
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)).
132
+ **Bundled extension commands:** Atomic's bundled extensions also register `/agents` ([subagents](/subagents)), `/mcp` ([MCP servers](/mcp-servers)), `/intercom` ([Intercom](/intercom)), `/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)).
123
133
 
124
134
  ## Message queue
125
135
 
@@ -194,7 +204,7 @@ Use `/export [file]` to write a session to HTML (default) or to a JSONL export w
194
204
 
195
205
  `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.
196
206
 
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.
207
+ 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`](/environment-variables)). `/share` requires the GitHub CLI (`gh`) installed and authenticated, and strips worktree snapshot contents and large tool-output blobs before uploading.
198
208
 
199
209
  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.
200
210
 
@@ -6,6 +6,12 @@ description: "Search the web, fetch webpages, PDFs, GitHub repos, and videos, qu
6
6
 
7
7
  Atomic bundles four web-access tools: `web_search` for searching the web, `fetch_content` for reading pages and media, `get_search_content` for retrieving full stored results, and `code_search` for querying public GitHub repositories. Both `web_search` and `code_search` work out of the box with no API key setup.
8
8
 
9
+ ## Quick start
10
+
11
+ - **Zero-config defaults.** Ask Atomic to search the web (`web_search` uses keyless Exa by default), read a URL or PDF (`fetch_content`), or query a public GitHub repository (`code_search` via DeepWiki).
12
+ - **Optional API keys.** Set `EXA_API_KEY`, `PERPLEXITY_API_KEY`, or `GEMINI_API_KEY`, or store camelCase keys in `~/.atomic/web-search.json` to raise limits or pick a specific provider.
13
+ - **Interactive commands.** Run `/websearch <query>` to search directly, `/curator on` to review results in your browser before the agent sees them, or `/search` to inspect stored session results.
14
+
9
15
  ## Searching with `web_search`
10
16
 
11
17
  Pass `query` for a single search, or `queries` (an array of 2 to 4 varied angles) for broader research. If both `query` and `queries` are supplied, `queries` wins and `query` is ignored. Multiple queries run sequentially (with a 60-second timeout per query on Exa and Gemini API).
@@ -198,6 +204,35 @@ Example configuration:
198
204
  }
199
205
  ```
200
206
 
207
+ ## Enabling and disabling
208
+
209
+ Web access is enabled by default in both the CLI and the SDK.
210
+
211
+ - **CLI.** Remove web-access tools for one run with `--exclude-tools`:
212
+
213
+ ```bash
214
+ atomic --exclude-tools web_search,fetch_content,get_search_content,code_search
215
+ ```
216
+
217
+ - **SDK.** Disable the bundled `web-access` package completely in `createAgentSession()`:
218
+
219
+ ```typescript
220
+ import { createAgentSession } from "@bastani/atomic";
221
+
222
+ const { session } = await createAgentSession({
223
+ builtins: { "web-access": false },
224
+ });
225
+ ```
226
+
227
+ See [CLI tool options](/reference/cli#tool-options) and [SDK tools](/sdk/reference#tools).
228
+
201
229
  ## Helper binary lookup
202
230
 
203
231
  Helper binaries (`gh`, `git`, `ffmpeg`, `ffprobe`, `yt-dlp`, `npm`, browser openers, and OS keychain helpers) are resolved only from absolute directories in `PATH`. The current project directory is searched only when `PATH` explicitly lists it.
232
+
233
+ ## Related docs
234
+
235
+ - [Built-in tools](/tools) covers `read` URL fetching, `code_search`, and tool selection.
236
+ - [SDK tools](/sdk/reference#tools) covers `builtins`, `tools`, and `excludedTools`.
237
+ - [CLI reference](/reference/cli) covers `--tools`, `--exclude-tools`, and `--no-tools`.
238
+ - [Environment variables](/environment-variables) lists `EXA_API_KEY`, `PERPLEXITY_API_KEY`, `GEMINI_API_KEY`, and `ATOMIC_ALLOW_BROWSER_COOKIES`.
package/docs/windows.md CHANGED
@@ -29,7 +29,7 @@ Override defaults with `ATOMIC_INSTALL_DIR`, `ATOMIC_BIN_DIR` (defaults to `<ATO
29
29
  - **Existing launchers and directories:** A same-stem launcher that `PATHEXT` resolves before `atomic.cmd`, such as a stale `atomic.exe`, stops installation before download until you remove it. An unexpected regular `current` entry under `ATOMIC_INSTALL_DIR`, or regular `atomic-current` entry under `ATOMIC_BIN_DIR`, is reported and left untouched instead of being moved or deleted.
30
30
  - **Pinned versions:** `-Ref` is validated against `MAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH-alpha.REVISION` and honored literally. If GitHub returns a different release tag, installation stops before download.
31
31
  - **TLS 1.2 on legacy PowerShell 5.1:** Once downloaded, the script enables TLS 1.2 for its own GitHub requests and restores your previous protocol setting. Because a downloaded script cannot fix the connection used to fetch itself, enable TLS 1.2 in your shell first if `irm` cannot reach GitHub.
32
- - **Output, Intercom upgrade, and cleanup:** Setting `NO_COLOR` to any value (even empty) switches installer output to plain text without colors, progress bar, or logo (output is also plain under `CI` or redirected stdout; legacy consoles draw `#`/`-` bars without the logo). After installing, `install.ps1` runs `atomic intercom upgrade` to replace any older running Intercom broker and warns if that step fails. The installer removes its `atomic-install-*` staging directory when done and warns if cleanup fails.
32
+ - **Output, Intercom upgrade, and cleanup:** Setting `NO_COLOR` to any value (even empty) switches installer output to plain text without colors, progress bar, or logo (output is also plain under `CI` or redirected stdout; legacy consoles draw `#`/`-` bars without the logo). After installing, `install.ps1` runs `atomic intercom upgrade` to replace any older running Intercom broker and warns if that step fails ([Updating while Intercom is running](/getting-started/installation#updating-while-intercom-is-running)). The installer removes its `atomic-install-*` staging directory when done and warns if cleanup fails.
33
33
 
34
34
  ## Bash and PowerShell discovery
35
35
 
@@ -76,13 +76,13 @@ POSIX-style paths copied from Git Bash, MSYS2, Cygwin, or WSL work anywhere Atom
76
76
  On native Windows, Atomic enables the `powershell` tool by default whenever `pwsh.exe` or `powershell.exe` is found in the discovery order above, and omits it if neither is installed. This tool is Windows-only and is not enabled on Linux or macOS even if `pwsh` is installed.
77
77
 
78
78
  - **Execution flags and encoding:** Atomic launches PowerShell with `-NoProfile -NonInteractive -ExecutionPolicy Bypass` (using `-EncodedCommand` with UTF-16LE base64 in interactive and CLI sessions, or `-Command` in standalone SDK calls), sets UTF-8 console output, and wraps Windows PowerShell 5.1 (`powershell.exe`) calls so script errors exit with code `1`.
79
- - **Environment and PTY control:** Both `ATOMIC_*` and legacy `PI_*` session environment variables are available inside PowerShell calls. Setting `ATOMIC_NO_PTY=1` (legacy `PI_NO_PTY=1`, where `ATOMIC_NO_PTY=0` overrides `PI_NO_PTY=1`) disables PTY allocation for both `powershell` and `bash` tool calls.
80
- - **Tool lists and output:** Add `powershell` to `defaultTools` if you define a custom built-in tool allowlist. To disable all shell execution on native Windows, exclude both `bash` and `powershell` (`--exclude-tools bash,powershell`). PowerShell calls render with a `PS>` prompt, and truncated output spills to an `atomic-powershell-*` temporary file separate from Bash spill files.
81
- - **SDK exports:** `@bastani/atomic` exports `createPowerShellTool()`, `createPowerShellToolDefinition()`, `createLocalPowerShellOperations()`, their public types, and `getPowerShellConfig()`. Factory-created tools expose the `ATOMIC_*` and legacy `PI_*` session snapshot by default; pass `exposeSessionEnvironment: false` to opt out.
79
+ - **Environment and PTY control:** Both `ATOMIC_*` and legacy `PI_*` session environment variables are available inside PowerShell calls ([Environment variables](/environment-variables)). Setting `ATOMIC_NO_PTY=1` (legacy `PI_NO_PTY=1`, where `ATOMIC_NO_PTY=0` overrides `PI_NO_PTY=1`) disables PTY allocation for both `powershell` and `bash` tool calls.
80
+ - **Tool lists and output:** Add `powershell` to `defaultTools` in [Tool settings](/settings#tools) if you define a custom built-in tool allowlist. To disable all shell execution on native Windows, exclude both `bash` and `powershell` (`--exclude-tools bash,powershell`; see [No built-in sandbox](/security#no-built-in-sandbox)). PowerShell calls render with a `PS>` prompt, and truncated output spills to an `atomic-powershell-*` temporary file separate from Bash spill files.
81
+ - **SDK exports:** `@bastani/atomic` exports `createPowerShellTool()`, `createPowerShellToolDefinition()`, `createLocalPowerShellOperations()`, their public types, and `getPowerShellConfig()` ([PowerShell tool behavior](/sdk/reference#powershell-tool-behavior)). Factory-created tools expose the `ATOMIC_*` and legacy `PI_*` session snapshot by default; pass `exposeSessionEnvironment: false` to opt out.
82
82
 
83
83
  ## Choose a terminal
84
84
 
85
- Windows terminals run Atomic through a console host (`conhost`). Terminals using the older built-in Windows `conhost` have rendering and input bugs that affect Atomic. Use [Windows Terminal](https://aka.ms/terminal), which ships a current `conhost`.
85
+ Windows terminals run Atomic through a console host (`conhost`). Terminals using the older built-in Windows `conhost` have rendering and input bugs that affect Atomic. Use [Windows Terminal](https://aka.ms/terminal), which ships a current `conhost` (see [Windows Terminal setup](/terminal-setup#windows-terminal) for WSL and SSH `Shift+Enter` configuration). For terminal multiplexers and Windows desktop or terminal automation with psmux and UI Automation, see [Herdr](/herdr) and [Computer use](/computer-use#windows).
86
86
 
87
87
  | Terminal | Conhost | Status |
88
88
  | --- | --- | --- |
@@ -113,7 +113,8 @@ On native Windows outside VS Code's integrated terminal, pressing the unmodified
113
113
  - **Early startup typing:** On eligible interactive starts, Atomic opens the prompt editor right away so you can start typing while the session finishes loading. Submitting early shows the working indicator, and pressing `Escape` cancels a queued submission. If resource loading fails before a prompt sends, Atomic restores your draft without sending a model request; run `/reload` to retry. See [Startup typing](/usage#startup-typing).
114
114
  - **Graceful shutdown:** Quitting Atomic gives the session up to 5 seconds to run `session_shutdown` handlers.
115
115
  - **Console close and Windows sign-out:** Closing the console window (exit code `0xC000013A`) and signing out, restarting, or shutting down Windows also run `session_shutdown` handlers with `fromSignal: true` for up to about 4 seconds before Windows terminates the process.
116
- - **Shell process-tree cleanup:** Interactive and CLI `bash` and `powershell` tool calls are contained automatically by the session. Interactive `!` commands and standalone SDK `bash` or `powershell` calls start in their own Windows Job object, so pressing `Escape`, hitting a timeout, or aborting stops the shell and its child processes. Because Git Bash starts child processes with `CREATE_BREAKAWAY_FROM_JOB`, processes left running after `bash` exits cannot be stopped by that job. Set `ATOMIC_HOST_SPAWN=child-process` to disable native Job-object containment for `!` commands, helper processes, and standalone SDK tool calls and fall back to Node's `child_process`.
116
+ - **Shell process-tree cleanup:** Interactive and CLI `bash` and `powershell` tool calls are contained automatically by the session. Interactive `!` commands and standalone SDK `bash` or `powershell` calls start in their own Windows Job object, so pressing `Escape`, hitting a timeout, or aborting stops the shell and its child processes. Because Git Bash starts child processes with `CREATE_BREAKAWAY_FROM_JOB`, processes left running after `bash` exits cannot be stopped by that job. Set `ATOMIC_HOST_SPAWN=child-process` to disable native Job-object containment for `!` commands, helper processes, and standalone SDK tool calls and fall back to Node's `child_process` ([Environment variables](/environment-variables#diagnostics-and-performance)).
117
+ - **Node.js compile cache:** On Node.js 22.8 and newer, Atomic enables Node's persistent compile cache automatically and warms a cold default cache in a background helper during interactive runs. Set `NODE_COMPILE_CACHE` to use a custom directory (letting Node write it on exit) or `NODE_DISABLE_COMPILE_CACHE=1` to disable it ([Environment variables](/environment-variables#diagnostics-and-performance)).
117
118
 
118
119
  ## Self-update on Windows
119
120
 
@@ -121,6 +122,8 @@ Run `atomic update` or `atomic update --self` to update Atomic (add `--force` to
121
122
 
122
123
  For writable global package-manager installs on Windows, Atomic handles loaded native add-ons during self-update so Windows file locks do not block replacement. For custom or wrapped installations, configure `selfUpdateCommand` in global settings or `ATOMIC_SELF_UPDATE_COMMAND` (see [Custom update command](/reference/cli#custom-update-command)).
123
124
 
125
+ If you upgrade an npm install from 0.10.4 or earlier while an older Intercom broker is running, `npm install -g @bastani/atomic` can fail with `EBUSY` because earlier brokers locked files inside the npm install directory. Close running Atomic sessions and wait 5 seconds (or run `atomic intercom restart`), then rerun the install. From 0.10.5 onward, the broker runs outside the install directory ([Updating while Intercom is running](/getting-started/installation#updating-while-intercom-is-running)).
126
+
124
127
  If Atomic cannot safely self-update an installation, it exits with an explanation naming the detected executable path when available and tells you how to update. Release archive installs are not updated by `atomic update`; rerun `install.ps1` instead. Standalone Bun binaries point you to the latest [Atomic releases](https://github.com/bastani-inc/atomic/releases/latest).
125
128
 
126
129
  ## Headless skills and file watchers
@@ -28,7 +28,7 @@ Patches and bundles are stored once by content hash in the session's database (`
28
28
 
29
29
  ## When snapshots are taken
30
30
 
31
- Snapshots require a Git checkout with at least one commit and a SQL database store (local SQLite, PostgreSQL, or Turso/libSQL). Directories outside Git repositories, in-memory sessions, JSONL directory stores, and custom stores without blob tables record nothing. A new session in a blob-less store reports `blob-store-unsupported` once; a transient store failure reports `blob-store-failed` once without failing the turn.
31
+ Snapshots require a Git checkout with at least one commit and a SQL database store (local SQLite, PostgreSQL, or Turso/libSQL; see [Storage backends](/storage)). Directories outside Git repositories, in-memory sessions, JSONL directory stores, and custom stores without blob tables record nothing. A new session in a blob-less store reports `blob-store-unsupported` once; a transient store failure reports `blob-store-failed` once without failing the turn.
32
32
 
33
33
  Atomic captures snapshots at the end of any turn that ran `bash`, `edit`, `write`, `powershell`, or an extension tool declaring `writesFiles: true`. It captures the session's working directory along with the directories of files targeted by `edit` and `write`.
34
34
 
@@ -166,7 +166,7 @@ Set `ATOMIC_TIMING=1` to print the same summary to stderr during `atomic --sessi
166
166
 
167
167
  ### Moving a session as a file
168
168
 
169
- `/export session.jsonl` embeds each snapshot patch and bundle inline once and reports the included size. `--import session.jsonl` and `/import` verify every blob hash and store the blobs in the target database before saving the session. `/share` omits snapshot blobs from the gist.
169
+ [`/export`](/sessions#session-commands) `session.jsonl` embeds each snapshot patch and bundle inline once and reports the included size. `--import session.jsonl` and `/import` verify every blob hash and store the blobs in the target database before saving the session. `/share` omits snapshot blobs from the gist. For bulk multi-branch backups across stores, see [Exporting and importing sessions](/storage#exporting-and-importing-sessions).
170
170
 
171
171
  ## Snapshot refs in your repository
172
172
 
@@ -205,6 +205,8 @@ To trigger collection immediately from code, call `collectSnapshotGarbage()`. Fo
205
205
 
206
206
  ## SDK
207
207
 
208
+ Open a `SqliteDatabase` handle with `openNodeSqliteDatabase()`, `openPostgresDatabase()`, or `openLibsqlDatabase()` (see [SDK session storage](/sdk/storage) and [SDK and local SQLite API](/storage#sdk-and-local-sqlite-api)), then open a `SqlSnapshotBlobStore` on that database:
209
+
208
210
  ```typescript
209
211
  import {
210
212
  captureWorktreeSnapshot,
@@ -213,16 +215,25 @@ import {
213
215
  SqlSnapshotBlobStore,
214
216
  type WorkspaceBinding,
215
217
  } from "@bastani/atomic";
216
-
217
- const blobs = await SqlSnapshotBlobStore.open(database);
218
- const capture = await captureWorktreeSnapshot(process.cwd(), { blobs });
219
- if (capture.status === "captured" || capture.status === "unchanged") {
220
- const binding: WorkspaceBinding = capture.binding; // { remotes, head, tree, envHash }
221
- const path = await restoreWorktreeSnapshot(capture.snapshot, { blobs });
222
- await verifyWorktree(binding, path);
218
+ import { openNodeSqliteDatabase } from "@bastani/atomic/storage";
219
+
220
+ const database = await openNodeSqliteDatabase("./sessions.sqlite");
221
+ try {
222
+ // Pass the same table prefix as your sessions when using a prefix (positional string).
223
+ const blobs = await SqlSnapshotBlobStore.open(database, "project_");
224
+ const capture = await captureWorktreeSnapshot(process.cwd(), { blobs });
225
+ if (capture.status === "captured" || capture.status === "unchanged") {
226
+ const binding: WorkspaceBinding = capture.binding; // { remotes, head, tree, envHash }
227
+ const path = await restoreWorktreeSnapshot(capture.snapshot, { blobs });
228
+ await verifyWorktree(binding, path);
229
+ }
230
+ } finally {
231
+ await database.close();
223
232
  }
224
233
  ```
225
234
 
235
+ `SqlSnapshotBlobStore.open(database, prefix?)` takes `prefix` as an optional positional string (unlike `SqlSessionStore.open(database, { prefix })`, which takes an options object). `SqlSnapshotBlobStore` does not own `database` and has no `close()` method; close your caller-owned `database` in a `finally` block after snapshot operations and any running garbage collection finish.
236
+
226
237
  ### Capture, restore, and verification
227
238
 
228
239
  - `captureWorktreeSnapshot(dir, { settings?, previous?, blobs?, signal? })`: resolves to `captured`, `unchanged`, `disabled`, or `unavailable` with a typed `GitUnavailableError` or `WorkspaceSnapshotError`.
@@ -236,14 +247,14 @@ if (capture.status === "captured" || capture.status === "unchanged") {
236
247
 
237
248
  ### Session resume and partial restores
238
249
 
239
- - `openSessionInWorktree(sessionManager, { settings, storeDir?, signal?, beforeRecord?, pendingMappings?, keepInPlace?, cannotRestore?, fallbackCwd?, skipMissingRecords? })`: checks every recorded checkout and restores drifted or missing ones without running blueprints, resolving `{ sessionManager, notices, unrestored, missingRecords }`. `resumeSessionWorktree` performs the same restore without reopening the session. For standard SDK resume with blueprints, pass `sessionManager` directly to `createAgentSession({ sessionManager })`.
250
+ - `openSessionInWorktree(sessionManager, { settings, storeDir?, signal?, beforeRecord?, pendingMappings?, keepInPlace?, cannotRestore?, fallbackCwd?, skipMissingRecords? })`: checks every recorded checkout and restores drifted or missing ones without running blueprints, resolving `{ sessionManager, notices, unrestored, missingRecords }`. `resumeSessionWorktree` performs the same restore without reopening the session. For standard SDK resume with blueprints, pass `sessionManager` directly to `createAgentSession({ sessionManager })` (see [Worktree snapshots in the SDK](/sdk#worktree-snapshots)).
240
251
  - `discardDegradedRestore(sessionManager, { settings, root?, signal? })`: records each partly restored worktree (or only `root`) without `degradedFrom` so it becomes the active restore target and releases the original snapshot on the next collection.
241
252
  - `degradedRestorePin(sessionManager, root)`: returns `{ snapshotId, since, base?, lapsed, work?, kept? }` for a checkout with an active partial-restore target, or `undefined` otherwise.
242
253
  - `withWorktreeRestoreNotices(notices, work)` and `currentWorktreeRestoreNotices()`: scope `worktree_restore` system prompt notices across sessions opened inside `work`.
243
254
 
244
255
  ### Reading older snapshots on demand
245
256
 
246
- Sessions opened at the default tail window load only the snapshot records needed for resume into memory. Use `sessionManager.readWorktreeSnapshotPages()` and `sessionManager.loadWorktreeSnapshotRecords()` to inspect older snapshots on demand:
257
+ Sessions opened at the default tail window load only the snapshot records needed for resume into memory. Use `sessionManager.readWorktreeSnapshotPages()` and `sessionManager.loadWorktreeSnapshotRecords()` (see [SessionManager API](/session-format#sessionmanager-api)) to inspect older snapshots on demand:
247
258
 
248
259
  ```typescript
249
260
  const session = await SessionManager.open(store, sessionId);
@@ -11,14 +11,14 @@ const { session: inMemory } = await createAgentSession({
11
11
  sessionManager: SessionManager.inMemory(),
12
12
  });
13
13
  console.log("In-memory session:", inMemory.sessionFile ?? "(none)");
14
- inMemory.dispose();
14
+ await inMemory.dispose();
15
15
 
16
16
  // New persistent session
17
17
  const { session: newSession } = await createAgentSession({
18
18
  sessionManager: await SessionManager.create(process.cwd()),
19
19
  });
20
20
  console.log("New session file:", newSession.sessionFile);
21
- newSession.dispose();
21
+ await newSession.dispose();
22
22
 
23
23
  // Continue most recent session (or create new if none)
24
24
  const { session: continued, modelFallbackMessage } = await createAgentSession({
@@ -26,7 +26,7 @@ const { session: continued, modelFallbackMessage } = await createAgentSession({
26
26
  });
27
27
  if (modelFallbackMessage) console.log("Note:", modelFallbackMessage);
28
28
  console.log("Continued session:", continued.sessionFile);
29
- continued.dispose();
29
+ await continued.dispose();
30
30
 
31
31
  // List and open specific session
32
32
  const sessions = await SessionManager.list(process.cwd());
@@ -40,7 +40,7 @@ if (sessions.length > 0) {
40
40
  sessionManager: await SessionManager.open(sessions[0].path),
41
41
  });
42
42
  console.log(`\nOpened: ${opened.sessionId}`);
43
- opened.dispose();
43
+ await opened.dispose();
44
44
  }
45
45
 
46
46
  // Custom session directory (no cwd encoding)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.10.10-alpha.1",
3
+ "version": "0.10.10",
4
4
  "description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "atomicConfig": {
@@ -118,13 +118,13 @@
118
118
  "prepack": "node -e \"require('node:fs').existsSync('scripts/split-dist.mjs') && import('./scripts/split-dist.mjs').then(() => import('./scripts/write-startup-files.mjs')).then(() => import('./scripts/write-startup-stages.mjs'))\""
119
119
  },
120
120
  "dependencies": {
121
- "@bastani/atomic-natives": "0.10.10-alpha.1",
122
- "@bastani/atomic-ai": "0.10.10-alpha.1",
123
- "@bastani/atomic-agent-core": "0.10.10-alpha.1",
124
- "@bastani/atomic-codemode": "0.10.10-alpha.1",
125
- "@bastani/atomic-tui": "0.10.10-alpha.1",
126
- "@bastani/atomic-schema": "0.10.10-alpha.1",
127
- "@bastani/atomic-telemetry": "0.10.10-alpha.1",
121
+ "@bastani/atomic-natives": "0.10.10",
122
+ "@bastani/atomic-ai": "0.10.10",
123
+ "@bastani/atomic-agent-core": "0.10.10",
124
+ "@bastani/atomic-codemode": "0.10.10",
125
+ "@bastani/atomic-tui": "0.10.10",
126
+ "@bastani/atomic-schema": "0.10.10",
127
+ "@bastani/atomic-telemetry": "0.10.10",
128
128
  "@silvia-odwyer/photon-node": "0.3.4",
129
129
  "chalk": "6.0.0",
130
130
  "glob": "14.0.6",
@@ -103,7 +103,7 @@
103
103
  "reasoning": {
104
104
  "type": "boolean",
105
105
  "default": false,
106
- "description": "Whether the model supports thinking."
106
+ "description": "Whether the model supports thinking. Applies only to chat models."
107
107
  },
108
108
  "thinkingLevelMap": {
109
109
  "$ref": "#/$defs/ThinkingLevelMap",
@@ -136,13 +136,13 @@
136
136
  "type": "number",
137
137
  "exclusiveMinimum": 0,
138
138
  "default": 128000,
139
- "description": "Context window in tokens."
139
+ "description": "Context window in tokens. Applies only to chat models."
140
140
  },
141
141
  "maxTokens": {
142
142
  "type": "number",
143
143
  "exclusiveMinimum": 0,
144
144
  "default": 16384,
145
- "description": "Maximum output tokens."
145
+ "description": "Maximum output tokens. Defaults to 16384 for chat models. When omitted on compactor models, defaults to 32000 estimated tokens, capped at 50% of the automatic trigger."
146
146
  },
147
147
  "timeoutMs": {
148
148
  "type": "number",
@@ -249,7 +249,7 @@
249
249
  },
250
250
  "reasoning": {
251
251
  "type": "boolean",
252
- "description": "Whether the model supports thinking."
252
+ "description": "Whether the model supports thinking. Applies only to chat models."
253
253
  },
254
254
  "thinkingLevelMap": {
255
255
  "$ref": "#/$defs/ThinkingLevelMap",
@@ -332,12 +332,12 @@
332
332
  "contextWindow": {
333
333
  "type": "number",
334
334
  "exclusiveMinimum": 0,
335
- "description": "Context window in tokens."
335
+ "description": "Context window in tokens. Applies only to chat models."
336
336
  },
337
337
  "maxTokens": {
338
338
  "type": "number",
339
339
  "exclusiveMinimum": 0,
340
- "description": "Maximum output tokens."
340
+ "description": "Maximum output tokens. On compactor models, sets the upper bound on compacted output in estimated tokens, capped at 50% of the automatic trigger."
341
341
  },
342
342
  "timeoutMs": {
343
343
  "type": "number",
@@ -1215,7 +1215,7 @@
1215
1215
  "const": "state-image-urls"
1216
1216
  }
1217
1217
  ],
1218
- "description": "How the service takes classifier images. \"assets\" sends TypeSafe's assets map (PNG and JPEG) and references the images from the state, as TypeSafe and Jev on Workers AI expect. \"images\" sends Clef's images list of data URLs (PNG, JPEG, and WebP, at most four), as Clef on Workers AI expects. \"state-image-urls\" places image_url parts before the state, as OpenRouter expects; OpenRouter drops assets without an error. Auto-detected from the provider, baseUrl, and model ID. Classifier models read it from the provider-level compat; models and modelOverrides entries apply to chat models only."
1218
+ "description": "How the service takes classifier images. \"assets\" sends TypeSafe's assets map (PNG and JPEG) and references the images from the state, as TypeSafe and Jev on Workers AI expect. \"images\" sends Clef's images list of data URLs (PNG, JPEG, and WebP, at most four), as Clef on Workers AI expects. \"state-image-urls\" places image_url parts before the state, as OpenRouter expects; OpenRouter drops assets without an error. Auto-detected from the provider, baseUrl, and model ID. Classifier models read it from the provider-level compat; models and modelOverrides entries apply to chat and compactor models."
1219
1219
  },
1220
1220
  "sendImageOptInHeader": {
1221
1221
  "type": "boolean",