@bastani/atomic 0.10.9 → 0.10.10-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +211 -155
  3. package/dist/_shared/dist-KOELCESV.js +2 -2
  4. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  5. package/dist/_shared/lib-4PES5P4V.js +2 -2
  6. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +27 -12
  7. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
  8. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
  9. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
  10. package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
  11. package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
  12. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
  13. package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
  14. package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
  15. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  16. package/dist/_shared/runtime-O4KCSG4C.js +5 -5
  17. package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
  18. package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
  19. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  20. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  21. package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
  22. package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
  23. package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
  24. package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
  25. package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
  26. package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
  27. package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
  28. package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
  29. package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
  30. package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
  31. package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
  32. package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
  33. package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
  34. package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
  35. package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
  36. package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
  37. package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
  38. package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
  39. package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
  40. package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
  41. package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
  42. package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
  43. package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
  44. package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
  45. package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
  46. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  47. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  48. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  49. package/dist/builtin/intercom/README.md +85 -114
  50. package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
  51. package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
  52. package/dist/builtin/intercom/group.ts +7 -3
  53. package/dist/builtin/intercom/index.bundle.mjs +1 -1
  54. package/dist/builtin/intercom/package.json +1 -1
  55. package/dist/builtin/mcp/README.md +37 -27
  56. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  57. package/dist/builtin/mcp/package.json +1 -1
  58. package/dist/builtin/subagents/CHANGELOG.md +8 -0
  59. package/dist/builtin/subagents/README.md +71 -138
  60. package/dist/builtin/subagents/package.json +1 -1
  61. package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
  62. package/dist/builtin/web-access/CHANGELOG.md +9 -0
  63. package/dist/builtin/web-access/README.md +60 -87
  64. package/dist/builtin/web-access/index.bundle.mjs +387 -351
  65. package/dist/builtin/web-access/package.json +1 -1
  66. package/dist/cli/args.js +2 -2
  67. package/dist/cli/auth-cli.code.js +4 -4
  68. package/dist/cli/auth-cli.impl.js +3 -3
  69. package/dist/cli/auth-cli.js +3 -3
  70. package/dist/cli/blueprint-command.code.js +2 -2
  71. package/dist/cli/blueprint-command.impl.js +3 -3
  72. package/dist/cli/blueprint-command.js +3 -3
  73. package/dist/cli/intercom-command.code.js +3 -3
  74. package/dist/cli/intercom-command.impl.js +3 -3
  75. package/dist/cli/intercom-command.js +3 -3
  76. package/dist/cli/list-models.code.js +3 -3
  77. package/dist/cli/list-models.impl.js +3 -3
  78. package/dist/cli/list-models.js +3 -3
  79. package/dist/cli/session-picker.code.js +2 -2
  80. package/dist/cli/session-picker.impl.js +3 -3
  81. package/dist/cli/session-picker.js +3 -3
  82. package/dist/cli/startup-ui.code.js +2 -2
  83. package/dist/cli/startup-ui.impl.js +3 -3
  84. package/dist/cli/startup-ui.js +3 -3
  85. package/dist/cli/storage-command.impl.js +3 -3
  86. package/dist/cli/storage-command.js +3 -3
  87. package/dist/cli/storage-search-session.code.js +2 -2
  88. package/dist/cli/storage-search-session.impl.js +3 -3
  89. package/dist/cli/storage-search-session.js +3 -3
  90. package/dist/cli/team-command.code.js +2 -2
  91. package/dist/cli/team-command.impl.js +3 -3
  92. package/dist/cli/team-command.js +3 -3
  93. package/dist/cli.js +2 -2
  94. package/dist/core/agent-session-methods.d.ts +4 -1
  95. package/dist/core/agent-session-methods.js.map +1 -1
  96. package/dist/core/agent-session.d.ts +3 -0
  97. package/dist/core/compaction/compactor.d.ts +20 -14
  98. package/dist/core/compaction/errors.d.ts +120 -0
  99. package/dist/core/compaction/index.d.ts +1 -0
  100. package/dist/core/compaction/model-resolver.d.ts +2 -2
  101. package/dist/core/debug.impl.js +3 -3
  102. package/dist/core/debug.js +3 -3
  103. package/dist/core/export-html/card-projection.impl.js +3 -3
  104. package/dist/core/export-html/card-projection.js +3 -3
  105. package/dist/core/export-html/index.code.js +2 -2
  106. package/dist/core/export-html/index.impl.js +3 -3
  107. package/dist/core/export-html/index.js +3 -3
  108. package/dist/core/export-html/json-spans.impl.js +3 -3
  109. package/dist/core/export-html/json-spans.js +3 -3
  110. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  111. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  112. package/dist/core/export-html/tool-renderer.code.js +1 -1
  113. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  114. package/dist/core/export-html/tool-renderer.js +3 -3
  115. package/dist/core/extensions/api-types.d.ts +1 -1
  116. package/dist/core/extensions/api-types.js.map +1 -1
  117. package/dist/core/extensions/index.d.ts +1 -1
  118. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  119. package/dist/core/extensions/jiti-loader.js +3 -3
  120. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  121. package/dist/core/extensions/jiti-static-loader.js +3 -3
  122. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  123. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  124. package/dist/core/extensions/loader-host-modules.js +3 -3
  125. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  126. package/dist/core/extensions/provider-types.d.ts +18 -6
  127. package/dist/core/extensions/provider-types.js.map +1 -1
  128. package/dist/core/extensions/runner-context.js +1 -1
  129. package/dist/core/intercom-broker-control-host.code.js +1 -1
  130. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  131. package/dist/core/intercom-broker-control-host.js +3 -3
  132. package/dist/core/intercom-broker-control.code.js +3 -3
  133. package/dist/core/intercom-broker-control.impl.js +3 -3
  134. package/dist/core/intercom-broker-control.js +3 -3
  135. package/dist/core/model-config.d.ts +40 -0
  136. package/dist/core/model-registry.js +1 -1
  137. package/dist/core/model-resolver-scope.d.ts +4 -4
  138. package/dist/core/model-runtime.d.ts +1 -1
  139. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  140. package/dist/core/package-manager-storage-adapters.js +3 -3
  141. package/dist/core/provider-composer-internal.d.ts +11 -2
  142. package/dist/core/sdk.code.js +3 -3
  143. package/dist/core/sdk.impl.js +3 -3
  144. package/dist/core/sdk.js +3 -3
  145. package/dist/core/session-manager-core.js +5 -5
  146. package/dist/core/session-manager-list.impl.js +3 -3
  147. package/dist/core/session-manager-list.js +3 -3
  148. package/dist/core/session-manager.code.js +1 -1
  149. package/dist/core/session-manager.impl.js +3 -3
  150. package/dist/core/session-manager.js +3 -3
  151. package/dist/core/session-storage.impl.js +3 -3
  152. package/dist/core/session-storage.js +3 -3
  153. package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
  154. package/dist/core/storage/index.js +2 -2
  155. package/dist/core/storage/node-sqlite-thread.js +2 -2
  156. package/dist/core/storage/node-sqlite.js +2 -2
  157. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  158. package/dist/core/storage/offline-snapshot-file.js +3 -3
  159. package/dist/core/storage/provider.js +2 -2
  160. package/dist/core/storage/selection.js +2 -2
  161. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  162. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  163. package/dist/core/storage/session/branch-fork-source.js +3 -3
  164. package/dist/core/storage/session/card-view.impl.js +3 -3
  165. package/dist/core/storage/session/card-view.js +3 -3
  166. package/dist/core/storage/session/child-reader.code.js +3 -3
  167. package/dist/core/storage/session/child-reader.impl.js +3 -3
  168. package/dist/core/storage/session/child-reader.js +3 -3
  169. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  170. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  171. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  172. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  173. package/dist/core/storage/session/expanded-child-details.js +3 -3
  174. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  175. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  176. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  177. package/dist/core/storage/session/fork-row-index.js +3 -3
  178. package/dist/core/storage/session/fork-staging.code.js +2 -2
  179. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  180. package/dist/core/storage/session/fork-staging.js +3 -3
  181. package/dist/core/storage/session/fork-window.code.js +3 -3
  182. package/dist/core/storage/session/fork-window.impl.js +3 -3
  183. package/dist/core/storage/session/fork-window.js +3 -3
  184. package/dist/core/storage/session/history-pages.impl.js +3 -3
  185. package/dist/core/storage/session/history-pages.js +3 -3
  186. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  187. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  188. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  189. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  190. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  191. package/dist/core/storage/session/memory-session-store.js +3 -3
  192. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  193. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  194. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  195. package/dist/core/storage/session/released-history-files.code.js +3 -3
  196. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  197. package/dist/core/storage/session/released-history-files.js +3 -3
  198. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  199. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  200. package/dist/core/storage/session/session-resume.impl.js +3 -3
  201. package/dist/core/storage/session/session-resume.js +3 -3
  202. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  203. package/dist/core/storage/session/snapshot-cut.js +3 -3
  204. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  205. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  206. package/dist/core/storage/session/snapshot-history.js +3 -3
  207. package/dist/core/storage/session/sql-session-store.code.js +1 -1
  208. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  209. package/dist/core/storage/session/sql-session-store.js +3 -3
  210. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  211. package/dist/core/storage/session/tree-outline.js +3 -3
  212. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  213. package/dist/core/storage/session/tree-presentation.js +3 -3
  214. package/dist/core/storage/storage-status.impl.js +3 -3
  215. package/dist/core/storage/storage-status.js +3 -3
  216. package/dist/core/storage/team.impl.js +3 -3
  217. package/dist/core/storage/team.js +3 -3
  218. package/dist/core/structured-output/index.code.js +1 -1
  219. package/dist/core/structured-output/index.impl.js +3 -3
  220. package/dist/core/structured-output/index.js +3 -3
  221. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  222. package/dist/core/tasks/task-completion-entry.js +3 -3
  223. package/dist/core/tasks/task-file-history.code.js +3 -3
  224. package/dist/core/tasks/task-file-history.impl.js +3 -3
  225. package/dist/core/tasks/task-file-history.js +3 -3
  226. package/dist/core/tasks/task-reference-archive.code.js +4 -4
  227. package/dist/core/tasks/task-reference-archive.js +3 -3
  228. package/dist/core/tasks/task-reference-identity.code.js +1 -1
  229. package/dist/core/tasks/task-reference-identity.js +3 -3
  230. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  231. package/dist/core/tasks/task-reference-stream.js +3 -3
  232. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  233. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  234. package/dist/core/tasks/task-view-source.impl.js +3 -3
  235. package/dist/core/tasks/task-view-source.js +3 -3
  236. package/dist/core/tools/read-url.code.js +2 -2
  237. package/dist/core/tools/read-url.impl.js +3 -3
  238. package/dist/core/tools/read-url.js +3 -3
  239. package/dist/core/worktree-snapshot/blob-store.js +2 -2
  240. package/dist/core/worktree-snapshot/errors.code.js +3 -3
  241. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  242. package/dist/core/worktree-snapshot/errors.js +3 -3
  243. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  244. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  245. package/dist/extensions/codemode/execute.code.js +1 -1
  246. package/dist/extensions/codemode/execute.impl.js +3 -3
  247. package/dist/extensions/codemode/execute.js +3 -3
  248. package/dist/extensions/codemode/renderer.code.js +2 -2
  249. package/dist/extensions/codemode/renderer.impl.js +3 -3
  250. package/dist/extensions/codemode/renderer.js +3 -3
  251. package/dist/extensions/mcp/cli.code.js +2 -2
  252. package/dist/extensions/mcp/cli.impl.js +3 -3
  253. package/dist/extensions/mcp/cli.js +3 -3
  254. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  255. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  256. package/dist/extensions/mcp/cli.lazy.js +3 -3
  257. package/dist/extensions/mcp/runtime.code.js +1 -1
  258. package/dist/extensions/mcp/runtime.impl.js +3 -3
  259. package/dist/extensions/mcp/runtime.js +3 -3
  260. package/dist/index-extensions.d.ts +1 -1
  261. package/dist/index.d.ts +8 -1
  262. package/dist/index.js +7 -7
  263. package/dist/main-first-time-setup.code.js +2 -2
  264. package/dist/main-first-time-setup.impl.js +3 -3
  265. package/dist/main-first-time-setup.js +3 -3
  266. package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
  267. package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
  268. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  269. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  270. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  271. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  272. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  273. package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
  274. package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
  275. package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
  276. package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
  277. package/dist/modes/print-mode.js +1 -1
  278. package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
  279. package/dist/modes/rpc/rpc-types.d.ts +29 -2
  280. package/dist/package-manager-cli.code.js +5 -5
  281. package/dist/package-manager-cli.impl.js +3 -3
  282. package/dist/package-manager-cli.js +3 -3
  283. package/dist/rpc-entry.js +1 -1
  284. package/dist/startup-files.json +1 -1
  285. package/dist/startup-stages/5.js +1 -1
  286. package/dist/startup-stages/7.js +1 -1
  287. package/dist/startup-stages/8.js +1 -2
  288. package/dist/startup-stages/9.js +2 -1
  289. package/dist/utils/native-module.d.ts +44 -0
  290. package/dist/utils/startup-database-spare.code.js +3 -3
  291. package/dist/utils/startup-database-spare.impl.js +3 -3
  292. package/dist/utils/startup-database-spare.js +3 -3
  293. package/dist/utils/tools-manager.code.js +1 -1
  294. package/dist/utils/tools-manager.impl.js +3 -3
  295. package/dist/utils/tools-manager.js +3 -3
  296. package/docs/background-tasks.md +235 -243
  297. package/docs/build.md +12 -11
  298. package/docs/codemode.md +60 -51
  299. package/docs/compaction/reference.md +61 -24
  300. package/docs/compaction.md +117 -65
  301. package/docs/computer-use.md +179 -146
  302. package/docs/containerization.md +79 -33
  303. package/docs/custom-provider/api-reference.md +148 -11
  304. package/docs/custom-provider/oauth.md +44 -27
  305. package/docs/custom-provider/override.md +14 -7
  306. package/docs/custom-provider/registration.md +75 -65
  307. package/docs/custom-provider/streaming.md +42 -19
  308. package/docs/custom-provider.md +25 -61
  309. package/docs/development.md +47 -43
  310. package/docs/docs.json +33 -33
  311. package/docs/environment-variables.md +83 -57
  312. package/docs/extensions/api-reference.md +323 -734
  313. package/docs/extensions/authoring.md +186 -269
  314. package/docs/extensions/events.md +308 -375
  315. package/docs/extensions/examples.md +122 -74
  316. package/docs/extensions/ui.md +217 -197
  317. package/docs/extensions.md +152 -259
  318. package/docs/getting-started/authentication.md +27 -14
  319. package/docs/getting-started/first-session.md +25 -26
  320. package/docs/getting-started/installation.md +62 -84
  321. package/docs/getting-started/project-instructions.md +39 -14
  322. package/docs/guides/configuration.md +42 -20
  323. package/docs/guides/intercom.md +17 -13
  324. package/docs/guides/non-interactive.md +29 -16
  325. package/docs/guides/orchestration.md +16 -10
  326. package/docs/guides/resume-on-any-machine.md +54 -49
  327. package/docs/guides/subagents.md +22 -14
  328. package/docs/guides/team-setup.md +37 -26
  329. package/docs/guides.md +22 -21
  330. package/docs/herdr.md +21 -16
  331. package/docs/index.md +16 -17
  332. package/docs/intercom/operations.md +68 -66
  333. package/docs/intercom/reference.md +196 -191
  334. package/docs/intercom.md +103 -92
  335. package/docs/json.md +71 -71
  336. package/docs/keybindings.md +63 -50
  337. package/docs/libraries/agent-core.md +49 -8
  338. package/docs/libraries/ai.md +21 -12
  339. package/docs/libraries/codemode.md +28 -6
  340. package/docs/libraries/schema.md +7 -7
  341. package/docs/libraries/telemetry.md +7 -7
  342. package/docs/libraries/tui.md +74 -94
  343. package/docs/libraries.md +5 -5
  344. package/docs/llama-cpp.md +38 -33
  345. package/docs/mcp-servers.md +96 -90
  346. package/docs/models/reference.md +46 -33
  347. package/docs/models-configuration.md +12 -6
  348. package/docs/models.md +93 -88
  349. package/docs/orchestration/migrating-workflows.md +21 -19
  350. package/docs/orchestration/patterns.md +35 -20
  351. package/docs/orchestration.md +22 -21
  352. package/docs/packages/authoring.md +28 -19
  353. package/docs/packages/reference.md +75 -16
  354. package/docs/packages.md +31 -33
  355. package/docs/programmatic.md +22 -21
  356. package/docs/prompt-templates.md +63 -41
  357. package/docs/providers/reference.md +35 -19
  358. package/docs/providers.md +61 -71
  359. package/docs/quickstart.md +32 -46
  360. package/docs/reference/cli.md +249 -252
  361. package/docs/reference.md +23 -20
  362. package/docs/rpc/examples.md +74 -17
  363. package/docs/rpc/extension-ui.md +79 -62
  364. package/docs/rpc/protocol.md +816 -358
  365. package/docs/rpc.md +75 -151
  366. package/docs/sdk/reference.md +175 -45
  367. package/docs/sdk/structured-decisions.md +92 -62
  368. package/docs/sdk/web-server.md +79 -46
  369. package/docs/sdk.md +237 -195
  370. package/docs/security.md +106 -43
  371. package/docs/session-format.md +96 -59
  372. package/docs/sessions.md +149 -113
  373. package/docs/settings.md +289 -204
  374. package/docs/shell-aliases.md +15 -6
  375. package/docs/skills/authoring.md +17 -9
  376. package/docs/skills/reference.md +23 -21
  377. package/docs/skills.md +104 -97
  378. package/docs/storage.md +140 -242
  379. package/docs/subagents/authoring.md +147 -16
  380. package/docs/subagents/reference.md +100 -30
  381. package/docs/subagents.md +220 -252
  382. package/docs/terminal-setup.md +97 -69
  383. package/docs/termux.md +51 -85
  384. package/docs/themes/reference.md +51 -37
  385. package/docs/themes.md +49 -54
  386. package/docs/tmux.md +38 -21
  387. package/docs/tools.md +198 -147
  388. package/docs/tui/reference.md +64 -32
  389. package/docs/tui.md +38 -66
  390. package/docs/usage.md +76 -78
  391. package/docs/verification.md +25 -25
  392. package/docs/web-access.md +72 -55
  393. package/docs/windows.md +53 -58
  394. package/docs/worktree-snapshots.md +62 -65
  395. package/package.json +8 -8
  396. package/schemas/models.schema.json +51 -0
  397. package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
  398. package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
  399. package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
  400. package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
  401. package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
@@ -34,7 +34,7 @@ Run parallel reviewers on this diff: codebase-analyzer for correctness, debugger
34
34
 
35
35
  Atomic is the parent session, and each subagent is a focused child Atomic session with its own task and context.
36
36
 
37
- Atomic starts the child once with its assigned task. Every launch runs in the background, returns after admission, and later delivers its result to the owning session as a completion notice. To use a child's output in the same turn, wait for its task ID explicitly.
37
+ Every launch runs in the background, returns immediately after starting, and later delivers its result to the parent session as a completion notice. When the next step depends on a child's output in the same turn, wait for its task ID explicitly with `subagent({ action: "wait", id })`.
38
38
 
39
39
  Subagents do not trigger automatic reviews on their own. The extension gives Atomic the `subagent` tool. If you want every implementation reviewed, say so in your prompt or add that instruction to your project's `AGENTS.md`:
40
40
 
@@ -42,34 +42,6 @@ Subagents do not trigger automatic reviews on their own. The extension gives Ato
42
42
  When you finish implementing, run codebase-analyzer over the diff before summarizing.
43
43
  ```
44
44
 
45
- ## Example prompts
46
-
47
- ```text
48
- Use codebase-analyzer to explain how this behaves before we change it.
49
- ```
50
-
51
- ```text
52
- Use debugger to investigate this failure and propose the smallest fix before editing anything.
53
- ```
54
-
55
- ```text
56
- Run parallel reviewers on this diff. Focus one on correctness, one on failure modes, and one on unnecessary complexity.
57
- ```
58
-
59
- ```text
60
- Have worker implement this approved plan. Afterward, run parallel reviewers, summarize their feedback, and apply the fixes that make sense.
61
- ```
62
-
63
- ```text
64
- Run a review loop on this change until reviewers stop finding fixes worth doing, with a max of 3 rounds.
65
- ```
66
-
67
- ```text
68
- Use codebase-locator to map the auth flow, then codebase-analyzer to explain how it works today.
69
- ```
70
-
71
- Atomic decides whether to call `subagent`, which specialist to pick, and whether a single or parallel run fits.
72
-
73
45
  ## Common workflows
74
46
 
75
47
  | Goal | Natural prompt |
@@ -87,7 +59,7 @@ Atomic decides whether to call `subagent`, which specialist to pick, and whether
87
59
  | Browse agents | "Show me the available subagents." |
88
60
  | Check running children | "Show the current subagent status." |
89
61
 
90
- ## Builtin agents
62
+ ## Built-in agents
91
63
 
92
64
  | Agent | Purpose |
93
65
  | --- | --- |
@@ -97,30 +69,32 @@ Atomic decides whether to call `subagent`, which specialist to pick, and whether
97
69
  | `codebase-research-locator` | Discover prior notes, tickets, and specs under `research/` and `specs/`. |
98
70
  | `codebase-research-analyzer` | Extract decisions, constraints, and trade-offs from local research documents. |
99
71
  | `codebase-online-researcher` | Gather official docs, specs, release notes, and upstream source through Atomic's bundled `@bastani/web-access` tools (`web_search`, `fetch_content`, and `get_search_content`). |
100
- | `worker` | Implement bounded tasks and approved orchestrator handoffs, validate changes, and escalate unapproved decisions. |
72
+ | `worker` | Implement bounded tasks and approved orchestrator handoffs, validate changes, and escalate unapproved decisions. Defaults to `defaultContext: fork`, `inheritProjectContext: true`, and `defaultProgress: true`. |
101
73
  | `debugger` | Reproduce failures, isolate root cause, apply the smallest fix, and rerun the failing scenario. |
102
74
  | `code-simplifier` | Refine and simplify recent changes without altering behavior. |
103
75
 
104
- There is no generic `reviewer` or `planner` builtin. Pick the specialist whose angle matches the question.
76
+ There is no generic `reviewer` or `planner` built-in. Pick the specialist whose angle matches the question.
77
+
78
+ ## Changing a built-in agent's model
105
79
 
106
- ## Changing a builtin agent's model
80
+ Every built-in agent defaults to `model: "auto"`, with no pinned fallback chain. `auto` runs your configured default model (the model last picked with `/model`) at its default thinking level, or the launching session's model when no default model is configured. See [automatic model selection](https://docs.bastani.ai/subagents/reference#automatic-model-selection).
107
81
 
108
- Every builtin agent defaults to `model: "auto"`, with no pinned fallback chain. `auto` runs your configured default model (the model last picked with `/model`) at its default thinking level, or the launching session's model when no default model is configured. See [automatic model selection](https://docs.bastani.ai/subagents/reference#automatic-model-selection).
82
+ When `enabledModels` is configured, subagent model selection uses the same matching rules as the main session (exact matches, `*`/`?`/`[...]` globs, fuzzy matching, and case-insensitive `:thinking` suffixes).
109
83
 
110
84
  For a single call, pass `model`:
111
85
 
112
86
  ```typescript
113
- subagent({ agent: "codebase-analyzer", task: "Review this diff", model: "anthropic/claude-sonnet-4:high" })
87
+ subagent({ agent: "codebase-analyzer", task: "Review this diff", model: "anthropic/claude-sonnet-4-6:high" })
114
88
  ```
115
89
 
116
- For a persistent override, edit `~/.atomic/agent/settings.json` (user) or `.atomic/settings.json` (project).
90
+ For a persistent override, edit `~/.atomic/agent/settings.json` (user) or `.atomic/settings.json` (project):
117
91
 
118
92
  ```json
119
93
  {
120
94
  "subagents": {
121
95
  "agentOverrides": {
122
96
  "codebase-analyzer": {
123
- "model": "anthropic/claude-sonnet-4:high",
97
+ "model": "anthropic/claude-sonnet-4-6:high",
124
98
  "fallbackModels": ["openai/gpt-5-mini"]
125
99
  }
126
100
  }
@@ -128,7 +102,7 @@ For a persistent override, edit `~/.atomic/agent/settings.json` (user) or `.atom
128
102
  }
129
103
  ```
130
104
 
131
- The `agentOverrides` block can also override `tools`, `skills`, `systemPromptMode`, `inheritProjectContext`, `inheritSkills`, `defaultContext`, `systemPrompt`, or `disabled`. For normal tweaks, use overrides instead of copying the bundled markdown file.
105
+ The `agentOverrides` block can also override `tools`, `skills`, `systemPromptMode`, `inheritProjectContext`, `inheritSkills`, `defaultContext`, `systemPrompt`, or `disabled`. Use overrides instead of copying the bundled markdown file.
132
106
 
133
107
  ### Orchestrator model and group defaults
134
108
 
@@ -140,9 +114,9 @@ Children inherit the launching session's Intercom group unless `group` is specif
140
114
 
141
115
  ## Viewing and controlling running subagents
142
116
 
143
- Background agents appear in the compact count below the prompt in the parent chat. Run `/tasks` to open the grouped inspector; background updates do not open `/tasks` automatically. Parallel receipts identify individual siblings. Completion produces one unshaded notice line with an outcome glyph and task title, followed by the first result line. Ctrl+O expands the full retained result. The notice does not depend on a model reply. Run `/agents` to browse agent definitions, or call `subagent({ action: "list" })` from the model.
117
+ Background agents appear in the compact count below the prompt in the parent chat. Run `/tasks` to open the grouped inspector; background updates do not open `/tasks` automatically. Parallel receipts identify individual siblings. Completion posts one unshaded notice line with an outcome glyph and task title, followed by the first result line. Press `Ctrl+O` to expand the full retained result. Run `/agents` to browse agent definitions, or call `subagent({ action: "list" })` from the model.
144
118
 
145
- To stop a task, select it in `/tasks` and press `x` twice within 3 seconds. A stopped subagent stays resumable. Once termination is confirmed, the owning chat receives a `quit · awaiting resume` notice line and the parent model receives the quit context, even when the child produced no final response. Repeated stop requests do not duplicate the notice or alter an already-settled result. Closing the owner suppresses late notifications.
119
+ To stop a task, select it in `/tasks` and press `x` twice within 3 seconds. A stopped subagent stays resumable. Once termination finishes, the owning chat receives a `quit · awaiting resume` notice line and the parent model receives the quit context, even when the child produced no final response. Repeated stop requests do not duplicate the notice or alter an already-settled result. Closing the parent session suppresses late notifications.
146
120
 
147
121
  ### Launch, then wait when needed
148
122
 
@@ -157,13 +131,13 @@ subagent({ action: "resume", id: taskId, message: "Focus on the failing test." }
157
131
  subagent({ action: "quit", id: taskId })
158
132
  ```
159
133
 
160
- `action: "wait"` uses the owner's agent wait budget (default 30 seconds) unless `budgetMs` overrides it, and pressing `Esc` ends the wait immediately. Ending a wait releases the caller without stopping the child. Legacy calls that pass `wait` on a launch still run in the background. SDK callers without a task owner keep their direct execution path, which waits for the child.
134
+ `action: "wait"` uses the session's agent wait budget (default 30 seconds) unless `budgetMs` overrides it, and pressing `Esc` ends the wait immediately without stopping the child. Legacy calls that pass `wait` on a launch still run in the background. Custom SDK sessions without background task support wait for the child directly.
161
135
 
162
136
  See [background tasks](https://docs.bastani.ai/background-tasks) for shell examples, output retention, keyboard controls, and session lifetimes.
163
137
 
164
138
  ## Recommended orchestration loop
165
139
 
166
- Orchestration is parent-agent guidance rather than a separate workflow runtime. A standard implementation loop runs in five steps:
140
+ A standard implementation loop runs in five steps:
167
141
 
168
142
  1. Clarify requirements in the parent chat.
169
143
  2. Gather context with read-only specialists.
@@ -171,25 +145,25 @@ Orchestration is parent-agent guidance rather than a separate workflow runtime.
171
145
  4. Run fresh-context reviewers on the diff.
172
146
  5. Apply needed fixes with `worker`.
173
147
 
174
- Packaged `worker` defaults to forked context when a launch omits `context`. Every other builtin runs with fresh context. Pass `context: "fresh"` when you want a fresh `worker` run.
148
+ Packaged `worker` defaults to forked context when a launch omits `context`. Every other built-in runs with fresh context. Pass `context: "fresh"` when you want a fresh `worker` run.
175
149
 
176
- Typed admission policy enforces child boundaries at runtime. Admitted children may use `list`, `get`, `status`, and `wait`, while launches and run control (`pause`, `resume`, and `quit`) are refused for every child. Management-restricted children are also refused `create`, `update`, and `delete`. The bundled `subagent` skill stays parent-only and is stripped from every child prompt. Children receive boundary instructions stating that they are not the parent orchestrator and must complete their assigned task directly.
150
+ Delegation is strictly one level deep. Child sessions may use `list`, `get`, `status`, and `wait`, while launches and run control (`pause`, `resume`, and `quit`) are refused for every child. Management-restricted children are also refused `create`, `update`, and `delete`. The parent-only `subagent` skill is stripped from every child prompt.
177
151
 
178
152
  ## Intercom coordination
179
153
 
180
154
  Atomic bundles `@bastani/intercom` alongside `@bastani/subagents`. No separate install is needed for parent-child or sibling coordination.
181
155
 
182
- When Intercom is active, subagents receive a private coordination route back to the parent session through `contact_supervisor`:
156
+ When Intercom is active, subagents receive a private route back to the parent session through `contact_supervisor`:
183
157
 
184
- - `reason: "need_decision"` asks the supervisor for a blocking decision when the child is blocked or faces an unapproved scope or API choice.
158
+ - `reason: "need_decision"` asks the supervisor for a blocking decision when the child is blocked or faces an unapproved scope or API choice (include a clear `message` explaining the decision).
185
159
  - `reason: "interview_request"` sends structured questions to the supervisor and waits for a JSON reply.
186
160
  - `reason: "progress_update"` sends a short non-blocking update when a discovery changes the plan.
187
161
 
188
162
  Do not ask for clarification when the only conflict is review-only/no-edit versus progress-writing or artifact-writing instructions; no-edit wins. Do not use `contact_supervisor` for routine completion handoffs; return the child's normal final result instead.
189
163
 
190
- In parallel runs, blocking `contact_supervisor` requests wait only in the requesting child. The supervisor replies through `intercom({ action: "reply", message: "..." })`, and that same child continues with its original context and run identity while siblings keep working. A parent's `subagent({ action: "wait" })` yields when a child asks so the parent can respond without cancelling any child or worktree. Only a single child run directly by an SDK host without a task owner ends with a terminal `[TASK_CONTEXT]` fresh-child handoff when its blocking parent ask is claimed.
164
+ In interactive and standard sessions, blocking `contact_supervisor` requests wait only in the requesting child. The supervisor replies through `intercom({ action: "reply", message: "..." })`, and that same child continues with its original context and run identity while siblings keep working. A parent's `subagent({ action: "wait" })` yields when a child asks so the parent can respond without cancelling any child or worktree. In custom SDK sessions without background task support, a blocking supervisor request ends the child with a `[TASK_CONTEXT]` handoff.
191
165
 
192
- Children launched in one parallel set (or with the same explicit `group`) also share an Intercom group and coordinate peer-to-peer as the default topology. Siblings call `intercom({ action: "list" })` and use `send` or `ask` directly to pass file paths, claim files or test suites, reuse reproductions, or challenge findings with evidence. Each sibling still returns its own result. For large parallel runs, organize swarms into named team groups; see [scaling a swarm](https://docs.bastani.ai/subagents#scaling-a-swarm).
166
+ Children launched in one parallel set (or with the same explicit `group`) also share an Intercom group and coordinate peer-to-peer. Siblings call `intercom({ action: "list" })` and use `send` or `ask` directly to pass file paths, claim files or test suites, reuse reproductions, or challenge findings with evidence. Each sibling still returns its own result. For large parallel runs, organize swarms into named team groups; see [scaling a swarm](https://docs.bastani.ai/subagents#scaling-a-swarm).
193
167
 
194
168
  Parent-side Atomic can also deliver grouped completion results and needs-attention notices over Intercom. Check connection status with `intercom({ action: "status" })`, or customize bridge behavior under `intercomBridge` in configuration below.
195
169
 
@@ -199,23 +173,23 @@ Every subagent launch starts immediately without opening a preview prompt or wai
199
173
 
200
174
  ## Agents
201
175
 
202
- Agents are markdown files with YAML frontmatter and a system prompt body. They define the specialist that runs in a child Atomic session.
176
+ Agents are Markdown files with YAML frontmatter and a system prompt body. They define the specialist that runs in a child Atomic session.
203
177
 
204
178
  Discovery precedence, from lowest to highest:
205
179
 
206
180
  | Scope | Path |
207
181
  | --- | --- |
208
- | Builtin | Bundled with `@bastani/atomic` (`packages/subagents/agents/`) |
182
+ | Built-in | Bundled with `@bastani/atomic` |
209
183
  | User | `~/.atomic/agent/agents/**/*.md` |
210
184
  | Project | `.atomic/agents/**/*.md` |
211
185
 
212
- Installed Atomic packages can also contribute read-only agents declared under `agents` in `package.json`, registered as `<namespace>.<name>`. Package agents never replace builtin, user, or project agents with the same full name.
186
+ Installed Atomic packages can also contribute read-only agents declared under `agents` in `package.json`, registered as `<namespace>.<name>`. Package agents never replace built-in, user, or project agents with the same full name.
213
187
 
214
- Project discovery also checks `.agents/**/*.md` and legacy `.pi/agents/**/*.md` recursively, with `.atomic/agents/` winning project-scope name conflicts. User discovery also checks `~/.agents/**/*.md`, plus legacy `~/.pi/agent/agents/**/*.md` when neither `ATOMIC_CODING_AGENT_DIR` nor `PI_CODING_AGENT_DIR` is set, with `~/.atomic/agent/agents/` (or the `agents` folder of the directory `ATOMIC_CODING_AGENT_DIR` or `PI_CODING_AGENT_DIR` names) winning user-scope name conflicts. Pass `agentScope: "user" | "project" | "both"` to control discovery (`both` is the default, and project definitions win collisions).
188
+ Project discovery also checks `.agents/**/*.md` and legacy `.pi/agents/**/*.md` recursively, with `.atomic/agents/` winning project-scope name conflicts. User discovery also checks `~/.agents/**/*.md`, plus legacy `~/.pi/agent/agents/**/*.md` when neither `ATOMIC_CODING_AGENT_DIR` nor `PI_CODING_AGENT_DIR` is set, with `~/.atomic/agent/agents/` (or the `agents` folder of `ATOMIC_CODING_AGENT_DIR` / `PI_CODING_AGENT_DIR`) winning user-scope name conflicts across execution, `list`, `update`, and `delete`. Pass `agentScope: "user" | "project" | "both"` to control discovery (`both` is the default, and project definitions win collisions).
215
189
 
216
- ### Builtin overrides
190
+ ### Built-in overrides
217
191
 
218
- Override selected builtin fields in `~/.atomic/agent/settings.json` (user) or `.atomic/settings.json` (project) without copying the bundled agent file. Legacy `~/.pi/agent/settings.json` (when neither `ATOMIC_CODING_AGENT_DIR` nor `PI_CODING_AGENT_DIR` is set) and `.pi/settings.json` files are also read for compatibility, with `.atomic` taking precedence.
192
+ Override selected built-in fields in `~/.atomic/agent/settings.json` (user) or `.atomic/settings.json` (project) without copying the bundled agent file. Legacy `~/.pi/agent/settings.json` (when neither `ATOMIC_CODING_AGENT_DIR` nor `PI_CODING_AGENT_DIR` is set) and `.pi/settings.json` files are also read for compatibility, with `.atomic` taking precedence.
219
193
 
220
194
  ```json
221
195
  {
@@ -231,7 +205,7 @@ Override selected builtin fields in `~/.atomic/agent/settings.json` (user) or `.
231
205
 
232
206
  Supported override fields are `model`, `fallbackModels`, `fallbackThinkingLevels`, `thinking`, `systemPromptMode`, `inheritProjectContext`, `inheritSkills`, `defaultContext`, `disabled`, `skills`, `tools`, and `systemPrompt`. Set `defaultContext: false` to clear an inherited context default. Project overrides beat user overrides.
233
207
 
234
- Set `disabled: true` on one agent to hide it from discovery and `subagent({ action: "list" })`, or set `subagents.disableBuiltins: true` to disable all builtins.
208
+ Set `disabled: true` on one agent to hide it from discovery and `subagent({ action: "list" })`, or set `subagents.disableBuiltins: true` to disable all built-ins.
235
209
 
236
210
  ### Prompt assembly
237
211
 
@@ -244,7 +218,7 @@ Custom agents start with a focused system prompt and only the context you opt in
244
218
  | `inheritSkills: true` | Include Atomic's discovered skills catalog. |
245
219
  | `defaultContext: fork` | Default to forked session context when a launch omits `context` (explicit `context: "fresh"` still wins). |
246
220
 
247
- `inheritProjectContext` and `inheritSkills` shape fresh children. A forked child continues the parent's conversation as the parent sent it, including project context and skills, so its first request reads from the parent's prompt cache while still respecting the child's own tool policy. The packaged `worker` sets `inheritProjectContext: true`; other builtins leave project instruction files out of fresh runs.
221
+ `inheritProjectContext` and `inheritSkills` shape fresh children. A forked child continues the parent's conversation as the parent sent it, including project context and skills, so its first request reads from the parent's prompt cache while still respecting the child's own tool policy. Packaged `worker` sets `defaultContext: fork`, `inheritProjectContext: true`, and `defaultProgress: true`; other built-ins leave project instruction files out of fresh runs.
248
222
 
249
223
  ### Agent frontmatter
250
224
 
@@ -257,7 +231,7 @@ description: Fast codebase recon
257
231
  tools: read, search, find, ls, bash, mcp:chrome-devtools
258
232
  extensions:
259
233
  model: anthropic/claude-haiku-4-5
260
- fallbackModels: openai/gpt-5-mini, anthropic/claude-sonnet-4:high
234
+ fallbackModels: openai/gpt-5-mini, anthropic/claude-sonnet-4-6:high
261
235
  systemPromptMode: replace
262
236
  inheritProjectContext: false
263
237
  inheritSkills: false
@@ -265,19 +239,18 @@ skills: safe-bash, chrome-devtools
265
239
  output: context.md
266
240
  defaultReads: context.md
267
241
  defaultProgress: true
268
- interactive: true
269
242
  ---
270
243
 
271
244
  Your system prompt goes here.
272
245
  ```
273
246
 
274
- Frontmatter is parsed with a strict YAML parser. Invalid YAML (such as an unquoted colon-space inside a value, duplicate keys, or tab-indented lists) causes the file to be skipped with a recorded diagnostic message.
247
+ Frontmatter is parsed with a strict YAML parser. Invalid YAML (such as an unquoted colon-space inside a value, duplicate keys, or tab-indented lists) skips the file with a recorded diagnostic message. List fields (`tools`, `fallbackModels`, `fallbackThinkingLevels`, `skills`/`skill`, `defaultReads`, and `extensions`) accept both comma-separated strings and YAML arrays (`[a, b]` or block lists).
275
248
 
276
249
  | Field | Description |
277
250
  | --- | --- |
278
251
  | `package` | Optional namespace prefix. A file with `name: api-auditor` and `package: code-analysis` registers as `code-analysis.api-auditor`. |
279
- | `tools` | Tool allowlist as a comma-separated string (`tools: read, bash`) or YAML array (`tools: [read, bash]`). `mcp:<server>` and `mcp:<server>/<tool>` entries expose direct tools from Atomic's bundled MCP integration. |
280
- | `extensions` | Omitted loads normal extensions; empty disables optional extensions; comma-separated paths allowlist specific optional extensions. |
252
+ | `tools` | Tool allowlist as a comma-separated string or YAML list. `mcp:<server>` and `mcp:<server>/<tool>` entries expose direct tools from Atomic's bundled MCP integration. |
253
+ | `extensions` | Omitted loads normal extensions; empty disables optional extensions; comma-separated paths or a YAML list allowlist specific optional extensions. |
281
254
  | `model` | Default model (`provider/id[:effort]` or `auto`). When omitted with no `fallbackModels` and no per-call override, the child inherits the parent session's model and thinking level. |
282
255
  | `fallbackModels` | Ordered backup models for retryable provider errors (quota, auth, timeouts, 5xx, content-filter refusals, or incompatible payloads). A concrete pinned model falls back only through these entries. For unpinned and `auto` children, the current user-selected model is appended as the final fallback. Ordinary task failures never trigger fallback. |
283
256
  | `thinking` | Deprecated default thinking level used only when a model candidate carries no `:effort` suffix. |
@@ -318,7 +291,7 @@ extensions: /abs/path/to/ext-a.ts, /abs/path/to/ext-b.ts
318
291
 
319
292
  ## Skills
320
293
 
321
- Skills are `SKILL.md` files injected into a child's system prompt. Children resolve skill names from the same skill catalog as the parent session, including qualified selectors such as `review@project`. Atomic discovers skills from `.atomic/skills/`, `.agents/skills/`, `~/.atomic/agent/skills/`, `~/.agents/skills/`, settings `skills` entries, and installed packages declaring `atomic.skills` or legacy `pi.skills`. Legacy `.pi/skills/` and `~/.pi/agent/skills/` (when neither `ATOMIC_CODING_AGENT_DIR` nor `PI_CODING_AGENT_DIR` is set) directories are also read for compatibility, with `.atomic` taking precedence. See [skills](https://docs.bastani.ai/skills) for discovery and project-trust rules.
294
+ Skills are `SKILL.md` files injected into a child's system prompt. Children resolve skill names from the same skill catalog as the parent session, including qualified selectors such as `review@project`. Atomic discovers skills from `.atomic/skills/`, `.agents/skills/`, `~/.atomic/agent/skills/`, `~/.agents/skills/`, settings `skills` entries, and installed packages declaring `atomic.skills` or legacy `pi.skills`. Legacy `.pi/skills/` and `~/.pi/agent/skills/` (when neither `ATOMIC_CODING_AGENT_DIR` nor `PI_CODING_AGENT_DIR` is set) are also read for compatibility, with `.atomic` taking precedence. See [skills](https://docs.bastani.ai/skills) for discovery and project-trust rules.
322
295
 
323
296
  Override or disable skills per launch:
324
297
 
@@ -330,9 +303,9 @@ Override or disable skills per launch:
330
303
 
331
304
  Injected skills appear inside `<skill name="...">...</skill>` blocks with frontmatter stripped. Missing skills emit a warning in the result summary without failing the launch.
332
305
 
333
- ### Bundled `subagent` skill
306
+ ### Bundled skills
334
307
 
335
- The package ships a parent-only `subagent` skill (`skills/subagent/SKILL.md`) that covers delegation patterns, role prompting guidance, child boundaries, Intercom conventions, and run control. It is stripped from every child prompt.
308
+ This package ships 21 of Atomic's 22 bundled skills (covering research, specs, TDD, browser and desktop automation, terminal control, code quality, visual explanations, and workflow migration; `@bastani/intercom` ships the `intercom` skill). The bundled `subagent` skill stays parent-only and is stripped from every child prompt.
336
309
 
337
310
  ## Programmatic tool usage
338
311
 
@@ -355,7 +328,7 @@ The package ships a parent-only `subagent` skill (`skills/subagent/SKILL.md`) th
355
328
  { tasks: [{ agent: "codebase-locator", task: "Audit endpoints", count: 3 }] }
356
329
  { tasks: [{ agent: "codebase-locator", task: "Audit frontend" }, { agent: "codebase-analyzer", task: "Audit backend" }], context: "fork" }
357
330
 
358
- // Temporary git worktree isolation
331
+ // Temporary git worktree isolation (parallel tasks only)
359
332
  { tasks: [
360
333
  { agent: "worker", task: "Implement auth" },
361
334
  { agent: "worker", task: "Implement API" }
@@ -388,7 +361,7 @@ Agent definitions are loaded on demand through management actions:
388
361
  systemPromptMode: "replace",
389
362
  inheritProjectContext: false,
390
363
  inheritSkills: false,
391
- model: "anthropic/claude-sonnet-4:high",
364
+ model: "anthropic/claude-sonnet-4-6:high",
392
365
  fallbackModels: ["openai/gpt-5-mini", "anthropic/claude-haiku-4-5"],
393
366
  tools: "read, bash, mcp:github/search_repositories",
394
367
  extensions: "",
@@ -413,7 +386,7 @@ Agent definitions are loaded on demand through management actions:
413
386
  | `action` | string | none | `models`, `list`, `get`, `create`, `update`, `delete`, `status`, `wait`, `pause`, `resume`, or `quit`. Removed actions `kill` and `interrupt` are rejected with an error naming `quit`. |
414
387
  | `config` | object or JSON string | none | Agent definition for `create` or `update`. |
415
388
  | `id` | string | none | Target ID for `wait` (task ID), `status` (run ID or child ID), or `pause`, `resume`, and `quit` (child ID `<runId>:<index>`, task ID, Intercom name, or single-child run ID). `runId` remains a legacy alias. |
416
- | `budgetMs` | number | owner wait budget | Observation budget in milliseconds for `action: "wait"`; not a child execution deadline. |
389
+ | `budgetMs` | number | session wait budget | Observation budget in milliseconds for `action: "wait"`; not a child execution deadline. |
417
390
  | `heartbeatMs` | number | `900000` (15 min) | Heartbeat cadence in milliseconds while a child runs (`0` disables, minimum `60000`). |
418
391
  | `message` | string | none | Optional prompt steer for `action: "resume"`. |
419
392
  | `all` | boolean | `false` | With `pause` or `quit`, target every running child this session launched (`quit` also covers paused children). |
@@ -426,8 +399,8 @@ Agent definitions are loaded on demand through management actions:
426
399
  | `group` | `string \| boolean` | parent group | Intercom group name, or `true` for a fresh shared UUID group per parallel set. |
427
400
  | `tasks` | array | none | Parallel tasks supporting `agent`, `task`, `cwd`, `worktree` (named), `count`, `output`, `outputMode`, `reads`, `progress`, `skill`, `model`, `group`, and `heartbeatMs`. |
428
401
  | `concurrency` | number | config or `1000` | Maximum concurrent tasks in parallel mode. |
429
- | `worktree` | `boolean \| { branch, base?, path? }` | `false` | `true` creates temporary git worktrees for parallel tasks. `{ branch, base?, path? }` checks out a named worktree; see [named worktrees](#named-worktrees). |
430
- | `context` | `"fresh" \| "fork"` | agent default or `"fresh"` | `fork` branches from the parent's current leaf. Packaged `worker` defaults to `fork`; every other builtin defaults to `fresh`. |
402
+ | `worktree` | `boolean \| { branch, base?, path? }` | `false` | `true` creates temporary git worktrees for parallel `tasks` (or coalesced bursts; ignored on a standalone single-agent call, so use `worktree: { branch }` for single-agent isolation). `{ branch, base?, path? }` checks out a named worktree; see [named worktrees](#named-worktrees). |
403
+ | `context` | `"fresh" \| "fork"` | agent default or `"fresh"` | `fork` branches from the parent's current leaf. Packaged `worker` defaults to `fork`; every other built-in defaults to `fresh`. |
431
404
  | `agentScope` | `"user" \| "project" \| "both"` | `"both"` | Agent discovery scope. Project wins on name collisions. |
432
405
  | `cwd` | string | runtime cwd | Working directory override. |
433
406
  | `maxOutput` | `{ bytes?, lines? }` | 200 KB, 5000 lines | Truncation limits for returned output. |
@@ -452,17 +425,13 @@ subagent({ action: "quit", id: "<child-id>" })
452
425
  subagent({ action: "quit", all: true })
453
426
  ```
454
427
 
455
- `status` lists the children this session launched that remain in this process, formatted as `<run-id>/<agent>_<n> — <state> (loaded|cold) · id <child-id>`, followed by the failure or interruption cause when applicable. Children launched by other sessions are not listed. A child that fails to start within `sessionStartTimeoutMs` (default 5 minutes) fails with a `SessionStartTimeoutError` whose `phase` names what blocked it (`admission`, `setup`, `dispatch`, or `event-loop`); see [subagent start timeouts](https://docs.bastani.ai/subagents#subagent-start-timeouts).
456
-
457
- `pause` stops a child and holds its queued messages until `resume`. `quit` stops a running or paused child gracefully while keeping it resumable. `resume` reopens the child's saved session under the same ID and Intercom name. Paused, quit, and interrupted children receive `message` once as their next prompt before continuing; completed and failed children receive `message` as a fresh turn. Omitting `message` prompts any resumable child to continue where it left off. Permanently cancelled children and children reported gone after a restart cannot be resumed and require a fresh launch. Calling removed `kill` or `interrupt` returns:
428
+ `status` lists the children this session launched that remain active in this process, formatted as `<run-id>/<agent>_<n> — <state> (loaded|cold) · id <child-id>`, followed by the failure or interruption cause when applicable. Children launched by other sessions are not listed. A child that fails to start within `sessionStartTimeoutMs` (default 5 minutes) fails with a `SessionStartTimeoutError` whose `phase` names what blocked it (`admission`, `setup`, `dispatch`, or `event-loop`); see [subagent start timeouts](https://docs.bastani.ai/subagents#subagent-start-timeouts).
458
429
 
459
- ```text
460
- The subagent action "kill" was removed. Use { action: "quit", id } to stop a child gracefully; it stays resumable with { action: "resume", id, message? }.
461
- ```
430
+ `pause` stops a child and holds its queued messages until `resume`. `quit` stops a running or paused child gracefully while keeping it resumable. `resume` reopens the child's saved session under the same ID and Intercom name. Paused, quit, and interrupted children receive `message` once as their next prompt before continuing; completed and failed children receive `message` as a fresh turn. Omitting `message` prompts any resumable child to continue where it left off. Permanently cancelled children and children reported gone after a restart cannot be resumed and require a fresh launch.
462
431
 
463
432
  ## Worktree isolation
464
433
 
465
- `worktree: true` gives each parallel task an isolated git worktree under `<main-root>/.atomic/worktrees/<flattened-name>` on branch `worktree-<flattened-name>` (`/` flattened to `+`), anchored at the canonical main repository root even when launched inside another linked worktree. The base ref is `origin/<default-branch>` when available, else `HEAD`.
434
+ `worktree: true` gives each parallel task an isolated git worktree under `<main-root>/.atomic/worktrees/<flattened-name>` on branch `worktree-<flattened-name>` (`/` flattened to `+`), anchored at the canonical main repository root even when launched inside another linked worktree. The base ref is `origin/<default-branch>` when available, else `HEAD`. In single-agent mode, pass `worktree: { branch }` instead of `worktree: true`.
466
435
 
467
436
  ```typescript
468
437
  { tasks: [
@@ -509,6 +478,23 @@ Optional JSON configuration lives at `~/.atomic/agent/extensions/subagent/config
509
478
  - `concurrency` defaults to `1000` and limits simultaneous dispatches (per-call `concurrency` overrides it).
510
479
  - `runningCapacity` defaults to `1000` and limits simultaneously running child turns per parent. To exceed 1,000 concurrent children, raise all three values together and restart Atomic.
511
480
 
481
+ ### `control`
482
+
483
+ ```json
484
+ {
485
+ "control": {
486
+ "enabled": true,
487
+ "needsAttentionAfterMs": 120000,
488
+ "activeNoticeAfterMs": 300000,
489
+ "failedToolAttemptsBeforeAttention": 3,
490
+ "notifyOn": ["needs_attention", "active_long_running"],
491
+ "notifyChannels": ["event", "intercom"]
492
+ }
493
+ }
494
+ ```
495
+
496
+ Sets default attention-tracking thresholds and notification channels (`"event"`, `"intercom"`) for runs that do not override `control` per call. Also supports `activeNoticeAfterTurns`, `activeNoticeAfterTokens`, and `progressScores`.
497
+
512
498
  ### `resumeInFlight`
513
499
 
514
500
  ```json
@@ -553,7 +539,7 @@ Stores fresh (not forked) child sessions as JSONL files in `params.sessionDir` i
553
539
  Controls runtime Intercom coordination guidance injected into child prompts and whether the bridge adds `intercom` and `contact_supervisor` to child tool allowlists. Setting `mode` to `"off"` disables both.
554
540
 
555
541
  - `mode` accepts `"always"` (default), `"fork-only"`, or `"off"`.
556
- - `instructionFile` points to an optional markdown template that replaces the default instructions. Atomic interpolates `{orchestratorTarget}`, and relative paths resolve from `~/.atomic/agent/extensions/subagent/`.
542
+ - `instructionFile` points to an optional Markdown template that replaces the default instructions. Atomic interpolates `{orchestratorTarget}`, and relative paths resolve from `~/.atomic/agent/extensions/subagent/`.
557
543
 
558
544
  ### `worktreeSetupHook`
559
545
 
@@ -574,7 +560,7 @@ stdin receives a JSON object containing `repoRoot`, `worktreePath`, `agentCwd`,
574
560
 
575
561
  `syntheticPaths` entries must be relative to the worktree root and must not name tracked files; they are removed before diff capture so setup helpers do not pollute patches.
576
562
 
577
- ## Artifacts, sessions, and observability
563
+ ## Artifacts, sessions, and live progress
578
564
 
579
565
  Debug artifacts are written under `{parent-session-dir}/subagent-artifacts/` (or a user-scoped temp artifact directory):
580
566
 
@@ -582,65 +568,23 @@ Debug artifacts are written under `{parent-session-dir}/subagent-artifacts/` (or
582
568
  {parent-session-dir}/subagent-artifacts/
583
569
  {runId}_{agent}_input.md
584
570
  {runId}_{agent}_output.md
585
- {runId}_{agent}.jsonl # only when includeJsonl: true; max 50 MiB
586
571
  {runId}_{agent}_meta.json
587
572
  run-history.jsonl
588
573
  ```
589
574
 
590
575
  Metadata records timing, usage, status, termination cause, final model, attempted models, and fallback outcomes.
591
576
 
592
- Fresh child sessions stored in the parent's database are hidden from `/resume` and `history://sessions`; forked child sessions branch from the parent's current leaf and stay visible. Owner-bound completions post an unshaded notice line with an outcome glyph and task title, followed by the first result line. Ctrl+O expands the full retained result (up to 8,000 characters), and `/tasks` opens the inspector. Completion notices keep model and reasoning metadata in saved details without showing a model line.
593
-
594
- ## Completion and output
595
-
596
- Subagent runs preserve child output as returned. Atomic does not inject acceptance gate prompts, infer task policies from text, parse `acceptance-report` blocks, or reject finished children for missing gate blocks.
597
-
598
- If older calls or agent files still set removed fields:
599
-
600
- - Remove `acceptance` from `subagent()` calls and task entries.
601
- - Remove `completionGuard: false` from agent frontmatter.
602
- - Put required test commands, checks, and evidence requirements directly in the task prompt.
603
-
604
- ## Live progress
577
+ Fresh child sessions stored in the parent's database are hidden from `/resume` and `history://sessions`; forked child sessions branch from the parent's current leaf and stay visible. Completions post an unshaded notice line with an outcome glyph and task title, followed by the first result line. Press `Ctrl+O` to expand the full retained result (up to 8,000 characters), or open `/tasks`.
605
578
 
606
- Subagents report live progress for single and parallel runs, including the current tool, recent output, token counts, duration, activity freshness, current-tool duration, and artifact paths.
579
+ Subagents report live progress for single and parallel runs, including current tool, recent output, token counts, duration, and artifact paths. File-based tracking (`progress: true`, creating a run-scoped `progress.md` under isolated artifact storage) and returned runtime telemetry (`includeProgress: true`) are independent.
607
580
 
608
- File-based tracking and returned telemetry are separate. Setting `progress: true` creates a run-scoped `progress.md` under isolated artifact storage (shared across parallel tasks, never written into the child's working directory). `progress: false` disables an agent's `defaultProgress`. `includeProgress: true` adds runtime telemetry to the final waited result without creating `progress.md`. Press `Ctrl+O` to expand full streaming output.
609
-
610
- ## Delegation boundary
611
-
612
- Delegation is strictly one level deep with no setting to override it. Top-level sessions may call `subagent`. Admitted child sessions cannot launch or control other children (`pause`, `resume`, `quit`), enforced both by the subagent executor and by the Rust `SubagentControl` admission door. Children can still call `list`, `get`, `status`, and `wait`.
613
-
614
- Event channels emitted on the extension event bus:
615
-
616
- - `subagent:complete`
617
- - `subagent:control-intercom`
618
- - `subagent:result-intercom`
619
-
620
- ## Prompt-template event bridge
621
-
622
- External extensions that delegate through the `prompt-template:subagent:request` event and need requests to settle cleanly across reloads should register a rejection callback before emitting:
623
-
624
- ```typescript
625
- import { registerPromptTemplateBridgeRequestSettlement } from "@bastani/subagents";
626
-
627
- const unregister = registerPromptTemplateBridgeRequestSettlement(request.requestId, reject);
628
- try {
629
- api.events.emit("prompt-template:subagent:request", request);
630
- } catch (error) {
631
- unregister();
632
- reject(error);
633
- }
634
- // Call unregister() from your response, cancellation, or abort path.
635
- ```
636
-
637
- The callback rejects only if Atomic drops a bridge event because the captured extension runtime is stale. Listen on `prompt-template:subagent:response` for normal completion.
581
+ Subagent runs preserve child output as returned; put required test commands, checks, and evidence requirements directly in the task prompt.
638
582
 
639
583
  ## Suffix-first reasoning levels
640
584
 
641
- Configure reasoning effort directly on `model` and `fallbackModels` entries with `model_name:effort` syntax, such as `anthropic/claude-sonnet-4:high` or `openai/gpt-5-mini:low`. Valid efforts are `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`.
585
+ Configure reasoning effort directly on `model` and `fallbackModels` entries with `model_name:effort` syntax, such as `anthropic/claude-sonnet-4-6:high` or `openai/gpt-5-mini:low`. Valid efforts are `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max` (case-insensitive).
642
586
 
643
- A child runs at the exact requested effort when the model supports it. When the model does not support that effort (or the suffix is unknown), the child runs at that model's default effort (`modelThinkingLevels`, else `defaultThinkingLevel`). If the base model before an unknown suffix does not exist, launch fails with `Unknown model "<model>"`.
587
+ A child runs at the requested effort when the model supports it. When the model does not support that effort (or the suffix is unknown), the child runs at that model's default effort (`modelThinkingLevels`, else `defaultThinkingLevel`). If the base model before an unknown suffix does not exist, launch fails with `Unknown model "<model>"`.
644
588
 
645
589
  Migrate deprecated `thinking` frontmatter by folding the effort into the model string:
646
590
 
@@ -652,17 +596,6 @@ Migrate deprecated `thinking` frontmatter by folding the effort into the model s
652
596
  +fallbackModels: anthropic/claude-opus-4-8:xhigh
653
597
  ```
654
598
 
655
- ## Runtime files
599
+ ## License
656
600
 
657
- | File | Purpose |
658
- | --- | --- |
659
- | `src/extension/index.ts` | Extension registration, tool wiring, and message rendering. |
660
- | `src/agents/agents.ts` | Agent discovery and frontmatter parsing. |
661
- | `src/runs/foreground/subagent-executor.ts` | Execution routing for single, parallel, management, status, and control actions. |
662
- | `src/runs/foreground/execution.ts` | Core foreground `runSync` entry point. |
663
- | `src/runs/foreground/notify.ts` | Completion notification delivery for detached Intercom children. |
664
- | `src/runs/foreground/completion-notification.ts` | Local completion acknowledgement and ordering barrier. |
665
- | `src/shared/settings.ts` | Shared task behavior, instructions, and config helpers. |
666
- | `src/runs/shared/worktree.ts` | Temporary git worktree isolation. |
667
- | `src/intercom/intercom-bridge.ts` | Runtime Intercom bridge instructions. |
668
- | `src/extension/schemas.ts` / `src/shared/types.ts` | Tool schemas, shared types, and event constants. |
601
+ MIT. See the repository [LICENSE](https://github.com/bastani-inc/atomic/blob/main/LICENSE).
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/subagents",
3
- "version": "0.10.9",
3
+ "version": "0.10.10-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic extension for delegating tasks to subagents with parallel execution.",
6
6
  "contributors": [