@bastani/atomic 0.10.14-alpha.1 → 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 +29 -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 +9 -0
  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
@@ -6,14 +6,23 @@ description: "Reference for every Atomic RPC command, streamed event, structured
6
6
 
7
7
  ## Commands
8
8
 
9
- ### Stored session summaries
9
+ Ordinary commands execute sequentially in FIFO order, while interrupts, `extension_ui_response`, and concurrent commands (`bash`, `user_bash`, `refresh_models`, `set_compaction_model`, `set_decision_model`, `start_pending_recovery`, `stop_all_background`) bypass the queue immediately. See [Command execution and concurrency](/rpc#command-execution-and-concurrency).
10
10
 
11
- These read-only commands do not start a model turn. Stored summaries remain available even when `sessionSummary.enabled` is `false`.
12
-
13
- | Command | Response `data` | TypeScript `RpcClient` method |
14
- | --- | --- | --- |
15
- | `{"type":"get_session_summary"}` | `{ summary: SessionSummaryEntry \| null }`, including `summary` and `summarizedThroughId`; always `null` for an unsaved (`--no-session`) session | `getSessionSummary()` |
16
- | `{"type":"list_sessions"}` | `{ sessions: RpcSessionInfo[] }` for the current project or session directory, including `summary` and `summarizedThroughId`; `created` and `modified` are ISO strings | `listSessions()` |
11
+ | Category | Commands |
12
+ | --- | --- |
13
+ | **Prompting & queue** | [`prompt`](#prompt), [`steer`](#steer), [`follow_up`](#follow_up), [`abort`](#abort), [`clear_queue`](#clear_queue), [`pause_queued_messages`](#pause_queued_messages), [`resume_queued_messages`](#resume_queued_messages), [`set_steering_mode`](#set_steering_mode), [`set_follow_up_mode`](#set_follow_up_mode) |
14
+ | **State & tasks** | [`get_state`](#get_state), [`get_messages`](#get_messages), [`get_tools`](#get_tools), [`stop_all_background`](#stop_all_background) |
15
+ | **Models & auth** | [`set_model`](#set_model), [`cycle_model`](#cycle_model), [`set_scoped_models`](#set_scoped_models), [`get_available_models`](#get_available_models), [`login_provider`](#login_provider), [`cancel_login_provider`](#cancel_login_provider), [`save_provider_credential`](#save_provider_credential), [`logout_provider`](#logout_provider), [`refresh_models`](#refresh_models) |
16
+ | **Thinking** | [`set_thinking_level`](#set_thinking_level), [`cycle_thinking_level`](#cycle_thinking_level), [`get_available_thinking_levels`](#get_available_thinking_levels) |
17
+ | **Compaction & retry** | [`compact`](#compact), [`set_auto_compaction`](#set_auto_compaction), [`set_compaction_model`](#set_compaction_model), [`set_decision_model`](#set_decision_model), [`abort_compaction`](#abort_compaction), [`abort_branch_summary`](#abort_branch_summary), [`set_auto_retry`](#set_auto_retry), [`abort_retry`](#abort_retry) |
18
+ | **Extension UI & debug** | [`set_extension_ui_capabilities`](#set_extension_ui_capabilities), [`set_debug`](#set_debug) |
19
+ | **Shell** | [`bash`](#bash), [`user_bash`](#user_bash), [`abort_bash`](#abort_bash) |
20
+ | **Session & history** | [`get_session_summary` / `list_sessions`](#stored-session-summaries), [`new_session`](#new_session), [`delete_session`](#delete_session), [`switch_session`](#switch_session), [`import_session`](#import_session), [`start_pending_recovery`](#start_pending_recovery), [`fork`](#fork), [`clone`](#clone), [`get_fork_messages`](#get_fork_messages), [`get_entries`](#get_entries), [`get_context_window`](#get_context_window), [`get_history_page`](#get_history_page), [`get_history_chunk`](#get_history_chunk), [`get_tree`](#get_tree), [`navigate_tree`](#navigate_tree), [`set_label`](#set_label), [`get_last_assistant_text`](#get_last_assistant_text), [`set_session_name`](#set_session_name), [`get_session_stats`](#get_session_stats), [`export_html`](#export_html), [`find_queued_messages`](#find_queued_messages), [`reload`](#reload), [`get_shortcuts`](#get_shortcuts), [`invoke_shortcut`](#invoke_shortcut) |
21
+ | **Slash commands** | [`get_commands`](#get_commands), [`get_command_completions`](#get_command_completions) |
22
+
23
+ <Note>
24
+ Several additional commands on the internal TypeScript `RpcCommand` union (`open_task_inspector`, `open_agent_panel`, `set_stop_all_notice`, `agent_view_*`, `get_task_prompts`, `set_viewed_agent`, and `start_pending_recovery_restore`) are internal to Atomic's interactive TUI engine and either reject with `"requires an interactive host"` or are not intended for standalone RPC clients.
25
+ </Note>
17
26
 
18
27
  ### Prompting
19
28
 
@@ -151,16 +160,12 @@ Response:
151
160
  "typed": {
152
161
  "steering": ["Change direction"],
153
162
  "followUp": ["Summarize when finished"]
154
- },
155
- "images": {
156
- "steering": [null],
157
- "followUp": [null]
158
163
  }
159
164
  }
160
165
  }
161
166
  ```
162
167
 
163
- `steering` and `followUp` contain each message after `input` hooks, skill expansion, and prompt templates ran. `typed` contains the original submitted text when any message was transformed; restore `typed` when returning text to a user editor so expansions do not run twice (`typed` is omitted when nothing was transformed). Optional `images` carries `{ steering: (ImageContent[] | undefined)[], followUp: (ImageContent[] | undefined)[] }` aligned with the cleared messages.
168
+ `steering` and `followUp` contain each message after `input` hooks, skill expansion, and prompt templates ran. `typed` contains the original submitted text when any message was transformed; restore `typed` when returning text to a user editor so expansions do not run twice (`typed` is omitted when nothing was transformed). `images` is **omitted entirely** when no cleared message carried images; when at least one cleared message had images, `images` holds `{ steering: (ImageContent[] | null)[], followUp: (ImageContent[] | null)[] }` aligned with the cleared messages (messages without images serialize as `null` in the array).
164
169
 
165
170
  To mirror interactive `Esc`, send `clear_queue` before `abort` and restore the returned messages in your editor.
166
171
 
@@ -194,56 +199,6 @@ Response:
194
199
 
195
200
  `data.released` is `true` if held messages were released into processing, or `false` if nothing was waiting.
196
201
 
197
- #### new_session
198
-
199
- Start a fresh session. A `session_before_switch` extension hook can cancel it.
200
-
201
- ```json
202
- {"type": "new_session"}
203
- ```
204
-
205
- With optional parent session tracking:
206
-
207
- ```json
208
- {"type": "new_session", "parentSession": "parent-session-id"}
209
- ```
210
-
211
- Response:
212
-
213
- ```json
214
- {"type": "response", "command": "new_session", "success": true, "data": {"cancelled": false}}
215
- ```
216
-
217
- If an extension cancelled:
218
-
219
- ```json
220
- {"type": "response", "command": "new_session", "success": true, "data": {"cancelled": true}}
221
- ```
222
-
223
- #### delete_session
224
-
225
- Delete a stored session and its entries from the active session store (SQLite or JSONL). Use `list_sessions` to discover IDs.
226
-
227
- ```json
228
- {"id": "req-2", "type": "delete_session", "sessionId": "019fdf86-cf98-7327-8a73-21365028f6ae"}
229
- ```
230
-
231
- `sessionId` selects the session to delete, while `id` is the request correlation ID echoed in the response. If `sessionId` is omitted, `id` is used as the session ID too; if both are present, `sessionId` wins. Omitting both returns an error (`delete_session requires sessionId`).
232
-
233
- Response:
234
-
235
- ```json
236
- {"id": "req-2", "type": "response", "command": "delete_session", "success": true}
237
- ```
238
-
239
- You cannot delete the session currently open in this process; start or switch to another session first. Deleting an ID that does not exist succeeds without error.
240
-
241
- ```json
242
- {"id": "req-2", "type": "response", "command": "delete_session", "success": false, "error": "Cannot delete the session that is currently open: 019fdf86-cf98-7327-8a73-21365028f6ae"}
243
- ```
244
-
245
- TypeScript `RpcClient` method: `deleteSession(sessionId)`.
246
-
247
202
  ### State
248
203
 
249
204
  #### get_state
@@ -286,14 +241,20 @@ Key fields on `data`:
286
241
 
287
242
  - `model`: full [Model](#model-type) object when a model is selected, or **omitted** (not `null`) when no model is active. Its `contextWindow` is the model's token budget.
288
243
  - `modelFallbackMessage` / `modelFallbackReason`: present when startup fell back from a requested or default model.
244
+ - `sessionLocation`: display path or store label for saved sessions; **omitted** for unsaved (`--no-session`) sessions.
289
245
  - `sessionName`: display name set via `set_session_name` or `--name`, omitted when unset.
290
246
  - `queuedMessagesPaused`: `true` when queued message delivery is currently held.
291
- - `retryStatus`: present while waiting to retry or switch fallback models; carries the `auto_retry_start` or `model_fallback_start` event (and `retryAt` in Unix epoch milliseconds for retries). Use `retryStatus` rather than `isStreaming` to render retry waits.
247
+ - `retryStatus`: present while waiting to retry or switch fallback models. Use `retryStatus` rather than `isStreaming` to render retry waits. Either an `auto_retry_start` object with an added `retryAt` Unix epoch timestamp in milliseconds (`{"type": "auto_retry_start", "attempt": 1, "maxAttempts": 3, "delayMs": 2000, "errorMessage": "...", "retryAt": 1760000002000}`) or a `model_fallback_start` object (`{"type": "model_fallback_start", "from": "anthropic/claude-sonnet-4", "to": "openai/gpt-5", "reason": "...", "attempt": 1}`).
292
248
  - `turnStartedAt`: Unix epoch timestamp in milliseconds of the active turn's first request; stays stable across retries and fallbacks and is omitted when idle.
293
249
  - `compactionReason` / `compactionStartedAt`: present only while `isCompacting` is `true`, reporting why compaction started and its start timestamp in Unix epoch milliseconds.
294
- - `projectTrusted` / `pendingProjectResourcesTrusted`: current project trust state while deciding or after trust resolution.
250
+ - `projectTrusted`: current project trust state (`true` or `false`; omitted while undecided). `pendingProjectResourcesTrusted` appears only during deferred interactive-engine startup while trust is pending.
295
251
  - `resourceErrors` / `resourceWarnings`: extension load failures and warnings from the last startup or reload.
296
- - `resourceOverlaps` / `resourceExtensions`: overlapping resource diagnostics and loaded extension descriptors (`{ path, sourceInfo?, hidden }`).
252
+ - `resourceOverlaps`: array of `{ resourceType: "tool" | "command" | "prompt" | "flag" | "shortcut", name: string, bundled: SourceInfo, inherited: SourceInfo }` diagnostics when a bundled resource overlaps an inherited one.
253
+ - `resourceExtensions`: loaded extension descriptors (`{ path: string, sourceInfo?: SourceInfo, hidden: boolean }`).
254
+
255
+ <Note>
256
+ `get_state` reports the session path as `sessionLocation`, whereas `get_session_stats` reports it as `sessionFile`. Neither field is a `switch_session` target — pass `sessionId` to `switch_session`.
257
+ </Note>
297
258
 
298
259
  #### get_messages
299
260
 
@@ -345,7 +306,9 @@ Response:
345
306
 
346
307
  #### set_model
347
308
 
348
- Switch to a specific model. Pass optional `thinkingLevel` (`"off"`, `"minimal"`, `"low"`, `"medium"`, `"high"`, `"xhigh"`, or `"max"`) to set both model and reasoning level in one call. Unsupported levels for that model clamp to a supported level; unrecognized values return an error response without changing the model.
309
+ Switch to a specific authenticated model. `set_model` checks only the currently available (authenticated) model snapshot and returns `Model not found: <provider>/<modelId>` for unauthenticated catalog models (unlike `set_scoped_models`, which accepts unauthenticated models from the catalog).
310
+
311
+ Pass optional `thinkingLevel` (`"off"`, `"minimal"`, `"low"`, `"medium"`, `"high"`, `"xhigh"`, or `"max"`) to set both model and reasoning level in one call. Unsupported levels for that model clamp to a supported level; unrecognized values return an error response without changing the model.
349
312
 
350
313
  Omit `persist` (or pass `false`) to change only the active session. Pass `"persist": true` to also save `defaultProvider`, `defaultModel`, and the effective thinking level in global settings, matching interactive `/model`.
351
314
 
@@ -421,7 +384,7 @@ List all configured models and auth metadata.
421
384
  {"type": "get_available_models"}
422
385
  ```
423
386
 
424
- Response contains an array of full [Model](#model-type) objects:
387
+ Response contains the full catalog:
425
388
 
426
389
  ```json
427
390
  {
@@ -429,20 +392,56 @@ Response contains an array of full [Model](#model-type) objects:
429
392
  "command": "get_available_models",
430
393
  "success": true,
431
394
  "data": {
432
- "models": [],
395
+ "models": [
396
+ {
397
+ "id": "claude-sonnet-4-20250514",
398
+ "name": "Claude Sonnet 4",
399
+ "api": "anthropic-messages",
400
+ "provider": "anthropic",
401
+ "baseUrl": "https://api.anthropic.com",
402
+ "reasoning": true,
403
+ "input": ["text", "image"],
404
+ "contextWindow": 200000,
405
+ "maxTokens": 16384,
406
+ "cost": {"input": 3, "output": 15, "cacheRead": 0.3, "cacheWrite": 3.75}
407
+ }
408
+ ],
433
409
  "scopedModels": [],
434
- "compactorModels": [],
435
- "customAuthProviders": [],
436
- "oauthProviders": [],
437
- "providerAuthStatuses": []
410
+ "compactorModels": [
411
+ {
412
+ "id": "morph-compactor",
413
+ "name": "Morph Compactor",
414
+ "provider": "morph",
415
+ "api": "morph-compact",
416
+ "baseUrl": "https://api.morphllm.com/v1"
417
+ }
418
+ ],
419
+ "customAuthProviders": [
420
+ {"id": "acme-gateway", "name": "Acme Gateway"}
421
+ ],
422
+ "oauthProviders": [
423
+ {
424
+ "id": "anthropic",
425
+ "name": "Anthropic",
426
+ "loginLabel": "Claude Pro / Max",
427
+ "usesCallbackServer": false,
428
+ "isSubscription": true
429
+ }
430
+ ],
431
+ "providerAuthStatuses": [
432
+ {
433
+ "provider": "acme-gateway",
434
+ "status": {"configured": true, "source": "environment", "label": "ACME_API_KEY"}
435
+ }
436
+ ]
438
437
  }
439
438
  }
440
439
  ```
441
440
 
442
441
  - `compactorModels`: dedicated compactor models registered in the session (`morph/morph-compactor`, custom `models.json` compactors, and extension-registered compactors).
443
- - `customAuthProviders`: extension-registered providers (`{ id, name }`) accepting API-key login through `login_provider`.
444
- - `oauthProviders`: providers supporting interactive OAuth login through `login_provider`.
445
- - `providerAuthStatuses`: auth status of extension-registered providers (`{ provider, status }`, where `status` is `{ configured, source?, label? }`) when credentials do not come from `auth.json` (for example, an environment variable).
442
+ - `customAuthProviders`: extension-registered providers (`{ id, name }`) accepting API-key login through `login_provider` in interactive hosts.
443
+ - `oauthProviders`: providers supporting interactive OAuth login (`{ id, name, loginLabel?, usesCallbackServer?, isSubscription? }`) through `login_provider` with `"authType": "oauth"`.
444
+ - `providerAuthStatuses`: auth status of extension-registered providers (`{ provider, status }`, where `status` is `{ configured: boolean, source?, label? }`) when credentials do not come from `auth.json` (for example, an environment variable).
446
445
 
447
446
  The raw subprocess protocol returns full `Model` objects. The TypeScript `RpcClient.getAvailableModels()` helper returns the compact `ModelInfo` shape (`provider`, `id`, `contextWindow`, `reasoning`, plus optional `compat`). When present, `compat` exposes constrained-sampling flags (`supportsStrictTools`, `supportsStrictMode`, `supportsOpenAIGrammarTools`, and the synchronized `supportsGrammarTools` alias). Treat omitted flags as unsupported; do not infer support from provider names.
448
447
 
@@ -456,15 +455,24 @@ if (capabilities?.supportsStrictTools) {
456
455
 
457
456
  #### login_provider
458
457
 
459
- Start an API-key or interactive OAuth sign-in flow for a provider, save the resulting credential, and refresh the catalog.
458
+ Start an interactive OAuth sign-in flow (or, inside Atomic's interactive host only, an API-key login form), save the resulting credential, and refresh the catalog.
459
+
460
+ <Warning>
461
+ **API-key login via `login_provider` is unavailable in standalone RPC mode.** `authType` defaults to `"api_key"`, which requires Atomic's interactive input host and fails in standalone `atomic --mode rpc` with `"Provider login requires an interactive input host"`. This also affects `RpcClient.loginProvider()` because it omits `authType`.
462
+
463
+ In standalone RPC mode:
464
+ - Use [`save_provider_credential`](#save_provider_credential) to save API keys directly.
465
+ - Always pass `"authType": "oauth"` explicitly to run interactive OAuth sign-in over RPC.
466
+ </Warning>
460
467
 
461
468
  ```json
462
469
  {"type": "login_provider", "provider": "anthropic", "authType": "oauth", "loginId": "login-1"}
463
470
  ```
464
471
 
465
- - `authType`: `"oauth"` or `"api_key"` (defaults to `"api_key"` when omitted).
466
- - `loginId`: optional correlation string echoed on `oauth_*` extension UI requests so you can cancel a specific login with `cancel_login_provider`.
472
+ - `authType`: `"oauth"` or `"api_key"` (defaults to `"api_key"`, which works only inside Atomic's interactive host).
473
+ - `loginId`: optional correlation string echoed on `oauth_*` extension UI requests so you can cancel a specific login with [`cancel_login_provider`](#cancel_login_provider).
467
474
  - For `"oauth"`, Atomic emits `oauth_*` requests over the [RPC extension UI protocol](/rpc/extension-ui#oauth-login-methods) and waits for interactive prompt responses.
475
+ - Concurrent logins for the same provider are rejected with `"Login already in progress: <provider>"`.
468
476
 
469
477
  Response when sign-in succeeds (returns the refreshed `RpcModelCatalog` plus `provider` and `cancelled: false`, without echoing the raw secret):
470
478
 
@@ -505,7 +513,12 @@ Response:
505
513
 
506
514
  #### save_provider_credential
507
515
 
508
- Persist a provider `Credential` object directly (without driving interactive prompts) and return the refreshed model catalog.
516
+ Persist a provider `Credential` object directly (without driving interactive prompts) and return the refreshed model catalog. Use this command to configure API keys in standalone RPC mode.
517
+
518
+ `credential` accepts either credential variant:
519
+
520
+ - **API key:** `{"type": "api_key", "key": "sk-...", "env": {"OPTIONAL_PROVIDER_VAR": "value"}}` (`key` and `env` are optional depending on the provider).
521
+ - **OAuth tokens:** `{"type": "oauth", "access": "...", "refresh": "...", "expires": 1760000000000}` (Unix epoch milliseconds; providers may include extra metadata fields).
509
522
 
510
523
  ```json
511
524
  {
@@ -599,7 +612,7 @@ Current Atomic versions include the effective level after capability clamping an
599
612
  {"type": "response", "command": "set_thinking_level", "success": true, "data": {"level": "high", "provider": "anthropic", "modelId": "claude-sonnet-4-20250514"}}
600
613
  ```
601
614
 
602
- Older clients may also encounter a data-less success response (`{"type": "response", "command": "set_thinking_level", "success": true}`). Record persisted overrides against the acknowledgement's `provider` and `modelId`, and keep newer `thinking_level_changed` events if an older acknowledgement arrives later. `RpcClient.setThinkingLevel(level)` remains a one-argument `Promise<void>` method.
615
+ `data.level` is the effective thinking level after model capability clamping, and `provider`/`modelId` identify the active model it applied to (older Atomic versions may omit `data`). `RpcClient.setThinkingLevel(level)` remains a one-argument `Promise<void>` helper.
603
616
 
604
617
  #### cycle_thinking_level
605
618
 
@@ -718,7 +731,7 @@ Response:
718
731
  }
719
732
  ```
720
733
 
721
- `compactedText` is the full boundary message seen by the model. `firstKeptEntryId` is always `null`. `form` is `"cleared"` or `"compacted"`; compacted results also carry `backend` (`"compactor"` or `"extension"`) and, for a compactor, `model`. `fallbackReason` explains why a configured compactor was skipped. See [Persistence and resume](/compaction/reference#persistence-and-resume).
734
+ `compactedText` is the full boundary message seen by the model. `firstKeptEntryId` is always `null`. `form` is `"cleared"` or `"compacted"`; compacted results also carry `backend` (`"compactor"` or `"extension"`) and, for a compactor, `model`. `fallbackReason` explains why a configured compactor was skipped. Treat `promptVersion` and `stats.rangeCount` as opaque internal metadata. See [Persistence and resume](/compaction/reference#persistence-and-resume).
722
735
 
723
736
  `RpcClient.compact(instructions?)` sends this command and resolves with `data`.
724
737
 
@@ -792,19 +805,9 @@ Response:
792
805
  {"type": "response", "command": "abort_branch_summary", "success": true}
793
806
  ```
794
807
 
795
- #### set_background_compaction
796
-
797
- Background compaction was removed. `set_background_compaction` and `set_background_compaction_threshold` remain accepted as no-ops for backward compatibility.
798
-
799
- ```json
800
- {"type": "set_background_compaction", "enabled": false}
801
- ```
802
-
803
- Response:
804
-
805
- ```json
806
- {"type": "response", "command": "set_background_compaction", "success": true}
807
- ```
808
+ <Note>
809
+ Background compaction was removed. Legacy `set_background_compaction` and `set_background_compaction_threshold` commands remain accepted as no-ops returning `success: true` for backward compatibility.
810
+ </Note>
808
811
 
809
812
  ### Extension UI
810
813
 
@@ -979,6 +982,121 @@ Response:
979
982
 
980
983
  ### Session
981
984
 
985
+ #### Stored session summaries {#stored-session-summaries}
986
+
987
+ Read-only commands for inspecting stored sessions and summaries without starting a model turn. Stored summaries remain readable even when `sessionSummary.enabled` is `false`.
988
+
989
+ ##### `get_session_summary`
990
+
991
+ Return the active session's stored summary (`null` for an unsaved `--no-session` session). TypeScript `RpcClient` method: `getSessionSummary()`.
992
+
993
+ ```json
994
+ {"type": "get_session_summary"}
995
+ ```
996
+
997
+ Response:
998
+
999
+ ```json
1000
+ {
1001
+ "type": "response",
1002
+ "command": "get_session_summary",
1003
+ "success": true,
1004
+ "data": {
1005
+ "summary": {
1006
+ "type": "session_summary",
1007
+ "id": "sum-1",
1008
+ "parentId": "entry-42",
1009
+ "timestamp": "2026-06-06T00:00:00.000Z",
1010
+ "summary": "Refactored token parser and added regression tests.",
1011
+ "summarizedThroughId": "entry-42"
1012
+ }
1013
+ }
1014
+ }
1015
+ ```
1016
+
1017
+ ##### `list_sessions`
1018
+
1019
+ List stored sessions for the current project or session directory. `created` and `modified` are ISO-8601 strings. TypeScript `RpcClient` method: `listSessions()`.
1020
+
1021
+ ```json
1022
+ {"type": "list_sessions"}
1023
+ ```
1024
+
1025
+ Response:
1026
+
1027
+ ```json
1028
+ {
1029
+ "type": "response",
1030
+ "command": "list_sessions",
1031
+ "success": true,
1032
+ "data": {
1033
+ "sessions": [
1034
+ {
1035
+ "id": "019fdf86-cf98-7327-8a73-21365028f6ae",
1036
+ "cwd": "/path/to/project",
1037
+ "name": "my-feature-work",
1038
+ "summary": "Refactored token parser and added regression tests.",
1039
+ "summarizedThroughId": "entry-42",
1040
+ "created": "2026-06-05T18:00:00.000Z",
1041
+ "modified": "2026-06-06T00:00:00.000Z",
1042
+ "messageCount": 14,
1043
+ "firstMessage": "Refactor the token parser"
1044
+ }
1045
+ ]
1046
+ }
1047
+ }
1048
+ ```
1049
+
1050
+ #### new_session
1051
+
1052
+ Start a fresh session. A `session_before_switch` extension hook can cancel it.
1053
+
1054
+ ```json
1055
+ {"type": "new_session"}
1056
+ ```
1057
+
1058
+ With optional parent session tracking:
1059
+
1060
+ ```json
1061
+ {"type": "new_session", "parentSession": "parent-session-id"}
1062
+ ```
1063
+
1064
+ Response:
1065
+
1066
+ ```json
1067
+ {"type": "response", "command": "new_session", "success": true, "data": {"cancelled": false}}
1068
+ ```
1069
+
1070
+ If an extension cancelled:
1071
+
1072
+ ```json
1073
+ {"type": "response", "command": "new_session", "success": true, "data": {"cancelled": true}}
1074
+ ```
1075
+
1076
+ #### delete_session
1077
+
1078
+ Delete a stored session and its entries from the active session store (SQLite, JSONL, or adapter). Use `list_sessions` to discover IDs.
1079
+
1080
+ ```json
1081
+ {"id": "req-2", "type": "delete_session", "sessionId": "019fdf86-cf98-7327-8a73-21365028f6ae"}
1082
+ ```
1083
+
1084
+ `sessionId` selects the session to delete, while `id` is the request correlation ID echoed in the response. If `sessionId` is omitted, `id` is used as the session ID too; if both are present, `sessionId` wins. Omitting both returns an error (`delete_session requires sessionId`).
1085
+
1086
+ Response:
1087
+
1088
+ ```json
1089
+ {"id": "req-2", "type": "response", "command": "delete_session", "success": true}
1090
+ ```
1091
+
1092
+ You cannot delete the session currently open in this process; start or switch to another session first. Deleting an ID that does not exist succeeds without error.
1093
+
1094
+ ```json
1095
+ {"id": "req-2", "type": "response", "command": "delete_session", "success": false, "error": "Cannot delete the session that is currently open: 019fdf86-cf98-7327-8a73-21365028f6ae"}
1096
+ ```
1097
+
1098
+ TypeScript `RpcClient` method: `deleteSession(sessionId)`.
1099
+
982
1100
  #### get_session_stats
983
1101
 
984
1102
  Return token totals, cost statistics, and current context-window usage.
@@ -1084,12 +1202,17 @@ Response (abbreviated):
1084
1202
  "reason": "selected by the defaultTools setting, but no built-in, extension, SDK custom tool, or MCP server has registered a tool named \"tool-search\"; did you mean \"tool_search\"?"
1085
1203
  }
1086
1204
  ],
1087
- "excluded": []
1205
+ "excluded": [],
1206
+ "git": {
1207
+ "source": "system",
1208
+ "version": "2.45.0",
1209
+ "path": "/usr/bin/git"
1210
+ }
1088
1211
  }
1089
1212
  }
1090
1213
  ```
1091
1214
 
1092
- `selection.source` is `"default-tools-setting"`, `"built-in-defaults"`, `"tools-allowlist"`, `"explicit-selection"`, `"no-built-in-tools"`, or `"no-tools"`. `get_tools` waits until extensions finish loading so their tools are included. `RpcClient.getTools()` returns `data`.
1215
+ `selection.source` is `"default-tools-setting"`, `"built-in-defaults"`, `"tools-allowlist"`, `"explicit-selection"`, `"no-built-in-tools"`, or `"no-tools"`. `git` reports `"source": "system"` or `"provisioned"` with `version`, `path`, and optional `update`, or `{"source": "unavailable", "error": { ... }}` carrying a serialized [Git error](/sdk/reference#git-errors). `get_tools` waits until extensions finish loading so their tools are included. `RpcClient.getTools()` returns `data`.
1093
1216
 
1094
1217
  #### export_html
1095
1218
 
@@ -1285,6 +1408,30 @@ Response:
1285
1408
 
1286
1409
  `leafId` is the current leaf entry ID (`null` on an empty session).
1287
1410
 
1411
+ #### get_context_window
1412
+
1413
+ Return the current loaded context window entries and `leafId` without `since` diffing (used by `RpcClient.getEntries({ windowOnly: true })`). For unsaved sessions with archived rows, `data` may also include `privateArchive` metadata.
1414
+
1415
+ ```json
1416
+ {"type": "get_context_window"}
1417
+ ```
1418
+
1419
+ Response:
1420
+
1421
+ ```json
1422
+ {
1423
+ "type": "response",
1424
+ "command": "get_context_window",
1425
+ "success": true,
1426
+ "data": {
1427
+ "entries": [
1428
+ {"type": "message", "id": "def456", "parentId": "abc123", "timestamp": "2026-01-01T00:00:00.000Z", "message": {"role": "user", "content": "Hello"}}
1429
+ ],
1430
+ "leafId": "def456"
1431
+ }
1432
+ }
1433
+ ```
1434
+
1288
1435
  #### get_history_page
1289
1436
 
1290
1437
  Read one page of the full saved session in append order, including pre-compaction entries and abandoned branches. Pass optional inclusive `fromSeq` / `toSeq` and optional `pageEntries`, or pass `cursor: data.nextCursor` (without a range) to fetch the next page.
@@ -1302,21 +1449,26 @@ Response:
1302
1449
  "success": true,
1303
1450
  "data": {
1304
1451
  "items": [
1305
- {"seq": 1, "entry": {"type": "message", "id": "abc123", "parentId": null}}
1452
+ {"seq": 1, "entry": {"type": "message", "id": "abc123", "parentId": null}},
1453
+ {"kind": "oversized", "sessionId": "abc123", "epoch": "epoch-1", "seq": 12, "bytes": 2097152}
1306
1454
  ],
1307
1455
  "nextCursor": "eyJ..."
1308
1456
  }
1309
1457
  }
1310
1458
  ```
1311
1459
 
1312
- Each page contains up to 64 entries and 1 MiB of serialized JSON; an entry exceeding that limit is returned alone as an oversized reference item readable via `get_history_chunk`. Later appends do not shift the snapshot's end sequence.
1460
+ Each page contains up to 64 entries and 1 MiB of serialized JSON. Normal entries arrive as `{"seq": number, "entry": SessionEntry}`. Any entry exceeding the page limit is returned as an `OversizedSessionEntry` reference (`{"kind": "oversized", "sessionId": string, "epoch": string, "seq": number, "bytes": number}`) readable via [`get_history_chunk`](#get_history_chunk). Later appends do not shift the snapshot's end sequence.
1313
1461
 
1314
1462
  #### get_history_chunk
1315
1463
 
1316
- Read up to 64 KiB of the original UTF-8 bytes of one oversized item returned by `get_history_page`. Pass `reference` (the complete oversized item) and `offset` (`0` for the first chunk).
1464
+ Read up to 64 KiB of the original UTF-8 bytes of one oversized item returned by `get_history_page`. Pass `reference` (the exact `OversizedSessionEntry` object from `get_history_page.data.items`) and `offset` (`0` for the first chunk).
1317
1465
 
1318
1466
  ```json
1319
- {"type": "get_history_chunk", "reference": {"oversized": true, "seq": 12, "id": "big123", "byteLength": 2097152}, "offset": 0}
1467
+ {
1468
+ "type": "get_history_chunk",
1469
+ "reference": {"kind": "oversized", "sessionId": "abc123", "epoch": "epoch-1", "seq": 12, "bytes": 2097152},
1470
+ "offset": 0
1471
+ }
1320
1472
  ```
1321
1473
 
1322
1474
  Response:
@@ -1333,7 +1485,35 @@ Response:
1333
1485
  }
1334
1486
  ```
1335
1487
 
1336
- Decode `data.data` from base64 and continue requesting at `data.nextOffset` until `nextOffset` is omitted. Session replacement invalidates prior references.
1488
+ Decode `data.data` from base64 and continue requesting at `data.nextOffset` until `nextOffset` is omitted (`offset + chunkBytes >= reference.bytes`). Session replacement invalidates prior references.
1489
+
1490
+ #### find_queued_messages
1491
+
1492
+ Check which queued message IDs (assigned via `prompt.queuedMessageId`) were committed to the session store after entry sequence `after` (optional `epoch`, `sessionId`, and `sessionFile` to inspect another session in the same store or JSONL file).
1493
+
1494
+ ```json
1495
+ {
1496
+ "type": "find_queued_messages",
1497
+ "ids": ["qm-1", "qm-2"],
1498
+ "after": 42
1499
+ }
1500
+ ```
1501
+
1502
+ Response:
1503
+
1504
+ ```json
1505
+ {
1506
+ "type": "response",
1507
+ "command": "find_queued_messages",
1508
+ "success": true,
1509
+ "data": {
1510
+ "saved": ["qm-1"],
1511
+ "absent": ["qm-2"]
1512
+ }
1513
+ }
1514
+ ```
1515
+
1516
+ An ID omitted from both `saved` and `absent` could not be determined. TypeScript `RpcClient` method: `findQueuedMessages(query)`.
1337
1517
 
1338
1518
  #### get_tree
1339
1519
 
@@ -1608,6 +1788,7 @@ Events stream to stdout as JSON lines. Most events carry no `id`; `bash_executio
1608
1788
  | `agent_settled` | No automatic session work remains (`{ aborted: boolean }`) |
1609
1789
  | `session_released` | Session was released to idle storage (`{ released: ReleasedAgentSession }`) |
1610
1790
  | `entry_appended` | A durable `SessionEntry` was appended (`{ entry: SessionEntry }`) |
1791
+ | `session_storage_reconnect` | Ordered PostgreSQL session save is waiting for reconnection or recovered (`{ state, elapsedMs, reconnecting }`) |
1611
1792
  | `session_info_changed` | Session display name changed (`{ name: string \| undefined }`) |
1612
1793
  | `model_changed` | Active model changed (`{ model, previousModel, source: "set" \| "cycle" \| "restore" \| "fallback" }`) |
1613
1794
  | `thinking_level_changed` | Active thinking level changed (`{ level }`) |
@@ -1662,17 +1843,87 @@ Emitted when the agent begins an attempt. `turnStartedAt` records when the turn'
1662
1843
  {"type": "agent_settled", "aborted": false}
1663
1844
  ```
1664
1845
 
1665
- ### Session metadata and fallback events
1846
+ ### session_storage_reconnect
1847
+
1848
+ Emitted when a PostgreSQL-backed session's ordered write queue waits on a dropped or refused connection (after ~10 seconds, repeating every 60 seconds with `state: "waiting"`), and once more with `state: "recovered"` after the write commits following a reported wait:
1849
+
1850
+ ```json
1851
+ {"type": "session_storage_reconnect", "state": "waiting", "elapsedMs": 10012, "reconnecting": true}
1852
+ {"type": "session_storage_reconnect", "state": "recovered", "elapsedMs": 14380, "reconnecting": true}
1853
+ ```
1854
+
1855
+ ### Session metadata, fallback, and lifecycle events
1666
1856
 
1667
1857
  - `session_info_changed`: `{"type": "session_info_changed", "name": "my-feature-work"}` (`name` is omitted when cleared).
1668
- - `model_changed`: `{"type": "model_changed", "model": {}, "previousModel": {}, "source": "set"}` (`source` is `"set"`, `"cycle"`, `"restore"`, or `"fallback"`).
1858
+ - `model_changed`: `{"type": "model_changed", "model": { ... }, "previousModel": { ... }, "source": "set"}` (`source` is `"set"`, `"cycle"`, `"restore"`, or `"fallback"`).
1669
1859
  - `thinking_level_changed`: `{"type": "thinking_level_changed", "level": "high"}`.
1670
- - `entry_appended`: `{"type": "entry_appended", "entry": {}}`.
1671
- - `session_released`: `{"type": "session_released", "released": {}}`.
1672
- - `agent_continue_error`: `{"type": "agent_continue_error", "source": "post_compaction", "errorMessage": "..."}`.
1673
- - `model_fallback_start` / `model_fallback_end`: bracket automatic model fallback switches across configured `fallbackModels`.
1674
- - `task_cleanup_quarantined`: reports background task resources that failed cleanup (`taskId`, `resources`).
1675
- - `worktree_snapshot_unavailable`: reports why a worktree snapshot could not be recorded (`reason`).
1860
+ - `agent_continue_error`: `{"type": "agent_continue_error", "source": "post_compaction", "errorMessage": "Failed to send queued message: ..."}`.
1861
+
1862
+ `entry_appended`: emitted when a durable entry is persisted to the session store:
1863
+
1864
+ ```json
1865
+ {
1866
+ "type": "entry_appended",
1867
+ "entry": {"type": "custom", "id": "ent-7", "parentId": "ent-6", "timestamp": "2026-06-06T00:00:00.000Z", "customType": "my-ext", "data": {"ok": true}}
1868
+ }
1869
+ ```
1870
+
1871
+ `session_released`: emitted right before an idle session releases its in-memory resources:
1872
+
1873
+ ```json
1874
+ {
1875
+ "type": "session_released",
1876
+ "released": {"sessionId": "abc123", "cwd": "/path/to/project", "sessionFile": "/path/to/session.jsonl"}
1877
+ }
1878
+ ```
1879
+
1880
+ `model_fallback_start` and `model_fallback_end`: bracket automatic switches across configured `fallbackModels`:
1881
+
1882
+ ```json
1883
+ {
1884
+ "type": "model_fallback_start",
1885
+ "from": "anthropic/claude-sonnet-4",
1886
+ "to": "openai/gpt-5",
1887
+ "fromThinkingLevel": "medium",
1888
+ "toThinkingLevel": "medium",
1889
+ "reason": "529 overloaded_error",
1890
+ "attempt": 1
1891
+ }
1892
+ {"type": "model_fallback_end", "success": true, "from": "anthropic/claude-sonnet-4", "to": "openai/gpt-5"}
1893
+ ```
1894
+
1895
+ `task_cleanup_quarantined`: emitted when background task cleanup fails and unconfirmed resources are quarantined:
1896
+
1897
+ ```json
1898
+ {
1899
+ "type": "task_cleanup_quarantined",
1900
+ "taskId": "task-42",
1901
+ "resources": [{"kind": "process-group", "identifier": "12345", "reason": "EPERM"}]
1902
+ }
1903
+ ```
1904
+
1905
+ `worktree_snapshot_unavailable`: emitted when a worktree snapshot could not be recorded for a turn:
1906
+
1907
+ ```json
1908
+ {
1909
+ "type": "worktree_snapshot_unavailable",
1910
+ "reason": {"name": "WorkspaceGitError", "code": "git-failed", "message": "...", "hint": "...", "retryable": false, "fields": {}}
1911
+ }
1912
+ ```
1913
+
1914
+ ### blueprint_build_waiting and blueprint_build_finished
1915
+
1916
+ Emitted when resuming a worktree whose environment blueprint build runs asynchronously behind the first turn (`blueprint_build_waiting` may arrive before the first command response if waiting on another process's build of the same worktree):
1917
+
1918
+ ```json
1919
+ {"type": "blueprint_build_waiting", "root": "/home/u/.atomic/agent/worktree-snapshots/worktrees/...", "message": "Waiting for blueprint build..."}
1920
+ {
1921
+ "type": "blueprint_build_finished",
1922
+ "sessionId": "abc123",
1923
+ "roots": ["/home/u/.atomic/agent/worktree-snapshots/worktrees/..."],
1924
+ "notices": [{"type": "warning", "message": "Partial build: step 2 exited with status 1"}]
1925
+ }
1926
+ ```
1676
1927
 
1677
1928
  ### turn_start / turn_end
1678
1929
 
@@ -1845,7 +2096,7 @@ Emitted when manual or automatic compaction starts and finishes. `reason` is `"m
1845
2096
  }
1846
2097
  ```
1847
2098
 
1848
- If a compactor model fails, Atomic clears the context instead (`result.form: "cleared"` with `result.fallbackReason`). If `reason` is `"overflow"` and compaction succeeds, `willRetry` is `true` and Atomic automatically retries the prompt. If aborted, `result` is `null` and `aborted` is `true`. Check `result` and `errorMessage` independently because a mid-turn compaction can commit a durable boundary before a follow-up request exceeds the provider's hard input limit. Exhausted overflow recovery sets `"unresolvedOverflow": true` alongside `errorMessage`.
2099
+ If a compactor model fails, Atomic clears the context instead (`result.form: "cleared"` with `result.fallbackReason`). Treat `promptVersion` and `stats.rangeCount` as opaque internal metadata. If `reason` is `"overflow"` and compaction succeeds, `willRetry` is `true` and Atomic automatically retries the prompt. If aborted, `result` is `null` and `aborted` is `true`. Check `result` and `errorMessage` independently because a mid-turn compaction can commit a durable boundary before a follow-up request exceeds the provider's hard input limit. Exhausted overflow recovery sets `"unresolvedOverflow": true` alongside `errorMessage`.
1849
2100
 
1850
2101
  ### compaction_usage
1851
2102