@bastani/atomic 0.10.9-alpha.1 → 0.10.10-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/README.md +211 -155
- 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} +145 -58
- 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 +85 -114
- 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 +37 -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 +71 -138
- 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 +60 -87
- 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 +235 -243
- package/docs/build.md +12 -11
- package/docs/codemode.md +60 -51
- package/docs/compaction/reference.md +61 -24
- package/docs/compaction.md +117 -65
- package/docs/computer-use.md +179 -146
- package/docs/containerization.md +79 -33
- package/docs/custom-provider/api-reference.md +148 -11
- package/docs/custom-provider/oauth.md +44 -27
- package/docs/custom-provider/override.md +14 -7
- package/docs/custom-provider/registration.md +75 -65
- package/docs/custom-provider/streaming.md +42 -19
- package/docs/custom-provider.md +25 -61
- package/docs/development.md +47 -43
- package/docs/docs.json +33 -33
- package/docs/environment-variables.md +83 -57
- package/docs/extensions/api-reference.md +323 -734
- 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 +152 -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 +42 -20
- package/docs/guides/intercom.md +17 -13
- package/docs/guides/non-interactive.md +29 -16
- package/docs/guides/orchestration.md +16 -10
- package/docs/guides/resume-on-any-machine.md +54 -49
- package/docs/guides/subagents.md +22 -14
- package/docs/guides/team-setup.md +37 -26
- package/docs/guides.md +22 -21
- package/docs/herdr.md +21 -16
- package/docs/index.md +16 -17
- package/docs/intercom/operations.md +68 -66
- package/docs/intercom/reference.md +196 -191
- package/docs/intercom.md +103 -92
- package/docs/json.md +71 -71
- package/docs/keybindings.md +63 -50
- package/docs/libraries/agent-core.md +49 -8
- package/docs/libraries/ai.md +21 -12
- package/docs/libraries/codemode.md +28 -6
- package/docs/libraries/schema.md +7 -7
- package/docs/libraries/telemetry.md +7 -7
- package/docs/libraries/tui.md +74 -94
- package/docs/libraries.md +5 -5
- package/docs/llama-cpp.md +38 -33
- package/docs/mcp-servers.md +96 -90
- package/docs/models/reference.md +46 -33
- package/docs/models-configuration.md +12 -6
- package/docs/models.md +93 -88
- package/docs/orchestration/migrating-workflows.md +21 -19
- package/docs/orchestration/patterns.md +35 -20
- package/docs/orchestration.md +22 -21
- package/docs/packages/authoring.md +28 -19
- package/docs/packages/reference.md +75 -16
- package/docs/packages.md +31 -33
- package/docs/programmatic.md +22 -21
- package/docs/prompt-templates.md +63 -41
- package/docs/providers/reference.md +35 -19
- package/docs/providers.md +61 -71
- package/docs/quickstart.md +32 -46
- package/docs/reference/cli.md +249 -252
- package/docs/reference.md +23 -20
- package/docs/rpc/examples.md +74 -17
- package/docs/rpc/extension-ui.md +79 -62
- package/docs/rpc/protocol.md +816 -358
- package/docs/rpc.md +75 -151
- package/docs/sdk/reference.md +175 -45
- package/docs/sdk/structured-decisions.md +92 -62
- package/docs/sdk/web-server.md +79 -46
- package/docs/sdk.md +237 -195
- package/docs/security.md +106 -43
- package/docs/session-format.md +96 -59
- package/docs/sessions.md +149 -113
- package/docs/settings.md +289 -204
- 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 +104 -97
- package/docs/storage.md +140 -242
- package/docs/subagents/authoring.md +147 -16
- package/docs/subagents/reference.md +100 -30
- package/docs/subagents.md +220 -252
- package/docs/terminal-setup.md +97 -69
- package/docs/termux.md +51 -85
- package/docs/themes/reference.md +51 -37
- package/docs/themes.md +49 -54
- package/docs/tmux.md +38 -21
- package/docs/tools.md +198 -147
- package/docs/tui/reference.md +64 -32
- package/docs/tui.md +38 -66
- package/docs/usage.md +76 -78
- package/docs/verification.md +25 -25
- package/docs/web-access.md +72 -55
- package/docs/windows.md +53 -58
- package/docs/worktree-snapshots.md +62 -65
- package/package.json +8 -8
- package/schemas/models.schema.json +51 -0
- 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/reference/cli.md
CHANGED
|
@@ -1,53 +1,245 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: CLI reference
|
|
3
|
-
|
|
2
|
+
title: "CLI reference"
|
|
3
|
+
sidebarTitle: "CLI"
|
|
4
|
+
description: "Commands, flags, model-matching rules, file arguments, subcommands, and exit codes for the atomic CLI."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# CLI reference
|
|
7
|
-
|
|
8
7
|
```bash
|
|
9
8
|
atomic [options] [@files...] [messages...]
|
|
10
9
|
```
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
## Option parsing rules
|
|
12
|
+
|
|
13
|
+
- **Space-separated values:** Built-in CLI options require space-separated values (`--model gpt-4o`). Passing `--flag=value` (such as `--model=gpt-4o` or `--mode=json`) is not supported for built-in flags and fails with `Error: Unknown option`. Only extension-registered flags, `atomic auth print-bearer-token --min-expiry=...`, and `atomic blueprint cache-key --format=...` accept `=`.
|
|
14
|
+
- **End-of-options terminator (`--`):** Use `--` when positional prompt text begins with `-`, `--`, or `@`. Every argument after `--` is treated as literal message text rather than an option or `@file` argument:
|
|
13
15
|
|
|
14
16
|
```bash
|
|
15
17
|
atomic --print -- "- leading-dash prompt"
|
|
16
18
|
```
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
- **Unknown flags and validation:** Unknown `--flags` are passed to loaded extensions; if no extension registers them, startup fails with `Error: Unknown option: --<name>`. Invalid `--mode` values or invalid CLI storage flags print `Error: ...` and exit `1`. Invalid `--thinking` values print a warning and continue with the default thinking level.
|
|
21
|
+
|
|
22
|
+
## Modes
|
|
23
|
+
|
|
24
|
+
| Flag | Description |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| *(default)* | Interactive mode (fullscreen TUI) when both stdin and stdout are a TTY |
|
|
27
|
+
| `-p`, `--print` | Print response and exit |
|
|
28
|
+
| `--mode text\|json\|rpc` | Choose output or protocol mode (`json` streams JSON lines, see [JSON mode](/json); `rpc` runs stdin/stdout RPC, see [RPC mode](/rpc)) |
|
|
29
|
+
| `--export <in> [out]` | Export a session to HTML (defaults to `<stem>.html` next to `<in>`), print `Exported to: <path>`, and exit `0` |
|
|
30
|
+
|
|
31
|
+
**`--mode text` vs. automatic print mode:** Passing `--mode text` alone in an interactive terminal still launches interactive mode; it selects plain-text output for print mode (or overrides an earlier `--mode json`). Conversely, if stdin or stdout is not a TTY (such as piping into `atomic` or redirecting `atomic > out.txt`), Atomic automatically switches to print mode even without `-p`. Both print mode and `--mode json` automatically exclude `ask_user_question`.
|
|
32
|
+
|
|
33
|
+
**Multiple prompts and piped stdin:** Passing multiple positional prompts (for example `atomic -p "step 1" "step 2"`) runs them sequentially in one session; plain-text print mode prints only the final prompt's answer to stdout, while `--mode json` streams every turn. In print mode, Atomic reads piped stdin and separates it from CLI prompt text with a newline:
|
|
19
34
|
|
|
20
35
|
```bash
|
|
21
|
-
|
|
22
|
-
atomic remove <source> [-l] # Remove package
|
|
23
|
-
atomic uninstall <source> [-l] # Alias for remove
|
|
24
|
-
atomic update [source|self|atomic] # Update Atomic only, or one package source
|
|
25
|
-
atomic update --all # Update Atomic and packages; reconcile pinned git refs
|
|
26
|
-
atomic update --extensions # Update packages only; reconcile pinned git refs
|
|
27
|
-
atomic update --models # Force-refresh authenticated provider model catalogs
|
|
28
|
-
atomic update --self # Update Atomic only
|
|
29
|
-
atomic update --force # Reinstall Atomic even if the current version is latest
|
|
30
|
-
atomic update --extension <src> # Update one package
|
|
31
|
-
atomic list # List installed packages
|
|
32
|
-
atomic config [-l] # Open resource TUI (-l starts in project settings)
|
|
36
|
+
cat README.md | atomic -p "Summarize this text"
|
|
33
37
|
```
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
Once piped input starts arriving, Atomic waits until EOF. If a pipe sends nothing within 2 seconds, a run with a prompt argument or `@file` starts without stdin and warns if bytes arrive later. A run with no prompt argument keeps waiting and notes that on stderr. Set `ATOMIC_STDIN_TIMEOUT_MS` to adjust the wait, or `0` to always wait for piped EOF.
|
|
36
40
|
|
|
37
|
-
|
|
41
|
+
**Structured-output termination:** When a print-mode turn calls an opt-in terminating structured-output tool (such as `final_decision`), Atomic exits immediately after that tool result without another assistant turn and writes the JSON payload to stdout. Non-terminating tool results are not printed as the final response. See [Structured decisions](/sdk/structured-decisions).
|
|
38
42
|
|
|
39
|
-
|
|
43
|
+
**Fullscreen interactive options:** Interactive sessions run fullscreen with a scrolling transcript above the docked editor and status area. Adjust **Fullscreen wheel scroll lines** in `/settings` (or `fullscreenWheelScrollLines`: `"auto"` or `1` to `100`). Text selection copies automatically unless `fullscreenCopyOnSelect` is `false`. `Ctrl+X` does not copy; followed by `Ctrl+K` it stops all background work (see [Keybindings](/keybindings#navigation)), and `/scoped-models` uses it to clear selections. On exit, `fullscreenExitOutput: "transcript"` prints the final transcript and resume hint, while `"resume-hint"` restores the previous screen and prints only the hint. See [Settings](/settings) and [Terminal setup](/terminal-setup).
|
|
44
|
+
|
|
45
|
+
## Model options
|
|
46
|
+
|
|
47
|
+
| Option | Description |
|
|
48
|
+
| --- | --- |
|
|
49
|
+
| `--provider <name>` | Provider to search for `--model`, such as `anthropic`, `openai`, or `google`; requires `--model` |
|
|
50
|
+
| `--model <pattern>` | Model pattern or ID; supports `provider/id` and optional `:<thinking>` |
|
|
51
|
+
| `--api-key <key>` | API key overriding environment variables. Does not disambiguate providers that share a model |
|
|
52
|
+
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max`; model capability mapping still governs availability |
|
|
53
|
+
| `--models <patterns>` | Comma-separated patterns for scoped model cycling (`Ctrl+P`) and initial model scope |
|
|
54
|
+
| `--fallback-models <models>` | Comma-separated fallback models tried in order after retryable failures; replaces [`fallbackModels`](/settings#fallbackmodels) for this run |
|
|
55
|
+
| `--no-fallback` | Never fall back to another model in this run; cannot be combined with `--fallback-models` |
|
|
56
|
+
| `--list-models [search]` | List available models and exit |
|
|
57
|
+
|
|
58
|
+
### How `--model`, `--models`, and `--fallback-models` match models
|
|
59
|
+
|
|
60
|
+
These three flags use different matching and credential rules:
|
|
61
|
+
|
|
62
|
+
| Behavior | `--model` | `--models` | `--fallback-models` |
|
|
63
|
+
| --- | --- | --- | --- |
|
|
64
|
+
| Glob wildcards (`*`, `?`, `[`) | No (characters are literal) | Yes (case-insensitive against `provider/id` and bare `id`) | No (characters are literal) |
|
|
65
|
+
| Exact and fuzzy substring match | Yes (case-insensitive) | Yes (case-insensitive, after exact and glob) | Yes (case-insensitive) |
|
|
66
|
+
| Searches unauthenticated models | Yes (so `--api-key` works) | No (authenticated models only) | No (authenticated models only) |
|
|
67
|
+
| `:<thinking>` suffix | Strict, case-insensitive (invalid suffix fails) | Lenient on fuzzy matches, case-insensitive (invalid suffix warns and uses default) | Strict, case-insensitive (invalid suffix warns and skips entry) |
|
|
68
|
+
| Ambiguous bare model ID | Prefers an authenticated provider (unless `--api-key` is passed); asks for `--provider` if still ambiguous | Adds every matching authenticated provider | Prefers the active or default provider; warns if still ambiguous |
|
|
69
|
+
| Unknown model on a known provider | Synthesizes a custom model from that provider's defaults with a warning | Warns and skips the pattern | Warns and skips the entry |
|
|
70
|
+
|
|
71
|
+
Key details for each flag:
|
|
72
|
+
|
|
73
|
+
- **`--model <pattern>`:** Checks exact `provider/id` or raw `id` before substring matching on model `id` and display `name` (preferring non-dated aliases over `-YYYYMMDD` snapshots, then lexicographically newest). Full text is matched before splitting `:<thinking>` so model IDs containing colons (such as `qwen/qwen3-coder:exacto`) resolve intact. If `--provider <p>` or `<p>/<id>` names a known provider whose catalog omits `<id>`, Atomic warns and runs with a synthesized custom model inheriting that provider's defaults (enabling reasoning when a non-`off` `:<thinking>` suffix is given). Explicit `--thinking` always overrides a `:<thinking>` suffix.
|
|
74
|
+
- **`--models <patterns>`:** Evaluates each comma-separated pattern in order: exact literal match, then glob match (`*`, `?`, `[`), then fuzzy substring match. Duplicate matches keep the first pattern's thinking level. On a new session without `--model`, Atomic starts on your saved default model if it is inside the scope, otherwise on the first scoped model. For how model scoping also affects `/model`, `/scoped-models`, and subagents, see [`enabledModels`](/settings#enabledmodels).
|
|
75
|
+
- **`--fallback-models <models>`:** Accepts `provider/model[:thinking]`, bare IDs, or fuzzy matches, and requires configured credentials for each entry.
|
|
76
|
+
|
|
77
|
+
**Fallback precedence and stderr output:** A model selected with `--model` runs strictly as named and falls back only to `--fallback-models`, ignoring global and project `fallbackModels` settings. In interactive mode this holds for the whole process, even after `/model`, `Ctrl+P`, `/new`, or `/resume`. Start Atomic without `--model` to use settings fallbacks. Child subagents running on the main session's model inherit the same fallback chain.
|
|
78
|
+
|
|
79
|
+
In print mode, all fallback notices go to **stderr** (keeping stdout clean for scripts): `Model fallback: <model> failed, continuing on <fallback>: <reason>` when switching, and `Model: ran on <fallback>, not the requested <model>.` after a fallback answer finishes. Failed runs write `Model <model> failed: <reason>` to stderr.
|
|
80
|
+
|
|
81
|
+
## Session options
|
|
82
|
+
|
|
83
|
+
| Option | Description |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| `-c`, `--continue` | Continue the most recent session for the current directory |
|
|
86
|
+
| `-r`, `--resume` | Browse and select a session |
|
|
87
|
+
| `--session <id\|prefix>` | Open by exact ID or unique 8-hex UUID prefix in its working directory. If it matches only another directory, Atomic offers to fork it here. Exits `75` if another live process holds the session open ([When the session is already open](/guides/resume-on-any-machine#when-the-session-is-already-open)) |
|
|
88
|
+
| `--import <file>` | Import an exported JSONL session into session storage |
|
|
89
|
+
| `--session-id <id>` | Use an exact project session ID; warn and create it when missing |
|
|
90
|
+
| `--fork <id\|prefix>` | Fork an exact ID or unique 8-hex UUID prefix into a new session in the current directory |
|
|
91
|
+
| `--session-dir <dir>` | Select JSONL session storage and lookup directory |
|
|
92
|
+
| `--session-store <path>` | Select a SQLite session database; relative paths resolve from the working directory |
|
|
93
|
+
| `--session-prefix <prefix>` | Use a non-default table prefix with `--session-store` |
|
|
94
|
+
| `--name <name>`, `-n <name>` | Set the session display name (rejects empty or whitespace-only values) |
|
|
95
|
+
| `--no-session` | Run without saving a resumable session |
|
|
96
|
+
| `--storage <json>` | Select shared storage for this process in the JSON form of the `storage` setting; never saved. See [Selecting storage per process](/storage#selecting-storage-per-process) |
|
|
97
|
+
| `--storage-file <path>` | Read the `--storage` selection from a JSON file |
|
|
40
98
|
|
|
41
|
-
|
|
99
|
+
**Conflict and validation rules:**
|
|
42
100
|
|
|
43
|
-
|
|
101
|
+
- `--import` cannot combine with `--session`, `--fork`, `--session-id`, `--continue`, or `--resume` (it can combine with `--no-session` or `--session-dir`).
|
|
102
|
+
- `--fork` cannot combine with `--session`, `--continue`, `--resume`, or `--no-session`.
|
|
103
|
+
- `--session-id` cannot combine with `--session`, `--continue`, or `--resume`. IDs must start and end with an ASCII letter or digit and contain only ASCII letters, digits, `.`, `_`, or `-`.
|
|
104
|
+
- `--session-store` cannot combine with `--session-dir` or `--no-session`.
|
|
105
|
+
- `--session-prefix` requires `--session-store`.
|
|
106
|
+
- `--storage` cannot combine with `--storage-file`.
|
|
107
|
+
- Invalid CLI storage flags exit cleanly with `Error: ...` and exit code `1`.
|
|
44
108
|
|
|
45
|
-
|
|
46
|
-
|
|
109
|
+
See [Choosing a store](/sessions#choosing-a-store) for full precedence and conflict details.
|
|
110
|
+
|
|
111
|
+
## Tool options
|
|
112
|
+
|
|
113
|
+
| Option | Description |
|
|
114
|
+
| --- | --- |
|
|
115
|
+
| `--tools <list>`, `-t <list>` | Allowlist tool names or `*` patterns, or modify defaults with only `+name`/`-name` entries; an allowlist keeps MCP tools unless an entry starts with `mcp__` |
|
|
116
|
+
| `--exclude-tools <list>`, `-xt <list>` | Exclude tool names or `*` patterns, including MCP tools and Intercom |
|
|
117
|
+
| `--no-builtin-tools`, `-nbt` | Disable built-in coding tools while keeping extension and custom tools enabled |
|
|
118
|
+
| `--no-tools`, `-nt` | Disable every tool, including Intercom, even when `--tools` is passed |
|
|
47
119
|
|
|
48
|
-
|
|
120
|
+
Default built-in coding tools: `read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, plus `powershell` on native Windows when a PowerShell executable is available. `ls` remains available but is off by default.
|
|
49
121
|
|
|
50
|
-
|
|
122
|
+
**Pattern matching rules:** Pattern matching in `--tools` and `--exclude-tools` is **case-sensitive** and supports **only `*` wildcards** (`?` and `[...]` are literal). Modifier entries (`+name`/`-name`) accept exact names only (no `*`) and cannot mix with plain allowlist entries; use `--exclude-tools` for pattern exclusions.
|
|
123
|
+
|
|
124
|
+
`defaultTools` selects initial coding tools without narrowing extension or custom tools. `--tools` sets an explicit allowlist, and `--exclude-tools` subtracts from it. `--no-builtin-tools` suppresses coding defaults when no allowlist is given. Bundled Intercom stays loaded with `--no-extensions`, but its tool follows allowlists, exclusions, and `--no-tools` like other extension tools.
|
|
125
|
+
|
|
126
|
+
To remove [codemode](/tools#codemode) or add [tool search](/tools#tool_search) alongside defaults, pass `atomic --tools -codemode,+tool_search` for one run or set `"defaultTools": ["-codemode", "+tool_search"]`. On `/reload`, CLI modifiers still apply on top of the reloaded `defaultTools` setting. Modifiers do not narrow extension tools or filter MCP exposure, and `--no-tools` disables every tool.
|
|
127
|
+
|
|
128
|
+
### MCP tools
|
|
129
|
+
|
|
130
|
+
`--tools read,codemode` keeps non-hidden MCP tools with `codemode` or `deferred` exposure callable from codemode scripts. MCP tools unmatched by the allowlist are not declared directly, regardless of exposure. Unmatched direct-exposure tools stay registered but inactive. Only an enabled `tool_search` can load unmatched non-direct tools.
|
|
131
|
+
|
|
132
|
+
An entry starting with `mcp__` filters MCP tools too. For example, `atomic --tools read,codemode,'mcp__docs__*'` keeps only tools from the `docs` server. MCP resource tools count as MCP tools, and exclusions apply to both server and resource tools. Use `--no-mcp` to disable built-in MCP connections and resources.
|
|
133
|
+
|
|
134
|
+
## Project trust options
|
|
135
|
+
|
|
136
|
+
| Option | Description |
|
|
137
|
+
| --- | --- |
|
|
138
|
+
| `--approve`, `-a` | Trust project-local files and resources for this run |
|
|
139
|
+
| `--no-approve`, `-na` | Ignore project-local files and resources for this run |
|
|
140
|
+
|
|
141
|
+
Project trust gates `.atomic` and legacy `.pi` project resources, project package settings, project-local context files, and `.agents` resources discovered from the project tree. Manage saved trust decisions with `/trust`; see [Security](/security).
|
|
142
|
+
|
|
143
|
+
## Resource options
|
|
144
|
+
|
|
145
|
+
| Option | Description |
|
|
146
|
+
| --- | --- |
|
|
147
|
+
| `-e`, `--extension <source>` | Load an extension from a path, npm, or git; repeatable |
|
|
148
|
+
| `--no-extensions`, `-ne` | Disable optional extension discovery; mandatory bundled Intercom remains loaded |
|
|
149
|
+
| `--no-mcp` | Disable built-in MCP support for this run, even when explicitly enabled; replacement extensions are unaffected |
|
|
150
|
+
| `--skill <path>` | Load a skill; repeatable |
|
|
151
|
+
| `--no-skills`, `-ns` | Disable skill discovery |
|
|
152
|
+
| `--prompt-template <path>` | Load a prompt template; repeatable |
|
|
153
|
+
| `--no-prompt-templates`, `-np` | Disable prompt template discovery |
|
|
154
|
+
| `--theme <path>` | Load a theme; repeatable |
|
|
155
|
+
| `--no-themes` | Disable theme discovery |
|
|
156
|
+
| `--no-context-files`, `-nc` | Disable context-file discovery and loading |
|
|
157
|
+
|
|
158
|
+
Combine `--no-*` with explicit flags to load only what you specify, ignoring settings:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
atomic --no-extensions -e ./my-extension.ts
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Other options
|
|
165
|
+
|
|
166
|
+
| Option | Description |
|
|
167
|
+
| --- | --- |
|
|
168
|
+
| `--system-prompt <text\|path>` | Replace the default prompt with literal text or the contents of an existing file (context files and skills still append; overrides `SYSTEM.md`) |
|
|
169
|
+
| `--append-system-prompt <text\|path>` | Append literal text or file contents to the system prompt; repeatable. Replaces any discovered `APPEND_SYSTEM.md` file |
|
|
170
|
+
| `--use-theme <name[/name]>` | Set the interactive theme for this run without saving it; see [Themes](/themes#initial-theme) |
|
|
171
|
+
| `--offline` | Disable automatic network activity, including update checks, package updates, telemetry, and model catalog refreshes |
|
|
172
|
+
| `--debug` | Turn on [debug mode](/development#debugging) for this run, the same as `ATOMIC_DEBUG=1` |
|
|
173
|
+
| `--verbose` | Force verbose startup |
|
|
174
|
+
| `-h`, `--help` | Show help |
|
|
175
|
+
| `-v`, `--version` | Show version |
|
|
176
|
+
|
|
177
|
+
## File arguments
|
|
178
|
+
|
|
179
|
+
Prefix files with `@` to include them in the initial message:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
atomic @prompt.md "Answer this"
|
|
183
|
+
atomic -p @screenshot.png "What's in this image?"
|
|
184
|
+
atomic @code.ts @test.ts "Review these files"
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
`@file` paths expand `~`, resolve relative to the current working directory, skip empty (0-byte) files silently, and exit `1` if missing or unreadable. UTF-8 text files (BOM stripped) are wrapped in `<file name="/abs/path">...</file>` blocks, and supported image files are attached as images. `@file` arguments are not allowed in `--mode rpc` (exits `1`).
|
|
188
|
+
|
|
189
|
+
## Examples
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
# Interactive with initial prompt
|
|
193
|
+
atomic "List all .ts files in src/"
|
|
194
|
+
|
|
195
|
+
# Non-interactive print mode
|
|
196
|
+
atomic -p "Summarize this codebase"
|
|
197
|
+
|
|
198
|
+
# Non-interactive with piped stdin
|
|
199
|
+
cat README.md | atomic -p "Summarize this text"
|
|
200
|
+
|
|
201
|
+
# Different model with explicit provider
|
|
202
|
+
atomic --provider openai --model gpt-4o "Help me refactor"
|
|
203
|
+
|
|
204
|
+
# Model with provider prefix
|
|
205
|
+
atomic --model openai/gpt-4o "Help me refactor"
|
|
206
|
+
|
|
207
|
+
# Model with thinking level shorthand (case-insensitive)
|
|
208
|
+
atomic --model sonnet:high "Solve this complex problem"
|
|
209
|
+
|
|
210
|
+
# Limit model cycling with globs
|
|
211
|
+
atomic --models "claude-*,gpt-4o"
|
|
212
|
+
|
|
213
|
+
# Read-only mode
|
|
214
|
+
atomic --tools read,search,find,ls -p "Review the code"
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
## Package commands
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
atomic install <source> [-l] # Install package, -l for project-local
|
|
221
|
+
atomic remove <source> [-l] # Remove package
|
|
222
|
+
atomic uninstall <source> [-l] # Alias for remove
|
|
223
|
+
atomic update [source|self|atomic|pi] # Update Atomic only, or one package source
|
|
224
|
+
atomic update --all # Update Atomic and packages; reconcile pinned git refs
|
|
225
|
+
atomic update --extensions # Update packages only; reconcile pinned git refs
|
|
226
|
+
atomic update --models # Force-refresh authenticated provider model catalogs (15s timeout)
|
|
227
|
+
atomic update --self # Update Atomic only
|
|
228
|
+
atomic update --force # Reinstall Atomic even if the current version is latest
|
|
229
|
+
atomic update --extension <src> # Update one package
|
|
230
|
+
atomic list # List installed packages
|
|
231
|
+
atomic config [-l] [-a|-na] # Open resource TUI (-l starts in project settings)
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
These commands manage Atomic packages, and `atomic update` updates the Atomic CLI installation. Passing both `--self` and `--extensions` behaves like `--all`. To uninstall Atomic itself, see [Uninstall](/getting-started/installation#uninstall).
|
|
235
|
+
|
|
236
|
+
`atomic config` and project package commands accept `--approve` (`-a`) or `--no-approve` (`-na`) to trust or ignore project-local settings for one command. `atomic update` never prompts for project trust.
|
|
237
|
+
|
|
238
|
+
After updating the Atomic CLI, `atomic update` runs the new version's [`atomic intercom upgrade`](#storage-and-intercom-commands) when `atomic` on `PATH` reports the installed version and lists that command. Otherwise it prints a note and leaves the broker alone. A failed broker upgrade prints a warning and keeps exit code `0`.
|
|
239
|
+
|
|
240
|
+
If you upgrade Atomic in place while a session is running and see a restart notice, restart that session (for example with `atomic -r`) so updated modules and built-in extensions load cleanly. Errors in your own extensions are reported as usual.
|
|
241
|
+
|
|
242
|
+
`atomic update --models` refreshes configured provider catalogs (with a 15-second total timeout) without updating packages. Built-in catalogs from models.dev do not refresh your provider login. Account-specific catalogs still need valid credentials; if an OAuth refresh fails, the command warns with `atomic auth login <provider>` and continues refreshing other catalogs. Other failures, such as a network error, exit nonzero.
|
|
51
243
|
|
|
52
244
|
See [Atomic packages](/packages) for package sources and security notes.
|
|
53
245
|
|
|
@@ -55,13 +247,13 @@ See [Atomic packages](/packages) for package sources and security notes.
|
|
|
55
247
|
|
|
56
248
|
If a wrapper or another package manager provides Atomic, set `ATOMIC_SELF_UPDATE_COMMAND` so `atomic update` runs its update command:
|
|
57
249
|
|
|
58
|
-
```
|
|
250
|
+
```bash
|
|
59
251
|
export ATOMIC_SELF_UPDATE_COMMAND="mise use -g npm:{packageName}@{version}"
|
|
60
252
|
```
|
|
61
253
|
|
|
62
254
|
`atomic update` runs this command only when a newer release exists, replacing `{packageName}`, `{version}`, and `{installSpec}` (`{packageName}@{version}`) with that release. It bypasses install-method detection, so it works for installs Atomic cannot update itself.
|
|
63
255
|
|
|
64
|
-
The environment value is split on spaces; `PI_SELF_UPDATE_COMMAND` works as a legacy alias. For arguments that contain spaces, set the global `selfUpdateCommand`
|
|
256
|
+
The environment value is split on spaces; `PI_SELF_UPDATE_COMMAND` works as a legacy alias. For arguments that contain spaces, set the global `selfUpdateCommand` array in `~/.atomic/agent/settings.json` instead (for example `["nix", "profile", "upgrade", "atomic"]`). Project settings are ignored for this key.
|
|
65
257
|
|
|
66
258
|
After the command finishes, Atomic checks the version on disk or from `atomic --version` on `PATH`. A wrapper that installs each version into a new directory still reports success. A command that exits `0` without installing the new version prints a warning instead.
|
|
67
259
|
|
|
@@ -77,10 +269,10 @@ atomic auth print-bearer-token --model <model> [--provider <p>] [--min-expiry <d
|
|
|
77
269
|
|
|
78
270
|
`atomic auth login <provider>` signs in to a provider in an interactive terminal and exits without starting a session. It opens the browser for account sign-in like `/login <provider>`, or prints instructions for another sign-in method when available. Providers without account sign-in prompt for an API key.
|
|
79
271
|
|
|
80
|
-
`<provider>` accepts a provider ID or display name such as `openai` or `OpenAI`. An ambiguous name (such as a `models.json` provider sharing a built-in display name) is rejected with the matching IDs; an exact provider ID always matches that provider. After sign-in, Atomic refreshes that provider's model catalog. If the refresh fails, times out after 15 seconds, or is interrupted with Ctrl+C
|
|
272
|
+
`<provider>` accepts a provider ID or display name such as `openai` or `OpenAI`. An ambiguous name (such as a `models.json` provider sharing a built-in display name) is rejected with the matching IDs; an exact provider ID always matches that provider. After sign-in, Atomic refreshes that provider's model catalog. If the refresh fails, times out after 15 seconds, or is interrupted with `Ctrl+C`, the login stays saved and refreshes on the next start.
|
|
81
273
|
|
|
82
274
|
| Option | Description |
|
|
83
|
-
|
|
275
|
+
| --- | --- |
|
|
84
276
|
| `--api-key` | Save an API key instead of signing in with an account; input is not echoed |
|
|
85
277
|
| `--no-browser` | Skip opening a browser and use another sign-in method such as a device code, for example over SSH. Prompts if several methods exist. Cannot be combined with `--api-key` |
|
|
86
278
|
|
|
@@ -98,14 +290,14 @@ The credential print commands emit one configured credential for an external cli
|
|
|
98
290
|
|
|
99
291
|
`--model` is required for both `print-*` commands. Pass `--provider` when several configured providers offer the same model. The two `print-*` subcommands accept only `--provider` and `--model` (plus `--min-expiry` for `print-bearer-token`). Any other flag, including `--export`, `--session-dir`, and `--print`, is a usage error rather than an ignored flag.
|
|
100
292
|
|
|
101
|
-
Passing `--help` or `-h` to `atomic auth` or
|
|
293
|
+
Passing `--help` or `-h` to `atomic auth` or any `auth` subcommand (`login`, `logout`, `print-api-key`, `print-bearer-token`, or `check`), before a `--` terminator and not as the value of a value-taking flag, prints auth help to stderr and exits `0`. Bare `atomic auth` and `atomic auth help` do the same. Any unknown subcommand exits `1` and lists all five valid commands. Help never writes to stdout, so raw credential export stdout is always a credential or empty.
|
|
102
294
|
|
|
103
295
|
`print-bearer-token` works only on OAuth providers and `print-api-key` only on API-key providers; requesting the wrong kind fails instead of falling back. A bearer token with less than `--min-expiry` remaining (default `30m`, accepting `ms`, `s`, `m`, or `h`) is refreshed first. Both `--min-expiry 30m` and `--min-expiry=30m` work. Passing `--min-expiry` to `print-api-key` is a usage error, even after `--`. A failed refresh leaves your stored credential untouched.
|
|
104
296
|
|
|
105
|
-
Credential-export exits (`print-api-key`, `print-bearer-token`, and
|
|
297
|
+
Credential-export exits (`print-api-key`, `print-bearer-token`, and `--credentials` writes):
|
|
106
298
|
|
|
107
299
|
| Exit | Meaning |
|
|
108
|
-
|
|
300
|
+
| --- | --- |
|
|
109
301
|
| `0` | Credential written to stdout, one trailing newline |
|
|
110
302
|
| `1` | Usage error |
|
|
111
303
|
| `2` | No credential configured for that model or provider |
|
|
@@ -113,14 +305,14 @@ Credential-export exits (`print-api-key`, `print-bearer-token`, and the `--crede
|
|
|
113
305
|
| `4` | That credential kind is unsupported for the provider |
|
|
114
306
|
| `5` | OAuth refresh failed; the stored credential is unchanged |
|
|
115
307
|
| `6` | The provider cannot mint a token that lives as long as `--min-expiry` |
|
|
116
|
-
| `7` | The provider's OAuth credential could not be used;
|
|
308
|
+
| `7` | The provider's OAuth credential could not be used; stored state is not guaranteed unchanged |
|
|
117
309
|
| `8` | The credential could not be written; nothing was emitted |
|
|
118
310
|
| `9` | Only part of the credential was written; discard the output |
|
|
119
311
|
|
|
120
312
|
Auth-check exits:
|
|
121
313
|
|
|
122
314
|
| Exit | `atomic auth check` |
|
|
123
|
-
|
|
315
|
+
| --- | --- |
|
|
124
316
|
| `0` | `ready` |
|
|
125
317
|
| `1` | `not_ready`, including a fuzzy `--model` with `--credentials` when its resolved provider is not ready |
|
|
126
318
|
| `2` | `invalid`, including check usage errors (unknown option, neither `--provider` nor `--model`, or a fuzzy `--model` with `--credentials` when its resolved provider is otherwise ready) |
|
|
@@ -147,7 +339,7 @@ atomic mcp logout <server> [-l]
|
|
|
147
339
|
Configure and check MCP servers and sign in to OAuth servers without starting a session. These commands read `~/.atomic/agent/mcp.json` and, in trusted projects, `.atomic/mcp.json`, without loading extensions.
|
|
148
340
|
|
|
149
341
|
| Command | Description |
|
|
150
|
-
|
|
342
|
+
| --- | --- |
|
|
151
343
|
| `add <server>` | Add or replace a server entry in `mcp.json` |
|
|
152
344
|
| `remove <server>` | Remove a server entry from `mcp.json` |
|
|
153
345
|
| `list` | Connect to enabled servers and print state, tools, and errors (exits `1` on config or connection failure) |
|
|
@@ -155,7 +347,7 @@ Configure and check MCP servers and sign in to OAuth servers without starting a
|
|
|
155
347
|
| `logout <server>` | Delete stored OAuth credentials for the server |
|
|
156
348
|
|
|
157
349
|
| Option | Commands | Description |
|
|
158
|
-
|
|
350
|
+
| --- | --- | --- |
|
|
159
351
|
| `-l`, `--local` | `add`, `remove`, `login`, `logout` | Target `.atomic/mcp.json` in the current project instead of `~/.atomic/agent/mcp.json` |
|
|
160
352
|
| `--url <url>` | `add` | Streamable HTTP server URL (instead of a stdio command) |
|
|
161
353
|
| `--env <KEY=VALUE>` | `add` | Environment variable for a stdio server; repeatable |
|
|
@@ -184,7 +376,7 @@ atomic storage move-snapshot-chunks <sqlite-file> [--prefix <prefix>]
|
|
|
184
376
|
atomic storage search-session <sqlite-file> <session-id> <pattern> [cursor]
|
|
185
377
|
atomic storage export <dir> [--sessions] [--limit <n>] [--since <time>] [--storage <json> | --storage-file <path>]
|
|
186
378
|
atomic storage import <dir> [--sessions] [--storage <json> | --storage-file <path>]
|
|
187
|
-
atomic team join <url> [--token-file <path>] [--prefix <prefix>] # Share Intercom; sessions stay local
|
|
379
|
+
atomic team join <url> [--token-file <path>] [--prefix <prefix>] # Share Intercom (libSQL/Turso); sessions stay local
|
|
188
380
|
atomic team status [--json] # Profile in effect plus the storage report
|
|
189
381
|
atomic team leave # Remove what team join wrote
|
|
190
382
|
atomic intercom status # This machine's Intercom broker and multi-node state
|
|
@@ -194,24 +386,24 @@ atomic intercom upgrade # Replace a
|
|
|
194
386
|
|
|
195
387
|
`atomic storage status` reports the selected storage for sessions and Intercom, where each selection came from (environment variable, project settings, global settings, or default), any outranked selections, whether each adapter loads, and whether each database answers `SELECT 1`. It also shows the running Intercom broker, its multi-node routing state, and peer brokers live in the shared database. It modifies nothing and exits `1` if a selection is invalid, an adapter fails to load, or a database does not answer.
|
|
196
388
|
|
|
197
|
-
`atomic storage join` verifies the credential and connection with `@bastani/atomic-storage-libsql` (for libSQL or Turso) or `@bastani/atomic-storage-postgres` (for `postgres://` or `postgresql://`), writes only the global `storage` setting, and reports any environment variables or settings that override it. It creates no tables and prints the install command if the adapter package is missing.
|
|
389
|
+
`atomic storage join` verifies the credential and connection (`SELECT 1` with a 15-second timeout) using `@bastani/atomic-storage-libsql` (for libSQL or Turso) or `@bastani/atomic-storage-postgres` (for `postgres://` or `postgresql://`), writes only the global `storage` setting, and reports any environment variables or settings that override it. It creates no tables and prints the install command if the adapter package is missing.
|
|
198
390
|
|
|
199
391
|
- For libSQL, `--token-file` is required except for absolute `file:` URLs. Atomic copies the trimmed token into a new `storage-token.<id>` file (mode `600`) in the agent directory without overwriting earlier token files. Relative `file:` URLs and URLs carrying embedded credentials or `authToken` parameters are rejected.
|
|
200
392
|
- For PostgreSQL, pass exactly one of `--password-file` (copied to a mode `600` `storage-token.<id>` file), `--token-file` (referenced in place and re-read on every new connection), or `--auth azure|aws|gcp`. Passwords in the URL are rejected, and settings store only file references.
|
|
201
393
|
|
|
202
|
-
`atomic team join`
|
|
394
|
+
`atomic team join` supports **libSQL and Turso** databases (`--token-file` and `--prefix`; PostgreSQL `--password-file` and `--auth` options are only for `atomic storage join`). It runs the same validation and token handling, writes global `storage` (the team database) and `sessions.storage` (local default store) together, restarts the Intercom broker, and prints the profile and storage status. Nothing is written if validation fails.
|
|
203
395
|
|
|
204
396
|
`atomic team status` adds the active profile (`individual`, `team`, `ci`, or `custom`) and project Intercom group. `atomic team leave` reverts only what `team join` wrote, deletes its token file unless another setting references it, and restarts the broker. See [Team and CI setup](/guides/team-setup).
|
|
205
397
|
|
|
206
|
-
`atomic storage migrate` creates or upgrades session and Intercom tables in the selected shared database (or `--db`). Run it as the database owner after joining or upgrading Atomic so runtime-only roles do not need
|
|
398
|
+
`atomic storage migrate` creates or upgrades session and Intercom tables in the selected shared database (or `--db`). Run it as the database owner after joining or upgrading Atomic so runtime-only roles do not need schema-creation privileges (DDL).
|
|
207
399
|
|
|
208
400
|
`atomic storage move-snapshot-chunks <sqlite-file> [--prefix <prefix>]` migrates the snapshot chunk table in a closed local SQLite file using exclusive access, checkpointing after each batch so the write-ahead log does not need space for the entire copy.
|
|
209
401
|
|
|
210
402
|
`atomic storage search-session <sqlite-file> <session-id> <pattern> [cursor]` searches entries of a stored session in a local SQLite database by regex pattern, optionally resuming pagination from `cursor`. See [Recalling earlier work](/sessions#recalling-earlier-work).
|
|
211
403
|
|
|
212
|
-
`atomic storage export` writes sessions to `<dir>/sessions/<sessionId>.jsonl` (
|
|
404
|
+
`atomic storage export` writes sessions to `<dir>/sessions/<sessionId>.jsonl` (compatible with `atomic --import`). Each file is replaced whole; identical files are skipped and no files are deleted. `--limit <n>` exports at most `n` most recently modified sessions, and `--since <time>` filters by modification date or timestamp. Exporting a shared libSQL or PostgreSQL database requires `--storage` or `--storage-file` explicitly.
|
|
213
405
|
|
|
214
|
-
`atomic storage import` validates every file in `<dir>/sessions` before writing, then adds new sessions and newer entries for existing sessions while ignoring other directories. Partial failures list what was and was not written so you can rerun safely. Both `export` and `import` accept `--sessions`, plus `--storage <json>` or `--storage-file <path>` to target a specific store
|
|
406
|
+
`atomic storage import` validates every file in `<dir>/sessions` before writing, then adds new sessions and newer entries for existing sessions while ignoring other directories. Partial failures list what was and was not written so you can rerun safely. Both `export` and `import` accept `--sessions`, plus `--storage <json>` or `--storage-file <path>` to target a specific store.
|
|
215
407
|
|
|
216
408
|
`atomic intercom restart` stops the running broker, waits for it to exit, and waits for a reconnecting session to start a new broker (printing its status). Without connected sessions, the next session that uses Intercom starts one.
|
|
217
409
|
|
|
@@ -223,227 +415,32 @@ See [Joining a machine to a shared database](/storage#joining-a-machine-to-a-sha
|
|
|
223
415
|
|
|
224
416
|
```bash
|
|
225
417
|
atomic blueprint cache-key [dir] [--format text|json|github-output] # Cache keys and paths for a runner's cache action
|
|
226
|
-
atomic blueprint prebuild [dir] [--park] [--approve]
|
|
418
|
+
atomic blueprint prebuild [dir] [--park] [--approve|-a] # Build the repository ahead of time
|
|
227
419
|
```
|
|
228
420
|
|
|
229
|
-
Top-level `atomic --help` lists both `atomic blueprint cache-key` and `atomic blueprint prebuild`.
|
|
230
|
-
|
|
231
421
|
`atomic blueprint cache-key` prints cache entries for the repository at `dir` (default: current directory). It reports `stores` (lockfile-detected package stores for npm, pnpm, Yarn, Bun, Cargo, uv, pip, Poetry, Go, Gradle, and Maven, plus [`resume.cache`](/settings#resume) store paths), `build` (`resume.cache` build paths and seed manifest), `git` (Atomic's Git object store), and `atomic` (extension transpile cache).
|
|
232
422
|
|
|
233
|
-
Each entry includes a key, restore prefix, and paths. `--format github-output` outputs `<name>-key`, `<name>-restore-prefix`, and `<name>-paths` lines for `$GITHUB_OUTPUT`. Paths that might hold credentials are omitted with a stderr warning. See [Caches for runners](/guides/resume-on-any-machine#caches-for-runners).
|
|
234
|
-
|
|
235
|
-
`atomic blueprint prebuild` restores the committed `HEAD` of `dir` into a new restored worktree, runs its `initialize` and `maintenance` blueprints, and leaves the worktree idle for the next resume to claim. `--park` moves `"build"` paths from `resume.cache` into the seed directory saved by the `build` cache entry.
|
|
236
|
-
|
|
237
|
-
Because `prebuild` executes project code, the project must be trusted or `--approve` must be passed. It prints restore and step timings on stderr and exits `1` if the project is untrusted, the checkout has no remote or has uncommitted changes to tracked files, or a step fails (keeping earlier worktrees and seeds). See [Caches for runners](/guides/resume-on-any-machine#caches-for-runners) and [Prebuilt worktrees](/guides/resume-on-any-machine#prebuilt-worktrees).
|
|
238
|
-
|
|
239
|
-
## Modes
|
|
240
|
-
|
|
241
|
-
| Flag | Description |
|
|
242
|
-
|------|-------------|
|
|
243
|
-
| default | Interactive mode (fullscreen TUI) |
|
|
244
|
-
| `-p`, `--print` | Print response and exit |
|
|
245
|
-
| `--mode json` | Output all events as JSON lines; see [JSON mode](/json) |
|
|
246
|
-
| `--mode rpc` | RPC mode over stdin/stdout; see [RPC mode](/rpc) |
|
|
247
|
-
| `--export <in> [out]` | Export a session to HTML |
|
|
248
|
-
|
|
249
|
-
Interactive sessions run fullscreen with a scrolling transcript above the docked editor and status area. Scrolling, scrollbar dragging, and text selection remain available outside overlays.
|
|
250
|
-
|
|
251
|
-
Adjust **Fullscreen wheel scroll lines** in `/settings`, or set `fullscreenWheelScrollLines` to `"auto"` or a number from 1 to 100. This applies to the main transcript, fullscreen tool views, and `/tasks` transcripts.
|
|
252
|
-
|
|
253
|
-
Text selection copies automatically unless `fullscreenCopyOnSelect` is `false`. Ctrl+X does not copy: followed by Ctrl+K it stops all background work (see [Keybindings](/keybindings#navigation)), and the scoped-model selector uses it to clear selections. `/copy` copies the last assistant message.
|
|
254
|
-
|
|
255
|
-
On exit, `fullscreenExitOutput: "transcript"` prints the final transcript and resume hint. `"resume-hint"` restores the previous screen and prints only the hint. See [Settings](/settings) and [Terminal setup](/terminal-setup).
|
|
256
|
-
|
|
257
|
-
In print mode, Atomic reads piped stdin and merges it into the initial prompt:
|
|
258
|
-
|
|
259
|
-
```bash
|
|
260
|
-
cat README.md | atomic -p "Summarize this text"
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
Once piped input starts arriving, Atomic waits until EOF. If a pipe sends nothing at all within 2 seconds, a run with a prompt argument or `@file` starts without stdin and warns if bytes arrive later. A run with no prompt argument keeps waiting and notes that on stderr. Set `ATOMIC_STDIN_TIMEOUT_MS` to adjust the wait, or `0` to always wait for piped EOF.
|
|
264
|
-
|
|
265
|
-
When a print-mode turn finishes by calling an opt-in terminating structured-output tool created with `createStructuredOutputTool` (such as `final_decision`), Atomic exits after that tool result without an extra assistant turn. Print-mode stdout holds the terminating JSON payload, while SDK callers also receive it through their capture sink, tool `details`, or configured file sink. Non-terminating tool results are not printed as the final response.
|
|
266
|
-
|
|
267
|
-
## Model options
|
|
268
|
-
|
|
269
|
-
| Option | Description |
|
|
270
|
-
|--------|-------------|
|
|
271
|
-
| `--provider <name>` | Provider to search for `--model`, such as `anthropic`, `openai`, or `google`; requires `--model` |
|
|
272
|
-
| `--model <pattern>` | Model pattern or ID; supports `provider/id` and optional `:<thinking>`. If several providers match, Atomic prefers the one with credentials; otherwise it asks for `--provider` |
|
|
273
|
-
| `--api-key <key>` | API key, overriding environment variables. Does not disambiguate providers that share a model |
|
|
274
|
-
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`; model capability mapping still governs availability |
|
|
275
|
-
| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling. A model offered by several providers is added for each, with a warning |
|
|
276
|
-
| `--fallback-models <models>` | Comma-separated `provider/model[:thinking]` IDs this run may fall back to in order after a failure that [`fallbackModels`](/settings#fallbackmodels) handles. Replaces that setting for this run |
|
|
277
|
-
| `--no-fallback` | Never fall back to another model in this run. Cannot be combined with `--fallback-models` |
|
|
278
|
-
| `--list-models [search]` | List available models |
|
|
279
|
-
|
|
280
|
-
A model selected with `--model` runs strictly as named and falls back only to `--fallback-models`, ignoring global and project `fallbackModels` settings. In interactive mode this holds for the whole process, even after `/model`, Ctrl+P, `/new`, or `/resume`. Start Atomic without `--model` to use settings fallbacks.
|
|
281
|
-
|
|
282
|
-
Child sessions running on the main session's model inherit the same fallback chain. In print mode, fallbacks print `Model fallback: <model> failed, continuing on <fallback>: <reason>` to stderr, and answers from a fallback end with `Model: ran on <fallback>, not the requested <model>.`. Failed runs print `Model <model> failed: <reason>`.
|
|
283
|
-
|
|
284
|
-
## Session options
|
|
285
|
-
|
|
286
|
-
| Option | Description |
|
|
287
|
-
|--------|-------------|
|
|
288
|
-
| `-c`, `--continue` | Continue the most recent session for the current directory |
|
|
289
|
-
| `-r`, `--resume` | Browse and select a session |
|
|
290
|
-
| `--session <id\|prefix>` | Use an exact ID or unique 8-hex UUID prefix in its working directory. If it matches only another directory, Atomic offers to fork it here. Exits `75` if another live process holds the session open ([When the session is already open](/guides/resume-on-any-machine#when-the-session-is-already-open)) |
|
|
291
|
-
| `--import <file>` | Import a format-4 JSONL export into session storage |
|
|
292
|
-
| `--session-id <id>` | Use an exact project session ID; warn and create it when missing |
|
|
293
|
-
| `--fork <id\|prefix>` | Fork an exact ID or unique 8-hex UUID prefix into a new session in the current directory |
|
|
294
|
-
| `--session-dir <dir>` | Select JSONL session storage and lookup directory |
|
|
295
|
-
| `--session-store <path>` | Select a SQLite session database; relative paths resolve from the working directory |
|
|
296
|
-
| `--session-prefix <prefix>` | Use a non-default table prefix with `--session-store` |
|
|
297
|
-
| `--name <name>`, `-n <name>` | Set the session display name |
|
|
298
|
-
| `--no-session` | No resumable session; [released history may use disk](/sessions) |
|
|
299
|
-
| `--storage <json>` | Select shared storage for this process in the JSON form of the `storage` setting; never saved. See [Selecting storage per process](/storage#selecting-storage-per-process) |
|
|
300
|
-
| `--storage-file <path>` | Read the `--storage` selection from a JSON file; cannot be combined with `--storage` |
|
|
301
|
-
|
|
302
|
-
See [Choosing a store](/sessions#choosing-a-store) for precedence, prefix rules, and conflicts.
|
|
303
|
-
|
|
304
|
-
## Tool options
|
|
305
|
-
|
|
306
|
-
| Option | Description |
|
|
307
|
-
|--------|-------------|
|
|
308
|
-
| `--tools <list>`, `-t <list>` | Allowlist tool names or `*` patterns, or modify defaults with only `+name`/`-name` entries; an allowlist keeps MCP tools unless an entry starts with `mcp__` |
|
|
309
|
-
| `--exclude-tools <list>`, `-xt <list>` | Exclude tool names or `*` patterns, including MCP tools and Intercom |
|
|
310
|
-
| `--no-builtin-tools`, `-nbt` | Disable built-in tools but keep extension and custom tools enabled |
|
|
311
|
-
| `--no-tools`, `-nt` | Disable every tool, including Intercom, even with `--tools` |
|
|
312
|
-
|
|
313
|
-
Default built-in tools: `read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, plus `powershell` on native Windows when a PowerShell executable is available. `atomic --help` lists `kill` and `codemode` alongside the other built-in tools. `ls` remains available but is off by default.
|
|
314
|
-
|
|
315
|
-
`defaultTools` selects initial coding tools without narrowing extension or custom tools. `--tools` sets an explicit allowlist, and `--exclude-tools` subtracts from it. `--no-builtin-tools` suppresses coding defaults when no allowlist is given. Bundled Intercom stays loaded with `--no-extensions`, but its tool follows allowlists, exclusions, and `--no-tools` like other extension tools.
|
|
316
|
-
|
|
317
|
-
To remove [codemode](/tools#codemode) or add [tool search](/tools#tool_search) alongside defaults, pass `atomic --tools -codemode,+tool_search` for one run or set `"defaultTools": ["-codemode", "+tool_search"]`. `atomic --tools +codemode,-write` keeps the other defaults and disables `write`.
|
|
318
|
-
|
|
319
|
-
Modifier entries take exact names (not `*` patterns) and cannot be mixed with plain allowlist entries; use `--exclude-tools` for pattern exclusions. On `/reload`, CLI modifiers still apply to the reloaded `defaultTools` setting. Modifiers do not narrow extension tools or filter MCP exposure, and `--no-tools` disables every tool.
|
|
320
|
-
|
|
321
|
-
### MCP tools
|
|
322
|
-
|
|
323
|
-
`--tools read,codemode` keeps non-hidden MCP tools with `codemode` or `deferred` exposure callable from codemode scripts. MCP tools unmatched by the allowlist are not declared directly, regardless of exposure. Unmatched direct-exposure tools stay registered but inactive. Only an enabled `tool_search` can load unmatched non-direct tools.
|
|
324
|
-
|
|
325
|
-
An entry starting with `mcp__` filters MCP tools too. For example, `atomic --tools read,codemode,'mcp__docs__*'` keeps only tools from the `docs` server. MCP resource tools count as MCP tools, and exclusions apply to both server and resource tools. Use `--no-mcp` to disable built-in MCP connections and resources.
|
|
326
|
-
|
|
327
|
-
## Project trust options
|
|
328
|
-
|
|
329
|
-
| Option | Description |
|
|
330
|
-
|--------|-------------|
|
|
331
|
-
| `--approve`, `-a` | Trust project-local files and resources for this run |
|
|
332
|
-
| `--no-approve`, `-na` | Ignore project-local files and resources for this run |
|
|
333
|
-
|
|
334
|
-
Project trust gates `.atomic` and legacy `.pi` project resources, project package settings, project-local context files, and `.agents` resources discovered from the project tree. Manage saved trust decisions with `/trust`; see [Security](/security).
|
|
423
|
+
Each entry includes a key, restore prefix, and paths. `--format github-output` (or `--format=github-output`) outputs `<name>-key`, `<name>-restore-prefix`, and `<name>-paths` lines for `$GITHUB_OUTPUT`. Paths that might hold credentials are omitted with a stderr warning. See [Caches for runners](/guides/resume-on-any-machine#caches-for-runners).
|
|
335
424
|
|
|
336
|
-
|
|
425
|
+
`atomic blueprint prebuild` restores the committed `HEAD` of `dir` (only committed files; untracked or ignored files such as `.env` are not copied) into a new restored worktree, runs its `initialize` and `maintenance` blueprints, and leaves the worktree idle for the next resume to claim. `--park` moves `"build"` paths from `resume.cache` into the seed directory saved by the `build` cache entry.
|
|
337
426
|
|
|
338
|
-
|
|
339
|
-
|--------|-------------|
|
|
340
|
-
| `-e`, `--extension <source>` | Load an extension from a path, npm, or git; repeatable |
|
|
341
|
-
| `--no-extensions`, `-ne` | Disable optional extension discovery; mandatory bundled Intercom remains loaded |
|
|
342
|
-
| `--no-mcp` | Disable built-in MCP support for this run, even when explicitly enabled; replacement extensions are unaffected |
|
|
343
|
-
| `--skill <path>` | Load a skill; repeatable |
|
|
344
|
-
| `--no-skills`, `-ns` | Disable skill discovery |
|
|
345
|
-
| `--prompt-template <path>` | Load a prompt template; repeatable |
|
|
346
|
-
| `--no-prompt-templates`, `-np` | Disable prompt template discovery |
|
|
347
|
-
| `--theme <path>` | Load a theme; repeatable |
|
|
348
|
-
| `--no-themes` | Disable theme discovery |
|
|
349
|
-
| `--no-context-files`, `-nc` | Disable context-file discovery and loading |
|
|
350
|
-
|
|
351
|
-
Combine `--no-*` with explicit flags to load only what you specify, ignoring settings:
|
|
352
|
-
|
|
353
|
-
```bash
|
|
354
|
-
atomic --no-extensions -e ./my-extension.ts
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
## Other options
|
|
358
|
-
|
|
359
|
-
| Option | Description |
|
|
360
|
-
|--------|-------------|
|
|
361
|
-
| `--system-prompt <text>` | Replace default prompt; context files and skills are still appended |
|
|
362
|
-
| `--append-system-prompt <text>` | Append text or file contents to the system prompt; repeatable |
|
|
363
|
-
| `--use-theme <name[/name]>` | Set the interactive theme for this run without saving it; see [Themes](/themes#initial-theme) |
|
|
364
|
-
| `--offline` | Disable automatic network activity, including update checks, package updates, telemetry, and model catalog refreshes |
|
|
365
|
-
| `--debug` | Turn on [debug mode](/development#debugging) for this run, the same as `ATOMIC_DEBUG=1` |
|
|
366
|
-
| `--verbose` | Force verbose startup |
|
|
367
|
-
| `-h`, `--help` | Show help |
|
|
368
|
-
| `-v`, `--version` | Show version |
|
|
369
|
-
|
|
370
|
-
## File arguments
|
|
427
|
+
Because `prebuild` executes project code, the project must be trusted or `--approve` (`-a`) must be passed. It prints restore and step timings on stderr, exits `2` on usage errors, and exits `1` if the project is untrusted, the checkout has no remote or has uncommitted changes to tracked files, or a step fails (keeping earlier worktrees and seeds). See [Caches for runners](/guides/resume-on-any-machine#caches-for-runners) and [Prebuilt worktrees](/guides/resume-on-any-machine#prebuilt-worktrees).
|
|
371
428
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
```bash
|
|
375
|
-
atomic @prompt.md "Answer this"
|
|
376
|
-
atomic -p @screenshot.png "What's in this image?"
|
|
377
|
-
atomic @code.ts @test.ts "Review these files"
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
## Examples
|
|
381
|
-
|
|
382
|
-
```bash
|
|
383
|
-
# Interactive with initial prompt
|
|
384
|
-
atomic "List all .ts files in src/"
|
|
385
|
-
|
|
386
|
-
# Non-interactive
|
|
387
|
-
atomic -p "Summarize this codebase"
|
|
388
|
-
|
|
389
|
-
# Non-interactive with piped stdin
|
|
390
|
-
cat README.md | atomic -p "Summarize this text"
|
|
391
|
-
|
|
392
|
-
# Different model
|
|
393
|
-
atomic --provider openai --model gpt-4o "Help me refactor"
|
|
394
|
-
|
|
395
|
-
# Model with provider prefix
|
|
396
|
-
atomic --model openai/gpt-4o "Help me refactor"
|
|
397
|
-
|
|
398
|
-
# Model with thinking level shorthand
|
|
399
|
-
atomic --model sonnet:high "Solve this complex problem"
|
|
429
|
+
## Environment variables
|
|
400
430
|
|
|
401
|
-
|
|
402
|
-
atomic --models "claude-*,gpt-4o"
|
|
431
|
+
See [Environment variables](/environment-variables) for the complete registry, exact boolean parsing rules, legacy `PI_*` aliases, color controls, and diagnostic knobs. Key CLI variables:
|
|
403
432
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
433
|
+
- **Config & storage:** `ATOMIC_CODING_AGENT_DIR`, `ATOMIC_CODING_AGENT_SESSION_DIR`, `ATOMIC_STORAGE`, `ATOMIC_SESSIONS_STORAGE`, `ATOMIC_PROFILE` + `ATOMIC_TEAM_*` ([Team and CI setup](/guides/team-setup#ci-and-swarms)), `ATOMIC_PACKAGE_DIR`.
|
|
434
|
+
- **Network & updates:** `ATOMIC_OFFLINE`, `ATOMIC_SKIP_VERSION_CHECK`, `ATOMIC_SELF_UPDATE_COMMAND` ([Custom update command](#custom-update-command)), `ATOMIC_TELEMETRY`, `ATOMIC_CACHE_RETENTION` ([Prompt-cache retention](/environment-variables#prompt-cache-retention)).
|
|
435
|
+
- **Interactive & shell:** `NO_COLOR`, `FORCE_COLOR`, `ATOMIC_REDUCED_MOTION`, `ATOMIC_DEBUG`, `ATOMIC_NO_PTY`, `ATOMIC_STDIN_TIMEOUT_MS`, `VISUAL` / `EDITOR`, `AI_AGENT` (set to `atomic` on Atomic and its child processes).
|
|
407
436
|
|
|
408
|
-
|
|
437
|
+
Every `bash` and `powershell` tool call receives an execution-time snapshot of the active session (captured when the command runs, so resumed sessions, subagents, and model changes stay accurate). See [Background tasks](/background-tasks#choose-how-long-to-wait) for observation wait limits.
|
|
409
438
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
| Variable | Description |
|
|
413
|
-
|----------|-------------|
|
|
414
|
-
| `AI_AGENT` | Set to `atomic` by the CLI, RPC, and compiled binary entry points and in every Atomic-owned child process so tools can identify Atomic processes |
|
|
415
|
-
| `ATOMIC_CODING_AGENT_DIR` | Override config directory; default is `~/.atomic/agent`. Bundled Intercom files live under its `intercom/` subdirectory |
|
|
416
|
-
| `ATOMIC_CODING_AGENT_SESSION_DIR` | Select JSONL session directory; overridden by `--session-dir` |
|
|
417
|
-
| `ATOMIC_STORAGE` | Shared storage selection JSON for sessions and Intercom; `--storage` takes precedence |
|
|
418
|
-
| `ATOMIC_SESSIONS_STORAGE` | Session-only storage selection JSON; cannot be combined with `ATOMIC_CODING_AGENT_SESSION_DIR` |
|
|
419
|
-
| `ATOMIC_PROFILE` | `ci`: use the team database from `ATOMIC_TEAM_*` for sessions and Intercom without settings ([Team and CI setup](/guides/team-setup#ci-and-swarms)) |
|
|
420
|
-
| `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX` | Team database connection settings for `ATOMIC_PROFILE=ci` (`ATOMIC_TEAM_TOKEN` and `ATOMIC_TEAM_TOKEN_FILE` cannot be combined) |
|
|
421
|
-
| `ATOMIC_PACKAGE_DIR` | Override package directory, useful for Nix or Guix store paths |
|
|
422
|
-
| `ATOMIC_SELF_UPDATE_COMMAND` | Command `atomic update` runs to update Atomic itself (`{packageName}`, `{version}`, `{installSpec}`). See [Custom update command](#custom-update-command) |
|
|
423
|
-
| `ATOMIC_SHARE_VIEWER_URL` | Base URL for `/share` links; default `https://bastani.ai/session/` |
|
|
424
|
-
| `ATOMIC_REDUCED_MOTION` | Set to `1` to skip startup animation and keep the working `∀` static while elapsed time still updates |
|
|
425
|
-
| `ATOMIC_OFFLINE` | Disable automatic network activity, including update checks, package updates, telemetry, and model catalog refreshes |
|
|
426
|
-
| `ATOMIC_DEBUG` | Set to `1` to turn on [debug mode](/development#debugging), the same as `--debug` |
|
|
427
|
-
| `ATOMIC_SKIP_VERSION_CHECK` | Skip the startup version update check |
|
|
428
|
-
| `ATOMIC_STDIN_TIMEOUT_MS` | Milliseconds a print-mode run waits for piped stdin before starting with a prompt argument; default `2000`, max `2147483647`, `0` waits until EOF |
|
|
429
|
-
| `ATOMIC_TELEMETRY` | Override version-adoption pings: `1`/`true`/`yes` or `0`/`false`/`no` (does not disable update checks) |
|
|
430
|
-
| `NODE_COMPILE_CACHE` | Override Node's persistent compile cache directory (enabled automatically on Node 22.8+; set `NODE_DISABLE_COMPILE_CACHE=1` to opt out) |
|
|
431
|
-
| `ATOMIC_CACHE_RETENTION` | Prompt-cache retention: `long` (default), `short`, or `none`, subject to provider and model support. See [Prompt-cache retention](/environment-variables#prompt-cache-retention) |
|
|
432
|
-
| `ATOMIC_OAUTH_CALLBACK_HOST` | Bind host for the local OAuth callback server during `/login`; default `127.0.0.1` |
|
|
433
|
-
| `ATOMIC_NO_PTY` | Set to `1` to disable PTY allocation for `bash` and `powershell` tools |
|
|
434
|
-
| `VISUAL`, `EDITOR` | External editor for Ctrl+G |
|
|
435
|
-
|
|
436
|
-
Every bash execution receives one execution-time snapshot of the active session. Foreground/background observation controls how long the caller waits, not the command's execution timeout. Omitted `wait` uses the owner's policy, normally yielding after 10 seconds; explicit background observation requires a supported task owner. Without one, foreground execution waits until completion. See [Background tasks](/background-tasks#choose-how-long-to-wait).
|
|
437
|
-
|
|
438
|
-
| Atomic variable | Exact compatibility alias | Value |
|
|
439
|
-
|-----------------|---------------------------|-------|
|
|
439
|
+
| Atomic variable | Legacy alias | Value |
|
|
440
|
+
| --- | --- | --- |
|
|
440
441
|
| `ATOMIC_SESSION_ID` | `PI_SESSION_ID` | Active session ID |
|
|
441
442
|
| `ATOMIC_PROVIDER` | `PI_PROVIDER` | Active model provider; omitted when no model is selected |
|
|
442
443
|
| `ATOMIC_MODEL` | `PI_MODEL` | Active model ID; omitted when no model is selected |
|
|
443
444
|
| `ATOMIC_REASONING_LEVEL` | `PI_REASONING_LEVEL` | Active reasoning level |
|
|
444
445
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
Before overlaying the eight current snapshot values above, Atomic clears those eight names plus the two retired session-file variables (ten reserved names in total; see [Bash and PowerShell session environment](/environment-variables#bash-and-powershell-session-environment) for the retired names). Factory-created bash tools expose the same metadata by default and accept `exposeSessionEnvironment: false` to omit it.
|
|
448
|
-
|
|
449
|
-
Many app-specific `ATOMIC_*` variables also accept legacy `PI_*` aliases, while storage, team, and newer Atomic-only variables such as `ATOMIC_REDUCED_MOTION` do not; see [Environment variables](/environment-variables) for the exact alias of each variable. Intercom's default broker starter works across Node installs, Bun checkouts, and standalone binaries without needing `npx`, `tsx`, or `bun` on `PATH`.
|
|
446
|
+
Atomic clears those eight names plus the two retired session-file names before setting the current snapshot; see [Bash and PowerShell session environment](/environment-variables#bash-and-powershell-session-environment).
|