@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/providers.md
CHANGED
|
@@ -1,37 +1,31 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
|
|
2
|
+
title: "Model providers"
|
|
3
|
+
sidebarTitle: "Providers"
|
|
4
|
+
description: "Sign in with subscriptions, configure API keys, verify credentials, and set up cloud or local model providers."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
Atomic connects to subscription providers through OAuth and to API-key providers through `~/.atomic/agent/auth.json` or environment variables. Built-in catalogs ship with Atomic; configured providers refresh newer catalogs independently and cache them in `~/.atomic/agent/models-store.json` for offline use.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
For first-time login steps, see [Authentication](/getting-started/authentication). For credential precedence, terminal stop reasons, and GitHub Copilot SDK error classes, see the [Provider reference](/providers/reference). For streaming transport modes (`auto`, `websocket-cached`, `websocket`, `sse`), see [Message delivery settings](/settings#message-delivery).
|
|
9
10
|
|
|
10
|
-
##
|
|
11
|
+
## Where to look on this page
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- [
|
|
19
|
-
- [
|
|
20
|
-
|
|
21
|
-
- [Auth file](#auth-file)
|
|
22
|
-
- [Provider specific config](#provider-specific-config)
|
|
23
|
-
- [llama.cpp](#llama-cpp)
|
|
24
|
-
- [TypeSafe Jev](#typesafe-jev)
|
|
25
|
-
- [Morph compaction](#morph-compaction)
|
|
26
|
-
- [Stop reasons](/providers/reference#stop-reasons)
|
|
27
|
-
- [Resolution order](/providers/reference#resolution-order)
|
|
28
|
-
- [Custom providers](#custom-providers)
|
|
13
|
+
| Topic | Section or page |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| OAuth subscriptions, `/login`, token refresh, and `atomic auth check` | [Subscriptions](#subscriptions) |
|
|
16
|
+
| Provider environment variables, `auth.json`, and `!command` / `$VAR` key resolution | [API keys](#api-keys) and [Auth file](#auth-file) |
|
|
17
|
+
| Cloud and gateway providers (NVIDIA NIM, Azure, Bedrock, Cloudflare, Vertex AI) | [Cloud and gateway providers](#cloud-and-gateway-providers) |
|
|
18
|
+
| Local GGUF router server (`llama.cpp`) | [llama.cpp](#llama-cpp) and [Local models with llama.cpp](/llama-cpp) |
|
|
19
|
+
| Specialized providers (OpenAI Decisions and Images, TypeSafe Jev, Morph compaction) | [OpenAI Decisions and Images](#subscription-and-api-key-at-the-same-time), [TypeSafe Jev](#typesafe-jev), [Morph compaction](#morph-compaction) |
|
|
20
|
+
| Custom endpoints, proxies, OAuth flows, and custom streaming APIs | [Custom providers](#custom-providers), [Configure custom models](/models), [Build custom providers](/custom-provider) |
|
|
21
|
+
| Credential precedence, stop reasons, and Copilot SDK error helpers | [Provider reference](/providers/reference) and [SDK API keys and OAuth](/sdk/reference#api-keys-and-oauth) |
|
|
29
22
|
|
|
30
23
|
## Subscriptions
|
|
31
24
|
|
|
32
25
|
Run `/login` in interactive mode, then select a provider:
|
|
33
26
|
|
|
34
27
|
- OpenRouter
|
|
28
|
+
- OpenAI (Sign in with ChatGPT)
|
|
35
29
|
- ChatGPT Plus/Pro (Codex)
|
|
36
30
|
- Claude Pro/Max
|
|
37
31
|
- GitHub Copilot
|
|
@@ -45,11 +39,11 @@ Run `/login <provider>`, such as `/login openrouter` or `/login kimi-coding`, to
|
|
|
45
39
|
|
|
46
40
|
To sign in from the shell without starting a session, run `atomic auth login <provider>`. It opens a browser for account sign-in; pass `--no-browser` for a device code or another non-browser method, or `--api-key` to store an API key. See [Credential commands](/reference/cli#credential-commands).
|
|
47
41
|
|
|
48
|
-
OpenRouter opens a browser PKCE flow and asks whether to mint a new API key. On remote or headless machines where the browser cannot reach the local callback, paste the final redirect URL or authorization code instead. Claude, ChatGPT Codex, and extension providers that set `usesCallbackServer` support the same paste fallback.
|
|
42
|
+
OpenRouter opens a browser PKCE flow and asks whether to mint a new API key. On remote or headless machines where the browser cannot reach the local callback, paste the final redirect URL or authorization code instead. Claude, OpenAI, ChatGPT Codex, and extension providers that set `usesCallbackServer` support the same paste fallback.
|
|
49
43
|
|
|
50
44
|
Device-code logins (Kimi Code, GitHub Copilot, Meta, and extension providers) display the verification URL and code without opening a browser automatically. Press Enter to open the URL and copy the code, or open it manually and enter the code.
|
|
51
45
|
|
|
52
|
-
Built-in and extension-provided OAuth work in
|
|
46
|
+
Built-in and extension-provided OAuth work in all interactive and non-interactive sessions. Login finishes as soon as credentials are saved; catalog refresh runs separately in the background.
|
|
53
47
|
|
|
54
48
|
Pressing Escape or Ctrl+C cancels an in-progress login quietly and leaves previously saved credentials and catalogs untouched. Provider denials, expired device codes, timeouts, network failures, malformed responses, token exchange failures, and storage errors remain visible.
|
|
55
49
|
|
|
@@ -61,9 +55,9 @@ Type `/logout ` to autocomplete providers with stored credentials, or run `/logo
|
|
|
61
55
|
|
|
62
56
|
Atomic refreshes a stored OAuth token when fewer than **five minutes** of validity remain, so long turns do not start with an expiring token. Tokens outside that window are left unchanged.
|
|
63
57
|
|
|
64
|
-
Concurrent sessions sharing `auth.json`, including subagents, coordinate token refresh rather than rotating the same credential independently. If a refresh reports a timeout, the token exchange keeps running and saves its result when it
|
|
58
|
+
Concurrent sessions sharing `auth.json`, including subagents, coordinate token refresh under a lock held for up to **2 minutes** rather than rotating the same credential independently. Chat requests allow up to **15 seconds** for pre-request authentication preparation, while catalog refreshes wait up to **60 seconds**. If a refresh reports a timeout, the token exchange keeps running and saves its result when it finishes; retry the request instead of signing in again.
|
|
65
59
|
|
|
66
|
-
When Atomic exits normally (quitting interactively, `SIGTERM`, ending an `atomic -p` run, or finishing an `atomic auth` command), it waits up to
|
|
60
|
+
When Atomic exits normally (quitting interactively, `SIGTERM`, ending an `atomic -p` run, or finishing an `atomic auth` command), it waits up to **3 seconds** for an in-flight token exchange to save. If Atomic is killed or crashes mid-refresh, run `/login <provider>` to sign in again.
|
|
67
61
|
|
|
68
62
|
Running sessions pick up `auth.json` changes made by another Atomic window, `atomic auth`, or another process's refresh without restarting. This includes extension-provided OAuth. If a provider rejects a stored login as revoked or expired (such as `invalid_grant`, OpenAI's `refresh_token_expired` or `refresh_token_reused`, or HTTP 401), Atomic checks for a newer saved login first; otherwise it reports the provider name and asks you to run `/login <provider>`.
|
|
69
63
|
|
|
@@ -73,11 +67,11 @@ If a chat request fails with HTTP 401 or a revoked-token error before any respon
|
|
|
73
67
|
|
|
74
68
|
Run `atomic auth check --provider <provider>` to verify effective credentials without starting a session. You can pass `--model <model>`, including `provider/model`, when your automation already tracks a model ID.
|
|
75
69
|
|
|
76
|
-
The command prints `ready`, `not_ready`, or `invalid
|
|
70
|
+
The command prints `ready`, `not_ready`, or `invalid`, and exits with code `0` (`ready`), `1` (`not_ready`), or `2` (`invalid`). Add `--json` to include the resolved provider, credential type, and non-ready reason.
|
|
77
71
|
|
|
78
72
|
Checks refresh expired OAuth tokens by default through the locked `auth.json` path. Pass `--no-refresh` for a read-only probe that reads `~/.atomic/agent/auth.json` and legacy `~/.pi/agent/auth.json` without creating or writing files.
|
|
79
73
|
|
|
80
|
-
Readiness output omits credential values unless you pass `--credentials` with `--provider` or an exact `--model`. That opt-in exports the credential on stdout (or in the JSON `credentials` field) and rejects an OAuth token with fewer than 30 minutes remaining when `--no-refresh` prevents a refresh.
|
|
74
|
+
Readiness output omits credential values unless you pass `--credentials` with `--provider` or an exact `--model`. That opt-in exports the credential on stdout (or in the JSON `credentials` field) and rejects an OAuth token with fewer than 30 minutes remaining when `--no-refresh` prevents a refresh. With `--credentials` (and without `--json`), non-ready and invalid statuses write to **stderr** so stdout stays empty and shell command substitution never captures `"not_ready"`.
|
|
81
75
|
|
|
82
76
|
### OpenAI API or ChatGPT sign-in
|
|
83
77
|
|
|
@@ -85,7 +79,7 @@ Run `/login openai`, then choose **API key** or **Sign in with ChatGPT**. ChatGP
|
|
|
85
79
|
|
|
86
80
|
Complete the browser callback, or paste the final callback URL into the login dialog on a remote machine. If your browser cannot reach `127.0.0.1:1455`, copy the full address-bar URL (including `code`, `state`, and `client_id`) and paste it into Atomic. Atomic creates a global device identity on first use that project settings do not override. A saved login does not verify model entitlement or quota.
|
|
87
81
|
|
|
88
|
-
|
|
82
|
+
For SDK-level `models.login()` options such as `agentName`, see [Provider reference](/providers/reference#sdk-login-options), [SDK API keys and OAuth](/sdk/reference#api-keys-and-oauth), and [`@bastani/atomic-ai`](/libraries/ai).
|
|
89
83
|
|
|
90
84
|
### Subscription and API key at the same time
|
|
91
85
|
|
|
@@ -99,12 +93,12 @@ The GPT-6 Luna Decisions classifier (`openai-decisions`) has no login of its own
|
|
|
99
93
|
|
|
100
94
|
OpenAI image models (`openai-images`, such as `openai-images/gpt-image-2.6-flare`) follow the same key order and also skip ChatGPT sign-in. If you only signed in with ChatGPT, save a key via `/login openai-api` or set `OPENAI_API_KEY` to enable image generation.
|
|
101
95
|
|
|
102
|
-
GPT Image 2.6 models (`gpt-image-2.6-flare` and `gpt-image-2.6-sunburst`) support SVG (`outputFormat: "svg"`) and animated GIF (`outputFormat: "gif"`, 2 to 16 frames). SVG needs no extra option: when your account requires `svg.model` and the request omits it, Atomic retries once with `gpt-6.1-sol`. Pass `svg: { model }` to select a specific authoring model, which Atomic always sends as given. SVG generation takes tens of seconds, so avoid a short `timeoutMs`. Use these models from [codemode](/codemode#generate-images) or an [extension](/extensions/api-reference#ctx-modelregistry
|
|
96
|
+
GPT Image 2.6 models (`gpt-image-2.6-flare` and `gpt-image-2.6-sunburst`) support SVG (`outputFormat: "svg"`) and animated GIF (`outputFormat: "gif"`, 2 to 16 frames). SVG needs no extra option: when your account requires `svg.model` and the request omits it, Atomic retries once with `gpt-6.1-sol`. Pass `svg: { model }` to select a specific authoring model, which Atomic always sends as given. SVG generation takes tens of seconds, so avoid a short `timeoutMs`. Use these models from [codemode](/codemode#generate-images) or an [extension](/extensions/api-reference#ctx-modelregistry-ctx-model-ctx-scopedmodels).
|
|
103
97
|
|
|
104
98
|
### OpenAI Codex
|
|
105
99
|
|
|
106
|
-
- Requires a ChatGPT Plus or Pro subscription
|
|
107
|
-
- Officially endorsed by OpenAI: [Codex for OSS](https://developers.openai.com/community/codex-for-oss)
|
|
100
|
+
- Requires a ChatGPT Plus or Pro subscription.
|
|
101
|
+
- Officially endorsed by OpenAI: [Codex for OSS](https://developers.openai.com/community/codex-for-oss).
|
|
108
102
|
|
|
109
103
|
If the Codex backend reports an invalidated or revoked token and no newer login exists, run `/logout`, choose **OpenAI ChatGPT Plus/Pro**, then run `/login` again and retry. Atomic displays these recovery steps with the error and never deletes stored credentials automatically.
|
|
110
104
|
|
|
@@ -147,13 +141,13 @@ Three provider paths derive `-fast` variants:
|
|
|
147
141
|
- **xAI** (`xai/*`): every Grok model gets a `-fast` variant (such as `xai/grok-4.7-fast`) that sends the base upstream model ID with xAI [Priority Processing](https://docs.x.ai/developers/advanced-api-usage/priority-processing) (`service_tier: priority`).
|
|
148
142
|
- **Anthropic** (`anthropic/*`, `anthropic-api/*`): exposes [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for `anthropic/claude-opus-5-5-fast`, `anthropic/claude-opus-5-fast`, and `anthropic/claude-opus-4-8-fast`, sending the base model ID with `speed: "fast"` and the `fast-mode-2026-02-01` beta header. Works with both API keys and Claude subscriptions.
|
|
149
143
|
|
|
150
|
-
Renamed providers, proxies, Azure, Bedrock, Vertex, OpenRouter, Vercel AI Gateway, generic OpenAI- or Anthropic-compatible providers, and
|
|
144
|
+
Renamed providers, proxies, Azure, Bedrock, Vertex, OpenRouter, Vercel AI Gateway, generic OpenAI- or Anthropic-compatible providers, and providers whose streaming is implemented by an extension never receive synthetic fast variants. GitHub Copilot advertises its own fast IDs per account; see [GitHub Copilot](#github-copilot).
|
|
151
145
|
|
|
152
146
|
Atomic persists and displays the canonical `-fast` ID even when sending the base model ID upstream, so sessions, usage rows, fallbacks, and subagent labels distinguish fast from normal models without a separate UI badge.
|
|
153
147
|
|
|
154
148
|
A derived fast variant owns two request fields: the upstream model ID and the tier (`service_tier` or Anthropic `speed`). A `before_provider_request` hook may modify other fields, but replacing the payload with a non-object or altering either route-owned field fails with an error. Select the normal sibling when a request needs custom routing.
|
|
155
149
|
|
|
156
|
-
Fast behavior comes from
|
|
150
|
+
Fast behavior comes from built-in fast-tier routing, never from a `-fast` or `-ultrafast` name suffix. If a provider, `models.json`, or an extension already defines that exact ID, your definition wins, Atomic suppresses the derived duplicate, and startup warns about the collision.
|
|
157
151
|
|
|
158
152
|
Provider-owned names ending in `-fast` or `-pro` stay ordinary exact IDs. For example, Vercel AI Gateway publishes `openai/gpt-6-astra` and `openai/gpt-6-astra-fast`, and OpenRouter publishes `openai/gpt-6-astra` and `openai/gpt-6-astra-pro`. Their own catalog routing and rates apply.
|
|
159
153
|
|
|
@@ -167,7 +161,15 @@ Anthropic subscription auth works with Claude Pro/Max accounts. Third-party usag
|
|
|
167
161
|
|
|
168
162
|
Run `/login anthropic` and select subscription authentication. **Browser login (default)** uses a local callback on port `53692` (falling back to a free port) and accepts a pasted redirect URL. Choose **Copy code login (headless)** when your browser runs on another machine, then paste the displayed `code#state` value into Atomic.
|
|
169
163
|
|
|
170
|
-
|
|
164
|
+
When configuring Anthropic with environment variables instead of `/login`, Atomic checks credentials in this order:
|
|
165
|
+
|
|
166
|
+
1. Stored `auth.json` credential (subscription or saved API key)
|
|
167
|
+
2. `ANTHROPIC_AUTH_TOKEN` (gateway-issued bearer token sent as `Authorization: Bearer ...` without synthesizing `x-api-key`)
|
|
168
|
+
3. `ANTHROPIC_OAUTH_TOKEN`
|
|
169
|
+
4. `ANTHROPIC_API_KEY`
|
|
170
|
+
5. Anthropic Workload Identity Federation
|
|
171
|
+
|
|
172
|
+
Empty environment variables do not count as configured. Avoid setting both `ANTHROPIC_AUTH_TOKEN` and `ANTHROPIC_API_KEY` accidentally.
|
|
171
173
|
|
|
172
174
|
Claude Opus 5 models are included in the Anthropic and Amazon Bedrock catalogs. With bearer-only Anthropic auth, select an exact entry such as `anthropic/claude-opus-5` or `anthropic/claude-opus-5-5` in `/model`; Bedrock uses its catalog inference profile. `xhigh` appears only when the selected entry advertises it.
|
|
173
175
|
|
|
@@ -179,13 +181,13 @@ When no Anthropic API key, bearer token, or subscription login is configured, At
|
|
|
179
181
|
|
|
180
182
|
The Anthropic SDK exchanges the identity token for a short-lived access token and rereads the token file on each refresh, so keep that file updated during long sessions. `ANTHROPIC_SERVICE_ACCOUNT_ID` and `ANTHROPIC_WORKSPACE_ID` are sent when set.
|
|
181
183
|
|
|
182
|
-
API keys, `ANTHROPIC_AUTH_TOKEN`, and custom authorization headers take precedence over federation. Federation applies only to the `anthropic` provider.
|
|
184
|
+
API keys, `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_OAUTH_TOKEN`, and custom authorization headers take precedence over federation. Federation applies only to the `anthropic` provider.
|
|
183
185
|
|
|
184
186
|
### GitHub Copilot
|
|
185
187
|
|
|
186
188
|
- Press Enter for `github.com`, or enter your GitHub Enterprise Server domain.
|
|
187
189
|
- Personal access tokens also work: store one with `/login github-copilot` (choose **Use an API key**) or set `COPILOT_GITHUB_TOKEN`. A stored key takes precedence over the environment variable.
|
|
188
|
-
- Models come from Atomic's built-in
|
|
190
|
+
- Models come from Atomic's built-in GitHub Copilot catalog plus models advertised by your account's `/models` endpoint. Once Atomic reads your account list via OAuth or a saved API key, it shows only models in that list; see [Which models are shown](#which-models-are-shown).
|
|
189
191
|
- If Copilot returns "model not supported", enable the model in VS Code under Copilot Chat's model selector.
|
|
190
192
|
|
|
191
193
|
Copilot includes `github-copilot/gpt-6.2-astra`, `github-copilot/gpt-6.2-sol`, `github-copilot/gpt-6.1-sol`, `github-copilot/gpt-6.1-terra`, and `github-copilot/gpt-6-astra`. See [OpenAI built-in models](/models/reference#openai-built-in-models) for context windows and reasoning levels. Account policy still controls actual availability.
|
|
@@ -195,7 +197,7 @@ Atomic reads your account's `/models` list on every network catalog refresh (at
|
|
|
195
197
|
Each discovered model:
|
|
196
198
|
|
|
197
199
|
- Keeps its advertised ID unchanged upstream and shows the account's display name in `/model`.
|
|
198
|
-
-
|
|
200
|
+
- Carries limits, vision settings, and reasoning efforts from the account list (adjustable via `modelOverrides`).
|
|
199
201
|
- Omits 24-hour prompt-cache retention by default; set `compat.supportsLongCacheRetention` in `modelOverrides` if the model accepts it.
|
|
200
202
|
- Never overwrites a built-in entry with the same ID.
|
|
201
203
|
- Is skipped if disabled by policy, hidden from the picker, or lacking tool-call support.
|
|
@@ -206,7 +208,7 @@ If an SDK session or `atomic -p` run has no cached Copilot catalog and cannot fi
|
|
|
206
208
|
|
|
207
209
|
#### Which models are shown
|
|
208
210
|
|
|
209
|
-
After Atomic reads your account's `/models` list with an OAuth login or saved API key, built-in Copilot models absent from that list are hidden across `/model`, `--list-models`, scoped models, and cycling. Discovered models stay visible.
|
|
211
|
+
After Atomic reads your account's `/models` list with an OAuth login or saved API key, built-in Copilot models absent from that list are hidden across `/model`, `--list-models`, [scoped models](/settings#enabledmodels), and cycling. Discovered models stay visible.
|
|
210
212
|
|
|
211
213
|
Each credential keeps its own saved list (stored beside the key in `auth.json`), and provider aliases created with `registerProviderAlias` filter by their own credential's list. Saving a new API key with `/login` clears the previous list until the next network refresh.
|
|
212
214
|
|
|
@@ -243,14 +245,14 @@ Run `/login` again or `atomic update --models` after plan changes.
|
|
|
243
245
|
|
|
244
246
|
#### Errors
|
|
245
247
|
|
|
246
|
-
Atomic classifies every failed Copilot request into a typed error class so retries and [model fallback](/settings#
|
|
248
|
+
Atomic classifies every failed Copilot request into a typed error class so [retries](/settings#retry) and [model fallback](/settings#fallbackmodels) react to the failure cause rather than error text:
|
|
247
249
|
|
|
248
250
|
- **Immediate fallback (no retry):** unavailable model, exhausted quota, invalid request, or authentication failure.
|
|
249
251
|
- **Retry, then fallback:** rate limit (honors `Retry-After`), service unavailable (408/5xx/529), cut stream, empty response, or unrecognized response.
|
|
250
252
|
- **Compaction (no fallback):** prompt exceeds the model's prompt-token limit (or HTTP 413).
|
|
251
253
|
- **Content filter:** retries or falls back according to `retry.fallbackOnContentFilter`.
|
|
252
254
|
|
|
253
|
-
For the full 11-class error table, error codes, fields, and SDK helper functions
|
|
255
|
+
For the full 11-class error table, error codes, fields, and SDK helper functions, see [GitHub Copilot errors](/providers/reference#github-copilot-errors).
|
|
254
256
|
|
|
255
257
|
#### Streams cut after a long attempt
|
|
256
258
|
|
|
@@ -263,7 +265,7 @@ GitHub Copilot response stream ended early: claude-opus-5.5 (stream-ended-early)
|
|
|
263
265
|
Streams cut during long thinking or very large tool calls often fail at the same point on retry. Atomic treats any attempt that ran **5 minutes or more** before cutting off as a long attempt:
|
|
264
266
|
|
|
265
267
|
- A long cut gets at most one more retry on the same model; shorter cuts keep the normal [`retry.maxRetries`](/settings#retry) budget.
|
|
266
|
-
- A second consecutive long cut stops retrying that model and moves to `fallbackModels` (which can include the same model at a lower effort, such as `github-copilot/claude-opus-5.5:medium`), or ends with the error.
|
|
268
|
+
- A second consecutive long cut stops retrying that model and moves to [`fallbackModels`](/settings#fallbackmodels) (which can include the same model at a lower effort, such as `github-copilot/claude-opus-5.5:medium`), or ends with the error.
|
|
267
269
|
- Partial output from a cut stream is never replayed; every retry restarts the turn.
|
|
268
270
|
|
|
269
271
|
Messages stream error events follow their provider error type (`invalid_request_error` is non-retryable; `rate_limit_error`, `overloaded_error`, and `api_error` are retryable; unknown event types become `unrecognized-response`). Cancelled requests and pre-response connection failures use Atomic's standard network handling.
|
|
@@ -278,7 +280,7 @@ Copilot occasionally ends a Chat Completions stream cleanly without a finish rea
|
|
|
278
280
|
- No text and no tool calls fail as `empty-response` and retry.
|
|
279
281
|
- Incomplete tool calls or streams ending without `[DONE]` fail as `stream-ended-early`.
|
|
280
282
|
|
|
281
|
-
When Atomic infers the stop reason, `rawStopReason` stays unset and
|
|
283
|
+
When Atomic infers the stop reason, `rawStopReason` stays unset and an inferred stop-reason diagnostic is recorded in `/debug` and session exports (see [GitHub Copilot error helpers](/providers/reference#github-copilot-error-helpers)).
|
|
282
284
|
|
|
283
285
|
#### Endpoint routing for personal access tokens
|
|
284
286
|
|
|
@@ -289,9 +291,9 @@ OAuth logins receive their Copilot host from GitHub's token exchange. Raw person
|
|
|
289
291
|
3. `GITHUB_SERVER_URL`: `<tenant>.ghe.com` routes to `copilot-api.<tenant>.ghe.com`; other non-`github.com` hosts route to `https://api.enterprise.githubcopilot.com`
|
|
290
292
|
4. `https://api.githubcopilot.com` (public routing hub)
|
|
291
293
|
|
|
292
|
-
A `models.json` `baseUrl` for `github-copilot` overrides all of the above. Without a saved API key or `COPILOT_GITHUB_TOKEN`, the provider uses
|
|
294
|
+
A `models.json` `baseUrl` for `github-copilot` overrides all of the above. Without a saved API key or `COPILOT_GITHUB_TOKEN`, the provider uses Atomic's default GitHub Copilot configuration.
|
|
293
295
|
|
|
294
|
-
Raw tokens (`github_pat_`, `ghp_`, `gho_`, `ghu_`) send `Copilot-Integration-Id: copilot-developer-cli` unless overridden by `models.json`, `modelOverrides`, or request headers (such as `vscode-chat`).
|
|
296
|
+
Raw tokens (`github_pat_`, `ghp_`, `gho_`, `ghu_`) send `Copilot-Integration-Id: copilot-developer-cli` unless overridden by `models.json`, `modelOverrides`, or request headers (such as `vscode-chat`). OAuth tokens keep their OAuth headers.
|
|
295
297
|
|
|
296
298
|
Business and enterprise tokens sent to the individual host return `421 Misdirected Request`; set `COPILOT_API_TARGET` to your organization's Copilot host to fix it.
|
|
297
299
|
|
|
@@ -299,7 +301,7 @@ Business and enterprise tokens sent to the individual host return `421 Misdirect
|
|
|
299
301
|
|
|
300
302
|
Run `/login xai`, then select **Use a subscription**. `XAI_API_KEY` remains available through **Use an API key**.
|
|
301
303
|
|
|
302
|
-
Atomic defaults xAI sessions to `grok-4.7`. GitHub Copilot also exposes Grok 4.7 when account policy enables it. Network catalogs refresh and cache newer entries independently of the bundled snapshot.
|
|
304
|
+
Atomic defaults xAI sessions to `grok-4.7`. Builtin subagents default to `model: "auto"`, running your saved default chat model (or the launching session's model) unless overridden. GitHub Copilot also exposes Grok 4.7 when account policy enables it. Network catalogs refresh and cache newer entries independently of the bundled snapshot.
|
|
303
305
|
|
|
304
306
|
`xai/grok-4.7-fast` and other `xai/*-fast` choices request xAI Priority Processing for faster time-to-first-token and streaming. xAI bills priority at twice standard token rates only when the response confirms the priority tier; fallback to default processing is priced at standard rates.
|
|
305
307
|
|
|
@@ -342,22 +344,25 @@ export ANTHROPIC_API_KEY=sk-ant-...
|
|
|
342
344
|
atomic
|
|
343
345
|
```
|
|
344
346
|
|
|
347
|
+
For the full precedence order (`--api-key` > `auth.json` > extension or `models.json` `apiKey` > built-in environment variable), see [Credential resolution order](/providers/reference#resolution-order). For non-provider environment variables, see [Environment variables](/environment-variables).
|
|
348
|
+
|
|
345
349
|
After login, `/model` uses the cached catalog immediately while a background refresh runs with a 15-second deadline. If a provider is slow or offline, Atomic keeps the last usable snapshot; see [Catalog freshness and precedence](/models/reference#catalog-freshness-and-precedence).
|
|
346
350
|
|
|
347
351
|
Logout returns immediately without waiting for catalog refresh. Earlier background refreshes cannot undo a later login or logout. If an environment variable or runtime override still authenticates the provider, remove that source separately.
|
|
348
352
|
|
|
349
353
|
| Provider | Environment variable | `auth.json` key |
|
|
350
354
|
| --- | --- | --- |
|
|
351
|
-
| Anthropic | `
|
|
355
|
+
| Anthropic | `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_OAUTH_TOKEN`, or `ANTHROPIC_API_KEY` | `anthropic` |
|
|
352
356
|
| Anthropic (API key only) | `ANTHROPIC_API_KEY` | `anthropic-api` |
|
|
353
357
|
| Ant Ling | `ANT_LING_API_KEY` | `ant-ling` |
|
|
354
358
|
| Azure | `AZURE_OPENAI_API_KEY` | `azure` |
|
|
355
359
|
| OpenAI | `OPENAI_API_KEY` | `openai` |
|
|
356
360
|
| OpenAI (API key only) | `OPENAI_API_KEY` | `openai-api` |
|
|
361
|
+
| GitHub Copilot | `COPILOT_GITHUB_TOKEN` | `github-copilot` |
|
|
357
362
|
| DeepSeek | `DEEPSEEK_API_KEY` | `deepseek` |
|
|
358
363
|
| NVIDIA NIM | `NVIDIA_API_KEY` | `nvidia` |
|
|
359
364
|
| Google Gemini | `GEMINI_API_KEY` | `google` |
|
|
360
|
-
| Google Vertex AI | `GOOGLE_CLOUD_API_KEY` | `google-vertex` |
|
|
365
|
+
| Google Vertex AI | `GOOGLE_CLOUD_API_KEY` (or ADC / service account) | `google-vertex` |
|
|
361
366
|
| Mistral | `MISTRAL_API_KEY` | `mistral` |
|
|
362
367
|
| Groq | `GROQ_API_KEY` | `groq` |
|
|
363
368
|
| Cerebras | `CEREBRAS_API_KEY` | `cerebras` |
|
|
@@ -390,6 +395,7 @@ Logout returns immediately without waiting for catalog refresh. Earlier backgrou
|
|
|
390
395
|
| Xiaomi MiMo Token Plan (China) | `XIAOMI_TOKEN_PLAN_CN_API_KEY` | `xiaomi-token-plan-cn` |
|
|
391
396
|
| Xiaomi MiMo Token Plan (Amsterdam) | `XIAOMI_TOKEN_PLAN_AMS_API_KEY` | `xiaomi-token-plan-ams` |
|
|
392
397
|
| Xiaomi MiMo Token Plan (Singapore) | `XIAOMI_TOKEN_PLAN_SGP_API_KEY` | `xiaomi-token-plan-sgp` |
|
|
398
|
+
| llama.cpp | `LLAMA_BASE_URL` (+ optional `LLAMA_API_KEY`) | `llama.cpp` |
|
|
393
399
|
|
|
394
400
|
Provider notes:
|
|
395
401
|
|
|
@@ -398,11 +404,11 @@ Provider notes:
|
|
|
398
404
|
- **Xiaomi MiMo:** Reasoning models on `xiaomi` and `xiaomi-token-plan-*` support only `off` and `high`.
|
|
399
405
|
- **Kimi For Coding:** Uses OpenAI Chat Completions at `https://api.kimi.com/coding/v1`. Include `/v1` when overriding `baseUrl` in `models.json`. Kimi Code models always think, so `off` is not selectable.
|
|
400
406
|
|
|
401
|
-
Use `--list-models` to check the latest catalog entries for any provider.
|
|
407
|
+
Use [`--list-models`](/reference/cli#model-options) to check the latest catalog entries for any provider.
|
|
402
408
|
|
|
403
409
|
#### Auth file
|
|
404
410
|
|
|
405
|
-
Store credentials in `~/.atomic/agent/auth.json
|
|
411
|
+
Store credentials in `~/.atomic/agent/auth.json` (Atomic also reads legacy `~/.pi/agent/auth.json` as a fallback):
|
|
406
412
|
|
|
407
413
|
```json
|
|
408
414
|
{
|
|
@@ -427,7 +433,7 @@ Store credentials in `~/.atomic/agent/auth.json`:
|
|
|
427
433
|
}
|
|
428
434
|
```
|
|
429
435
|
|
|
430
|
-
Atomic creates `auth.json` with `0600` permissions (owner read/write only). Stored credentials take precedence over environment variables.
|
|
436
|
+
Atomic creates `auth.json` with `0600` permissions (owner read/write only). Stored credentials take precedence over `models.json` keys and environment variables.
|
|
431
437
|
|
|
432
438
|
API-key entries may also carry a provider-scoped `env` map. Those values override process environment variables while resolving the key, headers, provider settings (Cloudflare, Azure, Vertex, Bedrock), cache retention, and `HTTP_PROXY`/`HTTPS_PROXY`:
|
|
433
439
|
|
|
@@ -449,17 +455,18 @@ API-key entries may also carry a provider-scoped `env` map. Those values overrid
|
|
|
449
455
|
|
|
450
456
|
The `key` field accepts shell commands, environment interpolation, escapes, and literal values:
|
|
451
457
|
|
|
452
|
-
- **Shell command:** `"!command"` executes the command and uses stdout (
|
|
458
|
+
- **Shell command:** `"!command"` executes the command and uses trimmed stdout (10-second timeout, 1 MiB stdout cap; non-zero exit or empty stdout fails resolution). On Windows, Atomic runs commands through your configured shell (`shellPath` or Git Bash) first and falls back to the default shell if unavailable.
|
|
453
459
|
```json
|
|
454
460
|
{ "type": "api_key", "key": "!security find-generic-password -ws 'anthropic'" }
|
|
455
461
|
{ "type": "api_key", "key": "!op read 'op://vault/item/credential'" }
|
|
456
462
|
```
|
|
457
|
-
- **
|
|
463
|
+
- **Caching difference between `auth.json` and `models.json`:** In `auth.json`, `!command` results are cached for the lifetime of the process, **including failed runs** (if a password manager prompt times out or fails once, restart Atomic to retry). In `models.json`, `!command` runs uncached on every request.
|
|
464
|
+
- **Environment interpolation:** `"$ENV_VAR"` or `"${ENV_VAR}"` reads the variable and works inside larger strings (`${FOO}_BAR` separates `FOO` from literal `_BAR`). Empty environment variables (`VAR=""`) count as unset. If any variable in a composite string is unset or empty, the entire value fails to resolve.
|
|
458
465
|
```json
|
|
459
466
|
{ "type": "api_key", "key": "$MY_ANTHROPIC_KEY" }
|
|
460
467
|
{ "type": "api_key", "key": "${KEY_PREFIX}_${KEY_SUFFIX}" }
|
|
461
468
|
```
|
|
462
|
-
- **Escapes:** `"$$"` produces a literal `"$"`; `"$!"` produces a literal `"!"` without running a command.
|
|
469
|
+
- **Escapes (non-command values only):** `"$$"` produces a literal `"$"`; `"$!"` produces a literal `"!"` without running a command.
|
|
463
470
|
```json
|
|
464
471
|
{ "type": "api_key", "key": "$$literal-dollar-prefix" }
|
|
465
472
|
{ "type": "api_key", "key": "$!literal-bang-prefix" }
|
|
@@ -470,9 +477,9 @@ The `key` field accepts shell commands, environment interpolation, escapes, and
|
|
|
470
477
|
{ "type": "api_key", "key": "public" }
|
|
471
478
|
```
|
|
472
479
|
|
|
473
|
-
Legacy bare uppercase variable names such as `MY_API_KEY` migrate to `$MY_API_KEY` on startup only when that variable is present in the environment; otherwise they remain literals. When resolution fails, Atomic omits `!command` text; braced `${NAME}` references always report the unset variable name, while unbraced `$NAME` references report the name only when it reads like a POSIX environment variable name so literal secrets containing `$` do not leak fragments. The same syntax applies to `apiKey` and `headers` in `models.json`; see [
|
|
480
|
+
Legacy bare uppercase variable names such as `MY_API_KEY` migrate to `$MY_API_KEY` on startup only when that variable is present in the environment; otherwise they remain literals. When resolution fails, Atomic omits `!command` text; braced `${NAME}` references always report the unset variable name, while unbraced `$NAME` references report the name only when it reads like a POSIX environment variable name so literal secrets containing `$` do not leak fragments. The same syntax applies to `apiKey` and `headers` in `models.json`; see [Value resolution](/models/reference#value-resolution). OAuth tokens from `/login` are also stored in `auth.json`.
|
|
474
481
|
|
|
475
|
-
##
|
|
482
|
+
## Cloud and gateway providers
|
|
476
483
|
|
|
477
484
|
The providers below need extra settings or support platform-supplied credentials.
|
|
478
485
|
|
|
@@ -486,8 +493,6 @@ atomic --provider nvidia --model nvidia/nemotron-3.5-super-vl-120b-a12b
|
|
|
486
493
|
|
|
487
494
|
Use `--list-models` or `/model` to inspect the current catalog. A catalog listing does not verify account access or serving availability.
|
|
488
495
|
|
|
489
|
-
<a id="azure-openai" />
|
|
490
|
-
|
|
491
496
|
### Azure
|
|
492
497
|
|
|
493
498
|
Use the `azure` provider for OpenAI Responses models and Microsoft Foundry Chat Completions models, including `azure/deepseek-v4-pro`. Use `azure` as the key in `auth.json`, `models.json`, and `settings.json`:
|
|
@@ -628,7 +633,7 @@ binding = "AI"
|
|
|
628
633
|
CLOUDFLARE_GATEWAY_ID = "your-gateway-slug"
|
|
629
634
|
```
|
|
630
635
|
|
|
631
|
-
Register an inline provider override where `env` is in scope so `streamSimple` uses the binding transport:
|
|
636
|
+
Register an inline provider override where `env` is in scope so `streamSimple` uses the binding transport (see [SDK](/sdk) and [`@bastani/atomic-ai`](/libraries/ai)):
|
|
632
637
|
|
|
633
638
|
```typescript
|
|
634
639
|
import {
|
|
@@ -707,19 +712,24 @@ Workers AI also includes classifiers using the same credentials: Cloudflare Clef
|
|
|
707
712
|
|
|
708
713
|
### Google Vertex AI
|
|
709
714
|
|
|
710
|
-
|
|
715
|
+
Run `/login google-vertex` to configure a **Google Cloud API key** (`GOOGLE_CLOUD_API_KEY`), **Application Default Credentials**, or a **Service account credentials file**, or configure environment variables directly:
|
|
711
716
|
|
|
712
717
|
```bash
|
|
718
|
+
# Option 1: Application Default Credentials
|
|
713
719
|
gcloud auth application-default login
|
|
714
|
-
export GOOGLE_CLOUD_PROJECT=your-project
|
|
720
|
+
export GOOGLE_CLOUD_PROJECT=your-project # GCLOUD_PROJECT also works as a fallback
|
|
715
721
|
export GOOGLE_CLOUD_LOCATION=us-central1
|
|
716
|
-
```
|
|
717
722
|
|
|
718
|
-
|
|
723
|
+
# Option 2: Service account key file
|
|
724
|
+
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
|
|
725
|
+
|
|
726
|
+
# Option 3: Google Cloud API key
|
|
727
|
+
export GOOGLE_CLOUD_API_KEY=your-api-key
|
|
728
|
+
```
|
|
719
729
|
|
|
720
|
-
## llama.cpp
|
|
730
|
+
## llama.cpp {#llama-cpp}
|
|
721
731
|
|
|
722
|
-
For router-mode discovery, load/unload management, and Hugging Face downloads with a local llama.cpp server, see [Local models](/llama-cpp). Configure the server with `/login llama.cpp` or `LLAMA_BASE_URL` and manage models with `/llama`.
|
|
732
|
+
For router-mode discovery, load/unload management, and Hugging Face downloads with a local llama.cpp server, see [Local models with llama.cpp](/llama-cpp). Configure the server with `/login llama.cpp` or `LLAMA_BASE_URL` and manage models with `/llama`.
|
|
723
733
|
|
|
724
734
|
## TypeSafe Jev
|
|
725
735
|
|
|
@@ -749,7 +759,7 @@ HTTP 401 indicates an invalid key (`TYPESAFE_API_KEY` or `/login typesafe`), HTT
|
|
|
749
759
|
|
|
750
760
|
Run `/login morph` to store a Morph API key in `~/.atomic/agent/auth.json`, or set `MORPH_API_KEY` (stored credentials take precedence). Do not place keys in prompts or `settings.json`.
|
|
751
761
|
|
|
752
|
-
Select `morph/morph-compactor` in `/settings` under **Compaction model
|
|
762
|
+
Select `morph/morph-compactor` (or any custom remote compactor configured in `models.json` or an extension) in `/settings` under **Compaction model** (switches live with no `/reload`), or set `"compactionModel": "morph/morph-compactor"` in `settings.json`. Without credentials, the selector marks it as `requires /login morph`. Customize Morph parameters such as `compression_ratio` or `preserve_recent` via `modelOverrides` in `~/.atomic/agent/models.json`; see [Customize Morph or add a remote compactor](/compaction#customize-morph-or-add-a-remote-compactor).
|
|
753
763
|
|
|
754
764
|
During compaction, Morph receives the conversation without thinking blocks and returns a replacement summary; the agent can recover omitted details from session history. Use Morph only if your policy permits sending conversation content to Morph.
|
|
755
765
|
|
|
@@ -757,14 +767,6 @@ Morph is a compactor, not a chat model: it does not appear in `/model` and is ne
|
|
|
757
767
|
|
|
758
768
|
## Custom providers
|
|
759
769
|
|
|
760
|
-
**Via `models.json`:** Add Ollama, LM Studio, vLLM, or any provider using OpenAI Completions, OpenAI Responses, Anthropic Messages, or Google Generative AI. See [
|
|
761
|
-
|
|
762
|
-
**Via extensions:** Build custom APIs, dynamic model discovery, or OAuth flows in an extension. See [Custom providers](/custom-provider) and [examples/extensions/custom-provider-gitlab-duo](https://github.com/bastani-inc/atomic/tree/main/packages/coding-agent/examples/extensions/custom-provider-gitlab-duo).
|
|
763
|
-
|
|
764
|
-
## Moved sections
|
|
765
|
-
|
|
766
|
-
<a id="stop-reasons" />
|
|
767
|
-
<a id="resolution-order" />
|
|
770
|
+
**Via `models.json`:** Add Ollama, LM Studio, vLLM, or any provider using OpenAI Completions, OpenAI Responses, Anthropic Messages, or Google Generative AI. See [Configure custom models](/models).
|
|
768
771
|
|
|
769
|
-
|
|
770
|
-
- [Resolution order](/providers/reference#resolution-order)
|
|
772
|
+
**Via extensions:** Build custom APIs, dynamic model discovery, or OAuth flows in an extension. See [Build custom providers](/custom-provider) and [examples/extensions/custom-provider-gitlab-duo](https://github.com/bastani-inc/atomic/tree/main/packages/coding-agent/examples/extensions/custom-provider-gitlab-duo).
|
package/docs/quickstart.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Quickstart"
|
|
3
|
-
|
|
3
|
+
sidebarTitle: "Quickstart"
|
|
4
|
+
description: "Install Atomic, authenticate a model provider, run your first session, and add project instructions."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# Quickstart
|
|
7
|
-
|
|
8
7
|
**Outcome:** Atomic is installed, authenticated, and has completed a real task in your repository.
|
|
9
8
|
|
|
10
9
|
## Onboarding path
|
|
@@ -12,33 +11,24 @@ description: "Install Atomic, authenticate a provider, run your first session, a
|
|
|
12
11
|
Follow these four pages in order for full setup instructions, or use the quick commands below:
|
|
13
12
|
|
|
14
13
|
1. **[Install Atomic](/getting-started/installation).** Choose a package manager or the self-contained release archive.
|
|
15
|
-
2. **[Authenticate](/getting-started/authentication).** Sign in with a subscription (`/login`) or export an API key.
|
|
14
|
+
2. **[Authenticate a provider](/getting-started/authentication).** Sign in with a subscription (`/login`) or export an API key.
|
|
16
15
|
3. **[Run your first session](/getting-started/first-session).** Complete a task, inspect tool calls, and delegate work to subagents.
|
|
17
16
|
4. **[Add project instructions](/getting-started/project-instructions).** Define repository conventions in `AGENTS.md`.
|
|
18
17
|
|
|
19
18
|
## Prerequisites
|
|
20
19
|
|
|
21
|
-
- **Package install:** Node.js 22.19 or newer
|
|
20
|
+
- **Package install:** Node.js 22.19 or newer with npm or pnpm, or Bun 1.4.5+ for Bun installs.
|
|
22
21
|
- **Release archive install:** macOS and Linux need `tar` and either `curl` or `wget`; Windows uses built-in PowerShell commands. This path does not need Node.js or a package manager.
|
|
23
|
-
- **Model provider:**
|
|
22
|
+
- **Model provider:** A supported subscription login (`/login`) or API key.
|
|
24
23
|
|
|
25
24
|
## Install
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
<a id="release-archive" />
|
|
29
|
-
<a id="atomic_version" />
|
|
30
|
-
<a id="atomic_install_dir" />
|
|
31
|
-
<a id="atomic_bin_dir" />
|
|
32
|
-
<a id="github_token-/-gh_token" />
|
|
33
|
-
<a id="which-runtime-runs-your-workflows" />
|
|
34
|
-
<a id="which-runtime-runs-atomic" />
|
|
35
|
-
<a id="alpine-and-musl-linux-archives" />
|
|
36
|
-
<a id="uninstall" />
|
|
37
|
-
|
|
38
|
-
Install with npm (or pnpm / Bun):
|
|
26
|
+
Install with npm, pnpm, or Bun:
|
|
39
27
|
|
|
40
28
|
```bash
|
|
41
29
|
npm install -g @bastani/atomic
|
|
30
|
+
# or: pnpm add -g @bastani/atomic
|
|
31
|
+
# or: bun add -g @bastani/atomic
|
|
42
32
|
```
|
|
43
33
|
|
|
44
34
|
Or install the self-contained release archive (no Node.js required):
|
|
@@ -59,20 +49,22 @@ Verify the install:
|
|
|
59
49
|
atomic --version
|
|
60
50
|
```
|
|
61
51
|
|
|
62
|
-
See [
|
|
52
|
+
See [Install Atomic](/getting-started/installation) for [package manager details](/getting-started/installation#package-managers), [release archive options](/getting-started/installation#release-archive), and [uninstalling](/getting-started/installation#uninstall).
|
|
63
53
|
|
|
64
54
|
## Authenticate
|
|
65
55
|
|
|
66
|
-
|
|
67
|
-
<a id="option-2-api-key" />
|
|
68
|
-
|
|
69
|
-
Either log in with a subscription inside Atomic:
|
|
56
|
+
Sign in with a subscription inside Atomic or from your shell:
|
|
70
57
|
|
|
71
58
|
```bash
|
|
72
59
|
atomic
|
|
73
60
|
/login
|
|
74
61
|
```
|
|
75
62
|
|
|
63
|
+
```bash
|
|
64
|
+
# Or sign in directly from the shell
|
|
65
|
+
atomic auth login anthropic
|
|
66
|
+
```
|
|
67
|
+
|
|
76
68
|
Or export an API key before starting:
|
|
77
69
|
|
|
78
70
|
```bash
|
|
@@ -80,18 +72,10 @@ export ANTHROPIC_API_KEY=sk-ant-...
|
|
|
80
72
|
atomic
|
|
81
73
|
```
|
|
82
74
|
|
|
83
|
-
See [
|
|
75
|
+
See [Authenticate a provider](/getting-started/authentication) for all options and verification steps.
|
|
84
76
|
|
|
85
77
|
## First session
|
|
86
78
|
|
|
87
|
-
<a id="try-the-built-in-workflows" />
|
|
88
|
-
<a id="use-an-earlier-workflow" />
|
|
89
|
-
<a id="monitor-and-steer-a-run" />
|
|
90
|
-
<a id="top-skills-to-invoke-directly" />
|
|
91
|
-
<a id="create-your-own-workflow-in-natural-language" />
|
|
92
|
-
<a id="describe-a-reusable-procedure" />
|
|
93
|
-
<a id="default-tools-and-prompts" />
|
|
94
|
-
|
|
95
79
|
Start Atomic inside a repository and ask it to inspect the project:
|
|
96
80
|
|
|
97
81
|
```bash
|
|
@@ -104,15 +88,15 @@ List the top-level directories in this repository and say what each one holds.
|
|
|
104
88
|
```
|
|
105
89
|
|
|
106
90
|
- Use `/tasks` to inspect background subagents and shells.
|
|
107
|
-
- Use `/skill:<name>` to
|
|
108
|
-
-
|
|
109
|
-
- See [
|
|
91
|
+
- Use `/skill:<name>` to run a reusable skill directly. See [Top skills to invoke directly](/getting-started/first-session#top-skills-to-invoke-directly).
|
|
92
|
+
- Ask Atomic to split independent work across subagents. See [Delegate a larger task](/getting-started/first-session#delegate-a-larger-task).
|
|
93
|
+
- See [Run your first session](/getting-started/first-session) for the full walkthrough and [default tools](/getting-started/first-session#default-tools-and-prompts).
|
|
110
94
|
|
|
111
|
-
##
|
|
95
|
+
## Add project instructions
|
|
112
96
|
|
|
113
|
-
Add an `AGENTS.md` file at the root of your repository so Atomic follows your test commands and coding conventions automatically. Run `/reload` after editing it. See [
|
|
97
|
+
Add an `AGENTS.md` file at the root of your repository so Atomic follows your test commands and coding conventions automatically. Run `/reload` after editing it. See [Add project instructions](/getting-started/project-instructions).
|
|
114
98
|
|
|
115
|
-
##
|
|
99
|
+
## Try common workflows
|
|
116
100
|
|
|
117
101
|
### Reference files
|
|
118
102
|
|
|
@@ -123,7 +107,9 @@ atomic @README.md "Summarize this"
|
|
|
123
107
|
atomic @src/app.ts @src/app.test.ts "Review these together"
|
|
124
108
|
```
|
|
125
109
|
|
|
126
|
-
|
|
110
|
+
`@file` paths expand `~`, resolve relative to the current directory, skip empty (0-byte) files, and exit `1` if a file is missing.
|
|
111
|
+
|
|
112
|
+
Paste images with `Cmd+V` on macOS, `Ctrl+V` on Linux or inside tmux on macOS, and `Alt+V` or `Ctrl+V` on Windows and WSL. You can also drag images into supported terminals. When the clipboard holds both text and an image, `Ctrl+V` prefers the image; `Cmd+V` depends on the terminal.
|
|
127
113
|
|
|
128
114
|
### Run shell commands
|
|
129
115
|
|
|
@@ -149,14 +135,14 @@ atomic -c # Continue the most recent session
|
|
|
149
135
|
atomic -r # Pick a previous session
|
|
150
136
|
atomic --name "my task" # Set a display name at startup
|
|
151
137
|
atomic --session <id|prefix> # Open by exact ID or unique 8-hex UUID prefix
|
|
152
|
-
atomic --import <file> # Import
|
|
138
|
+
atomic --import <file> # Import an exported JSONL session
|
|
153
139
|
```
|
|
154
140
|
|
|
155
|
-
Inside interactive mode, use `/resume`, `/new`, `/tree`, `/fork`, and `/clone`.
|
|
141
|
+
`atomic --session` exits with code `75` if another live Atomic process holds that session open. Inside interactive mode, use `/resume`, `/new`, `/tree`, `/fork`, and `/clone`.
|
|
156
142
|
|
|
157
143
|
### Non-interactive mode
|
|
158
144
|
|
|
159
|
-
Run one-shot prompts with `-p` (`--print`):
|
|
145
|
+
Run one-shot prompts with `-p` (`--print`), or pipe input into `atomic` (non-TTY stdin or stdout enters print mode automatically):
|
|
160
146
|
|
|
161
147
|
```bash
|
|
162
148
|
atomic -p "Summarize this codebase"
|
|
@@ -164,18 +150,20 @@ cat README.md | atomic -p "Summarize this text"
|
|
|
164
150
|
atomic -p @screenshot.png "What's in this image?"
|
|
165
151
|
```
|
|
166
152
|
|
|
167
|
-
Use `--mode json` for a JSON event stream or `--mode rpc` for stdin/stdout process integration.
|
|
153
|
+
Piped stdin is separated from CLI prompt text by a newline. Use `--mode json` for a JSON event stream or `--mode rpc` for stdin/stdout process integration.
|
|
168
154
|
|
|
169
155
|
## Next steps
|
|
170
156
|
|
|
171
|
-
- **[Interactive
|
|
172
|
-
- **[
|
|
173
|
-
- **[
|
|
174
|
-
- **[
|
|
175
|
-
- **[
|
|
176
|
-
- **[
|
|
177
|
-
- **[Atomic packages](/packages).**
|
|
178
|
-
- **[
|
|
179
|
-
- **[
|
|
180
|
-
|
|
181
|
-
|
|
157
|
+
- **[Interactive mode](/usage).** Learn slash commands, shortcuts, and message queueing.
|
|
158
|
+
- **[Sessions](/sessions) and [Worktree snapshots](/worktree-snapshots).** Branch conversations, restore repository checkouts, and [resume on any machine with blueprints](/guides/resume-on-any-machine#set-the-environment-up-with-a-blueprint).
|
|
159
|
+
- **[Storage backends](/storage).** Keep local SQLite or switch to shared PostgreSQL or Turso/libSQL (or see [SDK storage backends](/sdk/storage) for embedded apps).
|
|
160
|
+
- **[Compaction](/compaction).** Manage long sessions and configure [custom remote compactors](/compaction#customize-morph-or-add-a-remote-compactor).
|
|
161
|
+
- **[MCP servers](/mcp-servers).** Connect external tools and data sources over Model Context Protocol.
|
|
162
|
+
- **[Subagents](/subagents), [Intercom](/intercom), and [Orchestration](/orchestration).** Delegate independent tasks, coordinate live sessions, and verify multi-step work.
|
|
163
|
+
- **[Skills](/skills) and [Atomic packages](/packages).** Run reusable procedures with `/skill:<name>` and share extensions, skills, prompts, and themes.
|
|
164
|
+
- **[Providers](/providers), [Settings](/settings), and [Keybindings](/keybindings).** Configure models, preferences, and keyboard shortcuts.
|
|
165
|
+
- **[Programmatic modes](/programmatic) and [Structured decisions](/sdk/structured-decisions).** Embed Atomic via the TypeScript SDK, `decide()`, RPC, or JSON mode.
|
|
166
|
+
- **[Security](/security) and [Containerization](/containerization).** Review project trust, tool permissions, and container isolation before trusting third-party projects or packages.
|
|
167
|
+
- **[Diagnostics and debugging](/development).** Capture debug snapshots, trace stalls, and file bug reports.
|
|
168
|
+
|
|
169
|
+
Platform guides: [Windows](/windows), [Termux](/termux), [tmux](/tmux), [Herdr](/herdr), [Terminal setup](/terminal-setup), and [Shell aliases](/shell-aliases).
|