@bastani/atomic 0.9.89-alpha.2 → 0.9.90-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 (868) hide show
  1. package/CHANGELOG.md +357 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +36 -0
  3. package/dist/builtin/intercom/README.md +3 -1
  4. package/dist/builtin/intercom/broker/broker.ts +35 -10
  5. package/dist/builtin/intercom/broker/client.ts +42 -1
  6. package/dist/builtin/intercom/index.bundle.mjs +400 -67
  7. package/dist/builtin/intercom/package.json +1 -1
  8. package/dist/builtin/intercom/skills/intercom/SKILL.md +24 -5
  9. package/dist/builtin/intercom/types.ts +5 -0
  10. package/dist/builtin/mcp/package.json +1 -1
  11. package/dist/builtin/subagents/CHANGELOG.md +66 -0
  12. package/dist/builtin/subagents/README.md +18 -20
  13. package/dist/builtin/subagents/agents/worker.md +1 -1
  14. package/dist/builtin/subagents/package.json +1 -1
  15. package/dist/builtin/subagents/skills/feedback/SKILL.md +2 -2
  16. package/dist/builtin/subagents/skills/qlty/SKILL.md +2 -2
  17. package/dist/builtin/subagents/skills/qlty/references/commands.md +45 -12
  18. package/dist/builtin/subagents/skills/qlty/references/quickstart.md +102 -21
  19. package/dist/builtin/subagents/skills/subagent/SKILL.md +18 -17
  20. package/dist/builtin/subagents/skills/tdd/LICENSE.txt +50 -0
  21. package/dist/builtin/subagents/skills/tdd/SKILL.md +10 -0
  22. package/dist/builtin/subagents/skills/tdd/tests.md +16 -0
  23. package/dist/builtin/subagents/skills/tmux/LICENSE.txt +24 -0
  24. package/dist/builtin/subagents/skills/tmux/SKILL.md +20 -1
  25. package/dist/builtin/subagents/skills/tmux/scripts/find-sessions.sh +19 -10
  26. package/dist/builtin/subagents/skills/tmux/scripts/wait-for-text.sh +231 -19
  27. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1911 -845
  28. package/dist/builtin/web-access/CHANGELOG.md +17 -0
  29. package/dist/builtin/web-access/index.bundle.mjs +158 -34
  30. package/dist/builtin/web-access/package.json +1 -1
  31. package/dist/builtin/workflows/CHANGELOG.md +130 -0
  32. package/dist/builtin/workflows/builtin/{chunk-tjk7jp9a.js → chunk-akmcsx14.js} +1 -1
  33. package/dist/builtin/workflows/builtin/{chunk-913nwrzq.js → chunk-erpybg3c.js} +109 -30
  34. package/dist/builtin/workflows/builtin/{chunk-e07n7en6.js → chunk-wpgpr31s.js} +1 -1
  35. package/dist/builtin/workflows/builtin/goal.js +2 -2
  36. package/dist/builtin/workflows/builtin/index.js +3 -3
  37. package/dist/builtin/workflows/builtin/ralph.js +2 -2
  38. package/dist/builtin/workflows/package.json +1 -1
  39. package/dist/builtin/workflows/skills/bro/SKILL.md +1 -1
  40. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5_2.md +19 -19
  41. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_haiku_5_5.md +2 -2
  42. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5_5.md +3 -3
  43. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6.md +2 -2
  44. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_1_sol.md +2 -2
  45. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_1_terra.md +3 -3
  46. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_2.md +3 -2
  47. package/dist/builtin/workflows/skills/show-me/SKILL.md +2 -2
  48. package/dist/builtin/workflows/skills/skill-creator/scripts/run_eval.py +29 -24
  49. package/dist/builtin/workflows/skills/teach/SKILL.md +8 -8
  50. package/dist/builtin/workflows/skills/unslop/SKILL.md +29 -51
  51. package/dist/builtin/workflows/src/durable/journal/internal.d.ts +10 -5
  52. package/dist/builtin/workflows/src/durable/journal/sharded-run-journal.d.ts +6 -3
  53. package/dist/builtin/workflows/src/durable/journal/sql-run-journal.d.ts +25 -3
  54. package/dist/builtin/workflows/src/extension/index.bundle.mjs +4444 -1356
  55. package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +2544 -568
  56. package/dist/builtin/workflows/src/index.js +2467 -549
  57. package/dist/builtin/workflows/src/local-worker-entry.mjs +2544 -568
  58. package/dist/cli/storage-command.d.ts +6 -0
  59. package/dist/cli/storage-command.d.ts.map +1 -1
  60. package/dist/cli/storage-command.js +11 -0
  61. package/dist/cli/storage-command.js.map +1 -1
  62. package/dist/cli/storage-search-database.d.ts +18 -0
  63. package/dist/cli/storage-search-database.d.ts.map +1 -0
  64. package/dist/cli/storage-search-database.js +90 -0
  65. package/dist/cli/storage-search-database.js.map +1 -0
  66. package/dist/cli/storage-search-session.d.ts +5 -0
  67. package/dist/cli/storage-search-session.d.ts.map +1 -0
  68. package/dist/cli/storage-search-session.js +133 -0
  69. package/dist/cli/storage-search-session.js.map +1 -0
  70. package/dist/core/agent-session-accessors.d.ts.map +1 -1
  71. package/dist/core/agent-session-accessors.js +107 -1
  72. package/dist/core/agent-session-accessors.js.map +1 -1
  73. package/dist/core/agent-session-bash.d.ts.map +1 -1
  74. package/dist/core/agent-session-bash.js +2 -0
  75. package/dist/core/agent-session-bash.js.map +1 -1
  76. package/dist/core/agent-session-boundaries.d.ts +2 -0
  77. package/dist/core/agent-session-boundaries.d.ts.map +1 -1
  78. package/dist/core/agent-session-boundaries.js +9 -4
  79. package/dist/core/agent-session-boundaries.js.map +1 -1
  80. package/dist/core/agent-session-custom-message-commit.d.ts.map +1 -1
  81. package/dist/core/agent-session-custom-message-commit.js +2 -1
  82. package/dist/core/agent-session-custom-message-commit.js.map +1 -1
  83. package/dist/core/agent-session-detached-tools.d.ts +3 -2
  84. package/dist/core/agent-session-detached-tools.d.ts.map +1 -1
  85. package/dist/core/agent-session-detached-tools.js +156 -41
  86. package/dist/core/agent-session-detached-tools.js.map +1 -1
  87. package/dist/core/agent-session-events.d.ts +2 -1
  88. package/dist/core/agent-session-events.d.ts.map +1 -1
  89. package/dist/core/agent-session-events.js +59 -23
  90. package/dist/core/agent-session-events.js.map +1 -1
  91. package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
  92. package/dist/core/agent-session-extension-bindings.js +53 -4
  93. package/dist/core/agent-session-extension-bindings.js.map +1 -1
  94. package/dist/core/agent-session-message-queue.d.ts.map +1 -1
  95. package/dist/core/agent-session-message-queue.js +2 -1
  96. package/dist/core/agent-session-message-queue.js.map +1 -1
  97. package/dist/core/agent-session-methods.d.ts +23 -3
  98. package/dist/core/agent-session-methods.d.ts.map +1 -1
  99. package/dist/core/agent-session-methods.js.map +1 -1
  100. package/dist/core/agent-session-models.d.ts.map +1 -1
  101. package/dist/core/agent-session-models.js +2 -0
  102. package/dist/core/agent-session-models.js.map +1 -1
  103. package/dist/core/agent-session-prompt.d.ts +1 -1
  104. package/dist/core/agent-session-prompt.d.ts.map +1 -1
  105. package/dist/core/agent-session-prompt.js +14 -3
  106. package/dist/core/agent-session-prompt.js.map +1 -1
  107. package/dist/core/agent-session-queue-pause.d.ts +2 -1
  108. package/dist/core/agent-session-queue-pause.d.ts.map +1 -1
  109. package/dist/core/agent-session-queue-pause.js +8 -4
  110. package/dist/core/agent-session-queue-pause.js.map +1 -1
  111. package/dist/core/agent-session-retry.d.ts +7 -3
  112. package/dist/core/agent-session-retry.d.ts.map +1 -1
  113. package/dist/core/agent-session-retry.js +113 -112
  114. package/dist/core/agent-session-retry.js.map +1 -1
  115. package/dist/core/agent-session-runtime.d.ts +15 -0
  116. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  117. package/dist/core/agent-session-runtime.js +26 -0
  118. package/dist/core/agent-session-runtime.js.map +1 -1
  119. package/dist/core/agent-session-services.d.ts +5 -2
  120. package/dist/core/agent-session-services.d.ts.map +1 -1
  121. package/dist/core/agent-session-services.js +6 -6
  122. package/dist/core/agent-session-services.js.map +1 -1
  123. package/dist/core/agent-session-tasks.js.map +1 -1
  124. package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
  125. package/dist/core/agent-session-tool-registry.js +4 -2
  126. package/dist/core/agent-session-tool-registry.js.map +1 -1
  127. package/dist/core/agent-session-types.d.ts +19 -1
  128. package/dist/core/agent-session-types.d.ts.map +1 -1
  129. package/dist/core/agent-session-types.js.map +1 -1
  130. package/dist/core/agent-session.d.ts +11 -0
  131. package/dist/core/agent-session.d.ts.map +1 -1
  132. package/dist/core/agent-session.js +8 -0
  133. package/dist/core/agent-session.js.map +1 -1
  134. package/dist/core/anthropic-thinking-guard.d.ts +16 -1
  135. package/dist/core/anthropic-thinking-guard.d.ts.map +1 -1
  136. package/dist/core/anthropic-thinking-guard.js +124 -7
  137. package/dist/core/anthropic-thinking-guard.js.map +1 -1
  138. package/dist/core/auth-storage.d.ts +3 -0
  139. package/dist/core/auth-storage.d.ts.map +1 -1
  140. package/dist/core/auth-storage.js +10 -0
  141. package/dist/core/auth-storage.js.map +1 -1
  142. package/dist/core/detached-tool-output.d.ts +4 -0
  143. package/dist/core/detached-tool-output.d.ts.map +1 -0
  144. package/dist/core/detached-tool-output.js +48 -0
  145. package/dist/core/detached-tool-output.js.map +1 -0
  146. package/dist/core/event-loop-monitor.d.ts +4 -1
  147. package/dist/core/event-loop-monitor.d.ts.map +1 -1
  148. package/dist/core/event-loop-monitor.js +84 -159
  149. package/dist/core/event-loop-monitor.js.map +1 -1
  150. package/dist/core/export-html/index.d.ts.map +1 -1
  151. package/dist/core/export-html/index.js +26 -4
  152. package/dist/core/export-html/index.js.map +1 -1
  153. package/dist/core/export-html/saved-agent-cards.d.ts +15 -0
  154. package/dist/core/export-html/saved-agent-cards.d.ts.map +1 -0
  155. package/dist/core/export-html/saved-agent-cards.js +255 -0
  156. package/dist/core/export-html/saved-agent-cards.js.map +1 -0
  157. package/dist/core/export-html/saved-agent-viewer.js +101 -0
  158. package/dist/core/extensions/builtin-subagent-record-writer.d.ts +11 -0
  159. package/dist/core/extensions/builtin-subagent-record-writer.d.ts.map +1 -0
  160. package/dist/core/extensions/builtin-subagent-record-writer.js +33 -0
  161. package/dist/core/extensions/builtin-subagent-record-writer.js.map +1 -0
  162. package/dist/core/extensions/loader-api.d.ts +1 -1
  163. package/dist/core/extensions/loader-api.d.ts.map +1 -1
  164. package/dist/core/extensions/loader-api.js +9 -2
  165. package/dist/core/extensions/loader-api.js.map +1 -1
  166. package/dist/core/extensions/loader-bindings.d.ts +7 -0
  167. package/dist/core/extensions/loader-bindings.d.ts.map +1 -1
  168. package/dist/core/extensions/loader-bindings.js +42 -1
  169. package/dist/core/extensions/loader-bindings.js.map +1 -1
  170. package/dist/core/extensions/loader-core.d.ts.map +1 -1
  171. package/dist/core/extensions/loader-core.js +33 -12
  172. package/dist/core/extensions/loader-core.js.map +1 -1
  173. package/dist/core/extensions/runner-events.d.ts +2 -0
  174. package/dist/core/extensions/runner-events.d.ts.map +1 -1
  175. package/dist/core/extensions/runner-events.js +17 -7
  176. package/dist/core/extensions/runner-events.js.map +1 -1
  177. package/dist/core/extensions/runner.d.ts +6 -2
  178. package/dist/core/extensions/runner.d.ts.map +1 -1
  179. package/dist/core/extensions/runner.js +5 -2
  180. package/dist/core/extensions/runner.js.map +1 -1
  181. package/dist/core/extensions/ui-types.d.ts +4 -0
  182. package/dist/core/extensions/ui-types.d.ts.map +1 -1
  183. package/dist/core/extensions/ui-types.js.map +1 -1
  184. package/dist/core/extensions/workflow-run-control-hub.d.ts +2 -2
  185. package/dist/core/extensions/workflow-run-control-hub.d.ts.map +1 -1
  186. package/dist/core/extensions/workflow-run-control-hub.js +2 -2
  187. package/dist/core/extensions/workflow-run-control-hub.js.map +1 -1
  188. package/dist/core/extensions/workflow-run-control.d.ts +10 -3
  189. package/dist/core/extensions/workflow-run-control.d.ts.map +1 -1
  190. package/dist/core/extensions/workflow-run-control.js.map +1 -1
  191. package/dist/core/first-prompt-model.d.ts +22 -0
  192. package/dist/core/first-prompt-model.d.ts.map +1 -0
  193. package/dist/core/first-prompt-model.js +84 -0
  194. package/dist/core/first-prompt-model.js.map +1 -0
  195. package/dist/core/footer-data-provider.d.ts.map +1 -1
  196. package/dist/core/footer-data-provider.js +11 -7
  197. package/dist/core/footer-data-provider.js.map +1 -1
  198. package/dist/core/fork-replay-pair.d.ts +22 -0
  199. package/dist/core/fork-replay-pair.d.ts.map +1 -0
  200. package/dist/core/fork-replay-pair.js +174 -0
  201. package/dist/core/fork-replay-pair.js.map +1 -0
  202. package/dist/core/fork-replay-wire.d.ts +11 -0
  203. package/dist/core/fork-replay-wire.d.ts.map +1 -0
  204. package/dist/core/fork-replay-wire.js +116 -0
  205. package/dist/core/fork-replay-wire.js.map +1 -0
  206. package/dist/core/messages.d.ts +2 -0
  207. package/dist/core/messages.d.ts.map +1 -1
  208. package/dist/core/messages.js +8 -4
  209. package/dist/core/messages.js.map +1 -1
  210. package/dist/core/model-runtime.d.ts +10 -1
  211. package/dist/core/model-runtime.d.ts.map +1 -1
  212. package/dist/core/model-runtime.js +76 -11
  213. package/dist/core/model-runtime.js.map +1 -1
  214. package/dist/core/package-manager-auto-resources.d.ts.map +1 -1
  215. package/dist/core/package-manager-auto-resources.js +3 -2
  216. package/dist/core/package-manager-auto-resources.js.map +1 -1
  217. package/dist/core/package-manager-resource-files.js +7 -8
  218. package/dist/core/package-manager-resource-files.js.map +1 -1
  219. package/dist/core/project-trust-state.d.ts +90 -0
  220. package/dist/core/project-trust-state.d.ts.map +1 -0
  221. package/dist/core/project-trust-state.js +65 -0
  222. package/dist/core/project-trust-state.js.map +1 -0
  223. package/dist/core/provider-rate-limits.d.ts +6 -0
  224. package/dist/core/provider-rate-limits.d.ts.map +1 -1
  225. package/dist/core/provider-rate-limits.js +43 -0
  226. package/dist/core/provider-rate-limits.js.map +1 -1
  227. package/dist/core/provider-request-admission.d.ts.map +1 -1
  228. package/dist/core/provider-request-admission.js +10 -1
  229. package/dist/core/provider-request-admission.js.map +1 -1
  230. package/dist/core/remote-catalog-provider.d.ts +6 -1
  231. package/dist/core/remote-catalog-provider.d.ts.map +1 -1
  232. package/dist/core/remote-catalog-provider.js +22 -1
  233. package/dist/core/remote-catalog-provider.js.map +1 -1
  234. package/dist/core/resolve-config-value.d.ts.map +1 -1
  235. package/dist/core/resolve-config-value.js +5 -2
  236. package/dist/core/resolve-config-value.js.map +1 -1
  237. package/dist/core/resource-loader-core.d.ts.map +1 -1
  238. package/dist/core/resource-loader-core.js +3 -0
  239. package/dist/core/resource-loader-core.js.map +1 -1
  240. package/dist/core/resource-loader-extensions.d.ts +2 -2
  241. package/dist/core/resource-loader-extensions.d.ts.map +1 -1
  242. package/dist/core/resource-loader-extensions.js +6 -4
  243. package/dist/core/resource-loader-extensions.js.map +1 -1
  244. package/dist/core/resource-loader-package-resources.d.ts +1 -0
  245. package/dist/core/resource-loader-package-resources.d.ts.map +1 -1
  246. package/dist/core/resource-loader-package-resources.js +2 -1
  247. package/dist/core/resource-loader-package-resources.js.map +1 -1
  248. package/dist/core/resource-loader-reload.d.ts +1 -1
  249. package/dist/core/resource-loader-reload.d.ts.map +1 -1
  250. package/dist/core/resource-loader-reload.js +3 -2
  251. package/dist/core/resource-loader-reload.js.map +1 -1
  252. package/dist/core/resource-loader-types.d.ts +2 -0
  253. package/dist/core/resource-loader-types.d.ts.map +1 -1
  254. package/dist/core/resource-loader-types.js.map +1 -1
  255. package/dist/core/resume/blueprint/actions.d.ts.map +1 -1
  256. package/dist/core/resume/blueprint/actions.js +15 -15
  257. package/dist/core/resume/blueprint/actions.js.map +1 -1
  258. package/dist/core/resume/blueprint/process.d.ts +6 -1
  259. package/dist/core/resume/blueprint/process.d.ts.map +1 -1
  260. package/dist/core/resume/blueprint/process.js +132 -21
  261. package/dist/core/resume/blueprint/process.js.map +1 -1
  262. package/dist/core/runtime-credentials.d.ts +5 -0
  263. package/dist/core/runtime-credentials.d.ts.map +1 -1
  264. package/dist/core/runtime-credentials.js +34 -0
  265. package/dist/core/runtime-credentials.js.map +1 -1
  266. package/dist/core/sdk-types.d.ts +2 -0
  267. package/dist/core/sdk-types.d.ts.map +1 -1
  268. package/dist/core/sdk-types.js.map +1 -1
  269. package/dist/core/sdk.d.ts +1 -1
  270. package/dist/core/sdk.d.ts.map +1 -1
  271. package/dist/core/sdk.js +187 -32
  272. package/dist/core/sdk.js.map +1 -1
  273. package/dist/core/session-account-model.d.ts +15 -0
  274. package/dist/core/session-account-model.d.ts.map +1 -0
  275. package/dist/core/session-account-model.js +105 -0
  276. package/dist/core/session-account-model.js.map +1 -0
  277. package/dist/core/session-lifecycle-scope.d.ts +5 -0
  278. package/dist/core/session-lifecycle-scope.d.ts.map +1 -1
  279. package/dist/core/session-lifecycle-scope.js.map +1 -1
  280. package/dist/core/session-manager-core.d.ts +21 -2
  281. package/dist/core/session-manager-core.d.ts.map +1 -1
  282. package/dist/core/session-manager-core.js +64 -8
  283. package/dist/core/session-manager-core.js.map +1 -1
  284. package/dist/core/session-manager-history.d.ts +3 -1
  285. package/dist/core/session-manager-history.d.ts.map +1 -1
  286. package/dist/core/session-manager-history.js +19 -5
  287. package/dist/core/session-manager-history.js.map +1 -1
  288. package/dist/core/session-manager-types.d.ts +2 -0
  289. package/dist/core/session-manager-types.d.ts.map +1 -1
  290. package/dist/core/session-manager-types.js.map +1 -1
  291. package/dist/core/session-retry-status.d.ts +22 -0
  292. package/dist/core/session-retry-status.d.ts.map +1 -0
  293. package/dist/core/session-retry-status.js +25 -0
  294. package/dist/core/session-retry-status.js.map +1 -0
  295. package/dist/core/session-worktree-snapshots.d.ts +4 -2
  296. package/dist/core/session-worktree-snapshots.d.ts.map +1 -1
  297. package/dist/core/session-worktree-snapshots.js +8 -4
  298. package/dist/core/session-worktree-snapshots.js.map +1 -1
  299. package/dist/core/settings-manager-core.d.ts +4 -0
  300. package/dist/core/settings-manager-core.d.ts.map +1 -1
  301. package/dist/core/settings-manager-core.js +73 -1
  302. package/dist/core/settings-manager-core.js.map +1 -1
  303. package/dist/core/settings-schema.js +1 -1
  304. package/dist/core/settings-schema.js.map +1 -1
  305. package/dist/core/slash-commands.d.ts +2 -2
  306. package/dist/core/slash-commands.d.ts.map +1 -1
  307. package/dist/core/slash-commands.js +15 -4
  308. package/dist/core/slash-commands.js.map +1 -1
  309. package/dist/core/storage/database.d.ts +14 -2
  310. package/dist/core/storage/database.d.ts.map +1 -1
  311. package/dist/core/storage/database.js.map +1 -1
  312. package/dist/core/storage/dialect.d.ts +13 -0
  313. package/dist/core/storage/dialect.d.ts.map +1 -1
  314. package/dist/core/storage/dialect.js +9 -1
  315. package/dist/core/storage/dialect.js.map +1 -1
  316. package/dist/core/storage/errors.d.ts +23 -1
  317. package/dist/core/storage/errors.d.ts.map +1 -1
  318. package/dist/core/storage/errors.js +28 -5
  319. package/dist/core/storage/errors.js.map +1 -1
  320. package/dist/core/storage/journal-transfer.d.ts.map +1 -1
  321. package/dist/core/storage/journal-transfer.js +90 -5
  322. package/dist/core/storage/journal-transfer.js.map +1 -1
  323. package/dist/core/storage/node-sqlite.d.ts.map +1 -1
  324. package/dist/core/storage/node-sqlite.js +61 -1
  325. package/dist/core/storage/node-sqlite.js.map +1 -1
  326. package/dist/core/storage/session/chunked-resume-projection.d.ts +4 -0
  327. package/dist/core/storage/session/chunked-resume-projection.d.ts.map +1 -0
  328. package/dist/core/storage/session/chunked-resume-projection.js +369 -0
  329. package/dist/core/storage/session/chunked-resume-projection.js.map +1 -0
  330. package/dist/core/storage/session/legacy-session-store.d.ts +5 -0
  331. package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -1
  332. package/dist/core/storage/session/legacy-session-store.js +10 -2
  333. package/dist/core/storage/session/legacy-session-store.js.map +1 -1
  334. package/dist/core/storage/session/memory-session-store.d.ts.map +1 -1
  335. package/dist/core/storage/session/memory-session-store.js +6 -1
  336. package/dist/core/storage/session/memory-session-store.js.map +1 -1
  337. package/dist/core/storage/session/snapshot-generation.d.ts +8 -0
  338. package/dist/core/storage/session/snapshot-generation.d.ts.map +1 -0
  339. package/dist/core/storage/session/snapshot-generation.js +17 -0
  340. package/dist/core/storage/session/snapshot-generation.js.map +1 -0
  341. package/dist/core/storage/session/sql-session-store.d.ts +12 -0
  342. package/dist/core/storage/session/sql-session-store.d.ts.map +1 -1
  343. package/dist/core/storage/session/sql-session-store.js +243 -46
  344. package/dist/core/storage/session/sql-session-store.js.map +1 -1
  345. package/dist/core/storage/sqlite-facade.d.ts +17 -2
  346. package/dist/core/storage/sqlite-facade.d.ts.map +1 -1
  347. package/dist/core/storage/sqlite-facade.js +17 -1
  348. package/dist/core/storage/sqlite-facade.js.map +1 -1
  349. package/dist/core/tasks/agent-adapter.d.ts +13 -2
  350. package/dist/core/tasks/agent-adapter.d.ts.map +1 -1
  351. package/dist/core/tasks/agent-adapter.js +25 -8
  352. package/dist/core/tasks/agent-adapter.js.map +1 -1
  353. package/dist/core/tasks/agent-panel-rules.d.ts +77 -0
  354. package/dist/core/tasks/agent-panel-rules.d.ts.map +1 -0
  355. package/dist/core/tasks/agent-panel-rules.js +88 -0
  356. package/dist/core/tasks/agent-panel-rules.js.map +1 -0
  357. package/dist/core/tasks/agent-panel-source.d.ts +19 -0
  358. package/dist/core/tasks/agent-panel-source.d.ts.map +1 -1
  359. package/dist/core/tasks/agent-panel-source.js +50 -9
  360. package/dist/core/tasks/agent-panel-source.js.map +1 -1
  361. package/dist/core/tasks/command-output.d.ts +17 -2
  362. package/dist/core/tasks/command-output.d.ts.map +1 -1
  363. package/dist/core/tasks/command-output.js +59 -3
  364. package/dist/core/tasks/command-output.js.map +1 -1
  365. package/dist/core/tasks/completion-message.d.ts +8 -3
  366. package/dist/core/tasks/completion-message.d.ts.map +1 -1
  367. package/dist/core/tasks/completion-message.js +14 -10
  368. package/dist/core/tasks/completion-message.js.map +1 -1
  369. package/dist/core/tasks/completion.d.ts +14 -4
  370. package/dist/core/tasks/completion.d.ts.map +1 -1
  371. package/dist/core/tasks/completion.js +58 -17
  372. package/dist/core/tasks/completion.js.map +1 -1
  373. package/dist/core/tasks/contracts.d.ts +10 -1
  374. package/dist/core/tasks/contracts.d.ts.map +1 -1
  375. package/dist/core/tasks/contracts.js +3 -1
  376. package/dist/core/tasks/contracts.js.map +1 -1
  377. package/dist/core/tasks/heartbeat.js +2 -1
  378. package/dist/core/tasks/heartbeat.js.map +1 -1
  379. package/dist/core/tasks/live-elapsed.d.ts +16 -1
  380. package/dist/core/tasks/live-elapsed.d.ts.map +1 -1
  381. package/dist/core/tasks/live-elapsed.js +43 -4
  382. package/dist/core/tasks/live-elapsed.js.map +1 -1
  383. package/dist/core/tasks/owner-store.d.ts +8 -0
  384. package/dist/core/tasks/owner-store.d.ts.map +1 -1
  385. package/dist/core/tasks/owner-store.js +34 -4
  386. package/dist/core/tasks/owner-store.js.map +1 -1
  387. package/dist/core/tasks/session-scope.d.ts +7 -0
  388. package/dist/core/tasks/session-scope.d.ts.map +1 -1
  389. package/dist/core/tasks/session-scope.js +15 -9
  390. package/dist/core/tasks/session-scope.js.map +1 -1
  391. package/dist/core/tasks/supervisor.d.ts +7 -3
  392. package/dist/core/tasks/supervisor.d.ts.map +1 -1
  393. package/dist/core/tasks/supervisor.js +92 -17
  394. package/dist/core/tasks/supervisor.js.map +1 -1
  395. package/dist/core/tasks/task-archive-snapshot.d.ts +7 -0
  396. package/dist/core/tasks/task-archive-snapshot.d.ts.map +1 -0
  397. package/dist/core/tasks/task-archive-snapshot.js +33 -0
  398. package/dist/core/tasks/task-archive-snapshot.js.map +1 -0
  399. package/dist/core/tasks/task-resumer.d.ts +5 -3
  400. package/dist/core/tasks/task-resumer.d.ts.map +1 -1
  401. package/dist/core/tasks/task-resumer.js +37 -13
  402. package/dist/core/tasks/task-resumer.js.map +1 -1
  403. package/dist/core/tasks/task-view-source.d.ts +25 -3
  404. package/dist/core/tasks/task-view-source.d.ts.map +1 -1
  405. package/dist/core/tasks/task-view-source.js +144 -44
  406. package/dist/core/tasks/task-view-source.js.map +1 -1
  407. package/dist/core/tasks/transcript.d.ts +3 -1
  408. package/dist/core/tasks/transcript.d.ts.map +1 -1
  409. package/dist/core/tasks/transcript.js +27 -0
  410. package/dist/core/tasks/transcript.js.map +1 -1
  411. package/dist/core/tools/ask-user-question/view/dialog-builder.d.ts.map +1 -1
  412. package/dist/core/tools/ask-user-question/view/dialog-builder.js +2 -1
  413. package/dist/core/tools/ask-user-question/view/dialog-builder.js.map +1 -1
  414. package/dist/core/tools/bash.d.ts.map +1 -1
  415. package/dist/core/tools/bash.js +2 -1
  416. package/dist/core/tools/bash.js.map +1 -1
  417. package/dist/core/tools/history-protocol.d.ts.map +1 -1
  418. package/dist/core/tools/history-protocol.js +130 -29
  419. package/dist/core/tools/history-protocol.js.map +1 -1
  420. package/dist/core/tools/history-search-position.d.ts +30 -0
  421. package/dist/core/tools/history-search-position.d.ts.map +1 -0
  422. package/dist/core/tools/history-search-position.js +161 -0
  423. package/dist/core/tools/history-search-position.js.map +1 -0
  424. package/dist/core/tools/history-search-wire.d.ts +25 -0
  425. package/dist/core/tools/history-search-wire.d.ts.map +1 -0
  426. package/dist/core/tools/history-search-wire.js +210 -0
  427. package/dist/core/tools/history-search-wire.js.map +1 -0
  428. package/dist/core/tools/resource-selectors.d.ts +7 -1
  429. package/dist/core/tools/resource-selectors.d.ts.map +1 -1
  430. package/dist/core/tools/resource-selectors.js +18 -11
  431. package/dist/core/tools/resource-selectors.js.map +1 -1
  432. package/dist/core/tools/search.d.ts.map +1 -1
  433. package/dist/core/tools/search.js +24 -3
  434. package/dist/core/tools/search.js.map +1 -1
  435. package/dist/core/tools/sqlite-selector-connection.d.ts +3 -0
  436. package/dist/core/tools/sqlite-selector-connection.d.ts.map +1 -1
  437. package/dist/core/tools/sqlite-selector-connection.js +4 -0
  438. package/dist/core/tools/sqlite-selector-connection.js.map +1 -1
  439. package/dist/core/tools/tool-abort-grace.d.ts +13 -0
  440. package/dist/core/tools/tool-abort-grace.d.ts.map +1 -0
  441. package/dist/core/tools/tool-abort-grace.js +72 -0
  442. package/dist/core/tools/tool-abort-grace.js.map +1 -0
  443. package/dist/core/tools/tool-concurrency.d.ts +5 -1
  444. package/dist/core/tools/tool-concurrency.d.ts.map +1 -1
  445. package/dist/core/tools/tool-concurrency.js +36 -6
  446. package/dist/core/tools/tool-concurrency.js.map +1 -1
  447. package/dist/core/workflow-resume.d.ts +1 -1
  448. package/dist/core/workflow-resume.d.ts.map +1 -1
  449. package/dist/core/workflow-resume.js +13 -3
  450. package/dist/core/workflow-resume.js.map +1 -1
  451. package/dist/core/workflow-summary-lifecycle.d.ts.map +1 -1
  452. package/dist/core/workflow-summary-lifecycle.js +8 -2
  453. package/dist/core/workflow-summary-lifecycle.js.map +1 -1
  454. package/dist/core/workspace/errors.d.ts +5 -2
  455. package/dist/core/workspace/errors.d.ts.map +1 -1
  456. package/dist/core/workspace/errors.js +59 -5
  457. package/dist/core/workspace/errors.js.map +1 -1
  458. package/dist/core/worktree-snapshot/blob-store.d.ts +138 -17
  459. package/dist/core/worktree-snapshot/blob-store.d.ts.map +1 -1
  460. package/dist/core/worktree-snapshot/blob-store.js +788 -82
  461. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  462. package/dist/core/worktree-snapshot/garbage.d.ts +17 -2
  463. package/dist/core/worktree-snapshot/garbage.d.ts.map +1 -1
  464. package/dist/core/worktree-snapshot/garbage.js +20 -4
  465. package/dist/core/worktree-snapshot/garbage.js.map +1 -1
  466. package/dist/core/worktree-snapshot/index.d.ts +1 -1
  467. package/dist/core/worktree-snapshot/index.d.ts.map +1 -1
  468. package/dist/core/worktree-snapshot/index.js +1 -1
  469. package/dist/core/worktree-snapshot/index.js.map +1 -1
  470. package/dist/core/worktree-snapshot/pool.d.ts.map +1 -1
  471. package/dist/core/worktree-snapshot/pool.js +38 -6
  472. package/dist/core/worktree-snapshot/pool.js.map +1 -1
  473. package/dist/core/worktree-snapshot/shared-clock.d.ts +3 -1
  474. package/dist/core/worktree-snapshot/shared-clock.d.ts.map +1 -1
  475. package/dist/core/worktree-snapshot/shared-clock.js +116 -26
  476. package/dist/core/worktree-snapshot/shared-clock.js.map +1 -1
  477. package/dist/core/worktree-snapshot/types.d.ts +4 -1
  478. package/dist/core/worktree-snapshot/types.d.ts.map +1 -1
  479. package/dist/core/worktree-snapshot/types.js.map +1 -1
  480. package/dist/extensions/llama/huggingface-ui.d.ts.map +1 -1
  481. package/dist/extensions/llama/huggingface-ui.js +2 -2
  482. package/dist/extensions/llama/huggingface-ui.js.map +1 -1
  483. package/dist/extensions/llama/index.d.ts +2 -0
  484. package/dist/extensions/llama/index.d.ts.map +1 -1
  485. package/dist/extensions/llama/index.js +19 -2
  486. package/dist/extensions/llama/index.js.map +1 -1
  487. package/dist/index.d.ts +9 -6
  488. package/dist/index.d.ts.map +1 -1
  489. package/dist/index.js +8 -4
  490. package/dist/index.js.map +1 -1
  491. package/dist/main.d.ts.map +1 -1
  492. package/dist/main.js +74 -15
  493. package/dist/main.js.map +1 -1
  494. package/dist/modes/interactive/components/agent-panel.d.ts +22 -6
  495. package/dist/modes/interactive/components/agent-panel.d.ts.map +1 -1
  496. package/dist/modes/interactive/components/agent-panel.js +80 -23
  497. package/dist/modes/interactive/components/agent-panel.js.map +1 -1
  498. package/dist/modes/interactive/components/assistant-message.d.ts +2 -0
  499. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  500. package/dist/modes/interactive/components/assistant-message.js +11 -0
  501. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  502. package/dist/modes/interactive/components/atomic-working-status.d.ts.map +1 -1
  503. package/dist/modes/interactive/components/atomic-working-status.js +10 -3
  504. package/dist/modes/interactive/components/atomic-working-status.js.map +1 -1
  505. package/dist/modes/interactive/components/bash-execution.d.ts +3 -2
  506. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
  507. package/dist/modes/interactive/components/bash-execution.js +7 -7
  508. package/dist/modes/interactive/components/bash-execution.js.map +1 -1
  509. package/dist/modes/interactive/components/branch-summary-message.d.ts +6 -0
  510. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
  511. package/dist/modes/interactive/components/branch-summary-message.js +12 -7
  512. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
  513. package/dist/modes/interactive/components/chat-message-renderer.d.ts +2 -0
  514. package/dist/modes/interactive/components/chat-message-renderer.d.ts.map +1 -1
  515. package/dist/modes/interactive/components/chat-message-renderer.js +24 -3
  516. package/dist/modes/interactive/components/chat-message-renderer.js.map +1 -1
  517. package/dist/modes/interactive/components/chat-session-host-actions.d.ts +1 -1
  518. package/dist/modes/interactive/components/chat-session-host-actions.d.ts.map +1 -1
  519. package/dist/modes/interactive/components/chat-session-host-actions.js +16 -10
  520. package/dist/modes/interactive/components/chat-session-host-actions.js.map +1 -1
  521. package/dist/modes/interactive/components/chat-session-host-events.d.ts +10 -0
  522. package/dist/modes/interactive/components/chat-session-host-events.d.ts.map +1 -1
  523. package/dist/modes/interactive/components/chat-session-host-events.js +76 -31
  524. package/dist/modes/interactive/components/chat-session-host-events.js.map +1 -1
  525. package/dist/modes/interactive/components/chat-session-host-rendering.d.ts +17 -5
  526. package/dist/modes/interactive/components/chat-session-host-rendering.d.ts.map +1 -1
  527. package/dist/modes/interactive/components/chat-session-host-rendering.js +79 -24
  528. package/dist/modes/interactive/components/chat-session-host-rendering.js.map +1 -1
  529. package/dist/modes/interactive/components/chat-session-host-runtime.d.ts.map +1 -1
  530. package/dist/modes/interactive/components/chat-session-host-runtime.js +5 -4
  531. package/dist/modes/interactive/components/chat-session-host-runtime.js.map +1 -1
  532. package/dist/modes/interactive/components/chat-session-host-state.d.ts +16 -1
  533. package/dist/modes/interactive/components/chat-session-host-state.d.ts.map +1 -1
  534. package/dist/modes/interactive/components/chat-session-host-state.js +22 -0
  535. package/dist/modes/interactive/components/chat-session-host-state.js.map +1 -1
  536. package/dist/modes/interactive/components/chat-session-host-types.d.ts +8 -2
  537. package/dist/modes/interactive/components/chat-session-host-types.d.ts.map +1 -1
  538. package/dist/modes/interactive/components/chat-session-host-types.js.map +1 -1
  539. package/dist/modes/interactive/components/chat-session-host-utils.d.ts +1 -0
  540. package/dist/modes/interactive/components/chat-session-host-utils.d.ts.map +1 -1
  541. package/dist/modes/interactive/components/chat-session-host-utils.js +2 -1
  542. package/dist/modes/interactive/components/chat-session-host-utils.js.map +1 -1
  543. package/dist/modes/interactive/components/chat-session-host.d.ts +35 -9
  544. package/dist/modes/interactive/components/chat-session-host.d.ts.map +1 -1
  545. package/dist/modes/interactive/components/chat-session-host.js +129 -35
  546. package/dist/modes/interactive/components/chat-session-host.js.map +1 -1
  547. package/dist/modes/interactive/components/chat-transcript.d.ts +13 -2
  548. package/dist/modes/interactive/components/chat-transcript.d.ts.map +1 -1
  549. package/dist/modes/interactive/components/chat-transcript.js +24 -4
  550. package/dist/modes/interactive/components/chat-transcript.js.map +1 -1
  551. package/dist/modes/interactive/components/compaction-boundary-message.d.ts +6 -0
  552. package/dist/modes/interactive/components/compaction-boundary-message.d.ts.map +1 -1
  553. package/dist/modes/interactive/components/compaction-boundary-message.js +12 -7
  554. package/dist/modes/interactive/components/compaction-boundary-message.js.map +1 -1
  555. package/dist/modes/interactive/components/composer-rule.d.ts +0 -2
  556. package/dist/modes/interactive/components/composer-rule.d.ts.map +1 -1
  557. package/dist/modes/interactive/components/composer-rule.js +4 -6
  558. package/dist/modes/interactive/components/composer-rule.js.map +1 -1
  559. package/dist/modes/interactive/components/countdown-timer.d.ts +5 -9
  560. package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -1
  561. package/dist/modes/interactive/components/countdown-timer.js +32 -23
  562. package/dist/modes/interactive/components/countdown-timer.js.map +1 -1
  563. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  564. package/dist/modes/interactive/components/custom-editor.js +4 -3
  565. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  566. package/dist/modes/interactive/components/custom-entry.d.ts +6 -0
  567. package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
  568. package/dist/modes/interactive/components/custom-entry.js +15 -0
  569. package/dist/modes/interactive/components/custom-entry.js.map +1 -1
  570. package/dist/modes/interactive/components/custom-message.d.ts +7 -3
  571. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
  572. package/dist/modes/interactive/components/custom-message.js +17 -15
  573. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  574. package/dist/modes/interactive/components/footer.d.ts +10 -3
  575. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  576. package/dist/modes/interactive/components/footer.js +37 -45
  577. package/dist/modes/interactive/components/footer.js.map +1 -1
  578. package/dist/modes/interactive/components/heartbeat-block.d.ts.map +1 -1
  579. package/dist/modes/interactive/components/heartbeat-block.js +3 -1
  580. package/dist/modes/interactive/components/heartbeat-block.js.map +1 -1
  581. package/dist/modes/interactive/components/host-input-form.d.ts.map +1 -1
  582. package/dist/modes/interactive/components/host-input-form.js +3 -3
  583. package/dist/modes/interactive/components/host-input-form.js.map +1 -1
  584. package/dist/modes/interactive/components/index.d.ts +1 -1
  585. package/dist/modes/interactive/components/index.d.ts.map +1 -1
  586. package/dist/modes/interactive/components/index.js.map +1 -1
  587. package/dist/modes/interactive/components/input-label.d.ts.map +1 -1
  588. package/dist/modes/interactive/components/input-label.js +4 -5
  589. package/dist/modes/interactive/components/input-label.js.map +1 -1
  590. package/dist/modes/interactive/components/keybinding-hints.d.ts +7 -0
  591. package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -1
  592. package/dist/modes/interactive/components/keybinding-hints.js +27 -6
  593. package/dist/modes/interactive/components/keybinding-hints.js.map +1 -1
  594. package/dist/modes/interactive/components/main-composer-keys.d.ts +17 -2
  595. package/dist/modes/interactive/components/main-composer-keys.d.ts.map +1 -1
  596. package/dist/modes/interactive/components/main-composer-keys.js +44 -27
  597. package/dist/modes/interactive/components/main-composer-keys.js.map +1 -1
  598. package/dist/modes/interactive/components/model-selector.d.ts +6 -1
  599. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  600. package/dist/modes/interactive/components/model-selector.js +13 -7
  601. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  602. package/dist/modes/interactive/components/nav-keys.d.ts +7 -2
  603. package/dist/modes/interactive/components/nav-keys.d.ts.map +1 -1
  604. package/dist/modes/interactive/components/nav-keys.js +51 -17
  605. package/dist/modes/interactive/components/nav-keys.js.map +1 -1
  606. package/dist/modes/interactive/components/notice-line.d.ts +8 -0
  607. package/dist/modes/interactive/components/notice-line.d.ts.map +1 -1
  608. package/dist/modes/interactive/components/notice-line.js +6 -1
  609. package/dist/modes/interactive/components/notice-line.js.map +1 -1
  610. package/dist/modes/interactive/components/selector.d.ts +3 -0
  611. package/dist/modes/interactive/components/selector.d.ts.map +1 -1
  612. package/dist/modes/interactive/components/selector.js +30 -7
  613. package/dist/modes/interactive/components/selector.js.map +1 -1
  614. package/dist/modes/interactive/components/session-selector-list.d.ts.map +1 -1
  615. package/dist/modes/interactive/components/session-selector-list.js +11 -11
  616. package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
  617. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  618. package/dist/modes/interactive/components/session-selector.js +2 -2
  619. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  620. package/dist/modes/interactive/components/settings-picker.d.ts +5 -0
  621. package/dist/modes/interactive/components/settings-picker.d.ts.map +1 -1
  622. package/dist/modes/interactive/components/settings-picker.js +36 -2
  623. package/dist/modes/interactive/components/settings-picker.js.map +1 -1
  624. package/dist/modes/interactive/components/settings-selector-submenus.d.ts +10 -0
  625. package/dist/modes/interactive/components/settings-selector-submenus.d.ts.map +1 -1
  626. package/dist/modes/interactive/components/settings-selector-submenus.js +89 -19
  627. package/dist/modes/interactive/components/settings-selector-submenus.js.map +1 -1
  628. package/dist/modes/interactive/components/settings-selector-types.d.ts +6 -0
  629. package/dist/modes/interactive/components/settings-selector-types.d.ts.map +1 -1
  630. package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
  631. package/dist/modes/interactive/components/settings-selector.d.ts +7 -0
  632. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  633. package/dist/modes/interactive/components/settings-selector.js +12 -0
  634. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  635. package/dist/modes/interactive/components/skill-invocation-message.d.ts +6 -0
  636. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
  637. package/dist/modes/interactive/components/skill-invocation-message.js +12 -7
  638. package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
  639. package/dist/modes/interactive/components/task-board.d.ts.map +1 -1
  640. package/dist/modes/interactive/components/task-board.js +9 -2
  641. package/dist/modes/interactive/components/task-board.js.map +1 -1
  642. package/dist/modes/interactive/components/task-completion-message.d.ts +10 -3
  643. package/dist/modes/interactive/components/task-completion-message.d.ts.map +1 -1
  644. package/dist/modes/interactive/components/task-completion-message.js +173 -19
  645. package/dist/modes/interactive/components/task-completion-message.js.map +1 -1
  646. package/dist/modes/interactive/components/task-inspector.d.ts +1 -1
  647. package/dist/modes/interactive/components/task-inspector.d.ts.map +1 -1
  648. package/dist/modes/interactive/components/task-inspector.js +28 -19
  649. package/dist/modes/interactive/components/task-inspector.js.map +1 -1
  650. package/dist/modes/interactive/components/task-list.d.ts +7 -3
  651. package/dist/modes/interactive/components/task-list.d.ts.map +1 -1
  652. package/dist/modes/interactive/components/task-list.js +60 -33
  653. package/dist/modes/interactive/components/task-list.js.map +1 -1
  654. package/dist/modes/interactive/components/task-row.d.ts +7 -0
  655. package/dist/modes/interactive/components/task-row.d.ts.map +1 -1
  656. package/dist/modes/interactive/components/task-row.js +25 -11
  657. package/dist/modes/interactive/components/task-row.js.map +1 -1
  658. package/dist/modes/interactive/components/task-transcript-notices.d.ts +16 -0
  659. package/dist/modes/interactive/components/task-transcript-notices.d.ts.map +1 -0
  660. package/dist/modes/interactive/components/task-transcript-notices.js +74 -0
  661. package/dist/modes/interactive/components/task-transcript-notices.js.map +1 -0
  662. package/dist/modes/interactive/components/task-transcript-page.d.ts +11 -6
  663. package/dist/modes/interactive/components/task-transcript-page.d.ts.map +1 -1
  664. package/dist/modes/interactive/components/task-transcript-page.js +48 -21
  665. package/dist/modes/interactive/components/task-transcript-page.js.map +1 -1
  666. package/dist/modes/interactive/components/tool-block-families.d.ts.map +1 -1
  667. package/dist/modes/interactive/components/tool-block-families.js +2 -1
  668. package/dist/modes/interactive/components/tool-block-families.js.map +1 -1
  669. package/dist/modes/interactive/components/tool-execution.d.ts +3 -2
  670. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  671. package/dist/modes/interactive/components/tool-execution.js +23 -9
  672. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  673. package/dist/modes/interactive/components/transcript-block-clicks.d.ts +54 -14
  674. package/dist/modes/interactive/components/transcript-block-clicks.d.ts.map +1 -1
  675. package/dist/modes/interactive/components/transcript-block-clicks.js +151 -16
  676. package/dist/modes/interactive/components/transcript-block-clicks.js.map +1 -1
  677. package/dist/modes/interactive/components/tree-selector-help.d.ts.map +1 -1
  678. package/dist/modes/interactive/components/tree-selector-help.js +25 -30
  679. package/dist/modes/interactive/components/tree-selector-help.js.map +1 -1
  680. package/dist/modes/interactive/components/tree-selector-list.d.ts +4 -0
  681. package/dist/modes/interactive/components/tree-selector-list.d.ts.map +1 -1
  682. package/dist/modes/interactive/components/tree-selector-list.js +21 -21
  683. package/dist/modes/interactive/components/tree-selector-list.js.map +1 -1
  684. package/dist/modes/interactive/components/working-run-meter.d.ts +31 -2
  685. package/dist/modes/interactive/components/working-run-meter.d.ts.map +1 -1
  686. package/dist/modes/interactive/components/working-run-meter.js +81 -10
  687. package/dist/modes/interactive/components/working-run-meter.js.map +1 -1
  688. package/dist/modes/interactive/interactive-agent-events.js +67 -14
  689. package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
  690. package/dist/modes/interactive/interactive-autocomplete.js +2 -2
  691. package/dist/modes/interactive/interactive-autocomplete.js.map +1 -1
  692. package/dist/modes/interactive/interactive-deferred-startup.d.ts.map +1 -1
  693. package/dist/modes/interactive/interactive-deferred-startup.js +10 -4
  694. package/dist/modes/interactive/interactive-deferred-startup.js.map +1 -1
  695. package/dist/modes/interactive/interactive-editor-actions.js +4 -1
  696. package/dist/modes/interactive/interactive-editor-actions.js.map +1 -1
  697. package/dist/modes/interactive/interactive-extension-custom-ui.js +13 -3
  698. package/dist/modes/interactive/interactive-extension-custom-ui.js.map +1 -1
  699. package/dist/modes/interactive/interactive-extension-runtime.js +4 -2
  700. package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
  701. package/dist/modes/interactive/interactive-extension-widgets.js +6 -8
  702. package/dist/modes/interactive/interactive-extension-widgets.js.map +1 -1
  703. package/dist/modes/interactive/interactive-input-handling.d.ts.map +1 -1
  704. package/dist/modes/interactive/interactive-input-handling.js +43 -3
  705. package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
  706. package/dist/modes/interactive/interactive-mode-base.d.ts +7 -0
  707. package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
  708. package/dist/modes/interactive/interactive-mode-base.js +9 -2
  709. package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
  710. package/dist/modes/interactive/interactive-mode-deps.d.ts +1 -1
  711. package/dist/modes/interactive/interactive-mode-deps.d.ts.map +1 -1
  712. package/dist/modes/interactive/interactive-mode-deps.js +1 -1
  713. package/dist/modes/interactive/interactive-mode-deps.js.map +1 -1
  714. package/dist/modes/interactive/interactive-mode-helpers.d.ts +5 -0
  715. package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
  716. package/dist/modes/interactive/interactive-mode-helpers.js +9 -0
  717. package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
  718. package/dist/modes/interactive/interactive-mode-surface.d.ts +10 -2
  719. package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
  720. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  721. package/dist/modes/interactive/interactive-model-routing.d.ts.map +1 -1
  722. package/dist/modes/interactive/interactive-model-routing.js +63 -21
  723. package/dist/modes/interactive/interactive-model-routing.js.map +1 -1
  724. package/dist/modes/interactive/interactive-prompt-turn.js +1 -1
  725. package/dist/modes/interactive/interactive-prompt-turn.js.map +1 -1
  726. package/dist/modes/interactive/interactive-render-chat.d.ts.map +1 -1
  727. package/dist/modes/interactive/interactive-render-chat.js +71 -10
  728. package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
  729. package/dist/modes/interactive/interactive-resource-rendering.js +9 -18
  730. package/dist/modes/interactive/interactive-resource-rendering.js.map +1 -1
  731. package/dist/modes/interactive/interactive-selectors.js +106 -57
  732. package/dist/modes/interactive/interactive-selectors.js.map +1 -1
  733. package/dist/modes/interactive/interactive-session-routing.js +10 -5
  734. package/dist/modes/interactive/interactive-session-routing.js.map +1 -1
  735. package/dist/modes/interactive/interactive-session-runtime.d.ts +3 -0
  736. package/dist/modes/interactive/interactive-session-runtime.d.ts.map +1 -1
  737. package/dist/modes/interactive/interactive-session-runtime.js +11 -0
  738. package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
  739. package/dist/modes/interactive/interactive-slash-commands.js +3 -0
  740. package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
  741. package/dist/modes/interactive/interactive-startup-chat-container.d.ts +5 -1
  742. package/dist/modes/interactive/interactive-startup-chat-container.d.ts.map +1 -1
  743. package/dist/modes/interactive/interactive-startup-chat-container.js +8 -3
  744. package/dist/modes/interactive/interactive-startup-chat-container.js.map +1 -1
  745. package/dist/modes/interactive/interactive-startup-trust.d.ts +2 -0
  746. package/dist/modes/interactive/interactive-startup-trust.d.ts.map +1 -1
  747. package/dist/modes/interactive/interactive-startup-trust.js +21 -0
  748. package/dist/modes/interactive/interactive-startup-trust.js.map +1 -1
  749. package/dist/modes/interactive/interactive-startup.d.ts.map +1 -1
  750. package/dist/modes/interactive/interactive-startup.js +39 -17
  751. package/dist/modes/interactive/interactive-startup.js.map +1 -1
  752. package/dist/modes/interactive/interactive-task-projection.d.ts.map +1 -1
  753. package/dist/modes/interactive/interactive-task-projection.js +11 -1
  754. package/dist/modes/interactive/interactive-task-projection.js.map +1 -1
  755. package/dist/modes/interactive/resume-catalog.d.ts.map +1 -1
  756. package/dist/modes/interactive/resume-catalog.js +1 -0
  757. package/dist/modes/interactive/resume-catalog.js.map +1 -1
  758. package/dist/modes/interactive/theme/theme-controller.d.ts +6 -1
  759. package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -1
  760. package/dist/modes/interactive/theme/theme-controller.js +19 -1
  761. package/dist/modes/interactive/theme/theme-controller.js.map +1 -1
  762. package/dist/modes/interactive-engine/engine-child-liveness.d.ts +2 -0
  763. package/dist/modes/interactive-engine/engine-child-liveness.d.ts.map +1 -1
  764. package/dist/modes/interactive-engine/engine-child-liveness.js +2 -0
  765. package/dist/modes/interactive-engine/engine-child-liveness.js.map +1 -1
  766. package/dist/modes/interactive-engine/engine-custom-ui.d.ts.map +1 -1
  767. package/dist/modes/interactive-engine/engine-custom-ui.js +54 -4
  768. package/dist/modes/interactive-engine/engine-custom-ui.js.map +1 -1
  769. package/dist/modes/interactive-engine/engine-render-service.d.ts.map +1 -1
  770. package/dist/modes/interactive-engine/engine-render-service.js +21 -2
  771. package/dist/modes/interactive-engine/engine-render-service.js.map +1 -1
  772. package/dist/modes/interactive-engine/extension-ui-bridge.d.ts +4 -2
  773. package/dist/modes/interactive-engine/extension-ui-bridge.d.ts.map +1 -1
  774. package/dist/modes/interactive-engine/extension-ui-bridge.js +4 -0
  775. package/dist/modes/interactive-engine/extension-ui-bridge.js.map +1 -1
  776. package/dist/modes/interactive-engine/isolated-runtime.d.ts +39 -3
  777. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  778. package/dist/modes/interactive-engine/isolated-runtime.js +219 -29
  779. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  780. package/dist/modes/interactive-engine/protocol.d.ts +33 -1
  781. package/dist/modes/interactive-engine/protocol.d.ts.map +1 -1
  782. package/dist/modes/interactive-engine/protocol.js +40 -2
  783. package/dist/modes/interactive-engine/protocol.js.map +1 -1
  784. package/dist/modes/interactive-engine/remote-command-catalog.d.ts +2 -2
  785. package/dist/modes/interactive-engine/remote-command-catalog.d.ts.map +1 -1
  786. package/dist/modes/interactive-engine/remote-command-catalog.js +7 -3
  787. package/dist/modes/interactive-engine/remote-command-catalog.js.map +1 -1
  788. package/dist/modes/interactive-engine/remote-component.d.ts.map +1 -1
  789. package/dist/modes/interactive-engine/remote-component.js +31 -5
  790. package/dist/modes/interactive-engine/remote-component.js.map +1 -1
  791. package/dist/modes/interactive-engine/remote-renderer.d.ts +20 -12
  792. package/dist/modes/interactive-engine/remote-renderer.d.ts.map +1 -1
  793. package/dist/modes/interactive-engine/remote-renderer.js +100 -34
  794. package/dist/modes/interactive-engine/remote-renderer.js.map +1 -1
  795. package/dist/modes/print-mode.d.ts.map +1 -1
  796. package/dist/modes/print-mode.js +4 -1
  797. package/dist/modes/print-mode.js.map +1 -1
  798. package/dist/modes/rpc/agent-panel-bridge.d.ts +7 -0
  799. package/dist/modes/rpc/agent-panel-bridge.d.ts.map +1 -1
  800. package/dist/modes/rpc/agent-panel-bridge.js +119 -114
  801. package/dist/modes/rpc/agent-panel-bridge.js.map +1 -1
  802. package/dist/modes/rpc/rpc-client-process.d.ts +2 -1
  803. package/dist/modes/rpc/rpc-client-process.d.ts.map +1 -1
  804. package/dist/modes/rpc/rpc-client-process.js +2 -1
  805. package/dist/modes/rpc/rpc-client-process.js.map +1 -1
  806. package/dist/modes/rpc/rpc-client.d.ts +8 -0
  807. package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
  808. package/dist/modes/rpc/rpc-client.js +5 -1
  809. package/dist/modes/rpc/rpc-client.js.map +1 -1
  810. package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
  811. package/dist/modes/rpc/rpc-command-handler.js +19 -2
  812. package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
  813. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  814. package/dist/modes/rpc/rpc-mode.js +4 -2
  815. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  816. package/dist/modes/rpc/rpc-session-binding.d.ts.map +1 -1
  817. package/dist/modes/rpc/rpc-session-binding.js +7 -0
  818. package/dist/modes/rpc/rpc-session-binding.js.map +1 -1
  819. package/dist/modes/rpc/rpc-types.d.ts +13 -1
  820. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  821. package/dist/modes/rpc/rpc-types.js.map +1 -1
  822. package/dist/utils/interactive-engine-bootstrap.d.ts +3 -0
  823. package/dist/utils/interactive-engine-bootstrap.d.ts.map +1 -1
  824. package/dist/utils/interactive-engine-bootstrap.js +25 -0
  825. package/dist/utils/interactive-engine-bootstrap.js.map +1 -1
  826. package/dist/utils/interactive-engine-env.d.ts +3 -0
  827. package/dist/utils/interactive-engine-env.d.ts.map +1 -1
  828. package/dist/utils/interactive-engine-env.js +1 -0
  829. package/dist/utils/interactive-engine-env.js.map +1 -1
  830. package/dist/utils/shell.d.ts +2 -0
  831. package/dist/utils/shell.d.ts.map +1 -1
  832. package/dist/utils/shell.js +3 -3
  833. package/dist/utils/shell.js.map +1 -1
  834. package/docs/background-tasks.md +32 -37
  835. package/docs/compaction.md +2 -2
  836. package/docs/computer-use.md +2 -0
  837. package/docs/development.md +11 -1
  838. package/docs/environment-variables.md +2 -0
  839. package/docs/extensions/api-reference.md +7 -3
  840. package/docs/extensions/authoring.md +3 -1
  841. package/docs/extensions/events.md +3 -1
  842. package/docs/extensions/ui.md +2 -0
  843. package/docs/guides/resume-on-any-machine.md +3 -1
  844. package/docs/intercom/reference.md +1 -1
  845. package/docs/intercom.md +3 -3
  846. package/docs/keybindings.md +6 -2
  847. package/docs/libraries/tui.md +4 -0
  848. package/docs/providers.md +1 -1
  849. package/docs/rpc/protocol.md +6 -4
  850. package/docs/sdk/reference.md +10 -4
  851. package/docs/sdk.md +5 -2
  852. package/docs/security.md +5 -1
  853. package/docs/session-format.md +1 -1
  854. package/docs/sessions.md +16 -0
  855. package/docs/settings.md +2 -2
  856. package/docs/skills.md +3 -3
  857. package/docs/storage.md +25 -4
  858. package/docs/subagents.md +42 -45
  859. package/docs/tui.md +1 -1
  860. package/docs/usage.md +3 -1
  861. package/docs/workflows/api-reference.md +3 -1
  862. package/docs/workflows/authoring.md +1 -1
  863. package/docs/workflows/operations.md +21 -14
  864. package/docs/workflows.md +1 -1
  865. package/docs/worktree-snapshots.md +10 -8
  866. package/npm-shrinkwrap.json +71 -49
  867. package/package.json +9 -8
  868. package/schemas/settings.schema.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/intercom",
3
- "version": "0.9.89-alpha.2",
3
+ "version": "0.9.90-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic extension providing a private coordination channel between parent and child agent sessions. Fork of: https://github.com/nicobailon/pi-intercom",
6
6
  "contributors": [
@@ -3,14 +3,16 @@ name: intercom
3
3
  description: |
4
4
  Streamline session-to-session coordination with the intercom extension. Send
5
5
  messages, delegate tasks, and coordinate work across multiple atomic sessions on
6
- the same machine. Use for planner-worker workflows, cross-session context
7
- sharing, and real-time collaboration between sessions.
6
+ one machine, or on machines that share storage. Use for planner-worker
7
+ workflows, cross-session context sharing, and real-time collaboration between
8
+ sessions.
8
9
  ---
9
10
 
10
11
  # Intercom Skill
11
12
 
12
13
  Use this skill when you need to coordinate work across multiple atomic sessions
13
- running on the same machine. Intercom enables direct 1:1 messaging between
14
+ running on one machine, or on several machines that share storage with
15
+ multi-node routing on. Intercom enables direct 1:1 messaging between
14
16
  sessions for delegation, context sharing, and collaborative workflows.
15
17
 
16
18
  When you are supervising with the `subagent` skill, delegated child agents can
@@ -113,7 +115,18 @@ intercom({ action: "leave", group: "api-review" })
113
115
  intercom({ action: "leave" })
114
116
  ```
115
117
 
116
- `list` still lists sessions: without a filter it returns every peer sharing at least one membership. `default` remains shared, while `true` and `auto` remain reserved. Later subagents inherit the most recently joined membership. Ordinary `send`/`ask` requires a shared membership; only authorized `contact_supervisor` traffic crosses group boundaries.
118
+ `list` still lists sessions: without a filter it returns every peer sharing at least one membership. `default` remains shared, while `true` and `auto` remain reserved. With multi-node routing on, a session with no configured group joins its repository's `project:<owner>/<repo>` group instead of `default`. Later subagents inherit the most recently joined membership. Ordinary `send`/`ask` requires a shared membership, with two exceptions: authorized `contact_supervisor` traffic, and an answer to a sender outside your groups whose message reached you.
119
+
120
+ ### Answer a sender outside your groups
121
+
122
+ A message can reach you from a session outside your groups: the session that launched a workflow run writing to its stages, a supervisor answering its child, or a child reporting to its supervisor. Answer it with `send` or `ask` to the name or ID its message shows, without joining a group. This return path leads only to that sender, allows up to 3 messages within 30 minutes of its latest message to you, and reopens with a fresh count each time it writes again. Pattern sends (name globs, `subagents:*`) never use it, and a session with a host-set reach policy never uses it.
123
+
124
+ ```typescript
125
+ // The launcher of your workflow run wrote to you; answer it by the name its message showed.
126
+ intercom({ action: "send", to: "main-session", message: "Stage done: report written to research/notes.md" })
127
+ ```
128
+
129
+ After the window or the message count runs out, a send is refused with `<sender> is outside your intercom groups and its return path has closed`. Wait for the sender to write again, or, for a longer exchange, have it join your group.
117
130
 
118
131
  ### Pattern 3: Reply Naturally
119
132
 
@@ -498,6 +511,12 @@ if (!result.delivered) {
498
511
  }
499
512
  ```
500
513
 
514
+ **"... is outside your intercom groups and its return path has closed"**
515
+ ```typescript
516
+ // You answered a sender outside your groups more than 3 times, or 30 minutes after its
517
+ // latest message. Wait until it writes to you again, or share a group with it.
518
+ ```
519
+
501
520
  **An ask that stays pending**
502
521
  ```typescript
503
522
  // Asks do not expire. Check what you are still waiting for, and cancel what you no longer need.
@@ -511,7 +530,7 @@ intercom({ action: "cancel", askId: "4c4d8427" });
511
530
 
512
531
  1. Check Intercom connection status: `intercom({ action: "status" })`
513
532
  2. Verify the target session has loaded Atomic's bundled Intercom extension
514
- 3. Ensure both sessions are on the same machine (intercom is same-machine only)
533
+ 3. Ensure both sessions use the same machine's broker, or that multi-node routing is on and both machines share storage (`intercom({ action: "status" })` shows a `Multi-node routing:` line)
515
534
 
516
535
  ### Message not delivered
517
536
 
@@ -406,6 +406,8 @@ export type ClientMessage =
406
406
  | { type: "pending_stage_notification_result"; requestId: string; delivered: boolean }
407
407
  | {
408
408
  type: "register_pending_stage_route";
409
+ /** Identifies this ownership lifetime on the registering socket, across roster updates. */
410
+ generation?: string;
409
411
  /** When present, the broker answers with `pending_stage_route_registered` once the route is applied. */
410
412
  requestId?: string;
411
413
  runId: string;
@@ -428,6 +430,7 @@ export type ClientMessage =
428
430
  */
429
431
  refusalKeepsConnection?: true;
430
432
  }
433
+ | { type: "withdraw_pending_stage_route"; requestId: string; runId: string; generation: string }
431
434
  | {
432
435
  type: "register_live_workflow_stage_route";
433
436
  requestId: string;
@@ -481,6 +484,7 @@ export type BrokerMessage =
481
484
  acknowledgesReceipt?: true;
482
485
  /** This broker acknowledges a `register_pending_stage_route` that carries a `requestId`; absent on older brokers. */
483
486
  acknowledgesPendingStageRoutes?: true;
487
+ withdrawsPendingStageRoutes?: true;
484
488
  /** #3906: this broker honours `refusalKeepsConnection`; absent on older brokers, which end the connection. */
485
489
  refusesPendingStageRoutesInPlace?: true;
486
490
  /** This broker answers `broker_status`; absent on older brokers, which drop a client that sends it. */
@@ -544,6 +548,7 @@ export type BrokerMessage =
544
548
  invocationControl?: true;
545
549
  }
546
550
  | { type: "live_workflow_stage_route_registered"; requestId: string }
551
+ /** The requested pending-stage registration change (publish or withdraw) was processed. */
547
552
  | { type: "pending_stage_route_registered"; requestId: string }
548
553
  /** #3906: the registration `requestId` of run `runId` was refused; the connection and its other routes are kept. */
549
554
  | {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/mcp",
3
- "version": "0.9.89-alpha.2",
3
+ "version": "0.9.90-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic's pi-compatible MCP integration for server connections, OAuth, tools, resources, and terminal management.",
6
6
  "contributors": [
@@ -2,6 +2,72 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.90-alpha.1] - 2026-11-19
6
+
7
+ ### Breaking Changes
8
+
9
+ - Every `subagent` launch now runs in the background. The call returns once each child is admitted, with its task id, and the child reports by its completion notice. A subagent the agent needs next is therefore listed below the prompt and in `/tasks` like any other, where you can open its chat, message it or stop it. The launch `wait` option is gone: a call that still passes `wait: { kind: "foreground" }`, as an older saved prompt, agent or workflow may, runs in the background, and the first line of its result says so. To use a child's result in the same turn, wait for it with `subagent({ action: "wait", id })`. A subagent's `contact_supervisor` decision or interview now always waits for the supervisor's reply in the same child, instead of ending a single child with a fresh-subagent handoff; only an SDK session without a task host, which still runs its subagents directly and waits for them as before, keeps that handoff.
10
+
11
+ ### Changed
12
+
13
+ - The bundled `tdd` skill now names tautological tests, whose expected value is recomputed the way the code computes it, as an anti-pattern, with a checklist item and an example, from its upstream skill. Its frontmatter and a new `LICENSE.txt` credit the two MIT-licensed skills it is adapted from.
14
+ - The bundled `qlty` skill's references follow the current Qlty documentation (CLI v0.671.0): `--skip`, `plugin:rule` filters and `--trigger` for `check` and `fmt`, `--install-only` and `--skip-source-fetch`, `--sarif` for `smells`, and the integrity verification steps, which need `gh` 2.67.0 or later because older versions can report success when no matching attestation is found.
15
+
16
+ ### Fixed
17
+
18
+ - The bundled tmux skill's helper scripts carry the upstream fixes since they were adopted. `find-sessions.sh` shows each session's attached state and start time (it printed a literal `\t`, an empty time and "detached" for every session), counts a session with several clients as attached, matches `-q` literally against session names, and scans hidden sockets with `-A`. `wait-for-text.sh` accepts a zero-padded timeout such as `-T 08`, no longer reports a match when the pane capture fails, rejects an invalid pattern at once instead of waiting out the timeout, and stops checking at the deadline. It now times out even if checking the timer, validating the pattern, or capturing the pane stalls, rejects late matches, reports the last complete pane capture, and stops its own worker when interrupted; `-T 0` does not inspect the pane. The skill also shows how to wait for a command's completion marker without matching the echoed command line, and its new `LICENSE.txt` credits OpenClaw's MIT-licensed tmux skill, which the scripts and parts of the skill come from ([#5566](https://github.com/bastani-inc/atomic/issues/5566))
19
+ - A subagent released while it waits on a tool call shows how long it ran up to its release on its completion notice and launch card, as the agent panel and `/tasks` do. It read the time of its last progress report, often `0s` for a child that spent its time in that call. Subagent task views, notices, heartbeats and results count the same time from dispatch through release, stop or completion, including session startup. Launch cards count silent waits and show the new run after a wake. SDK results and records include startup failures and time spent running after an Intercom handoff ([#5496](https://github.com/bastani-inc/atomic/issues/5496), [#5570](https://github.com/bastani-inc/atomic/issues/5570))
20
+ - Fixed `subagent({ action: "resume" })` never answering while a wake ran the child. A released or finished subagent that a result, shell completion or Intercom message woke runs again, but resume did not refuse it as already running: it queued behind that run and answered only when the run ended, so the parent's turn showed no result and could not end, and the child never got the message. Resume now refuses such a child at once with `<agent> (<child-id>, <intercom-name>) is already running as task <task-id>; pause or quit it first.`, without waiting for a sibling to save or for the child to register on Intercom, and a resume that arrives while a wake or another resume is still reopening the child waits only until it runs, then gives that error. A workflow-stage reload during a wake no longer lets a second resume launch the same child. Interrupting the turn (Esc) also ends a `pause`, `resume` or `quit` call that is still waiting: a stop that was already requested goes on, and a resume still queued to wake the child is withdrawn and never runs. If the child is not running yet, Esc ends a pending resume even during a sibling save, without reopening the child or sending its message ([#5485](https://github.com/bastani-inc/atomic/issues/5485), [#5560](https://github.com/bastani-inc/atomic/issues/5560))
21
+ - Pressing Esc while the agent waits for a subagent with `subagent({ action: "wait", id })` ends the wait and the turn at once, instead of holding the turn until the wait's budget runs out. The subagent keeps running, and its completion notice still arrives.
22
+ - When one of several `subagent` calls in the same message fails on its own before any child starts, for example because it names an unknown agent, gives an invalid task count, or asks for a file-only output without an output file, only that call fails, with its own task numbers. The other calls still launch, once; before, every call in the message failed with that error and nothing launched. Two tasks in one call writing the same file also fail only that call, even when it uses named worktrees. The combined task limit counts only calls left after checking for their own errors, including duplicate absolute output paths known before a worktree exists. A sibling call with both `agent` and `tasks` counts its top-level child as well as its listed tasks, and keeps all of them if it is the only call left to launch. An error only the remaining calls have together, such as too many tasks altogether, still fails them all, and so does a failure to make a required worktree.
23
+ - Sibling `subagent` calls in the same message that differ only in setting `worktree`, `share` or `includeProgress` to `false` or leaving it out launch together, instead of all failing with "incompatible top-level field". Sibling calls that cannot launch together because they differ in a top-level field, such as `concurrency` or `context`, launch as separate runs when they passed different `wait` values, as they did before every launch ran in the background, instead of all failing with "incompatible top-level field" with nothing launched. Calls that can launch together still do, as one run, whatever `wait` they pass ([#5686](https://github.com/bastani-inc/atomic/issues/5686))
24
+ - A parallel `subagent` call that fails before any child starts shows its error on its card, collapsed and expanded, instead of a `Stopped` row for each task.
25
+ - On Windows, a worktree setup hook stopped for its output size has its process tree terminated once, also when its timeout comes before the hook ends ([#5601](https://github.com/bastani-inc/atomic/issues/5601))
26
+ - A subagent that finished on its own and is woken to read the result of a call that kept running in the background no longer brings a "Released subagent reservation failed" (`hold-failed`) notice: the wake no longer asks Intercom to extend a reservation such a subagent never had. A reservation failure reported after its subagent runs again or has ended is not shown either. The notice names exactly the subagents whose reservation failed: when the broker refuses one of many, it names that one instead of the first, and retries only the others still on the same release. If a subagent finishes before that retry, sends still report that it completed instead of waking it again. It is shown once for each release of a subagent until a reservation of it succeeds, so another subagent's successful reservation no longer brings it again, and another subagent's failure is no longer kept quiet by it. A refusal that answers a subagent's earlier release is not shown once a later run released it or it was reserved again. That notice, the failure line of `status` and the reason of a failed wake state their code and hint once instead of twice, also for a failure passed on as JSON, and a failure that knows a subagent only by its Intercom name names it instead of `undefined`. The hint of `completion-not-held` now says the shell task's notice waits for the subagent's next run, as it does, instead of saying the session that launched it receives it ([#5551](https://github.com/bastani-inc/atomic/issues/5551))
27
+ - Fixed `subagent({ action: "resume" })` reporting that it could not restart a paused worktree subagent while Atomic was still running git inside that subagent's worktree to decide whether to keep it. On Windows a running process locks its directory, so removing the worktree right after the error failed with `EBUSY`, and a worktree with no unsaved work that resume had recreated was still on disk when the error arrived. Resume now waits for cleanup already underway. It tells you if a running sibling keeps the batch's worktrees, cleanup continues in the background, or a stalled git command had to be stopped ([#5589](https://github.com/bastani-inc/atomic/issues/5589))
28
+ - A child waking as its owner reloads now saves its running task once. It no longer appears finished or reports a stale-context error while the task is live ([#5609](https://github.com/bastani-inc/atomic/issues/5609)).
29
+ - After other sessions finish 256 subagents, `wait` and `status` can still show a retained child's short answer from its transcript. When the exact text is no longer available, they point to the earlier result or the child's transcript instead of reporting `OutputUnavailable` ([#5703](https://github.com/bastani-inc/atomic/issues/5703)).
30
+ - Fixed a forked subagent’s first request being rejected because the latest assistant turn’s signed thinking had changed. When removing a parent-only tool result or notice leaves a thinking-only message joined to Claude’s latest signed reply, the child omits that one message. Replies with text and reasoning sent to other models are unchanged ([#5481](https://github.com/bastani-inc/atomic/issues/5481)).
31
+
32
+ ## [0.9.89] - 2026-11-18
33
+
34
+ ### Breaking Changes
35
+
36
+ - `model: "auto"`, which every builtin agent declares, now runs your default model at its default thinking level, or at the agent's own `thinking` when it sets one, and runs the launching session's model and thinking level when no default model is configured. No routing model is asked, so an `auto` launch starts without a routing request. An `auto` launch still falls back to the agent's `fallbackModels` and then to the session's model.
37
+ - Removed `taskNeeds` and `modelConstraints` from the `subagent` tool, agent frontmatter, agent configs and builtin agent overrides, and `routerSelection` from subagent results. Tool calls and agent files that still set them keep working with the fields ignored and a one-time warning, and an agent file that agent management rewrites drops them. When Atomic starts, it deletes them from the builtin agent overrides (`subagents.agentOverrides`) in your global settings file and in the settings file of a trusted project (or of a project when you trust it), keeps every other setting, and says once which agents' overrides it changed. When the file cannot be written, or Atomic does not write it (a parent directory's `.atomic/settings.json`, or the legacy `~/.pi/agent/settings.json`), they are ignored with a warning shown once, and again only after their values change. Provider and model restrictions set through `modelConstraints` no longer limit `auto` or any fallback model.
38
+
39
+ ### Added
40
+
41
+ - A subagent whose tools leave out `read` or `search` gets one read-only tool, `session_history`, after compaction first clears its context, so it can recover what it needs from its own session's history. It reaches no other session, file or project
42
+ - A subagent of a session created with the SDK's `intercom` option gets its own Intercom policy: its group is its home and it reaches nothing else. It starts in the session's home group, and a requested `group` (including `true`) is placed under it, as `<home>/<group>` ([#5352](https://github.com/bastani-inc/atomic/issues/5352))
43
+
44
+ ### Changed
45
+
46
+ - A subagent attempt whose session directory cannot be created now fails that attempt instead of rejecting the launch call
47
+ - Agent launches and control calls use shared state-marked blocks. Foreground and background launches show the short task title, elapsed time, token count and live management hint. Completion notices name the agent and show its first result line; expansion shows the prompt, tool calls and full retained result without inherited fork history ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
48
+ - A background subagent released while it waits on a call shows `◌ Waiting on <tool>` on its launch card, the way `/tasks` and the agent panel show it, instead of `⏸ Released · waiting`, and its card follows it back to running or finished when it wakes or ends
49
+
50
+ ### Fixed
51
+
52
+ - Interrupting a subagent from its attached chat updates its call block, panel row and task sheet to stopped, freezes its elapsed time and offers `Stopped · send to resume`. A later completed turn keeps its past-tense end row when the live session is released ([#5224](https://github.com/bastani-inc/atomic/issues/5224))
53
+ - Fixed Atomic exiting with `child-record-unreadable` ("which is not open in this process") when a workflow stage that had launched a background subagent finished, failed or had its run ended. Closing the stage reads each child's latest record to record it `stage-closed`. That record was read only through the copies of the stage's session registered for it, which are held weakly and which a later copy of the session can replace, and the error escaped from the stage's close listener and ended the process. The stage now also reads its children's records through its own session. When the copy that saved a newer record is gone, the stage ends the child from the record its own session holds, updated with where the child stands as Atomic last saw it. A child that is still running instead ends once its task settles, and a child that was already killed, gone or `stage-closed` is left as it is. A child it can read no record of is counted as a record that could not be saved, and the stage's other children still end. Nothing that goes wrong while a stage closes ends the process or fails the close.
54
+ - Fixed a workflow stage that gave up its session while it waited not recording its subagents `stage-closed` when it closed for good, whether it reopened that session first or its run was killed or ended while it was still released. The records were saved through the session it had given up, which refuses them. They are now saved through the stage's newest session, or through its session reopened from the store while the stage holds none.
55
+ - Fixed one subagent whose latest record is in a session not open in this process stopping its owner's other subagents from being handled: the session no longer fails to start, its other released subagents are still reserved and woken, `subagents:` sends still reach the rest, and a broker wake for it is reported instead of thrown. Restoring such a subagent reads it from its owner's own session, and neither a wake for results it received while it ran nor clearing results delivered to it leaves an unhandled rejection that would end the process when its owner's session fails to read its record: the failure is reported to the owner.
56
+ - The subagent tool, `/agents`, agent management, child restore and worktree subagents no longer pause the interface while they read agent definitions, skills, settings and child artifacts, write and clean up run artifacts, run git for worktrees, or record run history
57
+ - Long runs of whitespace in tool output, bash commands, subagent tasks, inherited prompts or npm package specs no longer stall the session for seconds while they are parsed
58
+ - Fixed a long-running Atomic session keeping every workflow stage, and every other session, that launched subagents in memory after it ended. Each subagent run kept the session that launched it reachable, with its whole history, extensions and tools, for as long as the process ran, so a workflow of about 60 stages that each delegated to subagents grew the session's process to several gigabytes over a few hours, and the larger the process grew, the slower every new shell and tool process started. A run now keeps only which session launched it, and subagent cards keep only the session store, never the last session that showed them. Atomic also keeps the in-process status of only the 256 most recently finished subagent runs; an older run's children still resume from their saved sessions.
59
+ - Fixed launching, inspecting, and restoring subagents failing with `sessionManager.getEntrySeq is not a function` when the host or an SDK `SessionManager` does not implement `getEntrySeq` or `findEntrySeq` ([#5316](https://github.com/bastani-inc/atomic/issues/5316))
60
+ - Fixed a background subagent that was slow to start showing only as `running` for many minutes, with no Intercom registration, metrics or output. A child that has not started its first turn now shows where its start is. `subagent status` gives the step and how long it and the start have run, `/tasks` and task heartbeats show the step as its current action, and the launch result and `status` name the child's Intercom target. A start that runs out of its start budget is shown as stalled with that step, retried once, and then fails with both stalls named. The launching session is told. The retry keeps the messages the stalled start had received before its first turn, and the task's cleanup covers the retry's session.
61
+ - Fixed a subagent that started while the Intercom broker was briefly unreachable running its turns unregistered, invisible to `intercom list` and unreachable until it next used Intercom itself. Its start now waits in its `registering on Intercom` step and retries until it registers, within its start budget.
62
+ - Fixed `contact_supervisor` reaching the wrong session. A background subagent named as its supervisor whichever session in the Atomic process had connected to Intercom last, such as another subagent or a workflow stage hosted in that process, instead of the session that launched it. Its updates and questions went to that session and never reached its parent. A child now names the Intercom id its launching session registered under, or that session's own name until it has one, and a child relaunched after a restart does the same.
63
+ - Subagent artifact storage for sessions without a session file is created only when a subagent needs it, not at every session start. On Windows, it waits for its private-directory check, using the native module with an asynchronous PowerShell fallback, without pausing the main thread. A subagent cancelled during that check creates no child storage or supervisor authorization, and a storage failure returns a tool error. Startup artifact cleanup stays single-flight until its asynchronous work finishes, even if the session that started it ends ([#5285](https://github.com/bastani-inc/atomic/issues/5285), [#5324](https://github.com/bastani-inc/atomic/issues/5324))
64
+ - A background subagent's final answer stays visible in `/tasks`, its transcript and completion card when saving it fails, even while its session is still shutting down ([#5210](https://github.com/bastani-inc/atomic/issues/5210))
65
+ - A subagent launch whose model chain has no credentials now names each skipped model and its provider in the error. A provider that rejects credentials is skipped for the rest of the child's fallback walk ([#5353](https://github.com/bastani-inc/atomic/pull/5353)).
66
+ - Fixed a message that reached a subagent as it finished being accepted and then left unanswered, including a steering, follow-up or user message and one an extension sends as the child's last turn settles. The child now answers accepted turn-starting input before it completes, and refuses one that arrives after that with its terminal-child error. A child being released also keeps turn-starting extension messages and background completion notices with steering or follow-up delivery. It saves each card once and delivers its context once on wake, including batches retried after a card write fails or the child's session reopens. Context-excluded extension messages keep their saved cards without reaching the model. Pressing Esc while a resumed subagent replays a message that arrived before it stopped also leaves it waiting for your next message, as Esc does on any other turn; it answers that message, then continues with the task it was resumed with. A resumed subagent no longer fails with `Agent is already processing` when an extension's interrupting message is still being answered as its task is sent; it answers both ([#5318](https://github.com/bastani-inc/atomic/issues/5318))
67
+ - A subagent's pending question marks its task as needing input and can be answered in its own task transcript. Leaving that view keeps its form state; Escape in the form cancels it. Questions no longer appear in, block, or take answers from the main chat or sibling sessions ([#5354](https://github.com/bastani-inc/atomic/pull/5354))
68
+ - Fixed long malformed progress or output instructions in a subagent task freezing its live or restored tool block while Atomic formats the prompt ([#5239](https://github.com/bastani-inc/atomic/pull/5239))
69
+ - An open subagent chat no longer reads every entry of the session that launched it on each frame to tell whether the subagent is stopped or read-only.
70
+
5
71
  ## [0.9.89-alpha.2] - 2026-11-18
6
72
 
7
73
  ### Changed
@@ -6,7 +6,7 @@
6
6
 
7
7
  `@bastani/subagents` lets Atomic delegate work to focused child agents. It is Atomic's bundled adaptation of upstream `pi-subagents`; use it for code review, scouting, implementation, parallel audits, and anything else that benefits from a second or third set of model eyes.
8
8
 
9
- Use subagents selectively for bounded specialist delegation while the parent remains in control: one focused agent or parallel independent tasks. Keep interactive, exploratory, conceptual, and conversation-led work inline. For autonomous jobs that need durable stages, checkpoints, resumability, HIL, gates, retries, or bounded loops, use an appropriate workflow. Owner-bound subagent calls support foreground-first and background observation; omitted `wait` starts in the background.
9
+ Use subagents selectively for bounded specialist delegation while the parent remains in control: one focused agent or parallel independent tasks. Keep interactive, exploratory, conceptual, and conversation-led work inline. For autonomous jobs that need durable stages, checkpoints, resumability, HIL, gates, retries, or bounded loops, use an appropriate workflow. Every subagent runs in the background; `subagent({ action: "wait", id })` waits for one whose result is needed next.
10
10
 
11
11
  https://github.com/user-attachments/assets/702554ec-faaf-4635-80aa-fb5d6e292fd1
12
12
 
@@ -48,7 +48,7 @@ That is enough to start.
48
48
 
49
49
  Pi is the parent session. A subagent is a focused child Pi session with its own job.
50
50
 
51
- Atomic starts the child once and gives it the task. Background launches return after admission; foreground-first launches wait until completion or their observation budget expires. On expiry, the same child continues in the background and later delivers its result to the owning session.
51
+ Atomic starts the child once and gives it the task. Every launch runs in the background: it returns after admission, and the child later delivers its result to the owning session as a completion notice. To use a result in the same turn, wait for the child's task explicitly.
52
52
 
53
53
  Installing the extension does not start an automatic review. It gives Pi a delegation tool. If you want every implementation reviewed, say that in your prompt or put it in your project instructions:
54
54
 
@@ -172,23 +172,22 @@ You can ask naturally:
172
172
  Show me the current subagent status.
173
173
  ```
174
174
 
175
- ### Choose foreground or background
175
+ ### Launch, then wait when you need the result
176
176
 
177
- The agent can choose a mode for each authorized call without asking you merely to select an execution mode:
177
+ Every subagent runs in the background. The agent decides for each call whether its next step needs the result, without asking you to choose:
178
178
 
179
179
  Keep immediately blocking work local unless specialist expertise, context isolation, or an explicit delegation request makes a child worthwhile. Continue independent work after spawning without duplicating the child's task. Wait when its result becomes a dependency; otherwise rely on completion notices rather than repeated short waits or status polls.
180
180
 
181
181
  ```ts
182
- subagent({ agent: "codebase-analyzer", task: "Trace authentication.", wait: { kind: "background" } })
183
- subagent({ agent: "codebase-analyzer", task: "Trace authentication.", wait: { kind: "foreground", budgetMs: 30000 } })
184
- subagent({ action: "wait", id: taskId })
182
+ subagent({ agent: "codebase-analyzer", task: "Trace authentication." })
183
+ subagent({ action: "wait", id: taskId, budgetMs: 120000 })
185
184
  subagent({ action: "status", id: taskId })
186
185
  subagent({ action: "pause", id: taskId })
187
186
  subagent({ action: "resume", id: taskId, message: "Focus on the failing test." })
188
187
  subagent({ action: "quit", id: taskId })
189
188
  ```
190
189
 
191
- In owner-bound sessions, omitted `wait` means background. Explicit foreground waits use the owner's agent observation budget, normally 30 seconds, unless overridden. Expiry releases the caller, not the execution. Wait or inspect the returned task ID instead of launching a duplicate. Existing SDK callers without an owner retain their original execution path.
190
+ `action: "wait"` uses the owner's agent wait budget, normally 30 seconds, unless `budgetMs` overrides it, and Esc ends it at once. Either way the wait releases the caller, not the execution. Wait or inspect the returned task ID instead of launching a duplicate. A launch that still passes `wait`, as older prompts and workflows may, runs in the background too, and a foreground one says so in its result. SDK callers without a task owner retain their original execution path, which waits for the child.
192
191
 
193
192
  See [Background tasks](../coding-agent/docs/background-tasks.md) for shell examples, automatic backgrounding, output retention, keyboard controls, platform limits, and session/workflow lifetimes.
194
193
 
@@ -236,11 +235,11 @@ Child-side routine completion handoffs are still not expected. In parallel runs,
236
235
 
237
236
  Children can also talk to each other. Children launched in one parallel set (or with the same explicit `group`) share an Intercom group, and children launched from a workflow stage inherit that stage's invocation group. `intercom({ action: "list" })` shows live siblings, and ordinary `send`/`ask` reaches them directly: a locator hands paths to an analyzer, writers agree on file ownership or who runs a shared suite, a debugger reuses a sibling's reproduction, or one reviewer challenges another's finding before each returns its own verdict. `contact_supervisor` stays reserved for the supervisor. Peer-to-peer (swarm) exchange is the default, and the supervisor is not a message relay. There are no limits on communication between agents; it is encouraged whenever you need to. Children coordinate spontaneously and each still returns its own result. For very complex work or requested heavy parallelism, swarms scale to hundreds or thousands of agents organized into teams; see [Scaling a swarm](../coding-agent/docs/subagents.md#scaling-a-swarm) for the limits. Peer asks and one blocking supervisor request may wait concurrently in the same child.
238
237
 
239
- An exact-child probe/commit handshake may release parallel foreground observations, including queued slots, so the parent can respond. It does not end any execution or spend a running concurrency slot. Active siblings keep working, queued siblings start once capacity becomes available, and worktrees remain until their owners finish. Do not relaunch children to answer an ask. Targeted `pause`/`quit`, explicit batch cancellation, and owner closure remain separate controls.
238
+ An exact-child probe/commit handshake lets a child's message reach its busy parent at once, and an `action: "wait"` the parent is in ends so it can respond. Neither ends any execution or spends a running concurrency slot. Active siblings keep working, queued siblings start once capacity becomes available, and worktrees remain until their owners finish. Do not relaunch children to answer an ask. Targeted `pause`/`quit`, explicit batch cancellation, and owner closure remain separate controls.
240
239
 
241
- Single-child launches retain their existing terminal parent-ask handoff: the exact live child ends before broker send or waiter admission and the parent receives the verbatim question, ordered attachments, identity, and `[TASK_CONTEXT]` for a fresh child. The bridge still obtains each child's capability during admission; the child connects only when it uses Intercom.
240
+ A single child that an SDK caller without a task owner runs directly retains the terminal parent-ask handoff: the exact live child ends before broker send or waiter admission and the parent receives the verbatim question, ordered attachments, identity, and `[TASK_CONTEXT]` for a fresh child. Every other child waits for the reply in the same execution. The bridge still obtains each child's capability during admission; the child connects only when it uses Intercom.
242
241
 
243
- Parent-side Atomic sends grouped completion results through Intercom: one grouped message per foreground parent `subagent` run and one per detached child completion while its owning session remains live. When a workflow stage completes, Atomic cancels its still-running detached children and suppresses their late findings and completion notifications instead of forwarding them to the parent/main chat. Intercom-confirmed delivery returns a compact receipt with artifact/session paths; without that confirmation, the normal full output is preserved. Grouped messages include child Intercom targets and full child summaries.
242
+ Parent-side Atomic sends grouped completion results through Intercom: one grouped message per `subagent` run its caller waits for and one per detached child completion while its owning session remains live. When a workflow stage completes, Atomic cancels its still-running detached children and suppresses their late findings and completion notifications instead of forwarding them to the parent/main chat. Intercom-confirmed delivery returns a compact receipt with artifact/session paths; without that confirmation, the normal full output is preserved. Grouped messages include child Intercom targets and full child summaries.
244
243
 
245
244
  If a child appears stalled, needs-attention notices can show up in the parent session with useful next actions, such as checking `subagent({ action: "status" })`, quitting the child, or nudging it.
246
245
 
@@ -532,13 +531,12 @@ Agent definitions are not loaded into context by default. Management actions let
532
531
  | `task` | string | - | Task string for single mode. |
533
532
  | `action` | string | - | `list`, `get`, `create`, `update`, `delete`, `status`, `wait`, `pause`, `resume`, or `quit`. `kill` and `interrupt` were removed and are rejected with an error naming `quit`. |
534
533
  | `config` | object/string | - | Agent config for create/update. |
535
- | `wait` | object | background in owner-bound sessions | `{ kind: "background" }` yields after admission; `{ kind: "foreground", budgetMs?: number }` waits before automatically yielding. |
536
- | `budgetMs` | number | owner wait policy | Observation budget for `action: "wait"`; not a child execution deadline. |
534
+ | `budgetMs` | number | owner wait policy | Observation budget for `action: "wait"`; not a child execution deadline. A launch always runs in the background; a `wait` it still passes is ignored. |
537
535
  | `id` | string | - | Task ID returned by an owner-bound launch for `wait` or `status`; for `pause`, `resume`, and `quit` also the child id (`<runId>:<index>`), Intercom name, or a single-child run id. |
538
536
  | `output` | `string \| false` | agent default | Override single-agent output file. |
539
537
  | `outputMode` | `"inline" \| "file-only"` | `inline` | Return saved output inline or as a concise saved-file reference. `file-only` requires an `output` path. |
540
538
  | `reads` | `string[] \| false` | - | Single-agent files to read before execution, or `false` to disable. Relative paths resolve against the effective child `cwd`; absolute paths pass through. |
541
- | `progress` | boolean | agent default | Enable or disable single-agent run-scoped `progress.md` tracking under isolated artifact storage. Omission inherits the agent default except for read-only tasks. This does not write `progress.md` into the child `cwd` and is independent of `includeProgress`; with `artifacts: false`, foreground storage is removed after the child exits. |
539
+ | `progress` | boolean | agent default | Enable or disable single-agent run-scoped `progress.md` tracking under isolated artifact storage. Omission inherits the agent default except for read-only tasks. This does not write `progress.md` into the child `cwd` and is independent of `includeProgress`; with `artifacts: false`, that storage is removed after the child exits. |
542
540
  | `skill` | `string \| string[] \| false` | agent default | Override skills or disable all. |
543
541
  | `model` | string | agent default | Override model. |
544
542
  | `tasks` | array | - | Top-level parallel tasks. Supports `agent`, `task`, `cwd`, `worktree` (named), `count`, `output`, `outputMode`, `reads`, `progress`, `skill`, and `model`. |
@@ -572,7 +570,7 @@ subagent({ action: "quit", all: true })
572
570
 
573
571
  `status` lists the children this session launched that are still in this process, each as `<run-id>/<agent>_<n> — <state> (loaded|cold) · id <child-id>`, with the cause of a failed or interrupted child after it; `pause`, `resume` and `quit` take the child id or that path, and `status` takes either to show one child. Children other sessions in the same process launched, such as a workflow stage's, are not listed, since this session cannot control them. A child that has not started within its start budget (5 minutes, or `sessionStartTimeoutMs` in `config.json`) fails with a `SessionStartTimeoutError` whose `phase` names what blocked it (`admission`, `setup`, `dispatch` or `event-loop`) instead of staying running; see [Subagent start timeouts](../coding-agent/docs/subagents.md#subagent-start-timeouts).
574
572
 
575
- `pause` stops a child and holds its queued messages until `resume`; `quit` stops it gracefully, including a child already paused by you or with its workflow stage. Both stay resumable while the session or workflow stage that launched the child can still resume it, as do children stopped because their workflow stage was paused or quit, including by Atomic exiting or a session switch. `resume` reopens the child's own session under the same id and Intercom name. A paused, quit, or interrupted child receives `message` once as its next prompt and then continues where it left off; a completed or failed child receives `message` as one fresh prompt. Without `message`, every resumable child, including a completed or failed one, is asked to continue where it left off. Children cancelled for good (owner or batch cancellation, including a `/tasks` stop, and the removed `kill` action), children whose workflow stage ended (the stage finished, or its run ended or was cancelled; this covers all of that stage's children, including ones you paused or quit), and children reported gone after a restart cannot be resumed: `resume` returns an error that says why, and follow-up work requires a fresh launch with explicit context. A parallel child waiting for a reply is not terminal and continues in its original execution. Parent cancellation of a still-running child uses the interrupted/abort state: receipts and progress present it as cancelled rather than failed, persisted metadata keeps the abort cause, and bounded partial findings remain available. Migrate old subagent calls from `action: "kill"` or `action: "interrupt"` to `action: "quit"`; the old actions are rejected with `The subagent action "kill" was removed. Use { action: "quit", id } to stop a child gracefully; it stays resumable with { action: "resume", id, message? }.` (naming the action that was used). Host interrupt APIs are unchanged.
573
+ `pause` stops a child and holds its queued messages until `resume`; `quit` stops it gracefully, including a child already paused by you or with its workflow stage. Both stay resumable while the session or workflow stage that launched the child can still resume it, as do children stopped because their workflow stage was paused or quit, including by Atomic exiting or a session switch. `resume` reopens the child's own session under the same id and Intercom name. A paused, quit, or interrupted child receives `message` once as its next prompt and then continues where it left off; a completed or failed child receives `message` as one fresh prompt. Without `message`, every resumable child, including a completed or failed one, is asked to continue where it left off. Children cancelled for good (owner or batch cancellation, or the removed `kill` action), children whose workflow stage ended (the stage finished, or its run ended or was cancelled; this covers all of that stage's children, including ones you paused or quit), and children reported gone after a restart cannot be resumed: `resume` returns an error that says why, and follow-up work requires a fresh launch with explicit context. A parallel child waiting for a reply is not terminal and continues in its original execution. Parent cancellation of a still-running child uses the interrupted/abort state: receipts and progress present it as cancelled rather than failed, persisted metadata keeps the abort cause, and bounded partial findings remain available. Migrate old subagent calls from `action: "kill"` or `action: "interrupt"` to `action: "quit"`; the old actions are rejected with `The subagent action "kill" was removed. Use { action: "quit", id } to stop a child gracefully; it stays resumable with { action: "resume", id, message? }.` (naming the action that was used). Host interrupt APIs are unchanged.
576
574
 
577
575
  ## Worktree isolation
578
576
 
@@ -606,7 +604,7 @@ After a worktree parallel step reaches a terminal result, per-agent diff stats a
606
604
 
607
605
  Atomic subagents read optional JSON config from `~/.atomic/agent/extensions/subagent/config.json` and still check the legacy `~/.pi/agent/extensions/subagent/config.json` path for compatibility.
608
606
 
609
- Subagent configuration controls discovery, parallel limits, session storage, control notices, and intercom delivery. Foreground/background observation is selected per call through `wait`; it is not a global execution-mode toggle.
607
+ Subagent configuration controls discovery, parallel limits, session storage, control notices, and intercom delivery. Every launch runs in the background; `action: "wait"` waits for one when its result is needed.
610
608
 
611
609
  ### `parallel`
612
610
 
@@ -705,7 +703,7 @@ Session files are stored under a per-run session directory. With `context: "fork
705
703
 
706
704
  Owner-bound completions notify the originating session while its admission boundary remains open. Closing a workflow stage cancels its running children and suppresses late completion delivery; unrelated stages remain live. Visible completions use an unshaded notice line with a status glyph and the agent's task title, followed by the first line of its retained result or error. Ctrl+O expands the full retained result, up to 8,000 characters, and `/tasks` opens retained inspection. Completion notices keep model and reasoning metadata in their saved details without displaying a model line. Receipt identities persist in session history for retry without duplicate delivery or execution. Integrations without a task owner retain their existing result and Intercom paths.
707
705
 
708
- Foreground runs persist their session and user-facing artifacts beside the parent session:
706
+ Subagent runs persist their session and user-facing artifacts beside the parent session:
709
707
 
710
708
  ```text
711
709
  {parent-session-dir}/subagent-artifacts/
@@ -732,9 +730,9 @@ For existing subagent integrations and agent definitions:
732
730
 
733
731
  ## Live progress
734
732
 
735
- Foreground runs show compact live progress for single and parallel modes: current tool, recent output, token counts, duration, activity freshness, current-tool duration, and artifact paths when available.
733
+ Subagent runs show compact live progress for single and parallel modes: current tool, recent output, token counts, duration, activity freshness, current-tool duration, and artifact paths when available.
736
734
 
737
- File-based tracking and returned telemetry are separate. On a single-agent call, `progress: true` creates a run-scoped `progress.md` under isolated subagent artifact storage and asks the child to maintain it without writing `progress.md` into the child working directory. `progress: false` disables an agent's `defaultProgress`. Parallel tasks with `progress` enabled share one run-scoped `progress.md` in the same artifact storage, never in a task's working directory or the project. `includeProgress: true` only adds detailed runtime progress data to the final foreground tool result; it does not enable the file.
735
+ File-based tracking and returned telemetry are separate. On a single-agent call, `progress: true` creates a run-scoped `progress.md` under isolated subagent artifact storage and asks the child to maintain it without writing `progress.md` into the child working directory. `progress: false` disables an agent's `defaultProgress`. Parallel tasks with `progress` enabled share one run-scoped `progress.md` in the same artifact storage, never in a task's working directory or the project. `includeProgress: true` only adds detailed runtime progress data to the final tool result of a run its caller waits for; it does not enable the file.
738
736
 
739
737
  Press `CTRL+O` to expand the full streaming view with complete output per step.
740
738
 
@@ -761,7 +759,7 @@ Completion and intercom events:
761
759
  - `subagent:control-intercom`
762
760
  - `subagent:result-intercom`
763
761
 
764
- Foreground status/control events are surfaced as visible parent notices, and typed terminal records carry the canonical path, status, cause, and session statistics. With `pi-intercom`, needs-attention notices and grouped parent-side subagent result deliveries can reach the orchestrator over intercom.
762
+ Status/control events are surfaced as visible parent notices, and typed terminal records carry the canonical path, status, cause, and session statistics. With `pi-intercom`, needs-attention notices and grouped parent-side subagent result deliveries can reach the orchestrator over intercom.
765
763
 
766
764
  ## Prompt-template integration
767
765
 
@@ -19,7 +19,7 @@ Treat an approved handoff or execution plan as the contract. Inspect inherited c
19
19
 
20
20
  ## Decision and escalation contract
21
21
 
22
- Do not silently make a new product, architecture, or scope decision. When implementation reveals an unapproved decision required to continue safely, use the live coordination route supplied at runtime. Use `contact_supervisor` with `reason: "need_decision"`; a claimed request ends this child and gives the supervisor a fresh-subagent handoff, so do not wait for a reply in this run. Use `reason: "progress_update"` only for a concise, non-blocking update when helpful or explicitly requested. Fall back to `intercom` for the supervisor only when `contact_supervisor` is unavailable.
22
+ Do not silently make a new product, architecture, or scope decision. When implementation reveals an unapproved decision required to continue safely, use the live coordination route supplied at runtime. Use `contact_supervisor` with `reason: "need_decision"` and follow its result: the supervisor's reply lets this child continue, and if the result instead ends this child with a fresh-subagent handoff, do not wait for a reply in this run. Use `reason: "progress_update"` only for a concise, non-blocking update when helpful or explicitly requested. Fall back to `intercom` for the supervisor only when `contact_supervisor` is unavailable.
23
23
 
24
24
  Peers are a different route. Sibling agents launched with you share your Intercom group; `intercom({ action: "list" })` shows them. There are no limits on communication between agents; it is encouraged whenever you need to. Use ordinary `intercom` `send`/`ask` with peers proactively to divide file ownership, serialize a shared suite or build, pass on a reproduction or file location, or challenge a finding with evidence. Peer exchanges never settle scope, product, or architecture questions.
25
25
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/subagents",
3
- "version": "0.9.89-alpha.2",
3
+ "version": "0.9.90-alpha.1",
4
4
  "private": true,
5
5
  "description": "Atomic extension for delegating tasks to subagents with parallel execution. Fork of: https://github.com/nicobailon/pi-subagents",
6
6
  "contributors": [
@@ -9,9 +9,9 @@ Classify the report as a bug or enhancement. Ask an ordinary question if the kin
9
9
 
10
10
  ## Investigate bugs only
11
11
 
12
- For a bug, delegate exactly once to the bundled `debugger` subagent using `agent: "debugger"`, `context: "fresh"` and `wait: { kind: "foreground" }`. Omit model overrides and parallel tasks. Ask it to investigate, not implement a fix; report supported findings, unknowns and any created paths as paths only. Give it the report and relevant context, never credentials. Scrub any report text before passing it to the debugger using the script below.
12
+ For a bug, delegate exactly once to the bundled `debugger` subagent using `agent: "debugger"` and `context: "fresh"`, then wait for it with `subagent({ action: "wait", id })` using the task id the launch returned. Omit model overrides and parallel tasks. Ask it to investigate, not implement a fix; report supported findings, unknowns and any created paths as paths only. Give it the report and relevant context, never credentials. Scrub any report text before passing it to the debugger using the script below.
13
13
 
14
- If observation yields, wait for that same run, not another launch. Summarize supported findings and unknowns, and list reported created paths only. Do not read those files to include their contents. If the debugger is unavailable, fails or is inconclusive, say so and leave the cause unknown; do not retry or claim an investigation succeeded. Revisions do not launch another debugger.
14
+ If the wait ends before the debugger finishes, wait for that same run again, not another launch. Summarize supported findings and unknowns, and list reported created paths only. Do not read those files to include their contents. If the debugger is unavailable, fails or is inconclusive, say so and leave the cause unknown; do not retry or claim an investigation succeeded. Revisions do not launch another debugger.
15
15
 
16
16
  For an enhancement, never launch a subagent.
17
17
 
@@ -21,7 +21,7 @@ Inspect the task, languages, existing config, scripts, lockfiles and baseline fi
21
21
 
22
22
  ## Installation when permitted
23
23
 
24
- The documented macOS/Linux installer is `curl https://qlty.sh | sh`. Inspect installer and platform support before executing downloaded code. The default binary location is `~/.qlty/bin`; check that location before reinstalling and add it to this shell's PATH if appropriate. `QLTY_NO_MODIFY_PATH=1` prevents shell-profile edits; `QLTY_INSTALL_BIN_PATH` chooses another installation directory. Windows support varies by release; verify current support rather than assuming POSIX commands work there.
24
+ The documented macOS/Linux installer is `curl https://qlty.sh | sh`. Inspect installer and platform support before executing downloaded code. To verify a release before installing it, follow the integrity verification steps in the [quickstart](references/quickstart.md#integrity-verification): they need `gh` 2.67.0 or later, signed in, because older versions can report success when no matching attestation is found (CVE-2025-25204). The default binary location is `~/.qlty/bin`; check that location before reinstalling and add it to this shell's PATH if appropriate. `QLTY_NO_MODIFY_PATH=1` prevents shell-profile edits; `QLTY_INSTALL_BIN_PATH` chooses another installation directory. Windows support varies by release; verify current support rather than assuming POSIX commands work there.
25
25
 
26
26
  Online, start with <https://docs.qlty.sh/llms.txt> and fetch relevant command/plugin documentation. Offline, use bundled references instead of attempting the network. Never invent plugin versions or flags.
27
27
 
@@ -36,7 +36,7 @@ qlty metrics --functions path/to/file.ts
36
36
  qlty smells path/to/file.ts
37
37
  ```
38
38
 
39
- Choose the relevant subset. For authorized formatting/fixes, use scoped `qlty fmt` or `qlty check --fix --level=low`, inspect the diff and rerun checks. Do not use `--all` formatting by habit or rewrite files during read-only review. Avoid unsafe auto-fixes and broad churn. `--level` controls displayed severity; `--fail-level` controls failure severity. Do not suppress errors to manufacture a green result.
39
+ Choose the relevant subset. `--filter` and `--skip` on `check` and `fmt` take plugin names or, for `check`, `plugin:rule` entries to narrow a run. For authorized formatting/fixes, use scoped `qlty fmt` or `qlty check --fix --level=low`, inspect the diff and rerun checks. Do not use `--all` formatting by habit or rewrite files during read-only review. Avoid unsafe auto-fixes and broad churn. `--level` controls displayed severity; `--fail-level` controls failure severity. Do not suppress errors to manufacture a green result.
40
40
 
41
41
  Report four distinct facts: configuration prepared/changed, checks passed with command/output, failed checks, and checks not run with reasons. A parsed TOML file is not lint, security, metrics or full schema evidence. A clean run with no applicable plugins is not full quality coverage.
42
42
 
@@ -1,14 +1,14 @@
1
1
  # Qlty CLI Command Reference
2
2
 
3
- > **Sources** (all retrieved 2026-08-26), one section per upstream page:
3
+ > **Sources** (all retrieved 2026-11-18, documenting Qlty CLI v0.671.0), one section per upstream page:
4
4
  > <https://docs.qlty.sh/cli/commands/init.md>, <https://docs.qlty.sh/cli/commands/check.md>,
5
5
  > <https://docs.qlty.sh/cli/commands/fmt.md>, <https://docs.qlty.sh/cli/commands/metrics.md>,
6
6
  > <https://docs.qlty.sh/cli/commands/smells.md>, <https://docs.qlty.sh/cli/commands/plugins-list.md>,
7
7
  > <https://docs.qlty.sh/cli/commands/plugins-enable.md>.
8
8
  > Prose, flag descriptions, and examples are copied from those pages unchanged; the MDX
9
- > `<AccordionGroup>` / `<Accordion>` option lists are rendered as Markdown bullet lists and the
10
- > per-example captions are rendered as code-block comments. `initializd` is upstream's typo,
11
- > preserved. For any flag not listed here, fetch the live page via <https://docs.qlty.sh/llms.txt>.
9
+ > `<AccordionGroup>` / `<Accordion>` option lists are rendered as Markdown bullet lists (an option's
10
+ > own examples as a nested text block) and the per-example captions are rendered as code-block
11
+ > comments. For any flag not listed here, fetch the live page via <https://docs.qlty.sh/llms.txt>.
12
12
 
13
13
  ---
14
14
 
@@ -68,16 +68,16 @@ Installs plugins and their required runtimes as needed before analyzing.
68
68
 
69
69
  By default, issues are cached locally to speed up subsequent runs.
70
70
 
71
- Must be run within a Git repository with Qlty initializd.
71
+ Must be run within a Git repository with Qlty initialized.
72
72
 
73
73
  ### Arguments
74
74
 
75
75
  * `[PATHS]...` — Files to analyze
76
76
  * `-a, --all` — Check all files, not just changed
77
- * `--fix` — Apply all auto-fix suggestions automatically. When combined with `--ai`, AI-generated fixes are applied without prompting for review. See [AI Autofixes Security Considerations](https://docs.qlty.sh/cloud/ai-autofixes.md#security-considerations) for important guidance when using this flag.
77
+ * `--fix` — Apply all auto-fix suggestions. When combined with `--ai`, AI-generated fixes are applied without prompting for review. See [AI Autofixes Security Considerations](https://docs.qlty.sh/cloud/ai-autofixes.md#security-considerations) for important guidance when using this flag.
78
78
  * `--no-fix` — Do not apply auto-fix suggestions
79
- * `--ai` — Generate AI-powered fixes using a large language model (requires Qlty Cloud authentication). AI fixes should be reviewed before applying. Using `--ai` with `--fix` applies AI suggestions automatically without review—see [Security Considerations](https://docs.qlty.sh/cloud/ai-autofixes.md#security-considerations).
80
- * `--unsafe` — Allow fixes for rules that may produce incorrect results and require careful human review. By default, fixes for certain rules are blocked because they are more likely to need manual judgment. This flag removes those restrictions.
79
+ * `--ai` — Generate AI fixes (requires Qlty Cloud authentication). The fixes are generated by a large language model and require Qlty Cloud authentication. AI fixes should be reviewed before applying. Using `--ai` with `--fix` applies AI suggestions automatically without review—see [Security Considerations](https://docs.qlty.sh/cloud/ai-autofixes.md#security-considerations).
80
+ * `--unsafe` — Allow fixes for rules that may produce incorrect results and require careful human review. These are fixes for rules that may produce incorrect results and require careful human review. By default, fixes for certain rules are blocked because they are more likely to need manual judgment. This flag removes those restrictions.
81
81
  * `--no-formatters` — Disable formatter checks
82
82
  * `--no-progress` — Disable progress bar
83
83
  * `--no-fail` — Exit successfully regardless of what issues are found
@@ -85,7 +85,26 @@ Must be run within a Git repository with Qlty initializd.
85
85
  * `--sample <SAMPLE>` — Sample results from a number of files for each linter
86
86
  * `--level <LEVEL>` — Minimum level of issues to show [default: note] [possible values: note, fmt, low, medium, high]
87
87
  * `-j, --jobs <JOBS>` — Maximum number of concurrent jobs
88
- * `--filter <FILTER>` — Filter by plugin or check
88
+ * `--filter <FILTER>` — Only run these plugins, or only report these rules (comma-separated). Each entry is a plugin name (`eslint`) or a plugin and rule joined by a colon (`eslint:no-unused-vars`). A plugin name runs only that plugin. A rule runs its plugin but reports only issues for that rule. Use with --skip to remove plugins or rules from what --filter selects.
89
+ ```text
90
+ --filter eslint Run only eslint
91
+ --filter eslint,rubocop Run only eslint and rubocop
92
+ --filter eslint:no-unused-vars Report only eslint's no-unused-vars issues
93
+ --filter eslint,rubocop:Style/StringLiterals
94
+ Report all eslint issues and only
95
+ rubocop's Style/StringLiterals issues
96
+ ```
97
+ * `--skip <SKIP>` — Don't run these plugins, or don't report these rules (comma-separated). Each entry is a plugin name (`rubocop`) or a plugin and rule joined by a colon (`rubocop:Style/StringLiterals`). A plugin name stops that plugin from running. A rule still runs its plugin but drops issues for that rule. With --filter, --filter picks what runs first and --skip removes from it. When both match, --skip wins. Every plugin named must be enabled, and skipping every plugin is an error.
98
+ ```text
99
+ --skip rubocop Run every plugin except rubocop
100
+ --skip rubocop,shellcheck Run every plugin except rubocop and shellcheck
101
+ --skip rubocop:Style/StringLiterals Run every plugin; drop that one rubocop rule
102
+ --filter eslint,rubocop --skip rubocop
103
+ Run only eslint
104
+ --filter eslint --skip eslint:no-console
105
+ Run only eslint; drop its no-console issues
106
+ ```
107
+ * `--trigger <TRIGGER>` — Run as this trigger, so only plugins whose `triggers` include it run. Each plugin's `triggers` list in qlty.toml names the triggers it runs on. A plugin with no `triggers` list runs on every trigger. Qlty's git hooks pass `pre-commit` to `qlty fmt` and `pre-push` to `qlty check`. For example, `--trigger pre-push` runs only plugins that run on pre-push. [default: manual] [possible values: manual, ide, agent, pre-commit, pre-push, build]
89
108
  * `-v, --verbose...` — Print verbose output
90
109
  * `--summary` — Print a summary of issues
91
110
  * `--upstream <UPSTREAM>` — Upstream base ref to compare against
@@ -93,6 +112,8 @@ Must be run within a Git repository with Qlty initializd.
93
112
  * `--print-errors` — Print errors to stderr
94
113
  * `--fail-level <FAIL_LEVEL>` — Minimum level of issues to fail on [default: fmt] [possible values: note, fmt, low, medium, high]
95
114
  * `--sarif` — SARIF output
115
+ * `--install-only` — Install tools only, do not run checks
116
+ * `--skip-source-fetch` — Skip fetching sources before running checks
96
117
 
97
118
  ### Examples
98
119
 
@@ -124,7 +145,7 @@ By default, only changed files are auto-formatted. Use `--all` or specify paths
124
145
 
125
146
  Installs plugins and their required runtimes as needed before analyzing.
126
147
 
127
- Must be run within a Git repository with Qlty initializd.
148
+ Must be run within a Git repository with Qlty initialized.
128
149
 
129
150
  ### Arguments
130
151
 
@@ -134,12 +155,23 @@ Must be run within a Git repository with Qlty initializd.
134
155
  * `--no-error` — Exit successfully regardless of linter errors
135
156
  * `--sample <SAMPLE>` — Sample results from a number of files for each linter
136
157
  * `--jobs <JOBS>` — Maximum number of concurrent jobs
137
- * `--filter <FILTER>` — Filter by plugin or check
138
- * `--trigger <TRIGGER>` — [default: manual] [possible values: manual, pre-commit, pre-push, build]
158
+ * `--filter <FILTER>` — Only run these formatter plugins (comma-separated). Use with --skip to remove plugins from what --filter selects.
159
+ ```text
160
+ --filter prettier Run only prettier
161
+ --filter prettier,black Run only prettier and black
162
+ ```
163
+ * `--skip <SKIP>` — Don't run these formatter plugins (comma-separated). With --filter, --filter picks what runs first and --skip removes from it. When both match, --skip wins. Every plugin named must be enabled, and skipping every plugin is an error.
164
+ ```text
165
+ --skip prettier Run every formatter except prettier
166
+ --skip prettier,black Run every formatter except prettier and black
167
+ --filter prettier,black --skip black Run only prettier
168
+ ```
169
+ * `--trigger <TRIGGER>` — Run as this trigger, so only formatters whose `triggers` include it run. Each plugin's `triggers` list in qlty.toml names the triggers it runs on. A plugin with no `triggers` list runs on every trigger. Qlty's git hooks pass `pre-commit` to `qlty fmt` and `pre-push` to `qlty check`. For example, `--trigger pre-commit` runs only formatters that run on pre-commit. [default: manual] [possible values: manual, ide, agent, pre-commit, pre-push, build]
139
170
  * `-v, --verbose...` — Print verbose output
140
171
  * `--upstream <UPSTREAM>` — Upstream base ref to compare against
141
172
  * `--index` — Format files in the Git index
142
173
  * `--index-file <INDEX_FILE>` — Format files in the specified Git index file
174
+ * `--skip-source-fetch` — Skip fetching sources before formatting
143
175
 
144
176
  ### Examples
145
177
 
@@ -213,6 +245,7 @@ Detect issues like duplication (copy and pasted code), high complexity, deeply n
213
245
  * `--no-snippets` — Don't show code snippets
214
246
  * `--upstream <UPSTREAM>` — Upstream base ref to compare against
215
247
  * `--quiet` — Only show results
248
+ * `--sarif` — SARIF output
216
249
 
217
250
  ### Examples
218
251