@bastani/atomic 0.10.9 → 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 +57 -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/prompt-templates.md
CHANGED
|
@@ -1,27 +1,42 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Prompt templates
|
|
3
|
-
|
|
2
|
+
title: "Prompt templates"
|
|
3
|
+
sidebarTitle: "Prompt templates"
|
|
4
|
+
description: "Create reusable Markdown slash commands with bash-style argument placeholders, defaults, and slicing."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# Prompt templates
|
|
7
|
-
|
|
8
7
|
Prompt templates are Markdown snippets that expand into full prompts. Type `/name` in the editor to invoke a template, where `name` is the filename without `.md`.
|
|
9
8
|
|
|
10
9
|
**Prerequisites:** Atomic installed and running in a project. See the [Quickstart](/quickstart). No code or build step is required.
|
|
11
10
|
|
|
12
11
|
Use prompt templates when you repeat the same instructions and want a slash command for them. They are Atomic's lightest customization option. Use a [skill](/skills) if the agent should decide when to load the instructions, or an [extension](/extensions) if you need to run code.
|
|
13
12
|
|
|
14
|
-
## Locations
|
|
13
|
+
## Locations and loading rules
|
|
14
|
+
|
|
15
|
+
Atomic loads prompt templates from these sources:
|
|
16
|
+
|
|
17
|
+
- **Global:** `~/.atomic/agent/prompts/*.md` (legacy `~/.pi/agent/prompts/*.md`)
|
|
18
|
+
- **Project** (only after you trust the project): `.atomic/prompts/*.md` (legacy `.pi/prompts/*.md`)
|
|
19
|
+
- **Packages:** `prompts/` directories, `atomic.prompts`, or legacy `pi.prompts` entries in `package.json`
|
|
20
|
+
- **Settings:** `prompts` array in global or project `settings.json`, which accepts files, directories, and filter patterns (`!glob`, `+path`, `-path` with `~` expansion; see [Package filtering](/packages/reference#package-filtering))
|
|
21
|
+
- **CLI:** `--prompt-template <path>` (repeatable; accepts either a `.md` file or a directory, and still loads with `--no-prompt-templates`)
|
|
15
22
|
|
|
16
|
-
|
|
23
|
+
Disable default discovery with `--no-prompt-templates` (short flag `-np`). Explicit `--prompt-template` paths and `-e` package prompts still load.
|
|
17
24
|
|
|
18
|
-
|
|
19
|
-
- Project: `.atomic/prompts/*.md` (legacy `.pi/prompts/*.md`, only after the project is trusted)
|
|
20
|
-
- Packages: `prompts/` directories, `atomic.prompts`, or legacy `pi.prompts` entries in `package.json`
|
|
21
|
-
- Settings: `prompts` array with files or directories
|
|
22
|
-
- CLI: `--prompt-template <path>` (repeatable)
|
|
25
|
+
### Discovery and precedence rules
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
- Auto-discovery in `~/.atomic/agent/prompts/` and `.atomic/prompts/` is non-recursive. To load templates from subdirectories, add them explicitly in `settings.json` `prompts` or in a package manifest.
|
|
28
|
+
- Scanning skips dotfiles, `node_modules`, broken symlinks, and files matched by `.gitignore`, `.ignore`, or `.fdignore` inside the `prompts/` directory. Direct symlinks to `.md` files are followed.
|
|
29
|
+
- When multiple templates share a filename, Atomic keeps the first match in this order:
|
|
30
|
+
1. Packages passed with `-e` / `--extension`
|
|
31
|
+
2. Project `settings.json` `prompts` array
|
|
32
|
+
3. Project auto-discovered directories (`.atomic/prompts/`, then legacy `.pi/prompts/`)
|
|
33
|
+
4. Global `settings.json` `prompts` array
|
|
34
|
+
5. Global auto-discovered directories (`~/.atomic/agent/prompts/`, then legacy `~/.pi/agent/prompts/`)
|
|
35
|
+
6. Configured packages (project packages, then global packages)
|
|
36
|
+
7. Bundled packages
|
|
37
|
+
8. Explicit CLI `--prompt-template <path>` paths
|
|
38
|
+
- Exception: if an inherited legacy `.pi` template collides with a bundled template, the bundled template wins.
|
|
39
|
+
- Built-in interactive commands and extension slash commands take precedence over prompt templates with the same name.
|
|
25
40
|
|
|
26
41
|
## Format
|
|
27
42
|
|
|
@@ -36,9 +51,9 @@ Review the staged changes (`git diff --cached`). Focus on:
|
|
|
36
51
|
```
|
|
37
52
|
|
|
38
53
|
- The filename becomes the command name. `review.md` becomes `/review`.
|
|
39
|
-
- `description` is optional. If
|
|
54
|
+
- `description` is optional. If omitted, Atomic uses the first non-empty line of the template body, truncated to 60 characters with `...` appended when longer.
|
|
40
55
|
- `argument-hint` is optional. When set, the hint appears before the description in the autocomplete dropdown.
|
|
41
|
-
- Invalid YAML frontmatter (for example an unquoted `description: Broken: value`) skips only that template and reports a warning naming the file and
|
|
56
|
+
- Invalid YAML frontmatter (for example an unquoted `description: Broken: value`) skips only that template and reports a warning naming the file and parse position. Valid sibling templates still load.
|
|
42
57
|
|
|
43
58
|
### Argument hints
|
|
44
59
|
|
|
@@ -53,37 +68,44 @@ argument-hint: "<PR-URL>"
|
|
|
53
68
|
|
|
54
69
|
This renders in the autocomplete dropdown as:
|
|
55
70
|
|
|
56
|
-
```
|
|
57
|
-
→ pr <PR-URL>
|
|
58
|
-
is <issue>
|
|
59
|
-
wr [instructions]
|
|
60
|
-
cl
|
|
71
|
+
```text
|
|
72
|
+
→ pr <PR-URL> Review PRs from URLs with structured issue and code analysis
|
|
73
|
+
is <issue> Analyze GitHub issues (bugs or feature requests)
|
|
74
|
+
wr [instructions] Finish the current task end-to-end
|
|
75
|
+
cl Audit changelog entries before release
|
|
61
76
|
```
|
|
62
77
|
|
|
63
78
|
## Usage
|
|
64
79
|
|
|
65
|
-
Type `/` followed by the template name in the editor. Autocomplete shows available templates with descriptions.
|
|
80
|
+
Type `/` followed by the template name in the editor. Autocomplete shows available templates with hints and descriptions.
|
|
66
81
|
|
|
67
|
-
```
|
|
82
|
+
```text
|
|
68
83
|
/review # Expands review.md
|
|
69
84
|
/component Button # Expands with argument
|
|
70
85
|
/component Button "click handler" # Multiple arguments
|
|
71
86
|
```
|
|
72
87
|
|
|
73
|
-
The template name ends at the first space, tab, or line break, so arguments can also start on a new line with Shift+Enter. Line breaks inside the arguments are
|
|
88
|
+
The template name ends at the first space, tab, or line break, so arguments can also start on a new line with Shift+Enter. Line breaks inside the arguments are preserved. The same rule applies to extension commands and `/skill:name` commands.
|
|
89
|
+
|
|
90
|
+
## Arguments and placeholders
|
|
74
91
|
|
|
75
|
-
|
|
92
|
+
Templates support bash-style positional arguments, defaults, and slicing. Substitution is single-pass (not recursive), so argument values containing `$1` or `$@` remain literal text.
|
|
76
93
|
|
|
77
|
-
|
|
94
|
+
| Placeholder | Expansion |
|
|
95
|
+
| --- | --- |
|
|
96
|
+
| `$1`, `$2`, `$10`, ... | Positional argument by 1-based index. Missing arguments and `$0` expand to `""` (empty string). |
|
|
97
|
+
| `$@` or `$ARGUMENTS` | All arguments joined with single spaces. Interchangeable except for slicing. |
|
|
98
|
+
| `${N:-default}` | Argument `N` when present and non-empty; otherwise `default`. Empty defaults like `${1:-}` expand to `""`. |
|
|
99
|
+
| `${@:-default}` or `${ARGUMENTS:-default}` | All arguments joined with spaces when present and non-empty; otherwise `default`. |
|
|
100
|
+
| `${@:N}` | Arguments from 1-based position `N` to the end, joined with spaces. `N = 0` clamps to `1`; `N` past the last argument expands to `""`. |
|
|
101
|
+
| `${@:N:L}` | Up to `L` arguments starting at 1-based position `N`, joined with spaces. `L = 0` expands to `""`. Slicing works with `@` only (not `${ARGUMENTS:N}`). |
|
|
78
102
|
|
|
79
|
-
-
|
|
80
|
-
- `$@` or `$ARGUMENTS` for all arguments joined with spaces
|
|
81
|
-
- `${1:-default}` uses argument 1 when present and non-empty, otherwise `default` (up to 1,024 characters)
|
|
82
|
-
- `${@:-default}` or `${ARGUMENTS:-default}` uses all arguments when present and non-empty, otherwise `default`
|
|
83
|
-
- `${@:N}` for arguments from the Nth position (1-indexed)
|
|
84
|
-
- `${@:N:L}` for `L` arguments starting at N
|
|
103
|
+
Default-value syntax rules:
|
|
85
104
|
|
|
86
|
-
|
|
105
|
+
- `default` inside `${N:-default}` or `${@:-default}` cannot contain a closing `}`.
|
|
106
|
+
- If `default` is longer than 1,024 characters, the placeholder does not match and remains literal text in the expanded prompt.
|
|
107
|
+
|
|
108
|
+
Example with positional arguments and `$@`:
|
|
87
109
|
|
|
88
110
|
```markdown
|
|
89
111
|
---
|
|
@@ -92,26 +114,26 @@ description: Create a component
|
|
|
92
114
|
Create a React component named $1 with features: $@
|
|
93
115
|
```
|
|
94
116
|
|
|
95
|
-
|
|
117
|
+
Usage: `/component Button "onClick handler" "disabled support"`
|
|
118
|
+
|
|
119
|
+
Example with a default value:
|
|
96
120
|
|
|
97
121
|
```markdown
|
|
98
122
|
Summarize the current state in ${1:-7} bullet points.
|
|
99
123
|
```
|
|
100
124
|
|
|
101
|
-
Usage: `/component Button "onClick handler" "disabled support"`
|
|
102
|
-
|
|
103
125
|
Use `""` or `''` to pass an empty argument without shifting later positions. For a template containing `Review $2. Focus: ${1:-correctness}.`, `/review "" src/index.ts` expands to `Review src/index.ts. Focus: correctness.`
|
|
104
126
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
## Loading rules
|
|
127
|
+
### Quoting and splitting rules
|
|
108
128
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
129
|
+
- Arguments split on space (` `) and tab (`\t`) only, **not on newlines (`\n`)**. If arguments span multiple lines (via Shift+Enter) without spaces or tabs between them, the newline stays inside the same positional argument.
|
|
130
|
+
- Quotes (`"` or `'`) start a quoted argument only at the beginning of a token. Apostrophes inside words such as `doesn't` remain ordinary characters.
|
|
131
|
+
- An unclosed quote is treated as a literal character, and the rest of the text is tokenized normally.
|
|
132
|
+
- Backslash escaping works only for a matching quote inside a quoted argument (`\"` inside `"..."` or `\'` inside `'...'`). For example, `/review "the \"fast\" path"` passes `the "fast" path`. All other backslashes (including `\\` and backslashes outside quotes) remain literal.
|
|
111
133
|
|
|
112
134
|
## Next steps
|
|
113
135
|
|
|
114
|
-
- [
|
|
136
|
+
- [Use and organize skills](/skills). Provide instructions the agent loads on its own when a task matches, instead of requiring an explicit slash command.
|
|
115
137
|
- [Subagents](/subagents). Delegate a focused, bounded task to a child agent.
|
|
116
|
-
- [
|
|
138
|
+
- [Install and manage packages](/packages). Bundle your prompt templates with skills, themes, and extensions to share them.
|
|
117
139
|
- [Build with Atomic](/build). Compare every customization option.
|
|
@@ -1,32 +1,42 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Provider reference
|
|
3
|
-
|
|
2
|
+
title: "Provider reference"
|
|
3
|
+
sidebarTitle: "Providers"
|
|
4
|
+
description: "Credential resolution order, provider stop reasons, and GitHub Copilot error classes and helpers."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
This reference covers credential precedence, terminal stop reasons, and GitHub Copilot's typed error classes. For setup steps, subscriptions, and API keys, see [Model providers](/providers).
|
|
7
8
|
|
|
8
|
-
##
|
|
9
|
+
## Credential resolution order {#resolution-order}
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
Atomic resolves provider credentials from highest to lowest priority:
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
1. **CLI `--api-key` flag** (or SDK runtime API key override).
|
|
14
|
+
2. **Stored credential in `~/.atomic/agent/auth.json`** (API key or OAuth token; falls back to legacy `~/.pi/agent/auth.json`).
|
|
15
|
+
3. **Provider configuration `apiKey`** from an extension's `registerProvider()` call, then from `~/.atomic/agent/models.json`.
|
|
16
|
+
4. **Built-in environment variable or ambient credentials** (such as `ANTHROPIC_API_KEY`, AWS profiles/IAM/IRSA, Google Application Default Credentials, or Anthropic Workload Identity Federation).
|
|
17
|
+
|
|
18
|
+
Watch out for two precedence rules:
|
|
13
19
|
|
|
14
|
-
|
|
20
|
+
- **Unset `$VAR` in `models.json` blocks env fallback.** If you configure `"apiKey": "$UNSET_VAR"` on a built-in provider in `models.json` and `UNSET_VAR` is unset or empty, credential resolution stops and returns no credential instead of falling back to the provider's built-in environment variable.
|
|
21
|
+
- **Anthropic environment variable order.** When no CLI flag, `auth.json` entry, or `models.json` `apiKey` is set for `anthropic`, Atomic checks `ANTHROPIC_AUTH_TOKEN`, then `ANTHROPIC_OAUTH_TOKEN`, then `ANTHROPIC_API_KEY`, then Anthropic Workload Identity Federation.
|
|
15
22
|
|
|
16
|
-
|
|
23
|
+
### SDK login options
|
|
17
24
|
|
|
18
|
-
|
|
25
|
+
Applications calling `@bastani/atomic-ai` directly can pass `{ agentName: "my-app" }` as the fourth argument to `models.login()` to set the OpenAI ChatGPT sign-in name hint or Codex login originator. ChatGPT sign-in defaults to `Atomic`.
|
|
26
|
+
|
|
27
|
+
## Stop reasons
|
|
19
28
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
Every provider reports why a turn ended. Atomic maps the provider's raw stop reason (`end_turn`, `MAX_TOKENS`, `tool_calls`, and similar values) onto `stop`, `length`, `toolUse`, `error`, `aborted`, or `deferred` (for asynchronous batch APIs).
|
|
30
|
+
|
|
31
|
+
An unrecognized terminal reason becomes a provider error that names the raw value instead of an ordinary stop. This surfaces new truncation or safety signals rather than letting a turn appear complete. Provider safety and refusal errors keep their raw reason, such as `Provider stopped with: SAFETY`.
|
|
32
|
+
|
|
33
|
+
A streaming partial message carries `pending` until a terminal reason replaces it. A completed turn cannot remain `pending`, so a stream that ends in that state becomes a provider error. See [Implement provider streaming](/custom-provider/streaming#stop-reasons) for custom streaming requirements.
|
|
24
34
|
|
|
25
35
|
## GitHub Copilot errors
|
|
26
36
|
|
|
27
37
|
Atomic classifies failed GitHub Copilot requests into typed error classes so retries and [model fallback](/settings#retry) react to the failure cause rather than message text. Each message states what failed, the model, the error code, the next step, and Copilot's response excerpt.
|
|
28
38
|
|
|
29
|
-
Every `GitHubCopilotError` carries `code`, `retryable`, `hint`, `modelId`, `api`, `status`, `providerCode` (Copilot's error code), `requestId` (Copilot's `x-request-id`), `detail` (a
|
|
39
|
+
Every `GitHubCopilotError` carries `code`, `retryable`, `hint`, `modelId`, `api`, `status`, `providerCode` (Copilot's error code), `requestId` (Copilot's `x-request-id`), `detail` (a response excerpt truncated to 300 characters, which may quote parts of the request), and `cause`.
|
|
30
40
|
|
|
31
41
|
| Class | Code | When | Extra fields | Retried on same model | Falls back to next model | What to do |
|
|
32
42
|
| --- | --- | --- | --- | --- | --- | --- |
|
|
@@ -46,10 +56,16 @@ All 11 classes extend `GitHubCopilotError`. The same retry and fallback rules ap
|
|
|
46
56
|
|
|
47
57
|
### GitHub Copilot error helpers
|
|
48
58
|
|
|
49
|
-
SDK callers can
|
|
50
|
-
|
|
51
|
-
The error is stored in the message `diagnostics`, so it survives workers, RPC, and saved sessions. Use `serializeGitHubCopilotError()` and `deserializeGitHubCopilotError()` for explicit conversion. `deserializeGitHubCopilotError()` returns `undefined` if the class name does not match the code or if the `reason` does not belong to that class.
|
|
59
|
+
SDK callers can inspect, classify, and serialize Copilot errors using functions exported from `@bastani/atomic` and `@bastani/atomic-ai`:
|
|
52
60
|
|
|
53
|
-
|
|
61
|
+
- **Extract or classify errors:**
|
|
62
|
+
- `getGitHubCopilotError(message)`: reads the typed error from a failed assistant message's `diagnostics`.
|
|
63
|
+
- `findGitHubCopilotError(error)`: searches an error, its `cause` chain, or a wrapped message and returns the typed `GitHubCopilotError` instance.
|
|
64
|
+
- `classifyGitHubCopilotFailure(error, failure)`: maps a raw error and request context into a typed `GitHubCopilotError`.
|
|
65
|
+
- **Serialize across processes:** Errors are stored in assistant message `diagnostics` under `GITHUB_COPILOT_ERROR_DIAGNOSTIC` (`"github_copilot_error"`), so they survive subagent workers, RPC, and saved sessions. Inferred Chat Completions stop reasons are recorded under `GITHUB_COPILOT_INFERRED_STOP_REASON_DIAGNOSTIC` (`"github_copilot_inferred_stop_reason"`). Use `serializeGitHubCopilotError()` and `deserializeGitHubCopilotError()` for explicit conversion; `deserializeGitHubCopilotError()` returns `undefined` if the class name does not match the code or if `reason` does not belong to that class.
|
|
66
|
+
- **Type guards:** Return a plain `boolean` checking an error, its `cause` chain, or a failed message (including errors relayed from another process):
|
|
67
|
+
- `isGitHubCopilotError`, `isRetryableGitHubCopilotError`
|
|
68
|
+
- `isGitHubCopilotModelUnavailableError`, `isGitHubCopilotRateLimitError`, `isGitHubCopilotQuotaExhaustedError`, `isGitHubCopilotContentFilterError`, `isGitHubCopilotPromptTooLargeError`, `isGitHubCopilotInvalidRequestError`, `isGitHubCopilotAuthenticationError`, `isGitHubCopilotServiceUnavailableError`, `isGitHubCopilotStreamEndedEarlyError`, `isGitHubCopilotEmptyResponseError`, `isGitHubCopilotUnrecognizedResponseError`
|
|
69
|
+
- **Model inspection:** Call `describeGitHubCopilotModel(model)` to inspect a Copilot model's capabilities.
|
|
54
70
|
|
|
55
|
-
The guards and `findGitHubCopilotError()`
|
|
71
|
+
The guards and `findGitHubCopilotError()` reject malformed serialized payloads. Only minimal serialized error objects containing `name`, `code`, and an optional string `message` are reconstructed without structured fields; a malformed full payload is never rebuilt with dropped context.
|
package/docs/providers.md
CHANGED
|
@@ -1,37 +1,19 @@
|
|
|
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
|
-
|
|
10
|
-
## On this page and its reference
|
|
11
|
-
|
|
12
|
-
This page covers provider setup: subscriptions, API keys, provider-specific configuration, and local llama.cpp. Provider stop reasons, credential resolution order, and GitHub Copilot SDK error classes live in the [Provider reference](/providers/reference).
|
|
13
|
-
|
|
14
|
-
Builtin subagents default to `model: "auto"`, which runs your configured default model (the one you last chose with `/model`) at its default thinking level, or the current session's model when no default model is configured. Builtins ship no fixed role models or fallback chains. For explicit child models and fallback lists, see [Subagent reference](/subagents/reference#automatic-model-selection).
|
|
15
|
-
|
|
16
|
-
## Contents
|
|
17
|
-
|
|
18
|
-
- [Subscriptions](#subscriptions)
|
|
19
|
-
- [Verify readiness before a session](#verify-readiness-before-a-session)
|
|
20
|
-
- [API keys](#api-keys)
|
|
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)
|
|
9
|
+
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).
|
|
29
10
|
|
|
30
11
|
## Subscriptions
|
|
31
12
|
|
|
32
13
|
Run `/login` in interactive mode, then select a provider:
|
|
33
14
|
|
|
34
15
|
- OpenRouter
|
|
16
|
+
- OpenAI (Sign in with ChatGPT)
|
|
35
17
|
- ChatGPT Plus/Pro (Codex)
|
|
36
18
|
- Claude Pro/Max
|
|
37
19
|
- GitHub Copilot
|
|
@@ -45,11 +27,11 @@ Run `/login <provider>`, such as `/login openrouter` or `/login kimi-coding`, to
|
|
|
45
27
|
|
|
46
28
|
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
29
|
|
|
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.
|
|
30
|
+
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
31
|
|
|
50
32
|
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
33
|
|
|
52
|
-
Built-in and extension-provided OAuth work in
|
|
34
|
+
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
35
|
|
|
54
36
|
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
37
|
|
|
@@ -61,9 +43,9 @@ Type `/logout ` to autocomplete providers with stored credentials, or run `/logo
|
|
|
61
43
|
|
|
62
44
|
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
45
|
|
|
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
|
|
46
|
+
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
47
|
|
|
66
|
-
When Atomic exits normally (quitting interactively, `SIGTERM`, ending an `atomic -p` run, or finishing an `atomic auth` command), it waits up to
|
|
48
|
+
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
49
|
|
|
68
50
|
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
51
|
|
|
@@ -73,11 +55,11 @@ If a chat request fails with HTTP 401 or a revoked-token error before any respon
|
|
|
73
55
|
|
|
74
56
|
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
57
|
|
|
76
|
-
The command prints `ready`, `not_ready`, or `invalid
|
|
58
|
+
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
59
|
|
|
78
60
|
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
61
|
|
|
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.
|
|
62
|
+
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
63
|
|
|
82
64
|
### OpenAI API or ChatGPT sign-in
|
|
83
65
|
|
|
@@ -85,7 +67,7 @@ Run `/login openai`, then choose **API key** or **Sign in with ChatGPT**. ChatGP
|
|
|
85
67
|
|
|
86
68
|
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
69
|
|
|
88
|
-
|
|
70
|
+
For SDK-level `models.login()` options such as `agentName`, see [Provider reference](/providers/reference#sdk-login-options).
|
|
89
71
|
|
|
90
72
|
### Subscription and API key at the same time
|
|
91
73
|
|
|
@@ -103,8 +85,8 @@ GPT Image 2.6 models (`gpt-image-2.6-flare` and `gpt-image-2.6-sunburst`) suppor
|
|
|
103
85
|
|
|
104
86
|
### OpenAI Codex
|
|
105
87
|
|
|
106
|
-
- Requires a ChatGPT Plus or Pro subscription
|
|
107
|
-
- Officially endorsed by OpenAI: [Codex for OSS](https://developers.openai.com/community/codex-for-oss)
|
|
88
|
+
- Requires a ChatGPT Plus or Pro subscription.
|
|
89
|
+
- Officially endorsed by OpenAI: [Codex for OSS](https://developers.openai.com/community/codex-for-oss).
|
|
108
90
|
|
|
109
91
|
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
92
|
|
|
@@ -147,13 +129,13 @@ Three provider paths derive `-fast` variants:
|
|
|
147
129
|
- **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
130
|
- **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
131
|
|
|
150
|
-
Renamed providers, proxies, Azure, Bedrock, Vertex, OpenRouter, Vercel AI Gateway, generic OpenAI- or Anthropic-compatible providers, and
|
|
132
|
+
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
133
|
|
|
152
134
|
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
135
|
|
|
154
136
|
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
137
|
|
|
156
|
-
Fast behavior comes from
|
|
138
|
+
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
139
|
|
|
158
140
|
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
141
|
|
|
@@ -167,7 +149,15 @@ Anthropic subscription auth works with Claude Pro/Max accounts. Third-party usag
|
|
|
167
149
|
|
|
168
150
|
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
151
|
|
|
170
|
-
|
|
152
|
+
When configuring Anthropic with environment variables instead of `/login`, Atomic checks credentials in this order:
|
|
153
|
+
|
|
154
|
+
1. Stored `auth.json` credential (subscription or saved API key)
|
|
155
|
+
2. `ANTHROPIC_AUTH_TOKEN` (gateway-issued bearer token sent as `Authorization: Bearer ...` without synthesizing `x-api-key`)
|
|
156
|
+
3. `ANTHROPIC_OAUTH_TOKEN`
|
|
157
|
+
4. `ANTHROPIC_API_KEY`
|
|
158
|
+
5. Anthropic Workload Identity Federation
|
|
159
|
+
|
|
160
|
+
Empty environment variables do not count as configured. Avoid setting both `ANTHROPIC_AUTH_TOKEN` and `ANTHROPIC_API_KEY` accidentally.
|
|
171
161
|
|
|
172
162
|
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
163
|
|
|
@@ -179,13 +169,13 @@ When no Anthropic API key, bearer token, or subscription login is configured, At
|
|
|
179
169
|
|
|
180
170
|
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
171
|
|
|
182
|
-
API keys, `ANTHROPIC_AUTH_TOKEN`, and custom authorization headers take precedence over federation. Federation applies only to the `anthropic` provider.
|
|
172
|
+
API keys, `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_OAUTH_TOKEN`, and custom authorization headers take precedence over federation. Federation applies only to the `anthropic` provider.
|
|
183
173
|
|
|
184
174
|
### GitHub Copilot
|
|
185
175
|
|
|
186
176
|
- Press Enter for `github.com`, or enter your GitHub Enterprise Server domain.
|
|
187
177
|
- 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
|
|
178
|
+
- 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
179
|
- If Copilot returns "model not supported", enable the model in VS Code under Copilot Chat's model selector.
|
|
190
180
|
|
|
191
181
|
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 +185,7 @@ Atomic reads your account's `/models` list on every network catalog refresh (at
|
|
|
195
185
|
Each discovered model:
|
|
196
186
|
|
|
197
187
|
- Keeps its advertised ID unchanged upstream and shows the account's display name in `/model`.
|
|
198
|
-
-
|
|
188
|
+
- Carries limits, vision settings, and reasoning efforts from the account list (adjustable via `modelOverrides`).
|
|
199
189
|
- Omits 24-hour prompt-cache retention by default; set `compat.supportsLongCacheRetention` in `modelOverrides` if the model accepts it.
|
|
200
190
|
- Never overwrites a built-in entry with the same ID.
|
|
201
191
|
- Is skipped if disabled by policy, hidden from the picker, or lacking tool-call support.
|
|
@@ -250,7 +240,7 @@ Atomic classifies every failed Copilot request into a typed error class so retri
|
|
|
250
240
|
- **Compaction (no fallback):** prompt exceeds the model's prompt-token limit (or HTTP 413).
|
|
251
241
|
- **Content filter:** retries or falls back according to `retry.fallbackOnContentFilter`.
|
|
252
242
|
|
|
253
|
-
For the full 11-class error table, error codes, fields, and SDK helper functions
|
|
243
|
+
For the full 11-class error table, error codes, fields, and SDK helper functions, see [GitHub Copilot errors](/providers/reference#github-copilot-errors).
|
|
254
244
|
|
|
255
245
|
#### Streams cut after a long attempt
|
|
256
246
|
|
|
@@ -278,7 +268,7 @@ Copilot occasionally ends a Chat Completions stream cleanly without a finish rea
|
|
|
278
268
|
- No text and no tool calls fail as `empty-response` and retry.
|
|
279
269
|
- Incomplete tool calls or streams ending without `[DONE]` fail as `stream-ended-early`.
|
|
280
270
|
|
|
281
|
-
When Atomic infers the stop reason, `rawStopReason` stays unset and
|
|
271
|
+
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
272
|
|
|
283
273
|
#### Endpoint routing for personal access tokens
|
|
284
274
|
|
|
@@ -289,9 +279,9 @@ OAuth logins receive their Copilot host from GitHub's token exchange. Raw person
|
|
|
289
279
|
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
280
|
4. `https://api.githubcopilot.com` (public routing hub)
|
|
291
281
|
|
|
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
|
|
282
|
+
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
283
|
|
|
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`).
|
|
284
|
+
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
285
|
|
|
296
286
|
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
287
|
|
|
@@ -299,7 +289,7 @@ Business and enterprise tokens sent to the individual host return `421 Misdirect
|
|
|
299
289
|
|
|
300
290
|
Run `/login xai`, then select **Use a subscription**. `XAI_API_KEY` remains available through **Use an API key**.
|
|
301
291
|
|
|
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.
|
|
292
|
+
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
293
|
|
|
304
294
|
`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
295
|
|
|
@@ -342,22 +332,25 @@ export ANTHROPIC_API_KEY=sk-ant-...
|
|
|
342
332
|
atomic
|
|
343
333
|
```
|
|
344
334
|
|
|
335
|
+
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).
|
|
336
|
+
|
|
345
337
|
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
338
|
|
|
347
339
|
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
340
|
|
|
349
341
|
| Provider | Environment variable | `auth.json` key |
|
|
350
342
|
| --- | --- | --- |
|
|
351
|
-
| Anthropic | `
|
|
343
|
+
| Anthropic | `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_OAUTH_TOKEN`, or `ANTHROPIC_API_KEY` | `anthropic` |
|
|
352
344
|
| Anthropic (API key only) | `ANTHROPIC_API_KEY` | `anthropic-api` |
|
|
353
345
|
| Ant Ling | `ANT_LING_API_KEY` | `ant-ling` |
|
|
354
346
|
| Azure | `AZURE_OPENAI_API_KEY` | `azure` |
|
|
355
347
|
| OpenAI | `OPENAI_API_KEY` | `openai` |
|
|
356
348
|
| OpenAI (API key only) | `OPENAI_API_KEY` | `openai-api` |
|
|
349
|
+
| GitHub Copilot | `COPILOT_GITHUB_TOKEN` | `github-copilot` |
|
|
357
350
|
| DeepSeek | `DEEPSEEK_API_KEY` | `deepseek` |
|
|
358
351
|
| NVIDIA NIM | `NVIDIA_API_KEY` | `nvidia` |
|
|
359
352
|
| Google Gemini | `GEMINI_API_KEY` | `google` |
|
|
360
|
-
| Google Vertex AI | `GOOGLE_CLOUD_API_KEY` | `google-vertex` |
|
|
353
|
+
| Google Vertex AI | `GOOGLE_CLOUD_API_KEY` (or ADC / service account) | `google-vertex` |
|
|
361
354
|
| Mistral | `MISTRAL_API_KEY` | `mistral` |
|
|
362
355
|
| Groq | `GROQ_API_KEY` | `groq` |
|
|
363
356
|
| Cerebras | `CEREBRAS_API_KEY` | `cerebras` |
|
|
@@ -390,6 +383,7 @@ Logout returns immediately without waiting for catalog refresh. Earlier backgrou
|
|
|
390
383
|
| Xiaomi MiMo Token Plan (China) | `XIAOMI_TOKEN_PLAN_CN_API_KEY` | `xiaomi-token-plan-cn` |
|
|
391
384
|
| Xiaomi MiMo Token Plan (Amsterdam) | `XIAOMI_TOKEN_PLAN_AMS_API_KEY` | `xiaomi-token-plan-ams` |
|
|
392
385
|
| Xiaomi MiMo Token Plan (Singapore) | `XIAOMI_TOKEN_PLAN_SGP_API_KEY` | `xiaomi-token-plan-sgp` |
|
|
386
|
+
| llama.cpp | `LLAMA_BASE_URL` (+ optional `LLAMA_API_KEY`) | `llama.cpp` |
|
|
393
387
|
|
|
394
388
|
Provider notes:
|
|
395
389
|
|
|
@@ -402,7 +396,7 @@ Use `--list-models` to check the latest catalog entries for any provider.
|
|
|
402
396
|
|
|
403
397
|
#### Auth file
|
|
404
398
|
|
|
405
|
-
Store credentials in `~/.atomic/agent/auth.json
|
|
399
|
+
Store credentials in `~/.atomic/agent/auth.json` (Atomic also reads legacy `~/.pi/agent/auth.json` as a fallback):
|
|
406
400
|
|
|
407
401
|
```json
|
|
408
402
|
{
|
|
@@ -427,7 +421,7 @@ Store credentials in `~/.atomic/agent/auth.json`:
|
|
|
427
421
|
}
|
|
428
422
|
```
|
|
429
423
|
|
|
430
|
-
Atomic creates `auth.json` with `0600` permissions (owner read/write only). Stored credentials take precedence over environment variables.
|
|
424
|
+
Atomic creates `auth.json` with `0600` permissions (owner read/write only). Stored credentials take precedence over `models.json` keys and environment variables.
|
|
431
425
|
|
|
432
426
|
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
427
|
|
|
@@ -449,17 +443,18 @@ API-key entries may also carry a provider-scoped `env` map. Those values overrid
|
|
|
449
443
|
|
|
450
444
|
The `key` field accepts shell commands, environment interpolation, escapes, and literal values:
|
|
451
445
|
|
|
452
|
-
- **Shell command:** `"!command"` executes the command and uses stdout (
|
|
446
|
+
- **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
447
|
```json
|
|
454
448
|
{ "type": "api_key", "key": "!security find-generic-password -ws 'anthropic'" }
|
|
455
449
|
{ "type": "api_key", "key": "!op read 'op://vault/item/credential'" }
|
|
456
450
|
```
|
|
457
|
-
- **
|
|
451
|
+
- **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.
|
|
452
|
+
- **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
453
|
```json
|
|
459
454
|
{ "type": "api_key", "key": "$MY_ANTHROPIC_KEY" }
|
|
460
455
|
{ "type": "api_key", "key": "${KEY_PREFIX}_${KEY_SUFFIX}" }
|
|
461
456
|
```
|
|
462
|
-
- **Escapes:** `"$$"` produces a literal `"$"`; `"$!"` produces a literal `"!"` without running a command.
|
|
457
|
+
- **Escapes (non-command values only):** `"$$"` produces a literal `"$"`; `"$!"` produces a literal `"!"` without running a command.
|
|
463
458
|
```json
|
|
464
459
|
{ "type": "api_key", "key": "$$literal-dollar-prefix" }
|
|
465
460
|
{ "type": "api_key", "key": "$!literal-bang-prefix" }
|
|
@@ -470,9 +465,9 @@ The `key` field accepts shell commands, environment interpolation, escapes, and
|
|
|
470
465
|
{ "type": "api_key", "key": "public" }
|
|
471
466
|
```
|
|
472
467
|
|
|
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 [
|
|
468
|
+
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
469
|
|
|
475
|
-
##
|
|
470
|
+
## Cloud and gateway providers
|
|
476
471
|
|
|
477
472
|
The providers below need extra settings or support platform-supplied credentials.
|
|
478
473
|
|
|
@@ -486,8 +481,6 @@ atomic --provider nvidia --model nvidia/nemotron-3.5-super-vl-120b-a12b
|
|
|
486
481
|
|
|
487
482
|
Use `--list-models` or `/model` to inspect the current catalog. A catalog listing does not verify account access or serving availability.
|
|
488
483
|
|
|
489
|
-
<a id="azure-openai" />
|
|
490
|
-
|
|
491
484
|
### Azure
|
|
492
485
|
|
|
493
486
|
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`:
|
|
@@ -707,19 +700,24 @@ Workers AI also includes classifiers using the same credentials: Cloudflare Clef
|
|
|
707
700
|
|
|
708
701
|
### Google Vertex AI
|
|
709
702
|
|
|
710
|
-
|
|
703
|
+
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
704
|
|
|
712
705
|
```bash
|
|
706
|
+
# Option 1: Application Default Credentials
|
|
713
707
|
gcloud auth application-default login
|
|
714
|
-
export GOOGLE_CLOUD_PROJECT=your-project
|
|
708
|
+
export GOOGLE_CLOUD_PROJECT=your-project # GCLOUD_PROJECT also works as a fallback
|
|
715
709
|
export GOOGLE_CLOUD_LOCATION=us-central1
|
|
716
|
-
```
|
|
717
710
|
|
|
718
|
-
|
|
711
|
+
# Option 2: Service account key file
|
|
712
|
+
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
|
|
713
|
+
|
|
714
|
+
# Option 3: Google Cloud API key
|
|
715
|
+
export GOOGLE_CLOUD_API_KEY=your-api-key
|
|
716
|
+
```
|
|
719
717
|
|
|
720
718
|
## llama.cpp
|
|
721
719
|
|
|
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`.
|
|
720
|
+
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
721
|
|
|
724
722
|
## TypeSafe Jev
|
|
725
723
|
|
|
@@ -749,7 +747,7 @@ HTTP 401 indicates an invalid key (`TYPESAFE_API_KEY` or `/login typesafe`), HTT
|
|
|
749
747
|
|
|
750
748
|
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
749
|
|
|
752
|
-
Select `morph/morph-compactor` in `/settings` under **Compaction model
|
|
750
|
+
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
751
|
|
|
754
752
|
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
753
|
|
|
@@ -757,14 +755,6 @@ Morph is a compactor, not a chat model: it does not appear in `/model` and is ne
|
|
|
757
755
|
|
|
758
756
|
## Custom providers
|
|
759
757
|
|
|
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" />
|
|
758
|
+
**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
759
|
|
|
769
|
-
|
|
770
|
-
- [Resolution order](/providers/reference#resolution-order)
|
|
760
|
+
**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).
|