@bastani/atomic 0.10.9 → 0.10.10-alpha.2
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 +83 -0
- package/README.md +226 -163
- 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 +27 -12
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
- package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
- package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
- package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +150 -62
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
- package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
- package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
- package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
- package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
- package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
- package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
- package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +6 -0
- package/dist/builtin/intercom/README.md +87 -116
- package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
- package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
- package/dist/builtin/intercom/group.ts +7 -3
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/README.md +61 -27
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +8 -0
- package/dist/builtin/subagents/README.md +74 -141
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
- package/dist/builtin/web-access/CHANGELOG.md +9 -0
- package/dist/builtin/web-access/README.md +61 -88
- package/dist/builtin/web-access/index.bundle.mjs +387 -351
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +2 -2
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.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.code.js +2 -2
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +2 -2
- 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.code.js +2 -2
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +2 -2
- 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/agent-session-methods.d.ts +4 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/compaction/compactor.d.ts +20 -14
- package/dist/core/compaction/errors.d.ts +120 -0
- package/dist/core/compaction/index.d.ts +1 -0
- package/dist/core/compaction/model-resolver.d.ts +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.code.js +1 -1
- 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/api-types.d.ts +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- 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.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/provider-types.d.ts +18 -6
- package/dist/core/extensions/provider-types.js.map +1 -1
- package/dist/core/extensions/runner-context.js +1 -1
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- 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 +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/model-config.d.ts +40 -0
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-scope.d.ts +4 -4
- package/dist/core/model-runtime.d.ts +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/provider-composer-internal.d.ts +11 -2
- package/dist/core/sdk.code.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 +5 -5
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- 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/settings-manager-basic-accessors.d.ts +6 -2
- 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 +3 -3
- 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.code.js +2 -2
- 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 +3 -3
- 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 +3 -3
- 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.code.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 +3 -3
- 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.code.js +1 -1
- 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.code.js +1 -1
- 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 +3 -3
- 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 +4 -4
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.code.js +1 -1
- 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.code.js +2 -2
- 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.code.js +3 -3
- 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.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +2 -2
- 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.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index-extensions.d.ts +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +7 -7
- package/dist/main-first-time-setup.code.js +2 -2
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- 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/modes/interactive/theme/color-utils.d.ts +5 -5
- package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
- package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
- package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
- package/dist/modes/rpc/rpc-types.d.ts +29 -2
- package/dist/package-manager-cli.code.js +5 -5
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +1 -2
- package/dist/startup-stages/9.js +2 -1
- package/dist/utils/native-module.d.ts +44 -0
- package/dist/utils/startup-database-spare.code.js +3 -3
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks.md +238 -243
- package/docs/build.md +21 -15
- package/docs/changelog.mdx +1 -1
- package/docs/codemode.md +68 -51
- package/docs/compaction/reference.md +65 -26
- package/docs/compaction.md +118 -66
- package/docs/computer-use.md +179 -146
- package/docs/containerization.md +87 -33
- package/docs/custom-provider/api-reference.md +152 -13
- package/docs/custom-provider/oauth.md +45 -28
- package/docs/custom-provider/override.md +14 -7
- package/docs/custom-provider/registration.md +77 -67
- package/docs/custom-provider/streaming.md +42 -19
- package/docs/custom-provider.md +26 -62
- package/docs/development.md +81 -42
- package/docs/docs.json +54 -38
- package/docs/environment-variables.md +92 -64
- package/docs/extensions/api-reference.md +326 -735
- package/docs/extensions/authoring.md +186 -269
- package/docs/extensions/events.md +308 -375
- package/docs/extensions/examples.md +122 -74
- package/docs/extensions/ui.md +217 -197
- package/docs/extensions.md +189 -259
- package/docs/getting-started/authentication.md +27 -14
- package/docs/getting-started/first-session.md +25 -26
- package/docs/getting-started/installation.md +62 -84
- package/docs/getting-started/project-instructions.md +39 -14
- package/docs/guides/configuration.md +62 -20
- package/docs/guides/intercom.md +20 -12
- package/docs/guides/non-interactive.md +31 -16
- package/docs/guides/orchestration.md +17 -9
- package/docs/guides/resume-on-any-machine.md +63 -52
- package/docs/guides/subagents.md +26 -14
- package/docs/guides/team-setup.md +49 -27
- package/docs/guides.md +30 -23
- package/docs/herdr.md +22 -17
- package/docs/index.md +24 -17
- package/docs/intercom/operations.md +90 -66
- package/docs/intercom/reference.md +219 -192
- package/docs/intercom.md +111 -92
- package/docs/json.md +73 -71
- package/docs/keybindings.md +74 -48
- package/docs/libraries/agent-core.md +52 -9
- package/docs/libraries/ai.md +90 -63
- package/docs/libraries/codemode.md +31 -8
- package/docs/libraries/schema.md +12 -9
- package/docs/libraries/storage-libsql.md +92 -0
- package/docs/libraries/storage-postgres.md +119 -0
- package/docs/libraries/telemetry.md +42 -9
- package/docs/libraries/tui.md +74 -94
- package/docs/libraries.md +25 -8
- package/docs/llama-cpp.md +38 -33
- package/docs/mcp-servers.md +140 -88
- package/docs/models/reference.md +53 -36
- package/docs/models-configuration.md +19 -13
- package/docs/models.md +102 -87
- package/docs/orchestration/migrating-workflows.md +22 -20
- package/docs/orchestration/patterns.md +36 -21
- package/docs/orchestration.md +24 -21
- package/docs/packages/authoring.md +29 -18
- package/docs/packages/reference.md +77 -16
- package/docs/packages.md +34 -34
- package/docs/programmatic.md +28 -21
- package/docs/prompt-templates.md +65 -41
- package/docs/providers/reference.md +36 -20
- package/docs/providers.md +78 -76
- package/docs/quickstart.md +42 -54
- package/docs/reference/cli.md +256 -254
- package/docs/reference.md +30 -23
- package/docs/rpc/examples.md +121 -17
- package/docs/rpc/extension-ui.md +86 -63
- package/docs/rpc/protocol.md +817 -358
- package/docs/rpc.md +78 -152
- package/docs/sdk/reference.md +309 -73
- package/docs/sdk/storage.md +614 -0
- package/docs/sdk/structured-decisions.md +168 -65
- package/docs/sdk/web-server.md +80 -46
- package/docs/sdk.md +168 -215
- package/docs/security.md +117 -44
- package/docs/session-format.md +127 -76
- package/docs/sessions.md +155 -113
- package/docs/settings.md +293 -205
- package/docs/shell-aliases.md +15 -6
- package/docs/skills/authoring.md +17 -9
- package/docs/skills/reference.md +23 -21
- package/docs/skills.md +148 -97
- package/docs/storage.md +172 -260
- package/docs/subagents/authoring.md +148 -15
- package/docs/subagents/reference.md +105 -29
- package/docs/subagents.md +247 -250
- package/docs/terminal-setup.md +97 -69
- package/docs/termux.md +51 -85
- package/docs/themes/reference.md +51 -37
- package/docs/themes.md +52 -55
- package/docs/tmux.md +38 -21
- package/docs/tools.md +209 -147
- package/docs/tui/reference.md +64 -32
- package/docs/tui.md +38 -66
- package/docs/usage.md +94 -86
- package/docs/verification.md +25 -25
- package/docs/web-access.md +106 -54
- package/docs/windows.md +55 -57
- package/docs/worktree-snapshots.md +82 -74
- package/examples/sdk/11-sessions.ts +4 -4
- package/package.json +8 -8
- package/schemas/models.schema.json +58 -7
- package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
- package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
- package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
- package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
package/docs/docs.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"logo": "/logo.svg",
|
|
6
6
|
"favicon": "/favicon.svg",
|
|
7
7
|
"colors": {
|
|
8
|
-
"primary": "#
|
|
8
|
+
"primary": "#1E40AF",
|
|
9
9
|
"light": "#60A5FA",
|
|
10
|
-
"dark": "#
|
|
10
|
+
"dark": "#2563EB"
|
|
11
11
|
},
|
|
12
12
|
"navigation": {
|
|
13
13
|
"tabs": [
|
|
@@ -15,41 +15,31 @@
|
|
|
15
15
|
"tab": "Learn",
|
|
16
16
|
"groups": [
|
|
17
17
|
{
|
|
18
|
-
"group": "
|
|
19
|
-
"pages": [
|
|
20
|
-
"index"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"group": "Quickstart",
|
|
18
|
+
"group": "Get started",
|
|
25
19
|
"pages": [
|
|
20
|
+
"index",
|
|
26
21
|
"quickstart",
|
|
27
22
|
"getting-started/installation",
|
|
28
23
|
"getting-started/authentication",
|
|
29
24
|
"getting-started/first-session",
|
|
30
|
-
"getting-started/project-instructions"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"group": "Start here",
|
|
35
|
-
"pages": [
|
|
25
|
+
"getting-started/project-instructions",
|
|
36
26
|
"guides"
|
|
37
27
|
]
|
|
38
28
|
},
|
|
39
29
|
{
|
|
40
|
-
"group": "
|
|
30
|
+
"group": "Use Atomic daily",
|
|
41
31
|
"pages": [
|
|
42
32
|
"usage",
|
|
43
33
|
"guides/non-interactive",
|
|
34
|
+
"guides/configuration",
|
|
44
35
|
"sessions",
|
|
45
36
|
"worktree-snapshots",
|
|
46
37
|
"guides/resume-on-any-machine",
|
|
47
|
-
"compaction"
|
|
48
|
-
"guides/configuration"
|
|
38
|
+
"compaction"
|
|
49
39
|
]
|
|
50
40
|
},
|
|
51
41
|
{
|
|
52
|
-
"group": "
|
|
42
|
+
"group": "Delegate and automate",
|
|
53
43
|
"pages": [
|
|
54
44
|
"guides/orchestration",
|
|
55
45
|
"guides/subagents",
|
|
@@ -68,7 +58,7 @@
|
|
|
68
58
|
]
|
|
69
59
|
},
|
|
70
60
|
{
|
|
71
|
-
"group": "
|
|
61
|
+
"group": "Security and isolation",
|
|
72
62
|
"pages": [
|
|
73
63
|
"security",
|
|
74
64
|
"containerization"
|
|
@@ -80,13 +70,13 @@
|
|
|
80
70
|
"tab": "Build",
|
|
81
71
|
"groups": [
|
|
82
72
|
{
|
|
83
|
-
"group": "
|
|
73
|
+
"group": "Overview",
|
|
84
74
|
"pages": [
|
|
85
75
|
"build"
|
|
86
76
|
]
|
|
87
77
|
},
|
|
88
78
|
{
|
|
89
|
-
"group": "
|
|
79
|
+
"group": "Customize Atomic",
|
|
90
80
|
"pages": [
|
|
91
81
|
{
|
|
92
82
|
"group": "Skills",
|
|
@@ -110,7 +100,7 @@
|
|
|
110
100
|
]
|
|
111
101
|
},
|
|
112
102
|
{
|
|
113
|
-
"group": "Orchestrate
|
|
103
|
+
"group": "Orchestrate agents",
|
|
114
104
|
"pages": [
|
|
115
105
|
"orchestration",
|
|
116
106
|
"orchestration/patterns",
|
|
@@ -132,14 +122,14 @@
|
|
|
132
122
|
]
|
|
133
123
|
},
|
|
134
124
|
{
|
|
135
|
-
"group": "
|
|
125
|
+
"group": "Share packages",
|
|
136
126
|
"pages": [
|
|
137
127
|
"packages",
|
|
138
128
|
"packages/authoring"
|
|
139
129
|
]
|
|
140
130
|
},
|
|
141
131
|
{
|
|
142
|
-
"group": "
|
|
132
|
+
"group": "Custom models and providers",
|
|
143
133
|
"pages": [
|
|
144
134
|
"models",
|
|
145
135
|
"custom-provider",
|
|
@@ -150,11 +140,18 @@
|
|
|
150
140
|
]
|
|
151
141
|
},
|
|
152
142
|
{
|
|
153
|
-
"group": "
|
|
143
|
+
"group": "Embed and integrate",
|
|
154
144
|
"pages": [
|
|
155
145
|
"programmatic",
|
|
156
|
-
|
|
157
|
-
|
|
146
|
+
{
|
|
147
|
+
"group": "TypeScript SDK",
|
|
148
|
+
"pages": [
|
|
149
|
+
"sdk",
|
|
150
|
+
"sdk/storage",
|
|
151
|
+
"sdk/structured-decisions",
|
|
152
|
+
"sdk/web-server"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
158
155
|
"rpc",
|
|
159
156
|
"rpc/extension-ui",
|
|
160
157
|
"rpc/examples",
|
|
@@ -169,7 +166,9 @@
|
|
|
169
166
|
"libraries/agent-core",
|
|
170
167
|
"libraries/codemode",
|
|
171
168
|
"libraries/schema",
|
|
172
|
-
"libraries/telemetry"
|
|
169
|
+
"libraries/telemetry",
|
|
170
|
+
"libraries/storage-postgres",
|
|
171
|
+
"libraries/storage-libsql"
|
|
173
172
|
]
|
|
174
173
|
}
|
|
175
174
|
]
|
|
@@ -180,7 +179,7 @@
|
|
|
180
179
|
"tab": "Reference",
|
|
181
180
|
"groups": [
|
|
182
181
|
{
|
|
183
|
-
"group": "
|
|
182
|
+
"group": "Core reference",
|
|
184
183
|
"pages": [
|
|
185
184
|
"reference",
|
|
186
185
|
"reference/cli",
|
|
@@ -190,27 +189,36 @@
|
|
|
190
189
|
"tools",
|
|
191
190
|
"codemode",
|
|
192
191
|
"mcp-servers",
|
|
193
|
-
"web-access"
|
|
194
|
-
"session-format"
|
|
192
|
+
"web-access"
|
|
195
193
|
]
|
|
196
194
|
},
|
|
197
195
|
{
|
|
198
|
-
"group": "
|
|
196
|
+
"group": "Models, sessions, and storage",
|
|
199
197
|
"pages": [
|
|
200
198
|
"providers/reference",
|
|
201
199
|
"models/reference",
|
|
202
200
|
"models-configuration",
|
|
201
|
+
"session-format",
|
|
203
202
|
"compaction/reference",
|
|
203
|
+
"storage"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"group": "Customization reference",
|
|
208
|
+
"pages": [
|
|
204
209
|
"skills/reference",
|
|
205
210
|
"subagents/reference",
|
|
206
211
|
"intercom/reference",
|
|
207
212
|
"packages/reference",
|
|
208
|
-
"themes/reference"
|
|
213
|
+
"themes/reference"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"group": "API and protocol reference",
|
|
218
|
+
"pages": [
|
|
209
219
|
"extensions/api-reference",
|
|
210
220
|
"custom-provider/api-reference",
|
|
211
221
|
"sdk/reference",
|
|
212
|
-
"storage",
|
|
213
|
-
"sdk/structured-decisions",
|
|
214
222
|
"rpc/protocol",
|
|
215
223
|
"tui/reference"
|
|
216
224
|
]
|
|
@@ -227,7 +235,7 @@
|
|
|
227
235
|
]
|
|
228
236
|
},
|
|
229
237
|
{
|
|
230
|
-
"group": "
|
|
238
|
+
"group": "Diagnostics and changelog",
|
|
231
239
|
"pages": [
|
|
232
240
|
"development",
|
|
233
241
|
"changelog"
|
|
@@ -301,6 +309,14 @@
|
|
|
301
309
|
{
|
|
302
310
|
"source": "/models/model-selection",
|
|
303
311
|
"destination": "/models"
|
|
304
|
-
}
|
|
312
|
+
},
|
|
313
|
+
{ "source": "/postgres", "destination": "/storage#postgresql" },
|
|
314
|
+
{ "source": "/postgresql", "destination": "/storage#postgresql" },
|
|
315
|
+
{ "source": "/libsql", "destination": "/storage#turso-and-libsql" },
|
|
316
|
+
{ "source": "/turso", "destination": "/storage#turso-and-libsql" },
|
|
317
|
+
{ "source": "/decisions", "destination": "/sdk/structured-decisions" },
|
|
318
|
+
{ "source": "/structured-decisions", "destination": "/sdk/structured-decisions" },
|
|
319
|
+
{ "source": "/compactors", "destination": "/compaction#customize-morph-or-add-a-remote-compactor" },
|
|
320
|
+
{ "source": "/blueprints", "destination": "/guides/resume-on-any-machine#set-the-environment-up-with-a-blueprint" }
|
|
305
321
|
]
|
|
306
322
|
}
|
|
@@ -1,81 +1,107 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Environment variables"
|
|
3
|
-
|
|
3
|
+
sidebarTitle: "Environment variables"
|
|
4
|
+
description: "Reference for Atomic environment variables, exact value parsing rules, legacy Pi aliases, color controls, and shell metadata."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
Atomic reads environment variables for configuration, provider credentials, terminal overrides, and subprocess context. When an `ATOMIC_*` variable and its legacy `PI_*` alias are both set, the `ATOMIC_*` variable always takes precedence (for example, `ATOMIC_NO_PTY=0` overrides `PI_NO_PTY=1`).
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
## How boolean and numeric values are parsed
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
Variables use different parsing rules depending on their category:
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
- **Exact `"1"` only** (`"true"` and `"yes"` do not enable): `ATOMIC_DEBUG`, `ATOMIC_TIMING`, `ATOMIC_REDUCED_MOTION`, `ATOMIC_EXPERIMENTAL`, `ATOMIC_NO_PTY`, `ATOMIC_HARDWARE_CURSOR`, `ATOMIC_CLEAR_ON_SHRINK`, `ATOMIC_CLIPBOARD_OSC52`, `ATOMIC_ALLOW_BROWSER_COOKIES`, `ATOMIC_ALLOW_PRIVATE_URL_READS`, `ATOMIC_TUI_DEBUG`, `ATOMIC_TUI_DEBUG_REDRAW`, and `HERDR_ENV`.
|
|
14
|
+
- **`"1"`, `"true"`, or `"yes"` (case-insensitive):** `ATOMIC_OFFLINE` (`"0"` and `"false"` keep Atomic online), `ATOMIC_SKIP_VERSION_CHECK` (`"0"` and `"false"` keep startup version checks enabled), and `ATOMIC_TELEMETRY` (any other defined value, including `"0"`, `"false"`, `"no"`, or `""`, disables version-adoption pings and disables provider attribution headers for OpenRouter, NVIDIA, and OpenCode).
|
|
15
|
+
- **`"1"`/`"true"` or `"0"`/`"false"` (case-insensitive, trimmed):** `ATOMIC_INTERCOM_JOIN_AT_STARTUP` (other values are ignored).
|
|
16
|
+
- **Any defined value (including empty string `""`):** `NO_COLOR` and `NODE_DISABLE_COMPILE_CACHE`. Unset these variables instead of setting them to `"0"`.
|
|
17
|
+
- **Exact `"0"`:** `ATOMIC_EVENT_LOOP_BLOCK_STACKS` (trimmed) and `ATOMIC_TASK_CGROUP` (exact `"0"`, not trimmed).
|
|
18
|
+
- **Numeric values:** Invalid or negative values silently fall back to the default (or disable stall logging for `ATOMIC_EVENT_LOOP_BLOCK_MS`).
|
|
19
|
+
|
|
20
|
+
## Core and session variables
|
|
21
|
+
|
|
22
|
+
| Atomic variable | Legacy alias | Accepted values and behavior |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| `ATOMIC_CODING_AGENT_DIR` | `PI_CODING_AGENT_DIR` | Path to the agent and config directory (default `~/.atomic/agent`). Read each time a session or extension load starts, so caches follow the active value. An [SDK](/sdk) session's `agentDir` option ([SDK directories](/sdk/reference#directories)) takes precedence |
|
|
25
|
+
| `ATOMIC_OFFLINE` | `PI_OFFLINE` | `1`, `true`, or `yes` (case-insensitive) disables automatic network activity: update checks, package updates, telemetry, model catalog refreshes, and downloads of `fd`, `rg`, and [Git](/getting-started/installation#git). `0` and `false` keep Atomic online |
|
|
26
|
+
| `ATOMIC_CACHE_RETENTION` | `PI_CACHE_RETENTION` | Case-sensitive `long` (default in Atomic CLI and SDK sessions), `short`, or `none`. Unrecognized non-empty values fall back to `short`. Standalone [`@bastani/atomic-ai`](/libraries/ai) defaults to `short`. See [Prompt-cache retention](#prompt-cache-retention) |
|
|
27
|
+
| `ATOMIC_MODEL_CATALOG_URL` | `PI_MODEL_CATALOG_URL` | Base URL for `<url>/api.json` model catalog refreshes (default `https://models.dev`). Refreshes run at most once every four hours per provider (or on `atomic update --models`), keeping the bundled catalog if download fails. See [Configure custom models](/models) |
|
|
28
|
+
| `ATOMIC_SHARE_VIEWER_URL` | `PI_SHARE_VIEWER_URL` | Base URL of the viewer that `/share` links open (default `https://bastani.ai/session/`; the gist ID is appended after `#`) |
|
|
29
|
+
| `ATOMIC_SKIP_VERSION_CHECK` | `PI_SKIP_VERSION_CHECK` | `1`, `true`, or `yes` (case-insensitive) skips automatic startup version checks; `0` and `false` keep checks enabled. Explicit self-update still checks |
|
|
21
30
|
| `ATOMIC_SELF_UPDATE_COMMAND` | `PI_SELF_UPDATE_COMMAND` | Command `atomic update` runs to update Atomic itself, split on whitespace, with `{packageName}`, `{version}`, and `{installSpec}` placeholders. Takes precedence over `selfUpdateCommand`. See [Custom update command](/reference/cli#custom-update-command) |
|
|
22
|
-
| `ATOMIC_TELEMETRY` | `PI_TELEMETRY` |
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `ATOMIC_EVENT_LOOP_BLOCK_LOG` | None | Alternate output file for `ATOMIC_EVENT_LOOP_BLOCK_MS`; relative paths resolve from the startup directory |
|
|
29
|
-
| `ATOMIC_EVENT_LOOP_BLOCK_STACKS` | None | Set to `0` to record stall and delay timings without CPU stack sampling overhead |
|
|
30
|
-
| `ATOMIC_EXPERIMENTAL` | `PI_EXPERIMENTAL` | Set to `1` to enable experimental features and preferred strict JSON-schema constrained sampling for additional built-in tools; `read`, `edit`, `write`, `bash`, and PowerShell already prefer strict sampling by default. The footer shows an `xp` badge |
|
|
31
|
-
| `ATOMIC_NO_PTY` | `PI_NO_PTY` | Set to `1` to disable PTY allocation for `bash` and `powershell` tool commands and force pipe execution |
|
|
32
|
-
| `ATOMIC_OAUTH_CALLBACK_HOST` | `PI_OAUTH_CALLBACK_HOST` | Bind host for the local OAuth callback server during `/login`; default `127.0.0.1` |
|
|
33
|
-
| `ATOMIC_HARDWARE_CURSOR` | `PI_HARDWARE_CURSOR` | Set to `1` to use the hardware terminal cursor when `showHardwareCursor` is unset in settings |
|
|
34
|
-
| `ATOMIC_CLEAR_ON_SHRINK` | `PI_CLEAR_ON_SHRINK` | Set to `1` to clear empty rows when rendered content shrinks; `terminal.clearOnShrink` in [Settings](/settings) takes precedence |
|
|
35
|
-
| `ATOMIC_CLIPBOARD_OSC52` | `PI_CLIPBOARD_OSC52` | Set to `1` to also send copied text via OSC 52 after local clipboard writes, useful for remote multiplexers or IDE daemons without SSH env vars |
|
|
36
|
-
| `ATOMIC_INTERCOM_GROUP` | `PI_INTERCOM_GROUP` | Static home Intercom group for this session. See [Intercom reference](/intercom/reference#configuration) |
|
|
37
|
-
| `ATOMIC_INTERCOM_JOIN_AT_STARTUP` | `PI_INTERCOM_JOIN_AT_STARTUP` | `1`/`true` or `0`/`false` to override whether interactive sessions join Intercom at startup regardless of Intercom config |
|
|
38
|
-
| `ATOMIC_ALLOW_BROWSER_COOKIES` | None | Set to `1` to allow Gemini Web browser cookie reading without setting `allowBrowserCookies: true` in `~/.atomic/web-search.json` ([Web access](/web-access)) |
|
|
31
|
+
| `ATOMIC_TELEMETRY` | `PI_TELEMETRY` | `1`/`true`/`yes` enables version-adoption pings; any other defined value (including `0`, `false`, `no`, or `""`) disables pings and disables provider attribution headers for OpenRouter, NVIDIA, and OpenCode. Does not disable update checks |
|
|
32
|
+
| `ATOMIC_OAUTH_CALLBACK_HOST` | `PI_OAUTH_CALLBACK_HOST` | Bind host for the local OAuth callback server during `/login` (default `127.0.0.1`) |
|
|
33
|
+
| `ATOMIC_PACKAGE_DIR` | `PI_PACKAGE_DIR` | Override package asset directory (useful for Nix or Guix store paths) |
|
|
34
|
+
| `ATOMIC_TODO_PATH` | `PI_TODO_PATH` | Override directory used by the built-in `todo` tool (default `.atomic/todos`) |
|
|
35
|
+
| `ATOMIC_ALLOW_BROWSER_COOKIES` | None | Exact `1` allows Gemini Web browser cookie reading without setting `allowBrowserCookies: true` in `~/.atomic/web-search.json` ([Web access](/web-access)). Setting `0` does not override `web-search.json` |
|
|
36
|
+
| `ATOMIC_ALLOW_PRIVATE_URL_READS` | None | Exact `1` allows the `read` tool to fetch `localhost`, `.localhost`, private IP addresses, and cloud metadata endpoints (blocked by default) |
|
|
39
37
|
| `ATOMIC_BLUEPRINT_GITHUB_BASE_URL` | None | Replace `https://github.com` when fetching blueprint `uses:` actions |
|
|
40
|
-
| `
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
| `VISUAL`, `EDITOR` | None | External editor for `Ctrl+G` when `externalEditor` is unset in settings. Falls back to `notepad` on Windows or `nano` on macOS and Linux when all three are unset |
|
|
39
|
+
|
|
40
|
+
## Storage and team variables
|
|
41
|
+
|
|
42
|
+
| Atomic variable | Legacy alias | Accepted values and behavior |
|
|
43
|
+
| --- | --- | --- |
|
|
44
|
+
| `ATOMIC_CODING_AGENT_SESSION_DIR` | None | Non-empty path selects a JSONL session directory (`--session-dir` and `--no-session` take precedence; see [CLI session options](/reference/cli#session-options)). Relative paths resolve from the working directory; empty values leave [session settings](/settings#sessions) in effect. Combining a non-empty value with `--storage`, `--storage-file`, or `ATOMIC_SESSIONS_STORAGE` fails startup with `StorageConfigError` (`conflicting-overrides`) |
|
|
45
|
+
| `ATOMIC_STORAGE` | None | Shared storage selection JSON for sessions without their own selection and for Intercom (`{ "dir": "..." }` is forbidden here). Overrides [settings](/settings#sessions) but not `--storage`, session flags, or session-specific env vars. See [Selecting storage per process](/storage#selecting-storage-per-process) and [SDK storage](/sdk/storage) |
|
|
46
|
+
| `ATOMIC_SESSIONS_STORAGE` | None | Session-only storage selection JSON in the same form as [`sessions.storage`](/settings#sessions) (accepts `{ "dir": "..." }`). Conflicts with a non-empty `ATOMIC_CODING_AGENT_SESSION_DIR` |
|
|
43
47
|
| `ATOMIC_PROFILE` | None | `ci` selects the team database for sessions and Intercom from `ATOMIC_TEAM_*` without writing settings. See [Team and CI setup](/guides/team-setup#ci-and-swarms) |
|
|
44
|
-
| `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX` | None | Team database settings for `ATOMIC_PROFILE=ci`. Setting any without `ATOMIC_PROFILE=ci` fails startup. `ATOMIC_TEAM_TOKEN_FILE` must be an absolute path |
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
|
54
|
-
|
|
55
|
-
| `
|
|
48
|
+
| `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX` | None | Team database settings for `ATOMIC_PROFILE=ci`. Setting any without `ATOMIC_PROFILE=ci` fails startup. `ATOMIC_TEAM_TOKEN_FILE` must be an absolute path, and `ATOMIC_TEAM_TOKEN` cannot be combined with `ATOMIC_TEAM_TOKEN_FILE` |
|
|
49
|
+
| `ATOMIC_INTERCOM_GROUP` | `PI_INTERCOM_GROUP` | Static home Intercom group for this session. See [Intercom reference](/intercom/reference#configuration) |
|
|
50
|
+
| `ATOMIC_INTERCOM_JOIN_AT_STARTUP` | `PI_INTERCOM_JOIN_AT_STARTUP` | `1`/`true` or `0`/`false` (case-insensitive, trimmed) overrides whether interactive sessions join Intercom at startup regardless of Intercom config |
|
|
51
|
+
|
|
52
|
+
## Terminal and display variables
|
|
53
|
+
|
|
54
|
+
| Variable | Legacy alias | Accepted values and behavior |
|
|
55
|
+
| --- | --- | --- |
|
|
56
|
+
| `NO_COLOR` | None | Any defined value (including empty string `""`) disables foreground and background colors and text styles in the TUI and switches installer output to plain text. Always takes precedence over `FORCE_COLOR` |
|
|
57
|
+
| `FORCE_COLOR` | None | `0` or `false` disables all colors and text styles (same as `NO_COLOR`). `1`, `true`, empty string `""`, or `2` caps true-color themes at 256 colors (never upgrades a terminal's detected color depth). `3` keeps the terminal's detected color mode. Ignored when `NO_COLOR` is set |
|
|
58
|
+
| `ATOMIC_REDUCED_MOTION` | None | Exact `1` skips startup animations and keeps the working `∀` static while elapsed time still updates |
|
|
59
|
+
| `ATOMIC_HARDWARE_CURSOR` | `PI_HARDWARE_CURSOR` | Exact `1` enables the hardware terminal cursor when `showHardwareCursor` is unset in settings |
|
|
60
|
+
| `ATOMIC_CLEAR_ON_SHRINK` | `PI_CLEAR_ON_SHRINK` | Exact `1` clears empty rows when rendered content shrinks; `terminal.clearOnShrink` in [Settings](/settings) takes precedence |
|
|
61
|
+
| `ATOMIC_CLIPBOARD_OSC52` | `PI_CLIPBOARD_OSC52` | Exact `1` also forwards copied text via OSC 52 after local clipboard writes (useful for remote multiplexers or IDE daemons without SSH env vars) |
|
|
62
|
+
| `ATOMIC_TUI_ESC_TIMEOUT` | `PI_TUI_ESC_TIMEOUT` | Positive finite milliseconds the terminal waits after a lone `ESC` before treating it as Escape (default `100` over SSH, `10` otherwise; invalid values fall back to default). Increase if Alt keys register as Escape |
|
|
63
|
+
| `ATOMIC_HYPERLINKS` | `PI_HYPERLINKS` | `1`, `0`, or `auto` overrides OSC 8 hyperlink detection; explicit `terminal.hyperlinks` in settings takes precedence |
|
|
64
|
+
| `ATOMIC_TRUE_COLOR` | `PI_TRUE_COLOR` | `1`, `0`, or `auto` overrides 24-bit color detection; explicit `terminal.trueColor` in settings takes precedence |
|
|
65
|
+
| `ATOMIC_IMAGE_PROTOCOL` | `PI_IMAGE_PROTOCOL` | Case-insensitive `kitty`, `iterm2`, `none` (or `0`), or `auto` overrides inline image detection; explicit `terminal.images` in settings takes precedence |
|
|
66
|
+
| `ATOMIC_PROGRAM_STATUS` | `PI_PROGRAM_STATUS` | Exact `1` forces OSC 7501 program-status reports; exact `0` disables them; any other value or unset reports only after terminal confirmation ([Program status](/terminal-setup#program-status)) |
|
|
67
|
+
| `COLORFGBG` | None | Fallback terminal background hint when OSC 11 background queries are unavailable. Uses the last `;`-separated integer. Indices `0` to `6` and `8` map to dark, and other integers map to light. See [Themes](/themes) |
|
|
68
|
+
| `HERDR_ENV`, `HERDR_BIN_PATH`, `HERDR_PANE_ID`, `HERDR_SOCKET_PATH` | None | Set by Herdr inside managed panes. Exact `HERDR_ENV=1` with non-empty `HERDR_BIN_PATH`, `HERDR_PANE_ID`, and `HERDR_SOCKET_PATH` enables built-in pane status reporting; `HERDR_ENV=1` is also required for Herdr automation. See [Herdr](/herdr) |
|
|
69
|
+
|
|
70
|
+
## Diagnostics and performance
|
|
71
|
+
|
|
72
|
+
| Variable | Legacy alias | Accepted values and behavior |
|
|
73
|
+
| --- | --- | --- |
|
|
74
|
+
| `ATOMIC_DEBUG` | `PI_DEBUG` | Exact `1` turns on [debug mode](/development#debugging) for this run (same as `--debug`; footer shows a `debug` badge). `ATOMIC_DEBUG=0` does not override `debug: true` in settings |
|
|
75
|
+
| `ATOMIC_TIMING` | `PI_TIMING` | Exact `1` prints startup timings to stderr and resume timings for `atomic --session` ([Inspecting snapshots](/worktree-snapshots#inspecting-snapshots)) |
|
|
76
|
+
| `ATOMIC_STARTUP_TRACE` | `PI_STARTUP_TRACE` | File path to append JSONL startup milestones (process start, first paint, session ready, first provider request) with timestamps across the terminal UI and background session process |
|
|
77
|
+
| `ATOMIC_EVENT_LOOP_BLOCK_MS` | None | Positive integer milliseconds: log terminal UI or background session event-loop stalls at least this long to `event-loop-blocks.jsonl` in the agent directory (`0` or invalid disables). See [Finding what freezes the UI](/development#finding-what-freezes-the-ui) |
|
|
78
|
+
| `ATOMIC_EVENT_LOOP_BLOCK_LOG` | None | Alternate output file for `ATOMIC_EVENT_LOOP_BLOCK_MS`; relative paths resolve from the startup directory |
|
|
79
|
+
| `ATOMIC_EVENT_LOOP_BLOCK_STACKS` | None | Exact `0` (trimmed) records stall and delay timings without CPU stack sampling overhead |
|
|
80
|
+
| `ATOMIC_TUI_WRITE_LOG` | `PI_TUI_WRITE_LOG` | File path to capture raw terminal output written by the renderer ([Debug logging](/tui/reference#debug-logging)) |
|
|
81
|
+
| `ATOMIC_TUI_DEBUG`, `ATOMIC_TUI_DEBUG_REDRAW` | `PI_TUI_DEBUG`, `PI_TUI_DEBUG_REDRAW` | Exact `1` enables TUI debug and redraw diagnostics ([Debug logging](/tui/reference#debug-logging)) |
|
|
82
|
+
| `ATOMIC_EXPERIMENTAL` | `PI_EXPERIMENTAL` | Exact `1` enables experimental features and stricter JSON-schema tool-argument validation for additional built-in tools (`read`, `edit`, `write`, `bash`, and `powershell` already prefer strict schemas by default). The footer shows an `xp` badge |
|
|
83
|
+
| `ATOMIC_NO_PTY` | `PI_NO_PTY` | Exact `1` disables PTY allocation for `bash` and `powershell` tool commands and forces pipe execution |
|
|
84
|
+
| `ATOMIC_HEAP_MB` | `PI_HEAP_MB` | Node.js heap cap in MiB for interactive and non-interactive Node runs (unused by standalone binaries). Defaults to half of available system or container cgroup memory when larger than Node's default; `0` keeps Node's default; invalid values auto-size. Explicit Node heap flags (`--max-old-space-size`, `--max-old-space-size-percentage`, `--max-heap-size`) in `NODE_OPTIONS` or on the command line take precedence |
|
|
85
|
+
| `ATOMIC_STDIN_TIMEOUT_MS` | `PI_STDIN_TIMEOUT_MS` | Milliseconds a print-mode run (`-p`, `--mode json`) waits for the first piped byte or EOF before starting with a prompt argument (default `2000`, max `2147483647`, `0` waits until EOF; invalid values fall back to `2000`). See [Modes](/reference/cli#modes) |
|
|
86
|
+
| `ATOMIC_TOOL_ABORT_GRACE_MS` | None | Milliseconds (digits only) an interrupted tool call may keep running before the turn moves on with `Operation aborted` (default `10000`, max `2147483647`, `0` stops waiting immediately; invalid values fall back to `10000`). See [Message queue](/usage#message-queue) |
|
|
87
|
+
| `ATOMIC_CODEMODE_MAX_WORKERS` | `PI_CODEMODE_MAX_WORKERS` | Positive integer maximum live codemode workers per Atomic process (default `2`, each capped at 256 MiB; invalid values fall back to `2`). Extra scripts queue until a slot opens. See [Codemode](/codemode) |
|
|
88
|
+
| `ATOMIC_HOST_SPAWN` | None | Set to `child-process` to launch helper processes (Git snapshots, `rg`, `fd`, worktree setup, and standalone shell commands) through standard Node child spawning instead of Atomic's native spawner. Useful for troubleshooting process-spawning issues on Linux or Windows |
|
|
89
|
+
| `ATOMIC_TASK_CGROUP` | None | Exact `0` disables Linux cgroup v2 process-tree containment for background shell tasks. See [Lifetime, retention, and cleanup](/background-tasks#lifetime-retention-and-cleanup) |
|
|
56
90
|
| `NODE_COMPILE_CACHE` | None | Override the directory for Node's persistent compile cache, enabled automatically on Node 22.8+ to speed up startup. On Windows, a cold default cache warms in a background helper during interactive runs; setting `NODE_COMPILE_CACHE` lets Node write it on exit instead |
|
|
57
|
-
| `NODE_DISABLE_COMPILE_CACHE` | None |
|
|
91
|
+
| `NODE_DISABLE_COMPILE_CACHE` | None | Any defined value (including empty string `""`) prevents Node from enabling the compile cache |
|
|
58
92
|
| `NAPI_RS_NATIVE_LIBRARY_PATH` | None | Path to a custom `@bastani/atomic-natives` `.node` addon binary; bypasses the release version check |
|
|
59
|
-
| `VISUAL`, `EDITOR` | None | External editor for `Ctrl+G` when `externalEditor` is unset in settings |
|
|
60
|
-
| `ATOMIC_TUI_ESC_TIMEOUT` | `PI_TUI_ESC_TIMEOUT` | Milliseconds the renderer waits after a lone `ESC` before treating it as Escape; default is `100` over SSH and `10` otherwise. Increase if Alt keys register as Escape |
|
|
61
|
-
| `ATOMIC_HYPERLINKS` | `PI_HYPERLINKS` | `1`, `0`, or `auto` to override OSC 8 hyperlink detection; explicit `terminal.hyperlinks` in settings takes precedence |
|
|
62
|
-
| `ATOMIC_TRUE_COLOR` | `PI_TRUE_COLOR` | `1`, `0`, or `auto` to override 24-bit color detection; explicit `terminal.trueColor` in settings takes precedence |
|
|
63
|
-
| `ATOMIC_IMAGE_PROTOCOL` | `PI_IMAGE_PROTOCOL` | `kitty`, `iterm2`, `none`, or `auto` to override inline image detection; explicit `terminal.images` in settings takes precedence |
|
|
64
|
-
| `ATOMIC_PROGRAM_STATUS` | `PI_PROGRAM_STATUS` | `1` forces OSC 7501 program-status reports; `0` disables them; unset reports only after terminal confirmation ([Program status](/terminal-setup#program-status)) |
|
|
65
|
-
| `ATOMIC_TUI_WRITE_LOG` | `PI_TUI_WRITE_LOG` | Capture raw terminal output written by the renderer ([Debug logging](/tui/reference#debug-logging)) |
|
|
66
|
-
| `ATOMIC_TUI_DEBUG`, `ATOMIC_TUI_DEBUG_REDRAW` | `PI_TUI_DEBUG`, `PI_TUI_DEBUG_REDRAW` | Set to `1` to enable TUI debug and redraw diagnostics ([Debug logging](/tui/reference#debug-logging)) |
|
|
67
93
|
|
|
68
94
|
## Retired workflow variables
|
|
69
95
|
|
|
70
|
-
Unset `ATOMIC_WORKFLOWS_JOURNAL`, `ATOMIC_WORKFLOW_JOURNAL_PATH`, and `ATOMIC_WORKFLOW_ARTIFACT_DIR` when upgrading from 0.9.x. Atomic
|
|
96
|
+
Unset `ATOMIC_WORKFLOWS_JOURNAL`, `ATOMIC_WORKFLOW_JOURNAL_PATH`, and `ATOMIC_WORKFLOW_ARTIFACT_DIR` when upgrading from 0.9.x. Atomic still inspects `ATOMIC_WORKFLOWS_JOURNAL` and `ATOMIC_WORKFLOW_JOURNAL_PATH` only when checking whether a custom agent directory should adopt an existing parent storage home; otherwise they are not used and existing files are left untouched. `ATOMIC_WORKFLOW_ARTIFACT_DIR`, `ATOMIC_WORKFLOW_DEBUG`, and `ATOMIC_DEBUG_POOLED_WATCH` are ignored; use `ATOMIC_DEBUG=1` for current diagnostics.
|
|
71
97
|
|
|
72
98
|
## Session storage
|
|
73
99
|
|
|
74
100
|
Sessions default to `~/.atomic/workflows/journal.sqlite`. With a custom `ATOMIC_CODING_AGENT_DIR`, they default to `<agentDir>/workflows/journal.sqlite` (unless an eligible custom directory adopted an existing parent store; see [Storage home](/storage#storage-home)).
|
|
75
101
|
|
|
76
|
-
`ATOMIC_CODING_AGENT_SESSION_DIR` selects JSONL session files. Relative paths resolve against the working directory, and an empty value leaves settings in effect.
|
|
102
|
+
`ATOMIC_CODING_AGENT_SESSION_DIR` selects JSONL session files. Relative paths resolve against the working directory, and an empty value leaves settings in effect. Combining a non-empty value with `--storage`, `--storage-file`, or `ATOMIC_SESSIONS_STORAGE` fails startup with `StorageConfigError` (`conflicting-overrides`).
|
|
77
103
|
|
|
78
|
-
`ATOMIC_STORAGE` and `ATOMIC_SESSIONS_STORAGE` accept the same JSON selections as `storage` and `sessions.storage
|
|
104
|
+
`ATOMIC_STORAGE` and `ATOMIC_SESSIONS_STORAGE` accept the same JSON selections as [`storage` and `sessions.storage`](/settings#sessions), including adapters, with relative paths resolving from the storage home (`{ "dir": "..." }` is allowed in `ATOMIC_SESSIONS_STORAGE` and forbidden in `ATOMIC_STORAGE`). Use `{ "memory": true }` for process-local memory (never selected automatically after a storage failure). See [Selecting storage per process](/storage#selecting-storage-per-process), [CLI session options](/reference/cli#session-options), and [SDK storage](/sdk/storage).
|
|
79
105
|
|
|
80
106
|
## Prompt-cache retention
|
|
81
107
|
|
|
@@ -85,11 +111,13 @@ Atomic defaults to **long** prompt-cache retention in main chat and subagents wh
|
|
|
85
111
|
ATOMIC_CACHE_RETENTION=short atomic
|
|
86
112
|
```
|
|
87
113
|
|
|
114
|
+
Values are **case-sensitive** (`"long"`, `"short"`, or `"none"`). Any unrecognized non-empty value silently falls back to **`short`** (not `long`).
|
|
115
|
+
|
|
88
116
|
Use `short` for shorter caching (five minutes on Anthropic), `none` to disable Atomic's optional cache controls where supported, or `long` to request extended retention (one hour on Anthropic). Providers can still apply automatic caching depending on the model.
|
|
89
117
|
|
|
90
|
-
When unset, OpenAI models without known extended-retention support (such as GPT-4o) use ordinary caching, and Bedrock Claude models without known one-hour support (such as Claude 3.7) use five-minute caching. Supported OpenAI models and Bedrock Claude 4.5+ keep extended caching. For Bedrock application inference profiles, set an accurate model name in `models.json` so Atomic recognizes its capabilities. Custom OpenAI-compatible models can set `compat.supportsLongCacheRetention` in `models.json
|
|
118
|
+
When unset, OpenAI models without known extended-retention support (such as GPT-4o) use ordinary caching, and Bedrock Claude models without known one-hour support (such as Claude 3.7) use five-minute caching. Supported OpenAI models and Bedrock Claude 4.5+ keep extended caching. For Bedrock application inference profiles, set an accurate model name in [`models.json`](/models) so Atomic recognizes its capabilities. Custom OpenAI-compatible models can set `compat.supportsLongCacheRetention` in `models.json` (see [`models.json` field reference](/models-configuration)).
|
|
91
119
|
|
|
92
|
-
In SDK requests, explicit `cacheRetention` takes precedence over `ATOMIC_CACHE_RETENTION`, and request-scoped `env` overrides credential-scoped and process environments. Requests that disable caching (such as branch summaries) stay uncached.
|
|
120
|
+
In [SDK](/sdk) requests, explicit `cacheRetention` takes precedence over `ATOMIC_CACHE_RETENTION`, and request-scoped `env` overrides credential-scoped and process environments. Requests that disable caching (such as branch summaries) stay uncached. Direct calls to standalone [`@bastani/atomic-ai`](/libraries/ai) APIs default an unset `ATOMIC_CACHE_RETENTION` to `short` and enable `long` only when set to `"long"`, so disabling caching there requires passing `cacheRetention: "none"` explicitly.
|
|
93
121
|
|
|
94
122
|
[Anthropic's prompt-caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#pricing) charges **2x base input price for one-hour writes** versus **1.25x for five-minute writes**. Extended retention helps when prompts are reused after five minutes; `short` can cost less when cache hits happen within five minutes or prompts are rarely reused.
|
|
95
123
|
|
|
@@ -109,14 +137,14 @@ Requests refused for an untrusted certificate fail immediately without retrying
|
|
|
109
137
|
|
|
110
138
|
Provider API keys and cloud auth variables (such as `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `AZURE_OPENAI_API_KEY`, `GEMINI_API_KEY`, and AWS/Bedrock credentials) are documented in [Providers](/providers#environment-variables-or-auth-file).
|
|
111
139
|
|
|
112
|
-
`ANTHROPIC_AUTH_TOKEN` supplies a header-only bearer token (`Authorization: Bearer ...`) for Anthropic-compatible gateways without requiring an API key, across
|
|
140
|
+
`ANTHROPIC_AUTH_TOKEN` supplies a header-only bearer token (`Authorization: Bearer ...`) for Anthropic-compatible gateways without requiring an API key, across main chat turns, subagents, and branch summaries.
|
|
113
141
|
|
|
114
142
|
## Bash and PowerShell session environment
|
|
115
143
|
|
|
116
|
-
Every
|
|
144
|
+
Every `bash` and `powershell` tool call (including in subagents, RPC, and SDK sessions) receives one execution-time snapshot:
|
|
117
145
|
|
|
118
|
-
| Atomic variable |
|
|
119
|
-
|
|
146
|
+
| Atomic variable | Legacy alias | Value |
|
|
147
|
+
| --- | --- | --- |
|
|
120
148
|
| `ATOMIC_SESSION_ID` | `PI_SESSION_ID` | Active session ID |
|
|
121
149
|
| `ATOMIC_PROVIDER` | `PI_PROVIDER` | Active provider; omitted when no model is selected |
|
|
122
150
|
| `ATOMIC_MODEL` | `PI_MODEL` | Active model ID; omitted when no model is selected |
|
|
@@ -124,6 +152,6 @@ Every built-in, factory-created, direct, and isolated `bash` or `powershell` exe
|
|
|
124
152
|
|
|
125
153
|
Before overlaying those eight current snapshot values, Atomic clears all ten reserved names: the eight names in the table above plus the two retired session-file names `ATOMIC_SESSION_FILE` and `PI_SESSION_FILE`. Clearing all ten guarantees stale metadata from another session never leaks into a shell command. Unrelated inherited and caller-supplied variables remain intact.
|
|
126
154
|
|
|
127
|
-
`ATOMIC_SESSION_FILE` and `PI_SESSION_FILE` are no longer populated because session IDs identify records inside the active store rather than assuming a file path. The snapshot is captured when each command runs, so resumed sessions and model changes are always reflected. SDK `createBashTool()` and `createPowerShellTool()` expose these variables by default; pass `exposeSessionEnvironment: false` to omit them.
|
|
155
|
+
`ATOMIC_SESSION_FILE` and `PI_SESSION_FILE` are no longer populated because session IDs identify records inside the active store rather than assuming a file path. The snapshot is captured when each command runs, so resumed sessions and model changes are always reflected. SDK [`createBashTool()` and `createPowerShellTool()`](/sdk/reference#tools) expose these variables by default; pass `exposeSessionEnvironment: false` to omit them.
|
|
128
156
|
|
|
129
157
|
See [CLI environment variables](/reference/cli#environment-variables) and [RPC direct bash](/rpc/protocol#bash) for execution and streaming behavior.
|