@bastani/atomic 0.9.38-alpha.6 → 0.9.38-alpha.8

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 (256) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/builtin/intercom/package.json +2 -2
  3. package/dist/builtin/mcp/package.json +1 -1
  4. package/dist/builtin/subagents/CHANGELOG.md +12 -0
  5. package/dist/builtin/subagents/README.md +9 -4
  6. package/dist/builtin/subagents/package.json +3 -3
  7. package/dist/builtin/subagents/src/extension/index.bundle.mjs +143 -134
  8. package/dist/builtin/web-access/package.json +2 -2
  9. package/dist/builtin/workflows/CHANGELOG.md +25 -0
  10. package/dist/builtin/workflows/builtin/{chunk-q7dx7kh7.js → chunk-85mx6wcf.js} +6 -6
  11. package/dist/builtin/workflows/builtin/{chunk-neszcj53.js → chunk-8kkv04hz.js} +15 -15
  12. package/dist/builtin/workflows/builtin/{chunk-g1a4hw0s.js → chunk-8x61e0s7.js} +13 -25
  13. package/dist/builtin/workflows/builtin/{chunk-2qgfyvzs.js → chunk-y45tkftg.js} +7 -7
  14. package/dist/builtin/workflows/builtin/goal.js +2 -2
  15. package/dist/builtin/workflows/builtin/index.js +4 -4
  16. package/dist/builtin/workflows/builtin/open-claude-design.js +1 -1
  17. package/dist/builtin/workflows/builtin/ralph.js +2 -2
  18. package/dist/builtin/workflows/package.json +2 -2
  19. package/dist/builtin/workflows/src/durable/journal/internal.d.ts +0 -19
  20. package/dist/builtin/workflows/src/durable/journal/legacy-journal-tables.d.ts +42 -0
  21. package/dist/builtin/workflows/src/durable/journal/memory-run-journal.d.ts +3 -11
  22. package/dist/builtin/workflows/src/durable/journal/resolution.d.ts +15 -9
  23. package/dist/builtin/workflows/src/durable/journal/sql-run-journal.d.ts +3 -0
  24. package/dist/builtin/workflows/src/durable/journal/types.d.ts +3 -93
  25. package/dist/builtin/workflows/src/extension/index.bundle.mjs +1137 -748
  26. package/dist/builtin/workflows/src/index.js +709 -403
  27. package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +1 -1
  28. package/dist/cli/args.d.ts +2 -0
  29. package/dist/cli/args.d.ts.map +1 -1
  30. package/dist/cli/args.js +29 -3
  31. package/dist/cli/args.js.map +1 -1
  32. package/dist/cli/session-picker.d.ts +1 -1
  33. package/dist/cli/session-picker.d.ts.map +1 -1
  34. package/dist/cli/session-picker.js +2 -2
  35. package/dist/cli/session-picker.js.map +1 -1
  36. package/dist/core/agent-session-events.d.ts.map +1 -1
  37. package/dist/core/agent-session-events.js +6 -1
  38. package/dist/core/agent-session-events.js.map +1 -1
  39. package/dist/core/agent-session-runtime.d.ts +4 -0
  40. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  41. package/dist/core/agent-session-runtime.js +44 -4
  42. package/dist/core/agent-session-runtime.js.map +1 -1
  43. package/dist/core/agent-session-services.d.ts +1 -1
  44. package/dist/core/agent-session-services.d.ts.map +1 -1
  45. package/dist/core/agent-session-services.js +2 -2
  46. package/dist/core/agent-session-services.js.map +1 -1
  47. package/dist/core/compaction/branch-summarization.d.ts +1 -4
  48. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  49. package/dist/core/compaction/branch-summarization.js +0 -4
  50. package/dist/core/compaction/branch-summarization.js.map +1 -1
  51. package/dist/core/compaction/pi-summary-fallback.d.ts.map +1 -1
  52. package/dist/core/compaction/pi-summary-fallback.js +1 -3
  53. package/dist/core/compaction/pi-summary-fallback.js.map +1 -1
  54. package/dist/core/extensions/loader-api.js +1 -1
  55. package/dist/core/extensions/loader-api.js.map +1 -1
  56. package/dist/core/extensions/runner-context.d.ts.map +1 -1
  57. package/dist/core/extensions/runner-context.js +7 -1
  58. package/dist/core/extensions/runner-context.js.map +1 -1
  59. package/dist/core/fast-model-routing.js +1 -1
  60. package/dist/core/fast-model-routing.js.map +1 -1
  61. package/dist/core/model-config.d.ts +765 -0
  62. package/dist/core/model-config.d.ts.map +1 -1
  63. package/dist/core/model-config.js +46 -24
  64. package/dist/core/model-config.js.map +1 -1
  65. package/dist/core/model-resolver-defaults.js +1 -1
  66. package/dist/core/model-resolver-defaults.js.map +1 -1
  67. package/dist/core/resource-loader-reload.js +1 -1
  68. package/dist/core/resource-loader-reload.js.map +1 -1
  69. package/dist/core/resource-loader-types.d.ts +1 -1
  70. package/dist/core/resource-loader-types.d.ts.map +1 -1
  71. package/dist/core/resource-loader-types.js.map +1 -1
  72. package/dist/core/sdk-types.d.ts +4 -0
  73. package/dist/core/sdk-types.d.ts.map +1 -1
  74. package/dist/core/sdk-types.js.map +1 -1
  75. package/dist/core/sdk.d.ts +1 -1
  76. package/dist/core/sdk.d.ts.map +1 -1
  77. package/dist/core/sdk.js +48 -19
  78. package/dist/core/sdk.js.map +1 -1
  79. package/dist/core/session-lifecycle-work.d.ts +3 -0
  80. package/dist/core/session-lifecycle-work.d.ts.map +1 -1
  81. package/dist/core/session-lifecycle-work.js +2 -0
  82. package/dist/core/session-lifecycle-work.js.map +1 -1
  83. package/dist/core/session-manager-core.d.ts +7 -4
  84. package/dist/core/session-manager-core.d.ts.map +1 -1
  85. package/dist/core/session-manager-core.js +149 -41
  86. package/dist/core/session-manager-core.js.map +1 -1
  87. package/dist/core/session-manager-list.d.ts.map +1 -1
  88. package/dist/core/session-manager-list.js +7 -7
  89. package/dist/core/session-manager-list.js.map +1 -1
  90. package/dist/core/session-manager-storage.d.ts +2 -1
  91. package/dist/core/session-manager-storage.d.ts.map +1 -1
  92. package/dist/core/session-manager-storage.js +24 -9
  93. package/dist/core/session-manager-storage.js.map +1 -1
  94. package/dist/core/session-manager-types.d.ts +1 -1
  95. package/dist/core/session-manager-types.d.ts.map +1 -1
  96. package/dist/core/session-manager-types.js.map +1 -1
  97. package/dist/core/session-manager.d.ts +1 -1
  98. package/dist/core/session-manager.d.ts.map +1 -1
  99. package/dist/core/session-manager.js +1 -1
  100. package/dist/core/session-manager.js.map +1 -1
  101. package/dist/core/session-resume-args.d.ts +4 -0
  102. package/dist/core/session-resume-args.d.ts.map +1 -0
  103. package/dist/core/session-resume-args.js +9 -0
  104. package/dist/core/session-resume-args.js.map +1 -0
  105. package/dist/core/session-storage.d.ts +26 -0
  106. package/dist/core/session-storage.d.ts.map +1 -0
  107. package/dist/core/session-storage.js +171 -0
  108. package/dist/core/session-storage.js.map +1 -0
  109. package/dist/core/session-store-list.d.ts +4 -0
  110. package/dist/core/session-store-list.d.ts.map +1 -0
  111. package/dist/core/session-store-list.js +28 -0
  112. package/dist/core/session-store-list.js.map +1 -0
  113. package/dist/core/settings-manager-basic-accessors.d.ts +0 -1
  114. package/dist/core/settings-manager-basic-accessors.d.ts.map +1 -1
  115. package/dist/core/settings-manager-basic-accessors.js +0 -5
  116. package/dist/core/settings-manager-basic-accessors.js.map +1 -1
  117. package/dist/core/settings-merge.d.ts.map +1 -1
  118. package/dist/core/settings-merge.js +5 -0
  119. package/dist/core/settings-merge.js.map +1 -1
  120. package/dist/core/settings-schema.d.ts +74 -3
  121. package/dist/core/settings-schema.d.ts.map +1 -1
  122. package/dist/core/settings-schema.js +28 -14
  123. package/dist/core/settings-schema.js.map +1 -1
  124. package/dist/core/storage/errors.d.ts +1 -0
  125. package/dist/core/storage/errors.d.ts.map +1 -1
  126. package/dist/core/storage/errors.js.map +1 -1
  127. package/dist/core/storage/index.d.ts +4 -0
  128. package/dist/core/storage/index.d.ts.map +1 -1
  129. package/dist/core/storage/index.js +3 -0
  130. package/dist/core/storage/index.js.map +1 -1
  131. package/dist/core/storage/provider.d.ts +58 -0
  132. package/dist/core/storage/provider.d.ts.map +1 -0
  133. package/dist/core/storage/provider.js +243 -0
  134. package/dist/core/storage/provider.js.map +1 -0
  135. package/dist/core/storage/run-journal.d.ts +93 -0
  136. package/dist/core/storage/run-journal.d.ts.map +1 -0
  137. package/dist/core/storage/run-journal.js +15 -0
  138. package/dist/core/storage/run-journal.js.map +1 -0
  139. package/dist/core/storage/selection.d.ts +16 -0
  140. package/dist/core/storage/selection.d.ts.map +1 -0
  141. package/dist/core/storage/selection.js +87 -0
  142. package/dist/core/storage/selection.js.map +1 -0
  143. package/dist/core/storage/session/jsonl-session-store.d.ts +9 -1
  144. package/dist/core/storage/session/jsonl-session-store.d.ts.map +1 -1
  145. package/dist/core/storage/session/jsonl-session-store.js +82 -44
  146. package/dist/core/storage/session/jsonl-session-store.js.map +1 -1
  147. package/dist/core/storage/session/legacy-format.d.ts +20 -0
  148. package/dist/core/storage/session/legacy-format.d.ts.map +1 -0
  149. package/dist/core/storage/session/legacy-format.js +89 -0
  150. package/dist/core/storage/session/legacy-format.js.map +1 -0
  151. package/dist/core/storage/session/legacy-session-store.d.ts +60 -0
  152. package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -0
  153. package/dist/core/storage/session/legacy-session-store.js +225 -0
  154. package/dist/core/storage/session/legacy-session-store.js.map +1 -0
  155. package/dist/core/storage/session/memory-session-store.d.ts +3 -1
  156. package/dist/core/storage/session/memory-session-store.d.ts.map +1 -1
  157. package/dist/core/storage/session/memory-session-store.js +9 -2
  158. package/dist/core/storage/session/memory-session-store.js.map +1 -1
  159. package/dist/core/storage/session/sql-session-store.d.ts +4 -1
  160. package/dist/core/storage/session/sql-session-store.d.ts.map +1 -1
  161. package/dist/core/storage/session/sql-session-store.js +25 -6
  162. package/dist/core/storage/session/sql-session-store.js.map +1 -1
  163. package/dist/core/storage/session/types.d.ts +4 -0
  164. package/dist/core/storage/session/types.d.ts.map +1 -1
  165. package/dist/core/storage/session/types.js.map +1 -1
  166. package/dist/core/tools/read-url.d.ts.map +1 -1
  167. package/dist/core/tools/read-url.js +6 -1
  168. package/dist/core/tools/read-url.js.map +1 -1
  169. package/dist/extensions/codemode/execute.d.ts.map +1 -1
  170. package/dist/extensions/codemode/execute.js +13 -0
  171. package/dist/extensions/codemode/execute.js.map +1 -1
  172. package/dist/extensions/herdr/index.d.ts.map +1 -1
  173. package/dist/extensions/herdr/index.js +5 -3
  174. package/dist/extensions/herdr/index.js.map +1 -1
  175. package/dist/index.d.ts +3 -1
  176. package/dist/index.d.ts.map +1 -1
  177. package/dist/index.js +3 -1
  178. package/dist/index.js.map +1 -1
  179. package/dist/main-session.d.ts +5 -1
  180. package/dist/main-session.d.ts.map +1 -1
  181. package/dist/main-session.js +106 -45
  182. package/dist/main-session.js.map +1 -1
  183. package/dist/main.d.ts.map +1 -1
  184. package/dist/main.js +49 -15
  185. package/dist/main.js.map +1 -1
  186. package/dist/modes/interactive/components/chat-session-host.d.ts +3 -1
  187. package/dist/modes/interactive/components/chat-session-host.d.ts.map +1 -1
  188. package/dist/modes/interactive/components/chat-session-host.js +15 -7
  189. package/dist/modes/interactive/components/chat-session-host.js.map +1 -1
  190. package/dist/modes/interactive/components/session-selector-delete.d.ts +1 -1
  191. package/dist/modes/interactive/components/session-selector-delete.d.ts.map +1 -1
  192. package/dist/modes/interactive/components/session-selector-delete.js.map +1 -1
  193. package/dist/modes/interactive/components/session-selector-list.d.ts +4 -4
  194. package/dist/modes/interactive/components/session-selector-list.d.ts.map +1 -1
  195. package/dist/modes/interactive/components/session-selector-list.js +13 -12
  196. package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
  197. package/dist/modes/interactive/components/session-selector.d.ts +1 -0
  198. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  199. package/dist/modes/interactive/components/session-selector.js +16 -5
  200. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  201. package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
  202. package/dist/modes/interactive/interactive-mode-helpers.js +6 -2
  203. package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
  204. package/dist/modes/interactive/interactive-session-routing.js +19 -7
  205. package/dist/modes/interactive/interactive-session-routing.js.map +1 -1
  206. package/dist/modes/interactive/interactive-slash-commands.js +3 -1
  207. package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
  208. package/dist/modes/interactive-engine/create-isolated-runtime.d.ts.map +1 -1
  209. package/dist/modes/interactive-engine/create-isolated-runtime.js +8 -1
  210. package/dist/modes/interactive-engine/create-isolated-runtime.js.map +1 -1
  211. package/dist/modes/interactive-engine/engine-args.d.ts.map +1 -1
  212. package/dist/modes/interactive-engine/engine-args.js +5 -1
  213. package/dist/modes/interactive-engine/engine-args.js.map +1 -1
  214. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  215. package/dist/modes/interactive-engine/isolated-runtime.js +21 -15
  216. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  217. package/dist/modes/rpc/rpc-client-process.d.ts.map +1 -1
  218. package/dist/modes/rpc/rpc-client-process.js +3 -1
  219. package/dist/modes/rpc/rpc-client-process.js.map +1 -1
  220. package/dist/modes/rpc/rpc-command-handler.js +1 -1
  221. package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
  222. package/dist/modes/rpc/rpc-terminal-drain.d.ts.map +1 -1
  223. package/dist/modes/rpc/rpc-terminal-drain.js +11 -2
  224. package/dist/modes/rpc/rpc-terminal-drain.js.map +1 -1
  225. package/dist/utils/canonical-path.d.ts +5 -0
  226. package/dist/utils/canonical-path.d.ts.map +1 -0
  227. package/dist/utils/canonical-path.js +26 -0
  228. package/dist/utils/canonical-path.js.map +1 -0
  229. package/dist/utils/paths.d.ts +1 -7
  230. package/dist/utils/paths.d.ts.map +1 -1
  231. package/dist/utils/paths.js +1 -15
  232. package/dist/utils/paths.js.map +1 -1
  233. package/docs/codemode.md +2 -0
  234. package/docs/compaction.md +2 -2
  235. package/docs/docs.json +1 -0
  236. package/docs/environment-variables.md +6 -2
  237. package/docs/getting-started/installation.md +1 -1
  238. package/docs/models/reference.md +2 -0
  239. package/docs/models-configuration.md +206 -0
  240. package/docs/models.md +11 -1
  241. package/docs/providers.md +2 -2
  242. package/docs/reference/cli.md +4 -0
  243. package/docs/sdk/web-server.md +3 -3
  244. package/docs/sdk.md +40 -3
  245. package/docs/session-format.md +30 -25
  246. package/docs/sessions.md +43 -17
  247. package/docs/settings.md +31 -9
  248. package/docs/storage.md +85 -2
  249. package/docs/subagents.md +19 -6
  250. package/docs/workflows/api-reference.md +23 -15
  251. package/docs/workflows/operations.md +3 -3
  252. package/docs/workflows/reliable-design.md +16 -16
  253. package/npm-shrinkwrap.json +53 -53
  254. package/package.json +7 -6
  255. package/schemas/models.schema.json +62 -29
  256. package/schemas/settings.schema.json +136 -31
package/CHANGELOG.md CHANGED
@@ -2,6 +2,47 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.38-alpha.8] - 2026-10-17
6
+
7
+ ### Changed
8
+
9
+ - Subagent parallel task limits can now be raised above 50 with `parallel.maxTasks`. Configure `parallel.concurrency` and the new `parallel.runningCapacity` together to run more than four child turns per parent; defaults remain 50 tasks, concurrency 3, and running capacity 4.
10
+
11
+ ### Fixed
12
+
13
+ - Fixed sessions saved before the SQLite default disappearing from `/resume` and failing to open with `--continue`, `--session`, or `--fork`. With the default store, sessions in `~/.atomic/agent/sessions`, including workflow stage sessions and early 0.9.38 alpha sessions that use a `timestamp` header, are listed alongside newer ones and copied into the database only when you open one, so startup does no extra work. Original files are left untouched, deleted sessions stay deleted, and explicitly selected stores do not show them.
14
+
15
+ ## [0.9.38-alpha.7] - 2026-10-17
16
+
17
+ ### Breaking Changes
18
+
19
+ - `RunOpts.journal.database` now takes an async `SqliteDatabase` facade, not a raw `node:sqlite` connection; use `wrapNodeSqliteDatabase` for an existing connection. Journal configuration failures now use `StorageConfigError` with `source`, `field`, and `reason` instead of `JournalConfigurationError`.
20
+ - Workflow stage forks now take `forkFromSessionId`, and stage resume, retained chat, and subagent forks resolve IDs within the selected session store. File paths are not session identities. Embedded chat hosts must use `await host.loadSession(store, sessionId)` instead of `loadSessionFile(path)`.
21
+ - Sessions now default to the local SQLite database shared with workflow runs, rather than JSONL files. JSONL must be selected explicitly. Removed the `sessionDir` setting without an alias; use `sessions.storage.dir` instead.
22
+
23
+ ### Added
24
+
25
+ - Added user-installed journal adapter modules, environment/file secret references, shared `storage` defaults, and `StorageProvider` for explicit session/journal opens with shared database lifetime. `RunOpts.journal.database` accepts an async SQLite facade; invalid selections raise `StorageConfigError` without falling back to memory.
26
+ - Added `sessions.storage` and SDK `sessionStore` to select SQLite, explicit JSONL or memory, a caller-owned database, or a user-installed adapter. Shared `storage` settings now configure sessions too; SDK, CLI and environment overrides take precedence without merging selections. Store-open failures raise typed errors rather than falling back to memory.
27
+ - Added `--session-store <path>` and `--session-prefix <prefix>` to select a SQLite session database from the CLI. SQLite resume hints and Herdr commands always include `--session-store` and include `--session-prefix` when non-default.
28
+ - Added a Models Configuration reference generated from the `models.json` schema, listing provider, model, model override, and compatibility fields ([#10790](https://github.com/earendil-works/pi/issues/10790)).
29
+
30
+ ### Changed
31
+
32
+ - Changed the default NVIDIA model to `nvidia/nemotron-3.5-super-vl-120b-a12b` ([#10910](https://github.com/earendil-works/pi/pull/10910) by [@cv](https://github.com/cv)).
33
+
34
+ ### Fixed
35
+
36
+ - Session shutdown and replacement now wait for already-admitted extension session entries to finish saving before releasing their resources.
37
+ - Storage providers now preserve domain-adapter prefixes, make returned stores safe to close repeatedly, and retain typed opening errors when cleanup also fails.
38
+ - Fixed sessions written before format 4 disappearing from `/resume` and failing to open with `--continue`, `--session`, or `--fork`. Older supported sessions now upgrade automatically when opened; listing leaves their files unchanged.
39
+ - Fixed session stores closing during conversation replacement or remaining open after CLI shutdown and failed startup. Project storage settings now take effect on first trust approval, JSONL resume commands retain their directory, and SQLite sessions keep full URL-read artifacts.
40
+ - Fixed stopping a codemode script or reaching its deadline waiting for a non-interruptible built-in to return in the standalone binary ([#10748](https://github.com/earendil-works/pi/issues/10748)).
41
+ - Fixed repeated codemode timeouts or aborts accumulating surviving workers. At most two codemode workers may be alive across all sessions, and a cancelled worker counts against that limit until it actually exits ([#10748](https://github.com/earendil-works/pi/issues/10748)).
42
+ - Fixed sessions in symlinked project directories, including macOS temporary directories, being omitted from session lookup or mistaken for sessions from another project.
43
+ - Fixed compaction fallback and branch summaries failing with "generation hit the token cap" when reasoning used most of a fixed output budget. The provider now sizes summary output, and `compaction.reserveTokens` only controls when automatic compaction starts ([#9512](https://github.com/earendil-works/pi/issues/9512), [#9075](https://github.com/earendil-works/pi/issues/9075)).
44
+ - Fixed `models.schema.json` missing descriptions for provider and model fields, so editors now show hints for them ([#10790](https://github.com/earendil-works/pi/issues/10790)).
45
+
5
46
  ## [0.9.38-alpha.6] - 2026-10-16
6
47
 
7
48
  ### Changed
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/intercom",
3
- "version": "0.9.38-alpha.6",
3
+ "version": "0.9.38-alpha.8",
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": [
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@bastani/atomic": "*",
47
- "@earendil-works/pi-tui": "^1.2.0",
47
+ "@earendil-works/pi-tui": "^1.3.0",
48
48
  "typebox": "*"
49
49
  },
50
50
  "peerDependenciesMeta": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/mcp",
3
- "version": "0.9.38-alpha.6",
3
+ "version": "0.9.38-alpha.8",
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,18 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.38-alpha.8] - 2026-10-17
6
+
7
+ ### Changed
8
+
9
+ - Subagent parallel task limits can now be raised above 50 with `parallel.maxTasks`. Configure `parallel.concurrency` and the new `parallel.runningCapacity` together to run more than four child turns per parent; defaults remain 50 tasks, concurrency 3, and running capacity 4.
10
+
11
+ ## [0.9.38-alpha.7] - 2026-10-17
12
+
13
+ ### Breaking Changes
14
+
15
+ - Forked context now uses the parent's session ID and selected session store, including stored empty IDs. Embedded runners pass a `sessionManager` instead of a `sessionFile` input. Token readers take a store and session ID and return a promise; filesystem paths no longer select a transcript.
16
+
5
17
  ## [0.9.29] - 2026-10-09
6
18
 
7
19
  ### Added
@@ -479,7 +479,7 @@ These are the parameters the LLM passes when it calls the `subagent` tool. Most
479
479
 
480
480
  If one assistant response emits several sibling execution-mode `subagent` calls, Atomic collects the synchronous burst before any child starts and runs it through one indexed parallel set. Each original tool call receives only its own children in source order, and its live result, progress, control, and artifact updates are projected to that same route without sibling data. The TUI redraws the shared run as one aggregate parallel widget rather than retaining one widget per original call. A solitary call keeps its original mode, sequential awaited calls stay independent, and management actions bypass collection. A call that arrives after a child has started still gets the existing in-progress rejection. Prefer one explicit `{ tasks: [...] }` call when you intend parallel work; burst collection handles model-emitted sibling calls.
481
481
 
482
- In a collected burst, a call's top-level `agent` task comes first, followed by its `tasks` array. Duplicates and array order are preserved, and `count` expands in place. The task cap applies after all calls are flattened and counts are expanded, with the same hard maximum of 50. Each call-level `cwd` selects that call's agent-discovery scope and child base directory. A task-level `cwd` stays relative to that base and affects child execution, not agent discovery. This per-origin rule applies only to collected sibling calls; an ordinary explicit `{ tasks: [...] }` call keeps one discovery scope from its top-level `cwd`. Per-call and per-task `group` values also remain attached to their children, and a task-level group wins.
482
+ In a collected burst, a call's top-level `agent` task comes first, followed by its `tasks` array. Duplicates and array order are preserved, and `count` expands in place. The configured `parallel.maxTasks` cap applies after all calls are flattened and counts are expanded. Each call-level `cwd` selects that call's agent-discovery scope and child base directory. A task-level `cwd` stays relative to that base and affects child execution, not agent discovery. This per-origin rule applies only to collected sibling calls; an ordinary explicit `{ tasks: [...] }` call keeps one discovery scope from its top-level `cwd`. Per-call and per-task `group` values also remain attached to their children, and a task-level group wins.
483
483
 
484
484
  For a collected `worktree: true` burst, every call-level `cwd` must resolve to the same path. That common path becomes the shared worktree root; differing origins reject the burst before launch, and any task-level `cwd` must still resolve to that root. Each projected caller result keeps shared worktree diff text and terminal control guidance while its child results and standard child-output sections remain route-local.
485
485
 
@@ -601,13 +601,18 @@ Subagent configuration controls discovery, parallel limits, session storage, con
601
601
  ```json
602
602
  {
603
603
  "parallel": {
604
- "maxTasks": 12,
605
- "concurrency": 6
604
+ "maxTasks": 100,
605
+ "concurrency": 100,
606
+ "runningCapacity": 100
606
607
  }
607
608
  }
608
609
  ```
609
610
 
610
- `maxTasks` defaults to `50`; `concurrency` defaults to `3`. `maxTasks` can set a lower per-call task limit but cannot exceed the hard maximum of `50`. Per-call `concurrency` takes precedence.
611
+ - `maxTasks` defaults to `50` and limits tasks per parallel set after `count` expansion. There is no hard upper cap.
612
+ - `concurrency` defaults to `3` and limits how many children are dispatched at once. Per-call `concurrency` takes precedence.
613
+ - `runningCapacity` defaults to `4` and limits simultaneously running child turns per parent. To run N children at once, raise both `concurrency` and `runningCapacity` to N, and set `maxTasks` to at least N.
614
+
615
+ Running capacity is selected when a parent's first child is created. Restart Atomic after changing this setting to apply the new capacity.
611
616
 
612
617
  ### `defaultSessionDir`
613
618
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/subagents",
3
- "version": "0.9.38-alpha.6",
3
+ "version": "0.9.38-alpha.8",
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": [
@@ -35,8 +35,8 @@
35
35
  "peerDependencies": {
36
36
  "@bastani/atomic": "*",
37
37
  "@bastani/pi-ai": "*",
38
- "@earendil-works/pi-agent-core": "^1.2.0",
39
- "@earendil-works/pi-tui": "^1.2.0",
38
+ "@earendil-works/pi-agent-core": "^1.3.0",
39
+ "@earendil-works/pi-tui": "^1.3.0",
40
40
  "typebox": "*"
41
41
  },
42
42
  "peerDependenciesMeta": {