@bastani/atomic 0.10.11 → 0.10.12-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.
- package/CHANGELOG.md +6 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +2 -2
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +2 -2
- package/dist/_shared/mode-shared-2QJSCUM6.js +2 -2
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +2 -2
- package/dist/_shared/sdk-B5LEWGGI.js +2 -2
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-XJJDOIEC.js +2 -2
- package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
- package/dist/_shared/startup-0-2-5QHPCEON.js +2 -2
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +2 -2
- package/dist/_shared/startup-0-4-ZMJV547D.js +2 -2
- package/dist/_shared/startup-0-5-YDW47QX6.js +2 -2
- package/dist/_shared/startup-10-0-TDQNBDDL.js +2 -2
- package/dist/_shared/startup-15-1-4S7FLMNG.js +2 -2
- package/dist/_shared/startup-8-0-34CBHPZH.js +2 -2
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +2 -2
- package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
- package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +2 -2
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +2 -2
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +2 -2
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +2 -2
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +2 -2
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +2 -2
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +2 -2
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +2 -2
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/package-manager-cli.code.js +2 -2
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/changelog.mdx +34 -136
- package/package.json +8 -8
package/docs/changelog.mdx
CHANGED
|
@@ -10,160 +10,58 @@ description: "What's new in Atomic"
|
|
|
10
10
|
After each release, the publish-release skill regenerates this page in its own docs PR.
|
|
11
11
|
*/}
|
|
12
12
|
|
|
13
|
-
<Update label="November 27, 2026" description="0.10.11
|
|
13
|
+
<Update label="November 27, 2026" description="0.10.11">
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Atomic upgrades session forks to share their parent's history, scales PostgreSQL, SQLite, JSONL, and Intercom for many concurrent agents with durable JSONL saves, drops libSQL storage and raises the Node.js minimum to 24.20.0, removes default deadlines on shell commands and history searches, and speeds up macOS process handling.
|
|
16
16
|
|
|
17
|
-
**
|
|
17
|
+
**Breaking change:** Atomic and its npm packages now require Node.js 24.20.0 or newer (`engines.node` is `>=24.20.0`, in the Node.js 24 LTS line), and `atomic` refuses to start at once on older Node.js instead of failing later. Run `node --version`, upgrade from [nodejs.org](https://nodejs.org/en/download) or with `nvm install 24`, `fnm install 24`, or `mise use -g node@24`, then reinstall with `npm install -g @bastani/atomic`. Release archives (`install.sh` and `install.ps1`) bring their own runtime and are unaffected. Node.js before 24.15.0 bundles a SQLite WAL bug that can corrupt a database opened by a writer and reader together, and 24.17.0 through 24.19.0 reject valid IPv6 TLS certificates. See [Node.js version](https://docs.bastani.ai/getting-started/installation#nodejs-version) ([#6579](https://github.com/bastani-inc/atomic/pull/6579), [#6629](https://github.com/bastani-inc/atomic/pull/6629)).
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
- **Session reads run without the directory lock.** `load`, `readTail`, `readRange`, and `readResume` read through a single handle and check afterward that `.session.lock` is absent and the path stat is unchanged, retrying under the lock if a writer raced. Eight concurrent reader processes ran 100 tail reads each in 61 ms instead of 478 ms on Node and 62 ms instead of 787 ms on Bun ([#6721](https://github.com/bastani-inc/atomic/pull/6721), [#6719](https://github.com/bastani-inc/atomic/issues/6719)).
|
|
21
|
-
- **Kernel advisory locks and per-session-file stripes.** Writers now coordinate through OS advisory locks (`flock` on Unix, `LockFileEx` on Windows) and 32 striped per-file locks while keeping `<dir>/.session.lock` compatible with older builds. Recovering after a killed writer dropped from ~10.2 s to ~5 ms, and 8 processes saving to distinct sessions ran 3.3× faster ([#6732](https://github.com/bastani-inc/atomic/pull/6732), [#6718](https://github.com/bastani-inc/atomic/issues/6718)).
|
|
19
|
+
**Breaking change:** Atomic no longer supports libSQL storage (Turso, self-hosted `sqld`, and libSQL `file:` databases), and `@bastani/atomic-storage-libsql` is no longer published. Any setting, environment variable, flag, URL, or SDK selection naming libSQL stops Atomic with a `libsql-removed` error. To keep your sessions, export them with `0.10.11-alpha.2` first—for example, `npx -y @bastani/atomic@0.10.11-alpha.2 storage export ~/moved --storage-file old-storage.json`, where `old-storage.json` holds your old `storage` setting (`0.10.10` cannot read a database that `0.10.11-alpha.2` already upgraded). Then import them with this release into PostgreSQL or local SQLite (`atomic storage import ~/moved`), and run `atomic remove npm:@bastani/atomic-storage-libsql`. See [Moving off libSQL](https://docs.bastani.ai/storage#moving-off-libsql) ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
|
|
22
20
|
|
|
23
|
-
**
|
|
21
|
+
**Breaking change:** `atomic team join`, `atomic team leave`, `ATOMIC_PROFILE=ci`, and the `ATOMIC_TEAM_*` variables (`ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX`) are removed with libSQL and now fail with `libsql-removed` (`atomic team status` and `getTeamProfile()` still work). Join a PostgreSQL database with `atomic storage join postgres://… --password-file <path>`, and in CI set `ATOMIC_STORAGE` to a PostgreSQL selection. In the SDK, `joinTeam()`, `leaveTeam()`, and `teamProfileSelection()` now always throw `TeamProfileConfigError` (`libsql-removed`) and their option/result types are removed; pass `createAgentSession({ storage })` a PostgreSQL selection instead ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
- **Fewer round trips and narrower locks on PostgreSQL sessions.** Deleting or replacing an indexed session drops from 13 / 12 round trips to 3; session `load`, `list`, `findMostRecent`, `findEntrySeq`, `readEntrySizes`, `readForkWindow`, stale `readTail`, and fork `readResume` pipeline their schema and row reads (1.5×–3.0× faster at 80 ms latency); and session deletes and tombstone sweeps lock only the target session instead of the whole database (-42% to -44% p95 append latency under concurrent deletes) ([#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6728](https://github.com/bastani-inc/atomic/pull/6728), [#6733](https://github.com/bastani-inc/atomic/pull/6733), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
27
|
-
- **Faster fork detaches, snapshot blob puts, and warm history searches.** Paged fork-detach link checks now scale linearly with pages (detaching two 20,000-entry forks dropped from 5.69 s to 2.63 s on PostgreSQL and 328 ms to 279 ms on Node SQLite), small snapshot blob puts take 1 SQLite thread wait / 1 PostgreSQL round trip instead of 10 / 2, and warm `history://` candidate reads batch state + first window into one read-only transaction ([#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6705](https://github.com/bastani-inc/atomic/issues/6705), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
|
|
23
|
+
**Breaking change:** Once no older Atomic has a session open on a SQLite or PostgreSQL session database (a crashed host's sessions stop counting after about a minute), Atomic upgrades it one-way so forks share their parent's history. Older Atomic versions then stop opening that database with `"this store needs a newer Atomic"`. Upgrade every machine and CI job that shares a database. On PostgreSQL, a runtime role that cannot create tables keeps copying forks without error until the owner runs `atomic storage migrate`. To move sessions back to an older version, export them with `atomic storage export` (which writes each fork's full history) and import them with that version into a new store. See [Older Atomic versions](https://docs.bastani.ai/storage#older-atomic-versions) ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6614](https://github.com/bastani-inc/atomic/pull/6614), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
28
24
|
|
|
29
|
-
**
|
|
30
|
-
|
|
31
|
-
- **Batched heartbeats, scans, releases, wake-ups, and SQLite settlements.** Brokers now check idle hosted recipients in one read (21×–37× faster at 50–200 brokers), renew all in-flight message claims, membership/presence leases, and restoring reservations in one statement per tick (up to 12.3× faster p50 at 200 brokers), release departing sessions' claims in one statement, batch wake-up publishes and embed non-reply outcome hints inside delivery settlement (1 round trip instead of 4), group-commit delivery settlements on SQLite, and send post-commit notices off the serial call queue via `StorageNotifications.send` ([#6690](https://github.com/bastani-inc/atomic/pull/6690), [#6693](https://github.com/bastani-inc/atomic/pull/6693), [#6722](https://github.com/bastani-inc/atomic/pull/6722), [#6724](https://github.com/bastani-inc/atomic/pull/6724), [#6725](https://github.com/bastani-inc/atomic/pull/6725), [#6726](https://github.com/bastani-inc/atomic/pull/6726), [#6734](https://github.com/bastani-inc/atomic/pull/6734), [#6712](https://github.com/bastani-inc/atomic/issues/6712), [#6713](https://github.com/bastani-inc/atomic/issues/6713), [#6714](https://github.com/bastani-inc/atomic/issues/6714), [#6715](https://github.com/bastani-inc/atomic/issues/6715), [#6716](https://github.com/bastani-inc/atomic/issues/6716)).
|
|
32
|
-
|
|
33
|
-
**Fixes**
|
|
34
|
-
|
|
35
|
-
- **Dropped PostgreSQL connections after `COMMIT` are never retried.** Fixed two bugs where a connection drop after `COMMIT` was written (either after a savepoint-recovered statement error or in a `leadingOnly` transaction) could be misclassified as `"not-applied"` and re-executed ([#6723](https://github.com/bastani-inc/atomic/pull/6723), [#6711](https://github.com/bastani-inc/atomic/issues/6711)).
|
|
36
|
-
- **Immediate resume recovery and faster review viewer on macOS.** Atomic now reads process creation times on macOS so resuming after a killed host stops leftover build steps at once instead of waiting 5 minutes and distinguishes dead lock holders from reused PIDs, and the skill-creator review viewer no longer stalls on a reverse DNS lookup of `127.0.0.1` ([#6694](https://github.com/bastani-inc/atomic/pull/6694), [#6687](https://github.com/bastani-inc/atomic/pull/6687), [#6704](https://github.com/bastani-inc/atomic/issues/6704), [#6691](https://github.com/bastani-inc/atomic/issues/6691)).
|
|
37
|
-
- **Intercom reply redelivery and local reply ordering.** Transient durable-inbox save failures no longer strand same-connection redeliveries of reply or ask-failure outcomes, and plain local sends behind an active local reply on a contended store no longer overtake that reply when a healthy database write exceeds 300 ms ([#6729](https://github.com/bastani-inc/atomic/pull/6729), [#6736](https://github.com/bastani-inc/atomic/pull/6736), [#6712](https://github.com/bastani-inc/atomic/issues/6712)).
|
|
38
|
-
|
|
39
|
-
</Update>
|
|
40
|
-
|
|
41
|
-
<Update label="November 26, 2026" description="0.10.11-alpha.3">
|
|
42
|
-
|
|
43
|
-
Atomic drops libSQL storage and keeps SQLite, PostgreSQL and JSONL, many agents open and share one PostgreSQL database with less waiting, and the storage docs get one page per backend.
|
|
25
|
+
**Shared-history forks**
|
|
44
26
|
|
|
45
|
-
**
|
|
27
|
+
- **Forks cost about the same as a new session.** `/fork`, `/clone`, `atomic --fork`, and forked subagents (`context: "fork"`) now read their parent's history in SQLite and PostgreSQL instead of copying it. Forking a 500-entry session drops from 1,012 to 8 round trips on PostgreSQL and 1,018 to 12 on SQLite, and 50 concurrent PostgreSQL forks finish in 119 ms instead of 2.6 s ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6601](https://github.com/bastani-inc/atomic/pull/6601), [#6602](https://github.com/bastani-inc/atomic/pull/6602), [#6608](https://github.com/bastani-inc/atomic/pull/6608), [#6614](https://github.com/bastani-inc/atomic/pull/6614)).
|
|
28
|
+
- **Deleting or rewriting a parent keeps forks intact, and exports stay standalone.** A deleted parent leaves lists and search at once while shared entries stay until its last fork is deleted, rewriting a parent detaches forks cleanly with linear-scaling link checks, and `/export`, `/share`, `atomic storage export`, and cross-store forks write full copies (with set-based SQL and batched reads when copying) ([#6591](https://github.com/bastani-inc/atomic/pull/6591), [#6596](https://github.com/bastani-inc/atomic/pull/6596), [#6598](https://github.com/bastani-inc/atomic/pull/6598), [#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6705](https://github.com/bastani-inc/atomic/issues/6705)).
|
|
46
29
|
|
|
47
|
-
**
|
|
48
|
-
|
|
49
|
-
**Storage and Intercom**
|
|
50
|
-
|
|
51
|
-
- **Many agents can open a new database at once.** On a new PostgreSQL database, one agent creates each table while the others wait for it without holding a lock or a connection. At 80 ms latency behind PgBouncer, 25 agents opening a session store and an Intercom broker on an empty database took 15 seconds instead of 258, and 100 agents all opened in 24 seconds, where 97 used to fail after waiting 30 seconds for a lock. One agent alone opens an empty database in 161 round trips instead of 391. On a new SQLite file, 100 agents opened in about 6 seconds instead of 32 ([#6679](https://github.com/bastani-inc/atomic/pull/6679)).
|
|
52
|
-
- **`atomic storage join` takes PostgreSQL URLs only.** It and `atomic storage migrate --db` accept `postgres://` and `postgresql://`. The `@bastani/atomic-storage-libsql` package is no longer published ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
|
|
53
|
-
- **Intercom retries lock timeouts on a busy PostgreSQL database.** A send, a registration renewal, taking waiting messages or confirming a delivery now tries again, up to 5 times, when a lock timeout or deadlock ended it before it wrote anything. A send takes 1 round trip instead of 3 and holds the recipient's lock only while the database runs it. In a load test with 200 agents through PgBouncer, lock timeouts fell from 112 to none ([#6626](https://github.com/bastani-inc/atomic/pull/6626)).
|
|
54
|
-
- **Messages to an offline session stop queueing.** With multi-node routing on PostgreSQL, a message to a session its sender found offline takes 1 round trip instead of about 4 and no longer holds up other messages to that session. With 50 senders to one session at 80 ms latency, the median message took under 1 s instead of about 23 s. Registering a session or a broker takes 1 round trip instead of 3. A broker retrying the cleanup of an ended subagent's delivered messages no longer blocks other writers of the database ([#6636](https://github.com/bastani-inc/atomic/pull/6636)).
|
|
55
|
-
- **One statement text per call on PostgreSQL.** Statements that look up a list of values, and the statement that records several delivered messages, now send the list as one value. PostgreSQL then plans each statement once per connection, and `pg_stat_statements` shows one line for it instead of dozens ([#6644](https://github.com/bastani-inc/atomic/pull/6644)).
|
|
56
|
-
- **Smaller writes per save on PostgreSQL.** Saving a new entry now updates the worktree snapshot index row in place, so the table's other indexes stay about 40% smaller. Atomic changes the index the first time it opens the database as the owner role, or when you run `atomic storage migrate`. On a store with more than about 150,000 index rows, only `atomic storage migrate` changes it, without stopping saves ([#6653](https://github.com/bastani-inc/atomic/pull/6653), [#6680](https://github.com/bastani-inc/atomic/pull/6680)).
|
|
57
|
-
- **Search indexing no longer stalls saves on PostgreSQL.** The write that filled PostgreSQL's 4 MB list of pending search text used to move the whole list into the index while it held the session's lock. Atomic now empties the list in the background on a connection that holds no session lock. A history search's index writes also no longer hold the session's lock, so with searches indexing 8 sessions while agents wrote to them, the median save took 55 ms instead of 109 ms. Run `atomic storage migrate` as the owner role to apply the list settings to an existing database ([#6638](https://github.com/bastani-inc/atomic/pull/6638), [#6654](https://github.com/bastani-inc/atomic/pull/6654)).
|
|
58
|
-
- **`atomic storage migrate` tunes PostgreSQL for you.** It sets autovacuum on the busiest small tables, which the tuning guide used to ask you to do by hand, and switches large values to `lz4` compression when the server supports it. In a test with large values from real session history, compressing them took about 60% less time and reading them back 17% to 50% less. A value you set yourself is kept ([#6642](https://github.com/bastani-inc/atomic/pull/6642)).
|
|
59
|
-
- **Fewer round trips before `atomic storage migrate`.** On PostgreSQL, until migrate sets the free-space setting on the sessions and Intercom lease tables, a process checks it once instead of at every store open. A runtime role then opens the session store in 4 round trips instead of 5 ([#6635](https://github.com/bastani-inc/atomic/pull/6635)).
|
|
60
|
-
- **Wake-ups go only to the broker they are for.** With multi-node routing on PostgreSQL, each broker listens on a channel of its own, and a wake-up names the recipient, so the broker reads only that recipient's queue. Sends to one broker that arrive together share one wake-up. Atomic sends a wake-up right after its commit instead of inside it, so commits that send one no longer run one at a time. With 50 or 200 senders, PostgreSQL committed 1.2 to 3.2 times as many wake-ups per second. Brokers of earlier releases still wake and are woken during an upgrade. In the SDK, `StorageNotifications.notify` takes an optional `unless` read ([#6655](https://github.com/bastani-inc/atomic/pull/6655)).
|
|
61
|
-
- **One broker cleans up the shared database.** With multi-node routing, one broker at a time cleans up delivered messages and old records every 5 minutes, through indexes, instead of every broker every 30 seconds. With 200 brokers on PostgreSQL, cleanup ran 24 statements a minute instead of 3,377 and read no rows by full table scans instead of 194 million a minute. The index of waiting messages covers only undelivered ones, 0.2 MB instead of 22.6 MB in the same test ([#6675](https://github.com/bastani-inc/atomic/pull/6675)).
|
|
62
|
-
- **Less disk work for Intercom on PostgreSQL.** The lease renewals each broker sends every 10 seconds no longer wait for the server to write them to disk, and a lost renewal is repeated by the next one. In a benchmark the server flushed its log about 90% less often for these writes. The short notices that wake a broker when a message arrives now live in an unlogged table, so each writes about 70% less to the server's log. A crash loses only notices, never messages. An existing database switches when `atomic storage migrate` runs as the owner role. Storage adapters get a `relaxedDurability` transaction option for writes like these ([#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6639](https://github.com/bastani-inc/atomic/pull/6639)).
|
|
63
|
-
- **The macOS binary brings its own SQLite.** The standalone `atomic` binary on macOS now uses its own copy of SQLite 3.53.4, the version Node.js 24.20 includes, instead of the one that comes with macOS. `atomic storage status` shows the SQLite version on a `library:` line ([#6641](https://github.com/bastani-inc/atomic/pull/6641)).
|
|
64
|
-
|
|
65
|
-
**Docs**
|
|
66
|
-
|
|
67
|
-
- **One docs page per storage backend.** The storage docs now have their own pages for SQLite, JSONL, PostgreSQL setup, PgBouncer, PostgreSQL server tuning and custom adapters, under one Storage group. Old guide links redirect to the new pages. Each page says what it is for, and its settings, commands and error messages were checked against the code ([#6619](https://github.com/bastani-inc/atomic/pull/6619), [#6656](https://github.com/bastani-inc/atomic/pull/6656)).
|
|
68
|
-
- **The docs site changelog is current again.** The [changelog](https://docs.bastani.ai/changelog) page is now built from each release's summary and lists every release. It had stopped at July 31, 2026 ([#6621](https://github.com/bastani-inc/atomic/pull/6621)).
|
|
69
|
-
|
|
70
|
-
**Fixes**
|
|
71
|
-
|
|
72
|
-
- **Messages keep their order when a session changes machines.** When a session moved to the machine of a session sending it messages, a new message from that sender could arrive before older ones still waiting for it. A new message now waits until the sender's older messages have arrived ([#6651](https://github.com/bastani-inc/atomic/pull/6651), [#6637](https://github.com/bastani-inc/atomic/issues/6637)).
|
|
73
|
-
- **Resume after a kill no longer waits 5 minutes.** Resuming a session whose worktree build was cut off, because Atomic was killed just as a build step started, no longer waits 5 minutes before building a fresh worktree on Linux and Windows ([#6684](https://github.com/bastani-inc/atomic/pull/6684)).
|
|
74
|
-
- **Compaction keeps long output.** A compaction model such as `morph/morph-compactor` no longer has its output thrown away as "output too long". Before, output over 32,000 estimated tokens failed and the context was cleared, so a 275,000-token result on a 1M-token model was lost. Only limits you set apply: `maxTokens` on the compactor model, or the endpoint's own options in `compactionParams`, such as Morph's `compression_ratio`. Atomic no longer compacts long output again before every tool call ([#6649](https://github.com/bastani-inc/atomic/pull/6649), [#6671](https://github.com/bastani-inc/atomic/pull/6671)).
|
|
75
|
-
- **JSONL sessions survive backdated files on macOS.** A session kept in JSONL files no longer stops accepting messages with "Session conflict" after the file's modified date is set earlier, for example by `touch`, a backup tool that restores dates, or a clock that moves back ([#6647](https://github.com/bastani-inc/atomic/pull/6647), [#6661](https://github.com/bastani-inc/atomic/pull/6661), [#4319](https://github.com/bastani-inc/atomic/issues/4319)).
|
|
76
|
-
- **Extension commands end when Atomic is killed.** An extension's `pi.exec` command still running when Atomic is killed now ends with the processes it started on macOS, and on Linux its child processes end too ([#6648](https://github.com/bastani-inc/atomic/pull/6648)).
|
|
77
|
-
- **A clear message on an older Node.js.** On a Node.js older than 24.20.0, `atomic` now stops as soon as it starts and names the version it needs, with a link to [Node.js version](https://docs.bastani.ai/getting-started/installation#nodejs-version), instead of failing later with an error that doesn't name the cause. The release archive brings its own runtime and is unaffected ([#6629](https://github.com/bastani-inc/atomic/pull/6629)).
|
|
78
|
-
- **`bash` with `pty: true` keeps up on macOS.** A command's terminal output no longer slows to about 150 KB/s. A command that printed 1 MB took about 6.5 seconds and now takes under half a second ([#6634](https://github.com/bastani-inc/atomic/pull/6634)).
|
|
79
|
-
- **Commands start faster on macOS, without `MallocStackLogging` lines.** The task supervisor starts commands with `posix_spawn` instead of `fork()`. With a 3 GB host, starting a command took 0.5 ms instead of 4.4 ms, and the host's JavaScript thread no longer stalls 9 to 18 ms each time. The interactive TUI no longer shows "MallocStackLogging: can't turn off malloc stack logging" for each command after the Mac has been under memory pressure. A command now gets only its standard input, output and error, not other open descriptors ([#6643](https://github.com/bastani-inc/atomic/pull/6643), [#6668](https://github.com/bastani-inc/atomic/pull/6668)).
|
|
80
|
-
- **`atomic storage status` reads closed SQLite stores on macOS.** The standalone `atomic` binary no longer reports a healthy local SQLite store as failed with "unable to open database file (SQLite code 14)" after every Atomic process has closed it, for example right after `atomic storage import` ([#6622](https://github.com/bastani-inc/atomic/pull/6622)).
|
|
81
|
-
- **In-place updates keep running processes working.** A process still running 0.10.10 or 0.10.11-alpha.1 code after `npm install -g` or `bun add -g` no longer fails to open a PostgreSQL session store with "this store needs a newer Atomic" once forks share history there ([#6631](https://github.com/bastani-inc/atomic/pull/6631)).
|
|
82
|
-
- **Reads see the same store's earlier writes.** A session read, and an Intercom broker's reads of sessions and presences, now wait for writes the same store or broker started before them, so they no longer miss a just-appended entry or a just-taken presence ([#6632](https://github.com/bastani-inc/atomic/pull/6632)).
|
|
83
|
-
- **In-place updates keep fork snapshots.** A process still running 0.10.10 or 0.10.11-alpha.1 code after an in-place update no longer deletes worktree snapshots that a fork shares with its parent. The database refuses to delete a snapshot a fork still uses ([#6657](https://github.com/bastani-inc/atomic/pull/6657)).
|
|
84
|
-
- **A fork under a deleted session's ID starts empty.** It no longer shows the deleted session's history, and deleting the last fork that still reads the old history no longer removes the new session's entries. Forking one of its forks back into its ID works instead of failing with "Invalid fork segment" ([#6660](https://github.com/bastani-inc/atomic/pull/6660), [#6676](https://github.com/bastani-inc/atomic/pull/6676)).
|
|
85
|
-
- **Sessions list in the order they registered.** With multi-node routing on PostgreSQL, a broker started before `atomic storage migrate` no longer gives a session registration the same number as another broker, so session lists keep registration order. If the sequence is dropped, registering a session keeps working ([#6630](https://github.com/bastani-inc/atomic/pull/6630)).
|
|
86
|
-
- **A slow `history://` pattern no longer holds up other searches.** A background search whose pattern takes minutes to check moves aside after a fifth of a second, so other history reads and searches carry on instead of running out of time ([#6627](https://github.com/bastani-inc/atomic/pull/6627)).
|
|
87
|
-
|
|
88
|
-
</Update>
|
|
30
|
+
**PostgreSQL storage**
|
|
89
31
|
|
|
90
|
-
|
|
32
|
+
- **Per-session locking and single-round-trip saves.** Session saves lock only their own session and drop from 7+ round trips to 2—or 1 after `atomic storage migrate` installs the save function (108 ms vs 193 ms at 80 ms latency; 100 concurrent agents dropped from 52–57 s to 164 ms). Session deletes and tombstone sweeps also lock only the target session and cut indexed deletes and replaces from 13 / 12 round trips to 3 ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6604](https://github.com/bastani-inc/atomic/pull/6604), [#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6710](https://github.com/bastani-inc/atomic/issues/6710), [#6733](https://github.com/bastani-inc/atomic/pull/6733)).
|
|
33
|
+
- **Shared connection pools and PgBouncer prepared statements.** Every store a process opens on the same PostgreSQL database shares one write pool, a separate reader pool (`openReader()`), and one listening connection, with new pool tuning options (`readerMaxConnections`, `maxPreparedStatements`, `connectTimeoutMs`, `idleTimeoutMs`, `keepAliveIdleMs`). Prepared statements turn on automatically behind PgBouncer 1.21+ when `max_prepared_statements > 0`, and list lookups use one statement text in `pg_stat_statements` ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6604](https://github.com/bastani-inc/atomic/pull/6604), [#6644](https://github.com/bastani-inc/atomic/pull/6644)).
|
|
34
|
+
- **Faster opens, reads, searches, and snapshot puts.** Concurrent agents opening a new database coordinate table setup without lock queueing (25 agents behind PgBouncer: 258 s to 15 s; 100 agents: 97 timeouts to all open in 24 s), up-to-date opens drop from 43 to 2 round trips, session reads pipeline (`load` 2 to 1 round trip, `list` and `readForkWindow` 3 to 2, `findEntrySeq` 3 to 1), indexed `history://` searches fetch matches in one request (2.8 s to 0.5 s at 80 ms latency) and batch state with the first candidate window, and small snapshot blob puts take 1 round trip without a database-wide lock ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6606](https://github.com/bastani-inc/atomic/pull/6606), [#6607](https://github.com/bastani-inc/atomic/pull/6607), [#6635](https://github.com/bastani-inc/atomic/pull/6635), [#6679](https://github.com/bastani-inc/atomic/pull/6679), [#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6708](https://github.com/bastani-inc/atomic/issues/6708), [#6710](https://github.com/bastani-inc/atomic/issues/6710), [#6728](https://github.com/bastani-inc/atomic/pull/6728)).
|
|
35
|
+
- **Automatic table tuning, in-place snapshot updates, and non-blocking search indexing.** `atomic storage migrate` creates chat-record and ended-subagent queue tables for non-DDL runtime roles, tunes autovacuum and `fillfactor` on busy tables, switches large values to `lz4` compression (~60% faster compression), updates snapshot index rows in place (~40% smaller secondary indexes), and moves search-index merges and writes off session write locks (median save during concurrent indexing: 109 ms to 55 ms). `atomic storage join` and `atomic storage migrate --db` accept `postgres://` and `postgresql://` URLs only ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6624](https://github.com/bastani-inc/atomic/pull/6624), [#6638](https://github.com/bastani-inc/atomic/pull/6638), [#6642](https://github.com/bastani-inc/atomic/pull/6642), [#6653](https://github.com/bastani-inc/atomic/pull/6653), [#6654](https://github.com/bastani-inc/atomic/pull/6654), [#6680](https://github.com/bastani-inc/atomic/pull/6680)).
|
|
36
|
+
- **Bounded PostgreSQL closes.** `@bastani/atomic-storage-postgres`'s `close()` now waits for the server to release all pooled connections (readers included) and drops unresponsive pool and listening connections after 5 seconds instead of waiting until TCP times out ([#6677](https://github.com/bastani-inc/atomic/pull/6677), [#6681](https://github.com/bastani-inc/atomic/pull/6681)).
|
|
91
37
|
|
|
92
|
-
|
|
38
|
+
**SQLite, JSONL, and Storage SDK**
|
|
93
39
|
|
|
94
|
-
**
|
|
95
|
-
|
|
96
|
-
**
|
|
97
|
-
|
|
98
|
-
- **A fork costs the same as a new session.** `/fork`, `/clone`, `atomic --fork` and forked subagents store only where the fork starts and read the parent's entries from the parent. Creating a fork takes the same round trips as creating a session, whatever the parent's length or how many forks deep it is. A subagent fork of a 500-entry session takes 8 round trips instead of 1,012 on PostgreSQL and on a libSQL server, and 12 instead of 1,018 on SQLite. 50 forks at once on PostgreSQL finish in 119 ms instead of 2.6 s. The store no longer holds a second copy of the parent's history. A fork lists, searches, resumes and keeps worktree snapshots as a copy does, and later changes to the parent never show up in it ([#6602](https://github.com/bastani-inc/atomic/pull/6602), [#6608](https://github.com/bastani-inc/atomic/pull/6608), [#6601](https://github.com/bastani-inc/atomic/pull/6601), [#6614](https://github.com/bastani-inc/atomic/pull/6614)).
|
|
99
|
-
- **Deleting a parent keeps its forks whole.** A deleted session leaves every list and search at once. The store keeps the entries its forks read until the last of those forks is deleted. Rewriting a parent first gives each fork its own copy ([#6598](https://github.com/bastani-inc/atomic/pull/6598)).
|
|
100
|
-
- **Exports stay standalone.** `atomic storage export`, `/export`, `/share`, HTML export and moving sessions to another store write each fork's full history, so the copy needs none of the sessions it came from ([#6598](https://github.com/bastani-inc/atomic/pull/6598)).
|
|
101
|
-
|
|
102
|
-
**Faster stores**
|
|
103
|
-
|
|
104
|
-
- **Faster PostgreSQL store opens.** Opening a session store whose tables are up to date takes 2 round trips instead of 5, and an Intercom broker takes 1 instead of 3. At 80 ms latency, reopening a session store takes about a quarter of a second less ([#6606](https://github.com/bastani-inc/atomic/pull/6606)).
|
|
105
|
-
- **One round trip per save on PostgreSQL.** After you run `atomic storage migrate` as the owner role, saving new entries to a session takes 1 round trip instead of 2, because a database function does the whole save. At 80 ms latency the median save took 108 ms instead of 193 ms. Older Atomic releases keep working on a database that has the function ([#6604](https://github.com/bastani-inc/atomic/pull/6604)).
|
|
106
|
-
- **Prepared statements behind PgBouncer.** Atomic now keeps statements prepared behind PgBouncer 1.21 or later when its `max_prepared_statements` is above 0, which is the default from 1.24, so the server parses each statement once. It finds this out on its first connection with no extra round trip. Behind other poolers they stay off, and a `maxPreparedStatements` you set still wins ([#6604](https://github.com/bastani-inc/atomic/pull/6604)).
|
|
107
|
-
- **Faster `history://` searches.** A search of a past session that Atomic has indexed reads the matching entries, and the lines shown around them, in one request instead of one request per entry. At 80 ms latency a search with 8 matches took 0.5 s instead of 2.8 s on PostgreSQL, and 0.5 s instead of 2.9 s on a libSQL server. A larger benchmark search took 9 round trips instead of 97. A custom `SessionStore` receives the entries to read in the new `seqs` field of `readEntryRange` ([#6607](https://github.com/bastani-inc/atomic/pull/6607)).
|
|
108
|
-
- **libSQL reads share requests.** On a libSQL server, single reads made at the same time go out together in one request. With 8 reads at once, the server got 2 requests instead of 8, and the first burst opened no new connection instead of 5 ([#6607](https://github.com/bastani-inc/atomic/pull/6607)).
|
|
109
|
-
- **No write lock to reopen a broker on SQLite and libSQL.** Reopening an Intercom broker whose tables are set up no longer takes the database's write lock, so brokers that start together no longer wait for each other. On a libSQL server 80 ms away, a reopen takes 0.4 s instead of 0.6 s. A process's first chat record skips the lock the same way. If anything changes the tables later, including an older Atomic, the next open checks them again ([#6609](https://github.com/bastani-inc/atomic/pull/6609)).
|
|
110
|
-
- **Faster writes to libSQL files.** On a local libSQL `file:` database, each connection keeps up to 256 prepared statements and reuses them. Saving a new 500-entry session takes 6.3 ms instead of 66 ms, and saving one entry about 0.2 ms instead of 0.4 ms ([#6613](https://github.com/bastani-inc/atomic/pull/6613)).
|
|
111
|
-
- **Faster local SQLite reads.** Reading a session's latest entries or resuming it from a local SQLite file waits for the database's background thread 2 or 3 times instead of 4 or 5 ([#6609](https://github.com/bastani-inc/atomic/pull/6609)).
|
|
112
|
-
- **Faster JSONL sessions.** On macOS and Linux, Atomic keeps a session's JSONL file open while it writes, and puts entries saved at the same moment into one write. Saving an entry takes 7 file operations instead of 18, and ten saves at once take 7 instead of 180. A folder of 201 sessions reopens in about 9 ms instead of about 640 ms ([#6605](https://github.com/bastani-inc/atomic/pull/6605)).
|
|
40
|
+
- **Pipelined local SQLite, off-commit WAL checkpoints, and bundled macOS SQLite.** Local SQLite caches up to 256 prepared statements per connection, skips write locks when reopening current Intercom brokers, batches new-database schema setup into one write transaction (100 concurrent agents: 32 s to 6 s; new session store: 4 locks to 1), pipelines write transactions and small snapshot blob puts (8 blobs: 10 thread waits to 1), and checkpoints WAL files off the commit path while shrinking them back to 4 MiB. The standalone macOS binary now bundles SQLite 3.53.4 (`library:` line in `atomic storage status`) ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6609](https://github.com/bastani-inc/atomic/pull/6609), [#6612](https://github.com/bastani-inc/atomic/pull/6612), [#6641](https://github.com/bastani-inc/atomic/pull/6641), [#6679](https://github.com/bastani-inc/atomic/pull/6679), [#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6698](https://github.com/bastani-inc/atomic/pull/6698), [#6706](https://github.com/bastani-inc/atomic/issues/6706), [#6707](https://github.com/bastani-inc/atomic/issues/6707), [#6709](https://github.com/bastani-inc/atomic/issues/6709), [#6727](https://github.com/bastani-inc/atomic/pull/6727), [#6730](https://github.com/bastani-inc/atomic/pull/6730), [#6731](https://github.com/bastani-inc/atomic/pull/6731)).
|
|
41
|
+
- **Durable JSONL saves with group commit.** JSONL saves now sync to disk before acknowledging, batching concurrent writes and syncing session files in parallel (plain `fsync(2)` on macOS via `@bastani/atomic-natives`'s `fsyncDescriptor`, `fdatasync(2)` on Linux, `FlushFileBuffers` on Windows) while recovering cleanly from zero-filled crash pages ([#6605](https://github.com/bastani-inc/atomic/pull/6605), [#6686](https://github.com/bastani-inc/atomic/issues/6686), [#6700](https://github.com/bastani-inc/atomic/pull/6700), [#6717](https://github.com/bastani-inc/atomic/issues/6717)).
|
|
42
|
+
- **Unlocked JSONL reads and striped advisory write locks.** JSONL session reads run without taking the directory lock (8 concurrent reader processes: 478 ms to 61 ms on Node, 787 ms to 62 ms on Bun), writers coordinate via OS advisory locks (`flock` / `LockFileEx`) and 32 striped per-session locks (recovery after a killed writer: ~10.2 s to ~5 ms; 8 concurrent writers: 3.3× faster), and kept handles plus stat-only opens cut reopening 201 sessions from 640 ms to 9 ms ([#6605](https://github.com/bastani-inc/atomic/pull/6605), [#6718](https://github.com/bastani-inc/atomic/issues/6718), [#6719](https://github.com/bastani-inc/atomic/issues/6719), [#6721](https://github.com/bastani-inc/atomic/pull/6721), [#6732](https://github.com/bastani-inc/atomic/pull/6732)).
|
|
43
|
+
- **Storage SDK additions.** `@bastani/atomic/storage` adds `SqliteDatabase.openReader()`, `withStorageSchemaCatalog`, `schemaCatalogOf`, `storageSchemaCurrent`, `ensureTableFillfactor`, `transactionFinisher`, `relaxedDurability` transactions, `StorageNotifications.notify`'s `unless` check, `StorageNotifications.send(notices)`, `SessionStore.readEntryRange`'s `seqs` filter, and `SessionManager.captureFork(leafId, { internal: true })` ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6594](https://github.com/bastani-inc/atomic/pull/6594), [#6607](https://github.com/bastani-inc/atomic/pull/6607), [#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6655](https://github.com/bastani-inc/atomic/pull/6655), [#6712](https://github.com/bastani-inc/atomic/issues/6712), [#6734](https://github.com/bastani-inc/atomic/pull/6734)).
|
|
113
44
|
|
|
114
45
|
**Intercom**
|
|
115
46
|
|
|
116
|
-
- **
|
|
117
|
-
- **
|
|
118
|
-
|
|
119
|
-
**Fixes**
|
|
120
|
-
|
|
121
|
-
- **No `Storage unavailable` errors under load on a libSQL server.** Atomic now closes a database's idle connection to the server after 5 seconds, and sends a request again when the server turns it away as busy. In a test with 100 agents writing at once, 1 run in 6 failed before and none of 8 after ([#6616](https://github.com/bastani-inc/atomic/pull/6616)).
|
|
122
|
-
- **Forks copy only the pieces each long entry uses.** Forking a session that holds leftover pieces of long entries, which an older Atomic can leave behind, no longer copies them into the fork or fails with `Missing chunk of session entry` ([#6611](https://github.com/bastani-inc/atomic/pull/6611)).
|
|
123
|
-
- **Intercom keeps one session's messages in order on PostgreSQL.** When a broker was slow to renew its hold on an earlier message, another broker could take that message over while the first delivered a later one. Brokers now take turns on one session's messages ([#6610](https://github.com/bastani-inc/atomic/pull/6610)).
|
|
124
|
-
|
|
125
|
-
</Update>
|
|
126
|
-
|
|
127
|
-
<Update label="November 25, 2026" description="0.10.11-alpha.1">
|
|
128
|
-
|
|
129
|
-
Many agents can now share one PostgreSQL or libSQL database without waiting for each other, forks cost about the same however long the session is, and shell commands and history searches now run until they finish.
|
|
130
|
-
|
|
131
|
-
**Breaking change:** Atomic and its npm packages now need Node.js 24.20.0 or newer. Run `node --version`. If it is older, install the current Node.js 24 LTS release from [nodejs.org](https://nodejs.org/en/download) or with `nvm install 24`, `fnm install 24` or `mise use -g node@24`, then reinstall Atomic with `npm install -g @bastani/atomic`. If you installed with `install.sh` or `install.ps1`, you need no change, because those installs bring their own runtime. Node.js releases before 24.15.0 bundle a SQLite bug that can corrupt the session database, and 24.17.0 through 24.19.0 reject valid certificates for IPv6 addresses ([#6579](https://github.com/bastani-inc/atomic/pull/6579)).
|
|
132
|
-
|
|
133
|
-
**Shared databases**
|
|
134
|
-
|
|
135
|
-
- **Agents on one PostgreSQL database stop queueing.** A session save now locks only its own session and takes 2 round trips instead of 7 or more. In a load test with 100 agents at 80 ms latency, a save took 164 ms instead of 52 to 57 seconds, and 200 agents ran without lock timeouts. Run `atomic storage migrate` once before you start many agents ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
136
|
-
- **Faster startup.** On PostgreSQL, opening a session store whose tables are up to date takes 5 round trips instead of 43 and takes no lock. On SQLite and libSQL it reads the schema in one statement: reopening an Intercom broker on a libSQL server 80 ms away takes 0.6 s instead of more than 6 s, and on a local SQLite file it takes 1 write lock instead of 30 ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6599](https://github.com/bastani-inc/atomic/pull/6599)).
|
|
137
|
-
- **Forks no longer copy entry by entry.** A fork within one database is copied by the database in a few statements, so its cost barely grows with the session's length. At 80 ms latency, a subagent fork of a 500-entry session takes 1.2 s instead of 17.8 s, and a clone 2.6 s instead of 33 s. Two handles on the same database count as one store. Forks from another store read it in larger requests and no longer wait for each other ([#6596](https://github.com/bastani-inc/atomic/pull/6596), [#6591](https://github.com/bastani-inc/atomic/pull/6591)).
|
|
138
|
-
- **Faster reads and snapshots.** Reading a session's latest entries or resuming it takes 2 round trips instead of 5 or 6 on PostgreSQL, and about half the time on libSQL. Back-to-back reads reuse one PostgreSQL connection. Storing five snapshot blobs takes 172 ms instead of 585 ms ([#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6588](https://github.com/bastani-inc/atomic/pull/6588)).
|
|
139
|
-
- **Fewer PostgreSQL connections.** Every store a process opens on the same database shares one connection pool, and reads use their own pool of up to 2 connections. The new `readerMaxConnections`, `maxPreparedStatements`, `connectTimeoutMs`, `idleTimeoutMs` and `keepAliveIdleMs` options tune them. New guides cover [PostgreSQL tuning for many agents](https://docs.bastani.ai/guides/postgres-tuning) and [PgBouncer](https://docs.bastani.ai/guides/postgres-pgbouncer) ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
|
|
140
|
-
- **`atomic storage migrate` sets up every table.** It now creates the chat-record table and Intercom's queue for ended subagents, so a database role that cannot create tables keeps turn diagnostics and messages for ended subagents. It also leaves free space on the busiest tables' pages, so frequent row updates stay cheap ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
|
|
141
|
-
- **Faster SQLite and libSQL.** Local SQLite reuses up to 256 prepared statements per connection. On a libSQL server, reads made at once run at the same time, up to the new `concurrency` option (20 by default), and a transaction takes 2 requests instead of 6. The new `keepAliveMs` option keeps idle connections to a self-hosted libSQL server open ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
|
|
142
|
-
- **Intercom across hosts stops waiting.** With multi-node routing on PostgreSQL, sends to different sessions no longer wait for each other: with 50 brokers sending at once, the median send took 0.27 seconds instead of 12. A broker starts in about 3 round trips instead of about 100, checks for messages less often while database notifications work, and `intercom list` shows other hosts' sessions while writes are busy ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
|
|
143
|
-
- **Storage SDK additions.** `SqliteDatabase.openReader()` returns a read handle with its own connection on SQLite files, libSQL and PostgreSQL. `@bastani/atomic/storage` exports `withStorageSchemaCatalog`, `schemaCatalogOf`, `storageSchemaCurrent`, `ensureTableFillfactor` and `transactionFinisher`, so your own stores can use the same schema check and pipelined commits ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
|
|
144
|
-
|
|
145
|
-
**Long-running work**
|
|
146
|
-
|
|
147
|
-
- **Shell commands have no default time limit.** `bash` and `powershell` commands no longer stop after 5 minutes. Builds, test runs, dev servers and watchers run until they finish or you stop them with `kill` or `/tasks`. `timeout` still sets a deadline, now with no upper limit. A session runs at most 64 commands at once ([#6574](https://github.com/bastani-inc/atomic/pull/6574), [#6581](https://github.com/bastani-inc/atomic/pull/6581)).
|
|
148
|
-
- **Slow `history://` reads and searches keep running.** They no longer stop after 3 seconds. After 10 seconds the agent gets a task ID and keeps working, and the result arrives when it is ready ([#6563](https://github.com/bastani-inc/atomic/pull/6563)).
|
|
47
|
+
- **Single-round-trip sends with lock-timeout retries.** With multi-node routing on PostgreSQL, sends lock only the recipient's queue, take 1 round trip instead of 8, and retry lock timeouts and deadlocks up to 5 times (200 agents behind PgBouncer: 112 lock timeouts to 0; 50 senders to an offline session at 80 ms: ~23 s to under 1 s) ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6626](https://github.com/bastani-inc/atomic/pull/6626), [#6636](https://github.com/bastani-inc/atomic/pull/6636)).
|
|
48
|
+
- **Batched scans, renewals, releases, and settlements.** Brokers open in 1 round trip on PostgreSQL and 1 write lock on SQLite, check idle hosted recipients in one read (21 statements to 1 for 20 subagents), pick up waiting messages in 1 round trip on PostgreSQL and 2 calls on SQLite, renew all in-flight claims, leases, and restoring reservations in single statements per tick (200 brokers: median tick 1,254 ms to 102 ms), release departing sessions' claims in one statement, and batch delivery confirmations on both PostgreSQL and SQLite ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6606](https://github.com/bastani-inc/atomic/pull/6606), [#6610](https://github.com/bastani-inc/atomic/pull/6610), [#6615](https://github.com/bastani-inc/atomic/pull/6615), [#6644](https://github.com/bastani-inc/atomic/pull/6644), [#6690](https://github.com/bastani-inc/atomic/pull/6690), [#6693](https://github.com/bastani-inc/atomic/pull/6693), [#6709](https://github.com/bastani-inc/atomic/issues/6709), [#6713](https://github.com/bastani-inc/atomic/issues/6713), [#6714](https://github.com/bastani-inc/atomic/issues/6714), [#6716](https://github.com/bastani-inc/atomic/issues/6716), [#6724](https://github.com/bastani-inc/atomic/pull/6724), [#6725](https://github.com/bastani-inc/atomic/pull/6725), [#6726](https://github.com/bastani-inc/atomic/pull/6726)).
|
|
49
|
+
- **Targeted wake-ups, less disk flushing, and single-broker cleanup.** PostgreSQL lease renewals skip disk flushes (`relaxedDurability`, ~90% fewer log flushes), wake-up notices use an unlogged table (~70% less WAL) on per-broker channels naming the recipient, concurrent wake-ups batch and embed non-reply outcome hints inside settlement (4 round trips to 1) while sending post-commit notices off the serial call queue via `StorageNotifications.send`, and one elected broker runs indexed cleanup every 5 minutes (200 brokers: 3,377 to 24 statements/min, waiting-message index 22.6 MB to 0.2 MB) ([#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6639](https://github.com/bastani-inc/atomic/pull/6639), [#6655](https://github.com/bastani-inc/atomic/pull/6655), [#6675](https://github.com/bastani-inc/atomic/pull/6675), [#6715](https://github.com/bastani-inc/atomic/issues/6715), [#6722](https://github.com/bastani-inc/atomic/pull/6722), [#6734](https://github.com/bastani-inc/atomic/pull/6734)).
|
|
149
50
|
|
|
150
|
-
**
|
|
51
|
+
**Long-running work, skills, subagents, and docs**
|
|
151
52
|
|
|
152
|
-
- **
|
|
153
|
-
- **
|
|
154
|
-
- **
|
|
155
|
-
- **
|
|
156
|
-
- **Clearer subagent model errors.** The error says whether the model does not exist or `enabledModels` leaves it out, and names the exact ID to add for a Fast or Ultrafast version ([#6569](https://github.com/bastani-inc/atomic/pull/6569)).
|
|
53
|
+
- **No default deadline on shell commands or `history://` searches.** `bash` and `powershell` commands run until they finish or you stop them (`timeout` still sets a deadline with no upper limit and refuses `0`; max 64 concurrent shells per session). Slow `history://` reads and searches continue in the background after 10 seconds as waitable tasks instead of stopping after 3 seconds (max 4 per session) ([#6563](https://github.com/bastani-inc/atomic/pull/6563), [#6574](https://github.com/bastani-inc/atomic/pull/6574), [#6581](https://github.com/bastani-inc/atomic/pull/6581)).
|
|
54
|
+
- **Portable `skill://` addresses.** Model instructions list skills as `skill://<name>` instead of absolute filesystem paths, keeping home folders out of prompts and working across machines. `read`, `search`, `find`, and `bash` resolve them, and subagents receive them too ([#6589](https://github.com/bastani-inc/atomic/pull/6589)).
|
|
55
|
+
- **Subagents keep their parent's store, plus panel and card improvements.** Subagents always save sessions in their parent's store (`sessionDir` and `defaultSessionDir` are ignored with a warning), forked subagents are internal like fresh ones, the agent panel remembers `main` and `/tasks` choices and wraps `↓` from the last row, expanded cards of tool-waiting subagents show their task and waited-on calls (`◌`), and model errors distinguish missing models from `enabledModels` exclusions with exact Fast/Ultrafast IDs ([#6562](https://github.com/bastani-inc/atomic/pull/6562), [#6564](https://github.com/bastani-inc/atomic/pull/6564), [#6569](https://github.com/bastani-inc/atomic/pull/6569), [#6594](https://github.com/bastani-inc/atomic/pull/6594)).
|
|
56
|
+
- **One storage docs page per backend and generated docs changelog.** Storage docs split into dedicated pages for SQLite, JSONL, PostgreSQL setup, PgBouncer, server tuning, and custom adapters with redirects, and the docs site [changelog](https://docs.bastani.ai/changelog) is now generated from each release's summary ([#6619](https://github.com/bastani-inc/atomic/pull/6619), [#6621](https://github.com/bastani-inc/atomic/pull/6621), [#6656](https://github.com/bastani-inc/atomic/pull/6656)).
|
|
157
57
|
|
|
158
|
-
**
|
|
58
|
+
**macOS and other fixes**
|
|
159
59
|
|
|
160
|
-
- **macOS
|
|
161
|
-
- **
|
|
162
|
-
-
|
|
163
|
-
- **
|
|
164
|
-
- **
|
|
165
|
-
- **Turso writes after a pause** no longer fail with `ECONNRESET` on Bun, including the `atomic` binary ([#6588](https://github.com/bastani-inc/atomic/pull/6588)).
|
|
166
|
-
- **Stall reports on macOS include stacks again** after the Mac has slept ([#6583](https://github.com/bastani-inc/atomic/pull/6583)).
|
|
60
|
+
- **Faster, cleaner macOS commands and host-death cleanup.** `@bastani/atomic-natives` spawns commands with `posix_spawn` instead of `fork()` (0.5 ms vs 4.4 ms on a 3 GB host, removing JS stalls and `MallocStackLogging` TUI lines), `bash` with `pty: true` reads output immediately instead of throttling to ~150 KB/s (1 MB in under 0.5 s vs ~6.5 s), and Atomic stops its commands, background servers, and in-process `pi.exec` commands (plus child processes on Linux, via `watchProcessUntilHostDies`) when it dies ([#5057](https://github.com/bastani-inc/atomic/issues/5057), [#6580](https://github.com/bastani-inc/atomic/pull/6580), [#6634](https://github.com/bastani-inc/atomic/pull/6634), [#6643](https://github.com/bastani-inc/atomic/pull/6643), [#6648](https://github.com/bastani-inc/atomic/pull/6648), [#6668](https://github.com/bastani-inc/atomic/pull/6668)).
|
|
61
|
+
- **Immediate resume recovery after a killed build.** Resuming after Atomic was killed mid-build no longer waits 5 minutes on Linux, Windows, or macOS. Build locks record step starts atomically, and Atomic now reads process creation times on macOS so session claims and locks tell dead processes from reused PIDs ([#6684](https://github.com/bastani-inc/atomic/pull/6684), [#6694](https://github.com/bastani-inc/atomic/pull/6694), [#6704](https://github.com/bastani-inc/atomic/issues/6704)).
|
|
62
|
+
- **`atomic storage status`, backdated files, stall stacks, and review viewer on macOS.** The standalone macOS binary's `atomic storage status` no longer reports cleanly closed local SQLite stores as failed with SQLite code 14 ([#6622](https://github.com/bastani-inc/atomic/pull/6622)); JSONL sessions and agent-directory locks survive backdated file timestamps ([#6647](https://github.com/bastani-inc/atomic/pull/6647), [#6661](https://github.com/bastani-inc/atomic/pull/6661), [#4319](https://github.com/bastani-inc/atomic/issues/4319)); event-loop stall reports keep stacks after sleep ([#6583](https://github.com/bastani-inc/atomic/pull/6583)); and the `skill-creator` review viewer opens at once without stalling on reverse DNS for `127.0.0.1` ([#6687](https://github.com/bastani-inc/atomic/pull/6687), [#6691](https://github.com/bastani-inc/atomic/issues/6691)).
|
|
63
|
+
- **Compaction limits, network causes, and retired default models.** Compaction models such as `morph/morph-compactor` no longer discard output over 32,000 estimated tokens or re-compact before every tool call in the same turn ([#6649](https://github.com/bastani-inc/atomic/pull/6649), [#6671](https://github.com/bastani-inc/atomic/pull/6671)), compaction network errors name the cause including DNS filters (`0.0.0.0` / `::`) ([#6561](https://github.com/bastani-inc/atomic/pull/6561)), and login picks another catalog model if a provider retires Atomic's default ([#6582](https://github.com/bastani-inc/atomic/pull/6582)).
|
|
64
|
+
- **Intercom ordering, redelivery, sockets, and backup isolation.** Messages keep per-sender order when a session moves to its sender's machine ([#6651](https://github.com/bastani-inc/atomic/pull/6651), [#6637](https://github.com/bastani-inc/atomic/issues/6637)), transient inbox-save failures no longer strand same-connection reply redeliveries and contended stores no longer let plain local sends overtake an active local reply ([#6729](https://github.com/bastani-inc/atomic/pull/6729), [#6736](https://github.com/bastani-inc/atomic/pull/6736), [#6712](https://github.com/bastani-inc/atomic/issues/6712)), Intercom uses its fallback Unix socket for long relative agent directories on macOS and Linux ([#6585](https://github.com/bastani-inc/atomic/pull/6585)), and relocated backups of a custom `ATOMIC_CODING_AGENT_DIR` stay separate from the original store even when inodes are recycled ([#5242](https://github.com/bastani-inc/atomic/issues/5242), [#6570](https://github.com/bastani-inc/atomic/pull/6570)).
|
|
167
65
|
|
|
168
66
|
</Update>
|
|
169
67
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12-alpha.1",
|
|
4
4
|
"description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"atomicConfig": {
|
|
@@ -118,13 +118,13 @@
|
|
|
118
118
|
"prepack": "node -e \"require('node:fs').existsSync('scripts/split-dist.mjs') && import('./scripts/split-dist.mjs').then(() => import('./scripts/write-startup-files.mjs')).then(() => import('./scripts/write-startup-stages.mjs'))\""
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@bastani/atomic-natives": "0.10.
|
|
122
|
-
"@bastani/atomic-ai": "0.10.
|
|
123
|
-
"@bastani/atomic-agent-core": "0.10.
|
|
124
|
-
"@bastani/atomic-codemode": "0.10.
|
|
125
|
-
"@bastani/atomic-tui": "0.10.
|
|
126
|
-
"@bastani/atomic-schema": "0.10.
|
|
127
|
-
"@bastani/atomic-telemetry": "0.10.
|
|
121
|
+
"@bastani/atomic-natives": "0.10.12-alpha.1",
|
|
122
|
+
"@bastani/atomic-ai": "0.10.12-alpha.1",
|
|
123
|
+
"@bastani/atomic-agent-core": "0.10.12-alpha.1",
|
|
124
|
+
"@bastani/atomic-codemode": "0.10.12-alpha.1",
|
|
125
|
+
"@bastani/atomic-tui": "0.10.12-alpha.1",
|
|
126
|
+
"@bastani/atomic-schema": "0.10.12-alpha.1",
|
|
127
|
+
"@bastani/atomic-telemetry": "0.10.12-alpha.1",
|
|
128
128
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
129
129
|
"chalk": "6.0.0",
|
|
130
130
|
"glob": "14.0.6",
|