@bastani/atomic 0.10.14 → 0.10.15-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 (341) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/_shared/dist-KOELCESV.js +2 -2
  3. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  4. package/dist/_shared/lib-4PES5P4V.js +2 -2
  5. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +3 -3
  6. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
  7. package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
  8. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  9. package/dist/_shared/runtime-O4KCSG4C.js +2 -2
  10. package/dist/_shared/{sdk-B5LEWGGI.js → sdk-OHKMDJ74.js} +27 -5
  11. package/dist/_shared/{sdk-B5LEWGGI.js.map → sdk-OHKMDJ74.js.map} +1 -1
  12. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  13. package/dist/_shared/startup-0-0-Q3MWKUK4.js +2 -2
  14. package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
  15. package/dist/_shared/{startup-0-2-5QHPCEON.js → startup-0-2-2HUMCPKX.js} +14 -16
  16. package/dist/_shared/startup-0-2-2HUMCPKX.js.map +1 -0
  17. package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
  18. package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
  19. package/dist/_shared/startup-0-5-YDW47QX6.js +3 -3
  20. package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
  21. package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
  22. package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
  23. package/dist/_shared/startup-15-1-4S7FLMNG.js +6 -30
  24. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  25. package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
  26. package/dist/_shared/startup-8-1-LZFXSD3Z.js +3 -3
  27. package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
  28. package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
  29. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  30. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  31. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  32. package/dist/builtin/intercom/package.json +1 -1
  33. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  34. package/dist/builtin/mcp/package.json +1 -1
  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/index.bundle.mjs +1 -1
  38. package/dist/builtin/web-access/package.json +1 -1
  39. package/dist/cli/auth-cli.code.js +1 -1
  40. package/dist/cli/auth-cli.impl.js +3 -3
  41. package/dist/cli/auth-cli.js +3 -3
  42. package/dist/cli/blueprint-command.impl.js +3 -3
  43. package/dist/cli/blueprint-command.js +3 -3
  44. package/dist/cli/intercom-command.code.js +3 -3
  45. package/dist/cli/intercom-command.impl.js +3 -3
  46. package/dist/cli/intercom-command.js +3 -3
  47. package/dist/cli/list-models.impl.js +3 -3
  48. package/dist/cli/list-models.js +3 -3
  49. package/dist/cli/session-picker.code.js +1 -1
  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.code.js +1 -1
  53. package/dist/cli/startup-ui.impl.js +3 -3
  54. package/dist/cli/startup-ui.js +3 -3
  55. package/dist/cli/storage-command.impl.js +3 -3
  56. package/dist/cli/storage-command.js +3 -3
  57. package/dist/cli/storage-search-session.code.js +1 -1
  58. package/dist/cli/storage-search-session.impl.js +3 -3
  59. package/dist/cli/storage-search-session.js +3 -3
  60. package/dist/cli/team-command.code.js +1 -1
  61. package/dist/cli/team-command.impl.js +3 -3
  62. package/dist/cli/team-command.js +3 -3
  63. package/dist/cli.js +2 -2
  64. package/dist/core/compaction/compactor.d.ts +0 -8
  65. package/dist/core/debug.impl.js +3 -3
  66. package/dist/core/debug.js +3 -3
  67. package/dist/core/export-html/card-projection.impl.js +3 -3
  68. package/dist/core/export-html/card-projection.js +3 -3
  69. package/dist/core/export-html/index.code.js +2 -2
  70. package/dist/core/export-html/index.impl.js +3 -3
  71. package/dist/core/export-html/index.js +3 -3
  72. package/dist/core/export-html/json-spans.impl.js +3 -3
  73. package/dist/core/export-html/json-spans.js +3 -3
  74. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  75. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  76. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  77. package/dist/core/export-html/tool-renderer.js +3 -3
  78. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  79. package/dist/core/extensions/jiti-loader.js +3 -3
  80. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  81. package/dist/core/extensions/jiti-static-loader.js +3 -3
  82. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  83. package/dist/core/extensions/loader-host-modules.js +3 -3
  84. package/dist/core/intercom-broker-control-host.code.js +1 -1
  85. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  86. package/dist/core/intercom-broker-control-host.js +3 -3
  87. package/dist/core/intercom-broker-control.code.js +2 -2
  88. package/dist/core/intercom-broker-control.impl.js +3 -3
  89. package/dist/core/intercom-broker-control.js +3 -3
  90. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  91. package/dist/core/package-manager-storage-adapters.js +3 -3
  92. package/dist/core/sdk.code.js +1 -1
  93. package/dist/core/sdk.impl.js +3 -3
  94. package/dist/core/sdk.js +3 -3
  95. package/dist/core/session-manager-core.js +3 -3
  96. package/dist/core/session-manager-list.impl.js +3 -3
  97. package/dist/core/session-manager-list.js +3 -3
  98. package/dist/core/session-manager.impl.js +3 -3
  99. package/dist/core/session-manager.js +3 -3
  100. package/dist/core/session-storage.impl.js +3 -3
  101. package/dist/core/session-storage.js +3 -3
  102. package/dist/core/storage/index.js +2 -2
  103. package/dist/core/storage/node-sqlite-thread.js +2 -2
  104. package/dist/core/storage/node-sqlite.js +2 -2
  105. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  106. package/dist/core/storage/offline-snapshot-file.js +3 -3
  107. package/dist/core/storage/provider.js +2 -2
  108. package/dist/core/storage/selection.js +2 -2
  109. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  110. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  111. package/dist/core/storage/session/branch-fork-source.js +3 -3
  112. package/dist/core/storage/session/card-view.impl.js +3 -3
  113. package/dist/core/storage/session/card-view.js +3 -3
  114. package/dist/core/storage/session/child-reader.code.js +2 -2
  115. package/dist/core/storage/session/child-reader.impl.js +3 -3
  116. package/dist/core/storage/session/child-reader.js +3 -3
  117. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  118. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  119. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  120. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  121. package/dist/core/storage/session/expanded-child-details.js +3 -3
  122. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  123. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  124. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  125. package/dist/core/storage/session/fork-row-index.js +3 -3
  126. package/dist/core/storage/session/fork-staging.code.js +1 -1
  127. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  128. package/dist/core/storage/session/fork-staging.js +3 -3
  129. package/dist/core/storage/session/fork-window.code.js +2 -2
  130. package/dist/core/storage/session/fork-window.impl.js +3 -3
  131. package/dist/core/storage/session/fork-window.js +3 -3
  132. package/dist/core/storage/session/history-pages.impl.js +3 -3
  133. package/dist/core/storage/session/history-pages.js +3 -3
  134. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  135. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  136. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  137. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  138. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  139. package/dist/core/storage/session/memory-session-store.js +3 -3
  140. package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
  141. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  142. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  143. package/dist/core/storage/session/released-history-files.code.js +1 -1
  144. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  145. package/dist/core/storage/session/released-history-files.js +3 -3
  146. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  147. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  148. package/dist/core/storage/session/session-resume.impl.js +3 -3
  149. package/dist/core/storage/session/session-resume.js +3 -3
  150. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  151. package/dist/core/storage/session/snapshot-cut.js +3 -3
  152. package/dist/core/storage/session/snapshot-history.code.js +2 -2
  153. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  154. package/dist/core/storage/session/snapshot-history.js +3 -3
  155. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  156. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  157. package/dist/core/storage/session/sql-session-store.js +3 -3
  158. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  159. package/dist/core/storage/session/tree-outline.js +3 -3
  160. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  161. package/dist/core/storage/session/tree-presentation.js +3 -3
  162. package/dist/core/storage/storage-status.impl.js +3 -3
  163. package/dist/core/storage/storage-status.js +3 -3
  164. package/dist/core/storage/team.impl.js +3 -3
  165. package/dist/core/storage/team.js +3 -3
  166. package/dist/core/structured-output/index.code.js +1 -1
  167. package/dist/core/structured-output/index.impl.js +3 -3
  168. package/dist/core/structured-output/index.js +3 -3
  169. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  170. package/dist/core/tasks/task-completion-entry.js +3 -3
  171. package/dist/core/tasks/task-file-history.code.js +2 -2
  172. package/dist/core/tasks/task-file-history.impl.js +3 -3
  173. package/dist/core/tasks/task-file-history.js +3 -3
  174. package/dist/core/tasks/task-reference-archive.code.js +2 -2
  175. package/dist/core/tasks/task-reference-archive.js +3 -3
  176. package/dist/core/tasks/task-reference-identity.js +3 -3
  177. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  178. package/dist/core/tasks/task-reference-stream.js +3 -3
  179. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  180. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  181. package/dist/core/tasks/task-view-source.impl.js +3 -3
  182. package/dist/core/tasks/task-view-source.js +3 -3
  183. package/dist/core/tools/read-url.impl.js +3 -3
  184. package/dist/core/tools/read-url.js +3 -3
  185. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  186. package/dist/core/worktree-snapshot/errors.code.js +1 -1
  187. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  188. package/dist/core/worktree-snapshot/errors.js +3 -3
  189. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  190. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  191. package/dist/extensions/codemode/execute.impl.js +3 -3
  192. package/dist/extensions/codemode/execute.js +3 -3
  193. package/dist/extensions/codemode/renderer.impl.js +3 -3
  194. package/dist/extensions/codemode/renderer.js +3 -3
  195. package/dist/extensions/mcp/cli.code.js +1 -1
  196. package/dist/extensions/mcp/cli.impl.js +3 -3
  197. package/dist/extensions/mcp/cli.js +3 -3
  198. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  199. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  200. package/dist/extensions/mcp/cli.lazy.js +3 -3
  201. package/dist/extensions/mcp/runtime.code.js +1 -1
  202. package/dist/extensions/mcp/runtime.impl.js +3 -3
  203. package/dist/extensions/mcp/runtime.js +3 -3
  204. package/dist/index.d.ts +21 -1
  205. package/dist/index.js +2 -2
  206. package/dist/main-first-time-setup.code.js +1 -1
  207. package/dist/main-first-time-setup.impl.js +3 -3
  208. package/dist/main-first-time-setup.js +3 -3
  209. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  210. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  211. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  212. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  213. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  214. package/dist/modes/print-mode.js +1 -1
  215. package/dist/package-manager-cli.code.js +2 -2
  216. package/dist/package-manager-cli.impl.js +3 -3
  217. package/dist/package-manager-cli.js +3 -3
  218. package/dist/startup-files.json +1 -1
  219. package/dist/startup-stages/6.js +1 -1
  220. package/dist/utils/startup-database-spare.code.js +1 -1
  221. package/dist/utils/startup-database-spare.impl.js +3 -3
  222. package/dist/utils/startup-database-spare.js +3 -3
  223. package/dist/utils/tools-manager.impl.js +3 -3
  224. package/dist/utils/tools-manager.js +3 -3
  225. package/docs/background-tasks/reference.md +182 -0
  226. package/docs/background-tasks.md +98 -405
  227. package/docs/build.md +67 -27
  228. package/docs/changelog.mdx +1 -1
  229. package/docs/codemode.md +108 -39
  230. package/docs/compaction/branch-summaries.md +54 -0
  231. package/docs/compaction/custom-compactors.md +161 -0
  232. package/docs/compaction/memory-compaction.md +77 -0
  233. package/docs/compaction/reference.md +86 -38
  234. package/docs/compaction.md +51 -252
  235. package/docs/computer-use.md +169 -321
  236. package/docs/containerization.md +71 -57
  237. package/docs/custom-provider/api-reference.md +119 -25
  238. package/docs/custom-provider/oauth.md +114 -132
  239. package/docs/custom-provider/override.md +37 -27
  240. package/docs/custom-provider/registration.md +107 -83
  241. package/docs/custom-provider/streaming.md +85 -71
  242. package/docs/custom-provider.md +85 -52
  243. package/docs/development.md +39 -29
  244. package/docs/docs.json +76 -63
  245. package/docs/environment-variables.md +94 -44
  246. package/docs/extensions/api-reference.md +86 -43
  247. package/docs/extensions/authoring.md +162 -154
  248. package/docs/extensions/events.md +80 -25
  249. package/docs/extensions/examples.md +90 -85
  250. package/docs/extensions/ui.md +206 -82
  251. package/docs/extensions.md +79 -108
  252. package/docs/getting-started/authentication.md +67 -36
  253. package/docs/getting-started/first-session.md +53 -43
  254. package/docs/getting-started/installation.md +116 -89
  255. package/docs/getting-started/project-instructions.md +48 -34
  256. package/docs/guides/configuration.md +82 -20
  257. package/docs/guides/non-interactive.md +66 -24
  258. package/docs/guides/resume-on-any-machine.md +135 -82
  259. package/docs/guides/team-setup.md +114 -105
  260. package/docs/guides.md +76 -32
  261. package/docs/herdr.md +15 -16
  262. package/docs/how-atomic-works.md +140 -0
  263. package/docs/index.md +58 -44
  264. package/docs/intercom/operations.md +141 -151
  265. package/docs/intercom/reference.md +85 -108
  266. package/docs/intercom.md +84 -145
  267. package/docs/json.md +120 -67
  268. package/docs/keybindings.md +85 -49
  269. package/docs/libraries/agent-core.md +137 -275
  270. package/docs/libraries/ai.md +100 -84
  271. package/docs/libraries/codemode.md +210 -300
  272. package/docs/libraries/schema.md +59 -53
  273. package/docs/libraries/storage-postgres.md +49 -35
  274. package/docs/libraries/telemetry.md +153 -354
  275. package/docs/libraries/tui.md +265 -393
  276. package/docs/libraries.md +42 -26
  277. package/docs/llama-cpp.md +171 -161
  278. package/docs/mcp-servers.md +90 -51
  279. package/docs/models/choose-a-model.md +188 -0
  280. package/docs/models/reference.md +74 -30
  281. package/docs/models.md +153 -88
  282. package/docs/orchestration/migrating-workflows.md +23 -16
  283. package/docs/orchestration/patterns.md +39 -44
  284. package/docs/orchestration.md +65 -26
  285. package/docs/packages/authoring.md +51 -29
  286. package/docs/packages/reference.md +42 -21
  287. package/docs/packages.md +69 -58
  288. package/docs/programmatic.md +118 -24
  289. package/docs/prompt-templates.md +84 -83
  290. package/docs/providers/reference.md +43 -48
  291. package/docs/providers.md +219 -451
  292. package/docs/quickstart.md +140 -120
  293. package/docs/reference/cli.md +135 -97
  294. package/docs/reference.md +20 -18
  295. package/docs/rpc/examples.md +76 -20
  296. package/docs/rpc/extension-ui.md +64 -38
  297. package/docs/rpc/protocol.md +361 -110
  298. package/docs/rpc.md +57 -17
  299. package/docs/sdk/reference.md +409 -534
  300. package/docs/sdk/storage.md +53 -13
  301. package/docs/sdk/structured-decisions.md +82 -56
  302. package/docs/sdk/web-server.md +57 -43
  303. package/docs/sdk.md +106 -84
  304. package/docs/security.md +42 -64
  305. package/docs/session-format.md +62 -38
  306. package/docs/sessions.md +99 -214
  307. package/docs/settings.md +165 -195
  308. package/docs/shell-aliases.md +9 -6
  309. package/docs/skills/authoring.md +69 -48
  310. package/docs/skills/reference.md +51 -20
  311. package/docs/skills.md +99 -148
  312. package/docs/slash-commands.md +129 -0
  313. package/docs/storage/custom-adapters.md +160 -85
  314. package/docs/storage/jsonl.md +81 -66
  315. package/docs/storage/postgres/pgbouncer.md +120 -126
  316. package/docs/storage/postgres/tuning.md +120 -143
  317. package/docs/storage/postgres.md +314 -330
  318. package/docs/storage/sqlite.md +71 -42
  319. package/docs/storage.md +298 -302
  320. package/docs/subagents/authoring.md +55 -38
  321. package/docs/subagents/reference.md +73 -33
  322. package/docs/subagents.md +119 -187
  323. package/docs/terminal-setup.md +50 -38
  324. package/docs/termux.md +67 -41
  325. package/docs/themes/reference.md +23 -19
  326. package/docs/themes.md +142 -127
  327. package/docs/tmux.md +47 -55
  328. package/docs/tools.md +147 -109
  329. package/docs/tui/reference.md +166 -214
  330. package/docs/tui.md +196 -341
  331. package/docs/usage.md +118 -138
  332. package/docs/verification.md +79 -51
  333. package/docs/web-access.md +121 -101
  334. package/docs/windows.md +26 -27
  335. package/docs/worktree-snapshots/reference.md +245 -0
  336. package/docs/worktree-snapshots.md +71 -259
  337. package/package.json +8 -8
  338. package/dist/_shared/startup-0-2-5QHPCEON.js.map +0 -1
  339. package/docs/guides/intercom.md +0 -32
  340. package/docs/guides/orchestration.md +0 -28
  341. package/docs/guides/subagents.md +0 -37
@@ -1,84 +1,97 @@
1
1
  ---
2
2
  title: "Set up teams and CI"
3
- sidebarTitle: "Team and CI setup"
3
+ sidebarTitle: "Set up teams and CI"
4
4
  description: "Share Intercom across a team through PostgreSQL while keeping personal sessions local, and configure CI runners with environment variables."
5
5
  ---
6
6
 
7
- Share one PostgreSQL database across machines so teammates can message each other over Intercom while keeping their personal sessions local. CI runners can point both sessions and Intercom at the same database with one environment variable, so teammates can inspect and resume CI runs.
7
+ Share one PostgreSQL database across machines so teammates can coordinate over Intercom while keeping personal sessions local. CI runners can point both sessions and Intercom at that same database with one environment variable so teammates can inspect and resume CI runs.
8
8
 
9
- > Atomic 0.10.11 removed libSQL and Turso support, together with `atomic team join`, `atomic team leave`, and the `ATOMIC_PROFILE=ci` variables. To move sessions off libSQL, see [Moving off libSQL](/storage#moving-off-libsql).
9
+ ## Choose a storage layout
10
10
 
11
- | Scope | Sessions | Intercom |
12
- | --- | --- | --- |
13
- | Individual (default) | Local | Local only |
14
- | Team | Local (share explicitly with `/share` or export and import) | Team database, project group |
15
- | CI and swarms | Team database | Team database, per-run group (`ATOMIC_INTERCOM_GROUP`) |
11
+ | Profile | Sessions | Intercom | Best for |
12
+ | --- | --- | --- | --- |
13
+ | `individual` (default) | Local SQLite | Local machine only | Solo development on one machine |
14
+ | `team` | Local SQLite (share explicitly with `/share` or export/import) | Shared PostgreSQL, per-repository project group | Teammates collaborating over Intercom with private session history |
15
+ | `ci` | Shared PostgreSQL | Shared PostgreSQL, per-run group (`ATOMIC_INTERCOM_GROUP`) | CI runners, shared swarms, or syncing your own sessions across laptops |
16
+ | `custom` | Any other combination (JSONL, non-default SQLite path, project override, or mismatched prefixes) | Varies | Custom per-project or split-database layouts |
16
17
 
17
- Run `atomic team status` to see the active profile:
18
-
19
- - `individual`: sessions use default local SQLite and Intercom has no shared adapter storage.
20
- - `team`: sessions use default local SQLite while Intercom and shared `storage` use the same shared adapter database.
21
- - `ci`: sessions, Intercom, and shared `storage` all use the same shared adapter database (if you ran `atomic storage join` to share sessions across your own laptops, `atomic team status` also reports `ci`).
22
- - `custom`: any other combination, such as JSONL sessions, a non-default local SQLite file, a project `storage` override, or different adapters or prefixes between sessions and Intercom.
18
+ Inspect your active layout at any time with `atomic team status`:
23
19
 
24
20
  ```bash
25
- atomic team status # Profile, project group, and storage report
26
- atomic team status --json # JSON output
21
+ atomic team status # Human-readable profile, project group, and storage report
22
+ atomic team status --json # Machine-readable JSON output
27
23
  ```
28
24
 
29
- `atomic team status` exits `1` if the selection is invalid, the adapter fails to load, or the database does not answer.
25
+ `atomic team status --json` prints `{ profile, profileError?, projectGroup?, ...storageStatus }`, where `profile` is `{ profile, sessions, intercom }` (or `null` if configuration is invalid) and the remaining fields match `atomic storage status --json`. The command exits `1` if the storage selection is invalid, the adapter fails to load, or the database does not answer.
30
26
 
31
27
  ## Join a team
32
28
 
33
- Set up the team's PostgreSQL database as described in [PostgreSQL](/storage/postgres), then on each machine install the adapter and join it:
34
-
35
- ```bash
36
- atomic install npm:@bastani/atomic-storage-postgres
37
- (umask 077; printf 'Runtime password: '; read -rs password; printf '\n'; printf '%s' "$password" > ~/atomic-db-password)
38
- atomic storage join 'postgresql://atomic_runtime@db.example.com:5432/atomic?sslmode=verify-full' --password-file ~/atomic-db-password
39
- rm ~/atomic-db-password # atomic storage join keeps its own copy
40
- ```
41
-
42
- `atomic storage join` checks the URL, the password, the installed adapter, and a `SELECT 1` within 15 seconds before it writes anything, then sets the global `storage` setting to the team database. See [Joining a machine to a shared database](/storage#joining-a-machine-to-a-shared-database) for every option, including `--token-file`, `--auth azure|aws|gcp`, and `--prefix`.
43
-
44
- To keep your personal sessions on this machine while Intercom uses the team database, add an empty `sessions.storage` selection to `~/.atomic/agent/settings.json`. It selects the default local SQLite file even though top-level `storage` is shared. Keep the `storage` value that `atomic storage join` wrote, including the name of its password file:
45
-
46
- ```json
47
- {
48
- "storage": { "adapter": "@bastani/atomic-storage-postgres", "options": { "url": "postgresql://atomic_runtime@db.example.com:5432/atomic?sslmode=verify-full" }, "secrets": { "password": { "file": "agent/storage-token.28ab7041-05e2-4ad5-80af-854329035d8c" } } },
49
- "sessions": { "storage": {} }
50
- }
51
- ```
52
-
53
- Then restart the Intercom broker so it routes through the team database, and check the layout:
54
-
55
- ```bash
56
- atomic intercom restart
57
- atomic team status
58
- ```
59
-
60
- - Pass `--prefix` to isolate multiple teams inside one database. Everyone on a team must use the same URL and prefix.
61
- - Sessions that were already running keep their previous Intercom group until they restart or run `/reload`.
62
- - To leave the team, remove `storage` and `sessions.storage` from `~/.atomic/agent/settings.json` and run `atomic intercom restart`. The password file that `atomic storage join` wrote, `storage-token.<id>` in the agent directory, can then be deleted.
29
+ <Steps>
30
+ <Step title="Prepare the PostgreSQL database once">
31
+ Create the shared database, roles, and schema following [PostgreSQL](/storage/postgres#set-up-the-database). If multiple teams share one database, pass the same `--prefix` (such as `team_`) to `atomic storage migrate` and to every teammate's `atomic storage join`.
32
+ </Step>
33
+ <Step title="Install the adapter and join on each machine">
34
+ Install the PostgreSQL storage adapter, capture the runtime role's password in a temporary file, and run `atomic storage join`:
35
+
36
+ ```bash
37
+ atomic install npm:@bastani/atomic-storage-postgres
38
+ (umask 077; printf 'Runtime password: '; read -rs password; printf '\n'; printf '%s' "$password" > ~/atomic-db-password)
39
+ atomic storage join 'postgresql://atomic_runtime@db.example.com:5432/atomic?sslmode=verify-full' --password-file ~/atomic-db-password
40
+ rm ~/atomic-db-password # atomic storage join keeps its own private copy
41
+ ```
42
+
43
+ `atomic storage join` validates the URL, password, installed adapter, and a `SELECT 1` query within 15 seconds before updating `~/.atomic/agent/settings.json`. See [Joining a machine to a shared database](/storage#joining-a-machine-to-a-shared-database) for `--token-file`, `--auth azure|aws|gcp`, and `--prefix`.
44
+ </Step>
45
+ <Step title="Keep personal sessions local">
46
+ By default, `atomic storage join` sets top-level `storage`, which shares both sessions and Intercom. To keep personal sessions in local SQLite while Intercom uses the team database, add `"sessions": { "storage": {} }` to `~/.atomic/agent/settings.json` while keeping the `storage` block (and the exact `storage-token.<generated-id>` filename) that `atomic storage join` wrote:
47
+
48
+ ```json
49
+ {
50
+ "storage": {
51
+ "adapter": "@bastani/atomic-storage-postgres",
52
+ "options": {
53
+ "url": "postgresql://atomic_runtime@db.example.com:5432/atomic?sslmode=verify-full"
54
+ },
55
+ "secrets": {
56
+ "password": { "file": "agent/storage-token.<generated-id>" }
57
+ }
58
+ },
59
+ "sessions": { "storage": {} }
60
+ }
61
+ ```
62
+ </Step>
63
+ <Step title="Restart Intercom and verify">
64
+ Restart the local Intercom broker so it connects to the shared database, then confirm the active profile reads `team`:
65
+
66
+ ```bash
67
+ atomic intercom restart
68
+ atomic team status
69
+ ```
70
+ </Step>
71
+ </Steps>
72
+
73
+ - **Running sessions:** Sessions started before joining keep their previous Intercom group until restarted or reloaded with `/reload`.
74
+ - **Leaving a team:** Remove `storage` and `sessions.storage` from `~/.atomic/agent/settings.json`, run `atomic intercom restart`, and delete the generated `storage-token.<id>` file in your agent directory.
63
75
 
64
76
  ## Project groups
65
77
 
66
- When multi-node Intercom routing is enabled, sessions without an explicit group join `project:<owner>/<repo>`, derived from the repository's `origin` remote. Without an `origin` remote, Atomic uses the repository directory name, or the working directory name outside Git.
78
+ When multi-node Intercom routing is enabled, sessions without an explicit group automatically join `project:<owner>/<repo>`, derived from the Git repository's `origin` remote (falling back to the repository directory name without `origin`, or the working directory name outside Git).
67
79
 
68
- Sessions in different repositories on the same database cannot see or message each other unless they join the same group. An explicit group (`ATOMIC_INTERCOM_GROUP`, Intercom's `config.json` `group`, or a subagent's inherited group) always overrides the project group. Joining `default` explicitly while multi-node routing is on prints a warning because every teammate's session on the database can address `default`.
80
+ Sessions in different repositories on the same database cannot see or message each other unless they join the same group. An explicit group (`ATOMIC_INTERCOM_GROUP`, Intercom's `config.json` `group`, or an inherited subagent group) always overrides the project group. Joining `default` explicitly while multi-node routing is on prints a warning because every teammate on the shared database can message `default`.
69
81
 
70
- For multi-node broker behavior, Git lookup errors, and routing checks, see [Running Intercom across machines](/intercom/operations#running-intercom-across-machines) and [Project groups](/intercom/operations#project-groups).
82
+ For remote URL casing rules, Git lookup errors, and multi-node routing checks, see [Running Intercom across machines](/intercom/operations#running-intercom-across-machines) and [Project groups](/intercom/operations#project-groups).
71
83
 
72
84
  ## CI and swarms
73
85
 
74
- CI runners do not need a `settings.json` file. Select the team database for the whole process with `ATOMIC_STORAGE`, and keep the password in an environment variable the selection names:
86
+ CI runners do not need a `settings.json` file. Configure the shared database for the process and all child processes with environment variables:
75
87
 
76
88
  | Variable | Value |
77
89
  | --- | --- |
78
- | `ATOMIC_STORAGE` | `{"adapter":"@bastani/atomic-storage-postgres","options":{"url":"<team database URL>"},"secrets":{"password":{"env":"ATOMIC_DB_PASSWORD"}}}`, plus `"prefix"` when the team uses one |
79
- | `ATOMIC_DB_PASSWORD` | The database password, read when a store opens |
90
+ | `ATOMIC_STORAGE` | `{"adapter":"@bastani/atomic-storage-postgres","options":{"url":"<team database URL>"},"secrets":{"password":{"env":"ATOMIC_DB_PASSWORD"}}}` (add `"prefix"` when your team uses one) |
91
+ | `ATOMIC_DB_PASSWORD` | Database password, read only when opening a store |
92
+ | `ATOMIC_INTERCOM_GROUP` | Optional per-run group isolating one CI job or swarm from others |
80
93
 
81
- Both sessions and Intercom use the team database for this process and every child process it spawns. Atomic writes nothing to settings, and it reads the password only when opening a store, never copying it into settings, logs, or child storage selections. Atomic validates `ATOMIC_STORAGE` at startup, before it opens a session. See [Selecting storage per process](/storage#selecting-storage-per-process) for the precedence order.
94
+ Atomic validates `ATOMIC_STORAGE` at startup before opening a session and never copies passwords into settings, logs, or child storage selections. See [Selecting storage per process](/storage#selecting-storage-per-process) for precedence rules.
82
95
 
83
96
  ### GitHub Actions
84
97
 
@@ -96,15 +109,17 @@ jobs:
96
109
  - run: atomic -p "Fix the failing test in the checkout"
97
110
  ```
98
111
 
99
- Store the password in an encrypted secret and expose it only to the step that needs it. Every tool the agent runs in that step inherits the step's environment. On Azure, AWS, or Google Cloud, `"options": { "auth": "azure-entra" }` (or `aws-iam`, `gcp-iam`) signs in with the runner's identity instead of a password. See [PostgreSQL](/storage/postgres).
112
+ <Tip>
113
+ Store `ATOMIC_DB_PASSWORD` in an encrypted secret and scope it only to the step that runs Atomic, since tools run by the agent inherit that step's environment. On Azure, AWS, or Google Cloud, pass `"options": { "auth": "azure-entra" }` (or `"aws-iam"`, `"gcp-iam"`) to authenticate with the runner's cloud identity instead of a password ([Cloud identities](/storage/postgres#cloud-identities)).
114
+ </Tip>
100
115
 
101
116
  ### Caching between runs
102
117
 
103
- Hosted CI runners start with an empty home directory. Use `atomic blueprint cache-key` to compute cache keys and paths for package stores detected from lockfiles and any extra paths in `.atomic/settings.json` under `resume.cache`. See [Caches for runners](/guides/resume-on-any-machine#caches-for-runners).
118
+ Hosted CI runners start with an empty home directory. Use `atomic blueprint cache-key` to emit cache keys and paths for detected package stores and any extra `resume.cache` paths in `.atomic/settings.json` ([Caches for runners](/guides/resume-on-any-machine#caches-for-runners)).
104
119
 
105
120
  Save caches only from a trusted job on the default branch (`push`, `schedule`, or `workflow_dispatch`), and restore them read-only in agent jobs with `actions/cache/restore`.
106
121
 
107
- In the trusted job, run [`atomic blueprint prebuild --park --approve`](/guides/resume-on-any-machine#prebuilt-worktrees). It restores the commit into a worktree, runs its blueprints to warm package stores, writes the commit into Atomic's Git object store, and parks `"kind": "build"` paths from `resume.cache`. Prebuild requires a Git remote, `snapshots.enabled: true`, no uncommitted edits to tracked files, and no unpushed commits touching denied secret files. If your project extensions depend on installed Atomic packages, install those packages before running `atomic --list-models` to warm the compiled extension cache:
122
+ In the trusted job, [`atomic blueprint prebuild --park --approve`](/guides/resume-on-any-machine#prebuilt-worktrees) checks out the commit into a worktree, runs repository blueprints to warm package stores, writes the commit into Atomic's Git object store, and parks `"kind": "build"` paths from `resume.cache`. Prebuild requires a Git remote, `snapshots.enabled: true`, no uncommitted edits to tracked files, and no unpushed commits touching denied secret files. Install any required Atomic packages before running `atomic --list-models` to warm the compiled extension cache:
108
123
 
109
124
  ```yaml
110
125
  on:
@@ -121,7 +136,7 @@ jobs:
121
136
  - id: keys
122
137
  run: atomic blueprint cache-key --format github-output >> "$GITHUB_OUTPUT"
123
138
  - run: atomic blueprint prebuild --park --approve # Runs blueprints to populate stores; trust only the default branch
124
- - run: atomic --list-models # Compiles installed extensions into Atomic's cache
139
+ - run: atomic --list-models # Compiles installed extensions into Atomic's cache
125
140
  - uses: actions/cache/save@v4
126
141
  with:
127
142
  key: ${{ steps.keys.outputs.stores-key }}
@@ -141,7 +156,7 @@ jobs:
141
156
  path: ${{ steps.keys.outputs.atomic-paths }}
142
157
  ```
143
158
 
144
- In the agent job, restore those entries before launching Atomic:
159
+ In the agent job, restore those cache entries before launching Atomic:
145
160
 
146
161
  ```yaml
147
162
  - uses: actions/checkout@v5
@@ -172,64 +187,58 @@ In the agent job, restore those entries before launching Atomic:
172
187
  - run: atomic --session "$SESSION_ID" -p "Continue"
173
188
  ```
174
189
 
175
- When the agent job resumes a session, Atomic fetches only the commits missing from the cached Git store and adopts parked build output at the same path used during prebuild. This preserves path-sensitive build artifacts such as Cargo's `target`.
190
+ When the agent job resumes a session, Atomic fetches only commits missing from the cached Git store and restores parked build output at the same path used during prebuild (preserving path-sensitive artifacts such as Cargo's `target`).
176
191
 
177
- - If `resume.cache` defines no `"kind": "build"` paths, `build-key` is empty and its steps are skipped.
178
- - Omit build paths if untrusted external contributor code builds on the default branch, because every agent job reuses the trusted job's build output.
179
- - Keys include lockfiles, key files, `resume.cache`, the repository blueprint, OS, architecture, and Atomic version, so exact hits never return stale content. `restore-keys` falls back to the newest older cache so package managers can update incrementally.
180
- - `cache-key` omits paths that may hold credentials and warns on stderr while leaving `$GITHUB_OUTPUT` clean. Restore only entries that `cache-key` outputs for your repository, because a cache step with an empty `path` fails.
192
+ - Keys hash lockfiles, `keyFiles`, `resume.cache`, the repository blueprint, OS, architecture, and Atomic version; `restore-keys` falls back to the newest older cache for incremental updates.
193
+ - `cache-key` omits paths that may hold credentials and warns on stderr while keeping `$GITHUB_OUTPUT` clean. Skip `build` steps when `build-key` is empty so `actions/cache` never receives an empty `path`.
194
+
195
+ <Warning>
196
+ Omit `"kind": "build"` paths from `resume.cache` if untrusted external contributor code builds on the default branch, because agent jobs reuse the trusted job's parked build output.
197
+ </Warning>
181
198
 
182
199
  ## From the SDK
183
200
 
184
- `@bastani/atomic/storage` exports `getTeamProfile()`, which reports the layout in effect the way `atomic team status` does. To give an embedded agent the team database, pass a storage selection to `createAgentSession({ storage })` and keep the password in memory with `inMemorySecret()`:
201
+ `@bastani/atomic/storage` (and `@bastani/atomic`) exports `getTeamProfile(options?)`, which resolves the active layout matching `atomic team status`:
202
+
203
+ - **Options (`TeamProfileOptions`):** `{ agentDir?, cwd? }` (both optional; default to the resolved agent directory and `process.cwd()`).
204
+ - **Return value (`Promise<TeamProfile>`):** `{ profile, sessions, intercom }`, where `profile` is `"individual" | "team" | "ci" | "custom"`, `sessions` describes the active session store, and `intercom` describes the shared Intercom store (or `"off"` when local only).
185
205
 
186
206
  ```typescript
187
- import { spawn } from "node:child_process";
188
- import { createAgentSession } from "@bastani/atomic";
189
- import { inMemorySecret } from "@bastani/atomic/storage";
190
-
191
- const url = process.env.TEAM_DATABASE_URL!;
192
- const password = process.env.TEAM_DATABASE_PASSWORD!;
193
-
194
- // Embedded SDK agent: sessions use the team database (requires `atomic install npm:@bastani/atomic-storage-postgres`
195
- // or `DefaultResourceLoader({ additionalExtensionPaths })`).
196
- const storage = {
197
- adapter: "@bastani/atomic-storage-postgres",
198
- options: { url },
199
- secrets: { password: inMemorySecret(password) },
200
- };
201
- const { session } = await createAgentSession({ storage });
202
- try {
203
- await session.prompt("Summarize the failing tests");
204
- } finally {
205
- await session.dispose();
206
- }
207
-
208
- // Spawned agent process: sessions and Intercom both use the team database.
209
- const child = spawn("atomic", ["-p", "Fix the failing test"], {
210
- env: {
211
- ...process.env,
212
- ATOMIC_STORAGE: JSON.stringify({ adapter: "@bastani/atomic-storage-postgres", options: { url }, secrets: { password: { env: "ATOMIC_DB_PASSWORD" } } }),
213
- ATOMIC_DB_PASSWORD: password,
214
- },
215
- stdio: "inherit",
216
- });
207
+ import { getTeamProfile, inMemorySecret } from "@bastani/atomic/storage";
208
+
209
+ const layout = await getTeamProfile({ cwd: process.cwd() });
210
+ // layout: { profile: "team", sessions: "...", intercom: "..." }
217
211
  ```
218
212
 
219
- An in-memory password serializes as `[redacted]`, so child processes cannot reopen the store with it: give them an `{ "env": "<VAR>" }` reference instead, as above. See [SDK session storage](/sdk/storage) for complete recipes and ownership rules, and [Team setup errors](/storage#team-setup-errors) for the typed errors.
213
+ To pass the team database to an embedded `createAgentSession({ storage })` call, keep the password in memory with `inMemorySecret(password)`. Because in-memory secrets serialize as `[redacted]`, spawned `atomic` subprocesses cannot reopen the store from them—pass an `{ "env": "ATOMIC_DB_PASSWORD" }` reference inside `ATOMIC_STORAGE` instead. See [SDK session storage](/sdk/storage) for complete recipes and store ownership rules, and [Team setup errors](/storage#team-setup-errors) for typed errors.
220
214
 
221
215
  ## Security
222
216
 
223
- Anyone with read access to the team database can read everything stored in it, including CI sessions and Intercom messages until shortly after delivery.
217
+ <Warning>
218
+ Anyone with read access to the shared PostgreSQL database can read everything stored in it, including CI sessions and Intercom messages in transit. Treat database read access as full read access to every session and message under that prefix.
219
+ </Warning>
220
+
221
+ - Give each team its own database or `--prefix` so teams never share tables or Intercom routing.
222
+ - Use a dedicated PostgreSQL runtime role with only the privileges Atomic requires, rotate passwords on offboarding, and prefer cloud identities (`--auth`) where supported ([PostgreSQL](/storage/postgres)).
223
+ - In the `team` profile, personal sessions stay off the shared database only because `sessions.storage` selects local SQLite. Share individual sessions intentionally with `/share` or `atomic storage export` / `atomic storage import`.
224
224
 
225
- - Give each team its own database, or its own prefix, and treat database access as full read access.
226
- - Give machines and CI runners a runtime role with only the privileges Atomic needs, rotate its password when someone leaves, and prefer platform identities (`--auth`) where your cloud supports them. See [PostgreSQL](/storage/postgres).
227
- - In the team layout, personal sessions stay off the shared database only because `sessions.storage` selects the local store. Share sessions intentionally with `/share` or `atomic storage export` and `atomic storage import`.
225
+ <Note>
226
+ **Upgrading from libSQL or Turso?** Atomic removed libSQL support together with `atomic team join`, `atomic team leave`, and `ATOMIC_PROFILE=ci`. Follow [Moving off libSQL](/storage#moving-off-libsql) to export existing sessions and move to PostgreSQL or local SQLite.
227
+ </Note>
228
228
 
229
229
  ## Related
230
230
 
231
- - [Storage](/storage) for storage setup, selections, precedence, and error reference.
232
- - [SDK session storage](/sdk/storage) for Node.js and TypeScript storage recipes and store ownership rules.
233
- - [Resume sessions on any machine](/guides/resume-on-any-machine) for cross-machine worktree snapshots and environment blueprints.
234
- - [Running Intercom across machines](/intercom/operations#running-intercom-across-machines) for multi-node broker details.
235
- - [Intercom groups](/intercom/reference#groups) for how groups isolate sessions.
231
+ <Columns cols={2}>
232
+ <Card title="PostgreSQL setup" href="/storage/postgres">
233
+ Database schema, owner vs. runtime roles, TLS, connection poolers, cloud IAM, and concurrency tuning.
234
+ </Card>
235
+ <Card title="Storage overview" href="/storage">
236
+ All storage backends, selection precedence, session export/import, and storage error reference.
237
+ </Card>
238
+ <Card title="Resume sessions on any machine" href="/guides/resume-on-any-machine">
239
+ Cross-machine worktree snapshots, `.atomic/blueprint.yaml`, and runner cache configuration.
240
+ </Card>
241
+ <Card title="Operate Intercom" href="/intercom/operations#running-intercom-across-machines">
242
+ Multi-node Intercom routing, project groups, offline queueing, and troubleshooting.
243
+ </Card>
244
+ </Columns>
package/docs/guides.md CHANGED
@@ -1,50 +1,94 @@
1
1
  ---
2
2
  title: "Task guides"
3
- sidebarTitle: "All guides"
4
- description: "Task guides for interactive and non-interactive work, sessions, compaction, subagents, providers, and security."
3
+ sidebarTitle: "Task guides"
4
+ description: "Task guides for everyday terminal work, sessions, compaction, subagents, models, and security."
5
5
  ---
6
6
 
7
- New to Atomic? Follow the [Quickstart](/quickstart) to install, authenticate, run your first session, and add project instructions. To extend or embed Atomic, go to [Build with Atomic](/build). For exact flags, settings, events, or types, go to the [Reference index](/reference).
7
+ New to Atomic? Start with the [Quickstart](/quickstart) to install, authenticate, run your first session, and add project instructions, or read [How Atomic works](/how-atomic-works) for the complete mental model.
8
8
 
9
9
  ## Use Atomic daily
10
10
 
11
- - **[Interactive mode](/usage).** Use the terminal editor, slash commands, startup typing, message queue, and context files.
12
- - **[Non-interactive mode](/guides/non-interactive).** Run one-shot prompts with `-p`, stream JSON events, or drive Atomic over RPC.
13
- - **[Configure Atomic](/guides/configuration).** Create a global settings file and override settings per project.
14
- - **[Sessions](/sessions).** Save, resume, name, search, and branch sessions.
15
- - **[Worktree snapshots](/worktree-snapshots).** Capture and restore repository state alongside your session history.
16
- - **[Resume on any machine and blueprints](/guides/resume-on-any-machine).** Continue a session on another machine that shares your storage, and automate dependency rebuilds with [`.atomic/blueprint.yaml` blueprints](/guides/resume-on-any-machine#set-the-environment-up-with-a-blueprint).
17
- - **[Storage](/storage).** Choose where sessions are kept: a [local SQLite](/storage/sqlite) file, [JSONL files](/storage/jsonl), or a [PostgreSQL](/storage/postgres) database that several machines share. Move sessions between stores with export and import. To run many agents on PostgreSQL, see [PgBouncer](/storage/postgres/pgbouncer) and [server tuning](/storage/postgres/tuning). For apps built on the SDK, see [SDK session storage](/sdk/storage).
18
- - **[Context and compaction](/compaction).** Keep long sessions inside the model's context window, or plug in a [custom remote compactor](/compaction#customize-morph-or-add-a-remote-compactor).
19
- - **[MCP servers](/mcp-servers).** Connect external tools and data sources over Model Context Protocol.
11
+ <Columns cols={2}>
12
+ <Card title="Use interactive mode" href="/usage">
13
+ Terminal editor, `@` file references, `!` shell commands, message queueing, and prompt history search.
14
+ </Card>
15
+ <Card title="Run non-interactively" href="/guides/non-interactive">
16
+ One-shot prompts with `-p`, piped stdin, JSON event streams, and headless scripting.
17
+ </Card>
18
+ <Card title="Configure Atomic" href="/guides/configuration">
19
+ Set up global defaults in `~/.atomic/agent/settings.json` and project-level overrides.
20
+ </Card>
21
+ <Card title="Manage sessions" href="/sessions">
22
+ Resume, name, search, branch with `/tree`, fork, clone, and recall past sessions.
23
+ </Card>
24
+ <Card title="Worktree snapshots" href="/worktree-snapshots">
25
+ Capture and restore Git repository state alongside your session history.
26
+ </Card>
27
+ <Card title="Resume on any machine" href="/guides/resume-on-any-machine">
28
+ Continue sessions across hosts over shared PostgreSQL and rebuild environments with `.atomic/blueprint.yaml`.
29
+ </Card>
30
+ <Card title="Context and compaction" href="/compaction">
31
+ Keep long runs within context limits with zero-call memory compaction or custom remote compactors.
32
+ </Card>
33
+ <Card title="Custom compaction models" href="/compaction/custom-compactors">
34
+ Use built-in Morph compaction or connect your own remote compactor endpoint with automatic fallback.
35
+ </Card>
36
+ </Columns>
20
37
 
21
38
  ## Delegate and automate
22
39
 
23
- - **[Plan a task with subagents](/guides/orchestration).** Distribute multi-step work across subagents and verify the results.
24
- - **[Subagents](/guides/subagents).** Delegate independent tasks to fresh or forked subagents in the background (see the full [Subagents guide](/subagents)).
25
- - **[Background tasks](/background-tasks).** Launch, inspect, steer, and stop background subagents and shells.
26
- - **[Intercom](/guides/intercom).** Coordinate live sessions and subagents on one machine or across a shared database (see the full [Intercom guide](/intercom)).
27
- - **[Team and CI setup](/guides/team-setup).** Share Intercom with a team through one PostgreSQL database while sessions stay private, and configure CI runners.
28
- - **[Structured decisions](/sdk/structured-decisions).** Make typed classifier or chat decisions with `decide()` and `generateStructuredOutput()`.
29
- - **[Computer use](/computer-use).** Automate desktop apps, browsers, and terminals across macOS, Linux, and Windows.
30
- - **[Verification](/verification).** Reproduce bugs and collect verifiable evidence across terminal, browser, and desktop environments.
40
+ <Columns cols={2}>
41
+ <Card title="Orchestrate multi-step work" href="/orchestration">
42
+ Combine skills, subagents, and verification loops to plan and validate larger tasks.
43
+ </Card>
44
+ <Card title="Run subagents" href="/subagents">
45
+ Delegate independent work to fresh or forked subagents, isolate edits in worktrees, and control runs.
46
+ </Card>
47
+ <Card title="Background tasks" href="/background-tasks">
48
+ Launch, inspect, steer, pause, and stop background subagents and shells in `/tasks`.
49
+ </Card>
50
+ <Card title="Coordinate sessions with Intercom" href="/intercom">
51
+ Message and ask live sessions or sibling subagents on one machine or across a shared database.
52
+ </Card>
53
+ <Card title="Team and CI setup" href="/guides/team-setup">
54
+ Share Intercom across a team with PostgreSQL while keeping sessions private, and set up CI runners.
55
+ </Card>
56
+ <Card title="Computer use" href="/computer-use">
57
+ Automate browsers, native desktop apps, and terminals across macOS, Linux, and Windows.
58
+ </Card>
59
+ <Card title="Verification" href="/verification">
60
+ Reproduce bugs and gather verifiable evidence across terminal, browser, and desktop workflows.
61
+ </Card>
62
+ </Columns>
31
63
 
32
64
  ## Models and providers
33
65
 
34
- - **[Providers](/providers).** Configure subscription logins, API keys, and cloud providers.
35
- - **[Local models](/llama-cpp).** Run local models with llama.cpp.
66
+ <Columns cols={2}>
67
+ <Card title="Choose a model" href="/models/choose-a-model">
68
+ Decide between subscriptions, API keys, local models, and custom endpoints, and configure model cycling.
69
+ </Card>
70
+ <Card title="Model providers" href="/providers">
71
+ Connect subscription logins, API keys, and cloud gateways (Bedrock, Vertex AI, Azure, NIM).
72
+ </Card>
73
+ <Card title="Local models with llama.cpp" href="/llama-cpp">
74
+ Run local GGUF models with a `llama.cpp` router and manage them with `/llama`.
75
+ </Card>
76
+ </Columns>
36
77
 
37
78
  ## Security and isolation
38
79
 
39
- - **[Security](/security).** Review project trust, sandbox boundaries, and credential export guarantees.
40
- - **[Containerization](/containerization).** Run Atomic or its tools inside Gondolin, Docker, or OpenShell.
80
+ <Columns cols={2}>
81
+ <Card title="Security" href="/security">
82
+ Review project trust boundaries, OS tool permissions, and credential guarantees.
83
+ </Card>
84
+ <Card title="Containerization" href="/containerization">
85
+ Isolate Atomic or its tool execution inside Gondolin, Docker, or OpenShell.
86
+ </Card>
87
+ </Columns>
41
88
 
42
- ## Quick references
89
+ ## Build and reference
43
90
 
44
- - **[CLI reference](/reference/cli).** Look up commands, flags, subcommands, and exit codes.
45
- - **[Built-in tools](/tools)**, **[Codemode](/codemode)**, and **[Web access](/web-access).** Review default tools, sandbox scripting, and search/fetch controls.
46
- - **[Herdr](/herdr).** Configure status indicators and session restore inside Herdr panes.
47
- - **[Settings](/settings).** Browse the full `settings.json` reference.
48
- - **[Environment variables](/environment-variables).** Look up Atomic variables, legacy aliases, color controls, and provider credentials.
49
- - **[Keybindings](/keybindings).** Look up default shortcuts and custom bindings.
50
- - **[Diagnostics and debugging](/development).** Capture debug snapshots, trace UI stalls, and report bugs.
91
+ Looking to extend, embed, or look up exact flags and schemas?
92
+
93
+ - **[Build with Atomic](/build):** Write [skills](/skills), [prompt templates](/prompt-templates), [themes](/themes), [extensions](/extensions), [custom models](/models) and [providers](/custom-provider), [Atomic packages](/packages), or embed Atomic via the [TypeScript SDK, RPC, or JSON mode](/programmatic).
94
+ - **[Reference index](/reference):** Look up [CLI options](/reference/cli), [Slash commands](/slash-commands), [Settings](/settings), [Environment variables](/environment-variables), [Keybindings](/keybindings), [Built-in tools](/tools), [Codemode](/codemode), [MCP servers](/mcp-servers), [Web access](/web-access), [Storage](/storage), [Platform setup](/reference#platform-setup), and [Diagnostics and debugging](/development).
package/docs/herdr.md CHANGED
@@ -1,18 +1,18 @@
1
1
  ---
2
- title: "Herdr integration"
2
+ title: "Integrate with Herdr"
3
3
  sidebarTitle: "Herdr"
4
- description: "Use Atomic's built-in Herdr status indicators, session restore, troubleshooting steps, and privacy controls."
4
+ description: "Use Atomic's built-in Herdr status indicators, automatic session restore, troubleshooting steps, and privacy controls."
5
5
  ---
6
6
 
7
7
  Atomic reports its status to [Herdr](https://herdr.dev) automatically when you start it inside a Herdr pane. No extra extension is needed, and the pane identifies the agent as `atomic`.
8
8
 
9
- For interactive terminal automation, pane isolation, and fallbacks, see [Computer use](/computer-use#terminal-automation-with-herdr). To let Atomic inspect or control Herdr panes, tabs, workspaces, worktrees, and commands from inside a Herdr pane (`HERDR_ENV=1`), invoke the bundled `/skill:herdr` skill ([Bundled skills](/skills#bundled-skills)). This page covers Atomic's built-in status and session-restore integration.
9
+ For interactive terminal automation, pane isolation, and fallbacks, see [Computer use](/computer-use#terminal-automation-with-herdr). To let Atomic inspect or control Herdr panes, tabs, workspaces, worktrees, and commands from inside a Herdr pane (`HERDR_ENV=1`), invoke the bundled `/skill:herdr` skill ([Bundled skills](/skills#bundled-skills)). This guide covers Atomic's built-in status and session-restore integration.
10
10
 
11
11
  ## Setup
12
12
 
13
13
  Use Herdr 0.8.2 or newer and launch Atomic inside a Herdr pane. Herdr sets the pane environment variables automatically, so no manual configuration is required.
14
14
 
15
- - Status reporting runs only in interactive Atomic sessions. It stays off outside Herdr and in print, JSON, and RPC modes.
15
+ - Status reporting runs only in interactive Atomic sessions; it stays off outside Herdr and in print, JSON, and RPC modes.
16
16
  - Reporting stays active even when you pass `--no-extensions` (`-ne`); only setting `herdr.enabled: false` turns it off.
17
17
  - Inside Herdr panes (`TERM_PROGRAM=herdr`), Atomic automatically enables Kitty inline images and clickable OSC 8 hyperlinks.
18
18
 
@@ -24,23 +24,23 @@ Use Herdr 0.8.2 or newer and launch Atomic inside a Herdr pane. Herdr sets the p
24
24
  | Blocked | Work needs your input or approval, and no independent background work is running. |
25
25
  | Idle / Done | No work is running. Herdr may show a newly finished turn as Done. |
26
26
 
27
- Quiet periods such as provider waits, retries, and tool execution still count as Working. Active background work keeps the pane Working after Atomic finishes its response.
27
+ Quiet periods such as provider waits, retries, and tool execution still count as Working, and active background work keeps the pane Working after Atomic finishes its response. Opening [`/tasks`](/background-tasks) or [`/agents`](/subagents) does not mark the pane Blocked, and neither does a [subagent](/subagents) asking its supervisor for guidance. Check `/tasks` for pass or fail outcomes; the pane status shows activity, not a verdict.
28
28
 
29
+ <Note>
29
30
  All Blocked states report the fixed message `"Waiting for approval"`, even for non-approval questions or prompts. Unlike [OSC 7501 program status](/terminal-setup#program-status), Herdr also reports [project trust](/security) prompts (`/trust` or resumed-folder trust) as Blocked when no background tasks are running.
30
-
31
- Opening [`/tasks`](/background-tasks) or [`/agents`](/subagents) does not mark the pane Blocked, and neither does a [subagent](/subagents) asking its supervisor for guidance. Check `/tasks` for pass or fail outcomes; the pane status shows activity, not a verdict.
31
+ </Note>
32
32
 
33
33
  ## Restore after a Herdr restart
34
34
 
35
35
  With Herdr 0.9.2 or newer, Atomic also reports a resume command so Herdr can reopen the same conversation in the pane after a Herdr server restart ([Sessions](/sessions), [Storage](/storage)). Atomic does not restart panes itself. To disable automatic agent restore in Herdr, set `[session] resume_agents_on_restore = false` in Herdr's config.
36
36
 
37
- - **Local SQLite sessions (default):** Atomic reports `atomic --session-store <path> --session <id>` (plus `--session-prefix <prefix>` when a table prefix is configured).
38
- - **JSONL directory sessions:** Atomic reports `atomic --session-dir <dir> --session <id>`. Session IDs ending in `.jsonl` still use `--session <id>`.
39
- - **Other persisted stores (such as PostgreSQL):** Atomic reports `atomic --session <id>`.
37
+ - **Local SQLite sessions (default):** Reports `atomic --session-store <path> --session <id>` (plus `--session-prefix <prefix>` when a table prefix is configured).
38
+ - **JSONL directory sessions:** Reports `atomic --session-dir <dir> --session <id>`. Session IDs ending in `.jsonl` still use `--session <id>`.
39
+ - **Other persisted stores (such as PostgreSQL):** Reports `atomic --session <id>`.
40
40
  - **Switching sessions:** Running `/new`, `/resume`, `/fork`, or `/clone` updates the pane to the new session's ID and resume command.
41
- - **Unsaved sessions:** Sessions started with `--no-session` report status without a resume command. For a brand-new persisted session, Atomic reports the resume command right away, though reopening succeeds only after the session's first entry is saved to storage.
41
+ - **Unsaved sessions:** Sessions started with `--no-session` report status without a resume command. For a brand-new persisted session, Atomic reports the resume command right away, though reopening succeeds only after the first entry is saved.
42
42
  - **Quit vs. stop signals:** Quitting Atomic yourself (`Ctrl+D`, `Ctrl+C` twice, `/quit`, or `/exit`) clears the resume command so Herdr does not reopen the pane. When Herdr or the OS stops Atomic with `SIGTERM`, `SIGHUP`, or a Windows console close or sign-out, the resume command stays registered for restore.
43
- - **Resume-command safety limits:** If the resume command has more than 64 arguments, exceeds 8 KiB, or contains a single quote (`'`) or control character in any argument (such as a session path), Atomic omits the resume command while continuing to report live status.
43
+ - **Resume-command safety checks:** If the resume command is unusually long or contains a single quote (`'`) or control character in any argument (such as a session path), Atomic omits the resume command while continuing to report live status.
44
44
  - **Older Herdr versions:** Herdr 0.8.2 through 0.9.1 show status indicators without session restore.
45
45
 
46
46
  ## Disable the integration
@@ -55,7 +55,7 @@ Add this to `~/.atomic/agent/settings.json` or trusted project `.atomic/settings
55
55
  }
56
56
  ```
57
57
 
58
- Reporting is enabled by default, and disabling it also disables resume-command reporting. Running `/reload` after setting `herdr.enabled` to `false` cleanly releases the pane registration and clears the resume command. Project settings follow the normal [settings precedence](/settings).
58
+ Reporting is enabled by default, and disabling it also disables resume-command reporting. Running `/reload` after setting `herdr.enabled` to `false` cleanly releases the pane registration and clears the resume command. Project settings follow normal [settings precedence](/settings).
59
59
 
60
60
  ## Troubleshooting
61
61
 
@@ -63,12 +63,11 @@ If Atomic does not appear in Herdr:
63
63
 
64
64
  - Verify that you launched Atomic inside a Herdr pane rather than an external terminal.
65
65
  - Check that Herdr is running and `herdr.enabled` is not set to `false`.
66
- - Inside a Herdr pane, Atomic's built-in reporter supersedes Herdr's legacy file integration and skips both `herdr-agent-state.ts` and `herdr-agent-state.js` (usually in `~/.pi/agent/extensions`). Outside a Herdr pane, those files load normally.
67
- - If you installed a separate `herdr-atomic-reporter` extension, remove or disable one of the two reporters to prevent flickering status updates.
66
+ - **Upgrading from legacy Herdr extensions:** Inside a Herdr pane, Atomic's built-in reporter supersedes Herdr's legacy file integration and skips `herdr-agent-state.ts` and `herdr-agent-state.js` automatically (outside a Herdr pane, those files load normally). If you installed a separate `herdr-atomic-reporter` extension, remove or disable one of the two reporters to prevent flickering status updates.
68
67
 
69
68
  Custom launchers must supply `HERDR_ENV=1` along with non-empty `HERDR_BIN_PATH`, `HERDR_PANE_ID`, and `HERDR_SOCKET_PATH` values. See [Herdr's integration guide](https://herdr.dev/docs/integrations/#integrate-your-own-agent).
70
69
 
71
- Each `herdr` CLI status call times out after 5 seconds (with a 64 KiB output buffer). Reporting errors never interrupt the agent, and each error category logs to stderr at most once per session. Reloading or compacting a session keeps Atomic registered while enabled; if status stops updating, check Herdr's connection and run `/reload` (Atomic does not poll to reconnect).
70
+ Status calls time out quickly, never interrupt the agent, and log each error category to stderr at most once per session. Reloading or compacting a session keeps Atomic registered while enabled; if status stops updating, check Herdr's connection and run `/reload` (Atomic does not poll to reconnect).
72
71
 
73
72
  ## Privacy
74
73