@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
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
2
|
+
title: models.json field reference
|
|
3
3
|
sidebarTitle: "models.json fields"
|
|
4
|
-
description:
|
|
4
|
+
description: Complete field reference for providers, models, overrides, and API compatibility in models.json.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Models Configuration
|
|
8
|
-
|
|
9
7
|
{/* This file is generated from TypeScript source. Do not edit it manually; run npm run generate:references --workspace=@bastani/atomic. */}
|
|
10
8
|
|
|
11
|
-
This reference lists
|
|
9
|
+
This reference lists every field accepted in `models.json`. See [Configure custom models](/models) for examples and file locations (normally `~/.atomic/agent/models.json`).
|
|
12
10
|
|
|
13
11
|
Add `"$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/models.schema.json"` to `models.json` for editor validation and completion.
|
|
14
12
|
|
|
@@ -36,8 +34,10 @@ Each `models` entry adds a model to the provider. An entry whose `id` matches an
|
|
|
36
34
|
|---|---|---|---|
|
|
37
35
|
| `id` | string | | Required. Model ID sent to the API. |
|
|
38
36
|
| `name` | string | | Display name, also matched by --model patterns. |
|
|
37
|
+
| `type` | `"chat" \| "compactor"` | `"chat"` | Model kind: "chat" (default) or "compactor" for a dedicated remote compaction endpoint. |
|
|
39
38
|
| `api` | string | | Overrides the provider api. |
|
|
40
39
|
| `baseUrl` | string | | Overrides the provider baseUrl. |
|
|
40
|
+
| `endpointPath` | string | | Endpoint path appended to baseUrl for compactor requests (default "/compact"). Set to "" to POST directly to baseUrl. Applies only to compactor models. |
|
|
41
41
|
| `reasoning` | boolean | `false` | Whether the model supports thinking. |
|
|
42
42
|
| `thinkingLevelMap` | object | | Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported. |
|
|
43
43
|
| `input` | `("text" \| "image" \| "pdf")[]` | `["text"]` | |
|
|
@@ -56,8 +56,10 @@ Each `models` entry adds a model to the provider. An entry whose `id` matches an
|
|
|
56
56
|
| `promptCache` | object | | Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Atomic warms only tiers with a known lifetime. |
|
|
57
57
|
| `contextWindow` | number | `128000` | Context window in tokens. |
|
|
58
58
|
| `maxTokens` | number | `16384` | Maximum output tokens. |
|
|
59
|
+
| `timeoutMs` | number | | Wall-clock timeout in milliseconds for one compactor request (default 120000). Applies only to compactor models. |
|
|
59
60
|
| `samplingParams` | object | | Fields merged into every request body. Applies only to OpenAI-compatible APIs. |
|
|
60
61
|
| `samplingParamsByThinkingLevel` | object | | samplingParams per thinking level, merged over samplingParams. |
|
|
62
|
+
| `compactionParams` | object | | API-specific request-body parameters merged into { messages, query, model } for compactor requests. Omit to let the remote API use its own defaults. Applies only to compactor models. |
|
|
61
63
|
| `headers` | object | | Request headers. Values resolve like apiKey. |
|
|
62
64
|
| `compat` | [object](#compatibility) | | Provider and model compatibility overrides. |
|
|
63
65
|
|
|
@@ -68,6 +70,8 @@ Each `modelOverrides` key is the ID of a built-in or extension model. Unknown ID
|
|
|
68
70
|
| Field | Type | Default | Description |
|
|
69
71
|
|---|---|---|---|
|
|
70
72
|
| `name` | string | | Display name, also matched by --model patterns. |
|
|
73
|
+
| `baseUrl` | string | | Overrides the model baseUrl. |
|
|
74
|
+
| `endpointPath` | string | | Endpoint path appended to baseUrl for compactor requests (default "/compact"). Set to "" to POST directly to baseUrl. Applies only to compactor models. |
|
|
71
75
|
| `reasoning` | boolean | | Whether the model supports thinking. |
|
|
72
76
|
| `thinkingLevelMap` | object | | Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported. |
|
|
73
77
|
| `input` | `("text" \| "image" \| "pdf")[]` | | |
|
|
@@ -86,14 +90,16 @@ Each `modelOverrides` key is the ID of a built-in or extension model. Unknown ID
|
|
|
86
90
|
| `promptCache` | object | | Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Atomic warms only tiers with a known lifetime. |
|
|
87
91
|
| `contextWindow` | number | | Context window in tokens. |
|
|
88
92
|
| `maxTokens` | number | | Maximum output tokens. |
|
|
93
|
+
| `timeoutMs` | number | | Wall-clock timeout in milliseconds for one compactor request (default 120000). Applies only to compactor models. |
|
|
89
94
|
| `samplingParams` | object | | Fields merged into every request body. Applies only to OpenAI-compatible APIs. |
|
|
90
95
|
| `samplingParamsByThinkingLevel` | object | | samplingParams per thinking level, merged over samplingParams. |
|
|
96
|
+
| `compactionParams` | object | | API-specific request-body parameters merged into { messages, query, model } for compactor requests. Omit to let the remote API use its own defaults. Applies only to compactor models. |
|
|
91
97
|
| `headers` | object | | Request headers. Values resolve like apiKey. |
|
|
92
98
|
| `compat` | [object](#compatibility) | | Provider and model compatibility overrides. |
|
|
93
99
|
|
|
94
100
|
## Input limits
|
|
95
101
|
|
|
96
|
-
See [Image
|
|
102
|
+
See [Image input limits](/models/reference#image-input-limits).
|
|
97
103
|
|
|
98
104
|
| Field | Type | Default | Description |
|
|
99
105
|
|---|---|---|---|
|
package/docs/models.md
CHANGED
|
@@ -1,60 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
|
|
2
|
+
title: "Configure custom models"
|
|
3
|
+
sidebarTitle: "Custom models"
|
|
4
|
+
description: "Add local or proxied models in models.json, override built-in providers, and use built-in classifier models."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
Add custom providers and models (such as Ollama, vLLM, LM Studio, and API proxies) through `~/.atomic/agent/models.json`. Set `ATOMIC_CODING_AGENT_DIR` (or legacy `PI_CODING_AGENT_DIR`) to use another directory.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
- **Single file, no merging.** Atomic reads only `models.json` from the active agent directory. It does not read project-scoped `.atomic/models.json`, fall back to `~/.pi/agent/models.json`, or merge `.pi` and `.atomic` model files (unlike files that fall back to `~/.pi/agent/`, such as `settings.json` and `auth.json`).
|
|
10
|
+
- **Syntax and schema.** `models.json` allows `//` line comments, trailing commas, and leading UTF-8 BOMs (`/* */` block comments are not supported). Add `"$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/models.schema.json"` for editor completion and validation.
|
|
11
|
+
- **Reloading and errors.** Open `/model`, open `/scoped-models`, or run `/reload` after saving `models.json` to reload changes without restarting. If `models.json` has a JSON or schema error, Atomic ignores the file, keeps built-in providers working, and shows the error banner in `/model`.
|
|
9
12
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
`/model` and `/scoped-models` show the cached authenticated catalog immediately while refreshing network-backed catalogs in the background for up to 15 seconds. A direct `/model <model_name>` checks the cache first and waits for refresh only on a miss. Closing either selector cancels the refresh.
|
|
13
|
-
|
|
14
|
-
If a refresh times out or fails, the selector reports that it is using cached models; you do not need to reset `auth.json` or `~/.atomic`. Login and logout changes stay in effect even if an earlier refresh finishes afterward.
|
|
15
|
-
|
|
16
|
-
A `defaultProvider`/`defaultModel` pair in `settings.json` resolves after built-in, `models.json`, and extension providers register. If the provider is still unsupported:
|
|
17
|
-
|
|
18
|
-
- **Interactive mode** warns about the saved configuration and leaves model selection open instead of silently switching providers.
|
|
19
|
-
- **Print and JSON modes** write the error to stderr and exit nonzero before prompting, keeping JSON stdout valid JSONL.
|
|
20
|
-
- **RPC mode** rejects `prompt` with the same error until `set_model` selects an available model or model cycling returns a different available model.
|
|
21
|
-
|
|
22
|
-
If the provider is supported but the model is unknown or lacks credentials, automatic selection picks an available authenticated model. See [Settings](/settings#model-&-thinking).
|
|
23
|
-
|
|
24
|
-
Add `"$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/models.schema.json"` to `models.json` for editor completion and validation.
|
|
25
|
-
|
|
26
|
-
## Where to go next
|
|
27
|
-
|
|
28
|
-
This page gives minimal and full `models.json` examples. [Models Configuration](/models-configuration) lists every provider, model, override, and compatibility field generated from the schema. For API compatibility behavior, cost tiers, and derived fast variants, see the [Model configuration reference](/models/reference).
|
|
29
|
-
|
|
30
|
-
## Use classifier models
|
|
31
|
-
|
|
32
|
-
Classifier models answer typed questions about JSON state instead of chatting and do not appear in `/model`. In [codemode](/tools#codemode), list them with `models.getAvailableOfType("classifier")` and call `models.classify(model, { state, questions })`. See [Codemode](/codemode#classify) for question and answer shapes.
|
|
33
|
-
|
|
34
|
-
Built-in classifiers:
|
|
35
|
-
|
|
36
|
-
- **GitHub Copilot:** `github-copilot/microsoft-decision-1` (text only, 32,768-token context) through Copilot's System One endpoint, authenticated with Copilot OAuth or `COPILOT_GITHUB_TOKEN`.
|
|
37
|
-
- **OpenAI Decisions:** `openai-decisions/gpt-6-luna` via OpenAI's [Decisions API](https://developers.openai.com/api/docs/guides/decisions). It has no `/login` entry and reuses the first OpenAI API key found (`openai-api`, `openai` API key, then `OPENAI_API_KEY`), skipping ChatGPT sign-in. It accepts up to 128 images and up to 922K tokens; requests above roughly 600K tokens may hit a gateway 504 timeout that is not retried. (`openai/gpt-6-luna` always selects the chat model.)
|
|
38
|
-
- **TypeSafe Jev and Cloudflare Clef:** Direct TypeSafe (`typesafe/jev-latest`, `typesafe/jev-1.14.0`, up to 262K tokens with PNG/JPEG images; see [TypeSafe Jev](/providers#typesafe-jev)); Cloudflare Workers AI (`typesafe/jev`, `typesafe/jev-1.14.0` with PNG/JPEG images; Clef, Clef Flash, and Clef Omni with up to four PNG/JPEG/WebP images); OpenRouter (`~typesafe/jev-latest`, `typesafe/jev-1.13`, `typesafe/jev-1.14`, and Clef models with image input where listed); Vercel AI Gateway and OpenCode Zen (text-only Jev).
|
|
39
|
-
- **Local llama.cpp:** Native decision models and a next-token-probability fallback for chat models; see [Local classification](/llama-cpp#classification).
|
|
40
|
-
|
|
41
|
-
System One services expect different image request formats, controlled by `compat.imageInput`. Built-in models configure it automatically, so overriding `baseUrl` preserves it. For a custom proxy that reaches another classifier service, set `imageInput` and `sendImageOptInHeader` in provider-level `compat`; see [System One compatibility](/models-configuration#typesafe-system-one). A proxy in front of OpenRouter needs `"imageInput": "state-image-urls"` and `"sendImageOptInHeader": false` so OpenRouter does not silently drop images.
|
|
42
|
-
|
|
43
|
-
## Fallbacks and credentials
|
|
44
|
-
|
|
45
|
-
A model chain starts with a pinned model followed by `fallbackModels` in a session or subagent; `model: "auto"` starts with your configured default model:
|
|
46
|
-
|
|
47
|
-
- Candidates whose providers lack credentials are skipped before any request (`fallback.skipped` on session `model_change` entries; `modelAttempts` on subagents). `auto` never selects an unauthenticated default model.
|
|
48
|
-
- A provider that rejects credentials (HTTP 401 or an invalid, expired, revoked, or restricted key/token) is skipped for the rest of that walk. A model-scoped HTTP 403 skips only that model.
|
|
49
|
-
- A chain with no usable candidate fails immediately and names each skipped model and provider. A single pinned model with no fallbacks is never replaced.
|
|
50
|
-
|
|
51
|
-
## Contents
|
|
52
|
-
|
|
53
|
-
- [Minimal example](#minimal-example)
|
|
54
|
-
- [Full example](#full-example)
|
|
55
|
-
- [Google AI Studio example](#google-ai-studio-example)
|
|
56
|
-
- [Model configuration fields](/models-configuration)
|
|
57
|
-
- [Model configuration reference](/models/reference)
|
|
13
|
+
This page gives minimal and full `models.json` examples. For every schema field, see [`models.json` schema reference](/models-configuration). For compatibility rules, value resolution, overrides, pricing tiers, and derived fast variants, see [Model configuration reference](/models/reference).
|
|
58
14
|
|
|
59
15
|
## Minimal example
|
|
60
16
|
|
|
@@ -62,6 +18,7 @@ For local servers (Ollama, LM Studio, vLLM), only `id` is required per model:
|
|
|
62
18
|
|
|
63
19
|
```json
|
|
64
20
|
{
|
|
21
|
+
"$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/models.schema.json",
|
|
65
22
|
"providers": {
|
|
66
23
|
"ollama": {
|
|
67
24
|
"baseUrl": "http://localhost:11434/v1",
|
|
@@ -76,9 +33,12 @@ For local servers (Ollama, LM Studio, vLLM), only `id` is required per model:
|
|
|
76
33
|
}
|
|
77
34
|
```
|
|
78
35
|
|
|
79
|
-
|
|
36
|
+
- **`apiKey` is optional in `models.schema.json`.** You can omit `apiKey` on a custom provider and save a key later via `/login <provider>` in `auth.json`. However, Atomic lists a provider's models as available only when some credential is configured, which is why local servers like Ollama use a placeholder such as `"apiKey": "ollama"`.
|
|
37
|
+
- **Non-empty provider entries.** Every provider object in `models.json` must include at least one of `baseUrl`, `headers`, `compat`, `modelOverrides`, `models`, `apiKey`, or `authHeader`; an empty `{}` entry fails validation.
|
|
38
|
+
|
|
39
|
+
### Proxy a built-in provider
|
|
80
40
|
|
|
81
|
-
To route a built-in provider through a proxy while keeping its models and authentication, set only `baseUrl`:
|
|
41
|
+
To route a built-in provider through a proxy while keeping its built-in models and authentication, set only `baseUrl`:
|
|
82
42
|
|
|
83
43
|
```json
|
|
84
44
|
{
|
|
@@ -88,6 +48,8 @@ To route a built-in provider through a proxy while keeping its models and authen
|
|
|
88
48
|
}
|
|
89
49
|
```
|
|
90
50
|
|
|
51
|
+
### OpenAI-compatible server compatibility
|
|
52
|
+
|
|
91
53
|
Some OpenAI-compatible servers (such as Ollama, vLLM, or SGLang) do not accept the `developer` role or `reasoning_effort`. Set `compat.supportsDeveloperRole` or `compat.supportsReasoningEffort` to `false` at the provider level (applies to all models) or model level (overrides provider defaults):
|
|
92
54
|
|
|
93
55
|
```json
|
|
@@ -139,8 +101,6 @@ Override defaults when you need explicit limits, modalities, or pricing:
|
|
|
139
101
|
}
|
|
140
102
|
```
|
|
141
103
|
|
|
142
|
-
Open `/model` after saving `models.json` to reload changes without restarting. Invalid files report a schema error.
|
|
143
|
-
|
|
144
104
|
## Google AI Studio example
|
|
145
105
|
|
|
146
106
|
Use `google-generative-ai` with a `baseUrl` to add Google AI Studio models such as Gemma 4:
|
|
@@ -166,35 +126,80 @@ Use `google-generative-ai` with a `baseUrl` to add Google AI Studio models such
|
|
|
166
126
|
}
|
|
167
127
|
```
|
|
168
128
|
|
|
169
|
-
`baseUrl`
|
|
170
|
-
|
|
171
|
-
##
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
<a
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
129
|
+
Any custom provider that defines `models` requires a `baseUrl` (unless overriding a built-in provider that already has one) and an `api` at the provider or model level.
|
|
130
|
+
|
|
131
|
+
## Catalog refresh and startup defaults
|
|
132
|
+
|
|
133
|
+
`/model` and `/scoped-models` show the cached authenticated catalog immediately while refreshing network-backed catalogs in the background for up to 15 seconds. Closing either selector cancels the refresh.
|
|
134
|
+
|
|
135
|
+
- **Direct `/model <model_name>`:** When no model scope (`enabledModels` / `--models`) is active, `/model <model_name>` checks the cache first and waits for refresh only on a miss. When a model scope is active, `/model <model_name>` searches only the scoped models and does not trigger a refresh.
|
|
136
|
+
- **Failed or slow refreshes:** If a refresh times out or fails, the selector reports that it is using cached models; you do not need to reset `auth.json` or `~/.atomic`. Login and logout changes stay in effect even if an earlier refresh finishes afterward.
|
|
137
|
+
- **Unsupported `defaultProvider`/`defaultModel`:** Saved defaults in `settings.json` resolve after built-in, `models.json`, and extension providers load. If the saved provider is still unsupported:
|
|
138
|
+
- **Interactive mode** warns about the saved configuration and leaves model selection open instead of silently switching providers.
|
|
139
|
+
- **Print and JSON modes** write the error to stderr and exit nonzero before prompting, keeping JSON stdout valid JSONL.
|
|
140
|
+
- **RPC mode** rejects `prompt` with the same error until `set_model` selects an available model or model cycling returns a different available model.
|
|
141
|
+
|
|
142
|
+
If the provider is supported but the model is unknown or lacks credentials, automatic selection picks an available authenticated model. See [Models and thinking](/settings#models-and-thinking).
|
|
143
|
+
|
|
144
|
+
## Remote compaction models
|
|
145
|
+
|
|
146
|
+
Add a custom remote compaction endpoint by setting `"type": "compactor"` on a model entry, or override built-in `morph/morph-compactor` parameters under `modelOverrides`. Custom compactor models are excluded from `/model` and appear automatically in `/settings` under **Compaction model**:
|
|
147
|
+
|
|
148
|
+
```json
|
|
149
|
+
{
|
|
150
|
+
"providers": {
|
|
151
|
+
"my-compactor": {
|
|
152
|
+
"baseUrl": "https://compact.example.com/v1",
|
|
153
|
+
"apiKey": "$MY_COMPACTOR_API_KEY",
|
|
154
|
+
"headers": {
|
|
155
|
+
"X-Team": "platform"
|
|
156
|
+
},
|
|
157
|
+
"models": [
|
|
158
|
+
{
|
|
159
|
+
"id": "compact-v2",
|
|
160
|
+
"name": "Internal Compactor v2",
|
|
161
|
+
"type": "compactor",
|
|
162
|
+
"api": "custom-compact",
|
|
163
|
+
"endpointPath": "/compress",
|
|
164
|
+
"compactionParams": {
|
|
165
|
+
"target_ratio": 0.4,
|
|
166
|
+
"preserve_recent": 2
|
|
167
|
+
},
|
|
168
|
+
"timeoutMs": 180000,
|
|
169
|
+
"maxTokens": 48000
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Every custom compactor requires `"api"` at the provider or model level (just like custom chat models; built-in Morph defines its own `"api": "morph-compact"`). Atomic sends `{ messages, query, model }` plus any keys in `compactionParams` (omitting `compactionParams` lets the remote API use its own defaults). See [Customize Morph or add a remote compactor](/compaction#customize-morph-or-add-a-remote-compactor) and [Compaction reference](/compaction/reference#compactor-request-contract).
|
|
178
|
+
|
|
179
|
+
## Use classifier models
|
|
180
|
+
|
|
181
|
+
Classifier models answer typed questions about JSON state instead of chatting and do not appear in `/model`. In [codemode](/tools#codemode), list them with `models.getAvailableOfType("classifier")` and call `models.classify(model, { state, questions })`. See [Codemode](/codemode#classify) for question and answer shapes.
|
|
182
|
+
|
|
183
|
+
Built-in classifiers:
|
|
184
|
+
|
|
185
|
+
- **GitHub Copilot:** `github-copilot/microsoft-decision-1` (text only, 32,768-token context) through Copilot's System One endpoint, authenticated with Copilot OAuth or `COPILOT_GITHUB_TOKEN`.
|
|
186
|
+
- **OpenAI Decisions:** `openai-decisions/gpt-6-luna` via OpenAI's [Decisions API](https://developers.openai.com/api/docs/guides/decisions). It has no `/login` entry and reuses the first OpenAI API key found (`openai-api`, `openai` API key, then `OPENAI_API_KEY`), skipping ChatGPT sign-in. It accepts up to 128 images and up to 922K tokens; requests above roughly 600K tokens may hit a gateway 504 timeout that is not retried. (`openai/gpt-6-luna` always selects the chat model.)
|
|
187
|
+
- **TypeSafe Jev and Cloudflare Clef:** Direct TypeSafe (`typesafe/jev-latest`, `typesafe/jev-1.14.0`, up to 262K tokens with PNG/JPEG images; see [TypeSafe Jev](/providers#typesafe-jev)); Cloudflare Workers AI (`typesafe/jev`, `typesafe/jev-1.14.0` with PNG/JPEG images; Clef, Clef Flash, and Clef Omni with up to four PNG/JPEG/WebP images); OpenRouter (`~typesafe/jev-latest`, `typesafe/jev-1.13`, `typesafe/jev-1.14`, and Clef models with image input where listed); Vercel AI Gateway and OpenCode Zen (text-only Jev).
|
|
188
|
+
- **Local llama.cpp:** Native decision models and a next-token-probability fallback for chat models; see [Local classification](/llama-cpp#classification).
|
|
189
|
+
|
|
190
|
+
System One services expect different image request formats, controlled by `compat.imageInput`. Built-in models configure it automatically, so overriding `baseUrl` preserves it. For a custom proxy that reaches another classifier service, set `imageInput` and `sendImageOptInHeader` in provider-level `compat`; see [System One compatibility](/models-configuration#typesafe-system-one). A proxy in front of OpenRouter needs `"imageInput": "state-image-urls"` and `"sendImageOptInHeader": false` so OpenRouter does not silently drop images.
|
|
191
|
+
|
|
192
|
+
## Fallbacks and credentials
|
|
193
|
+
|
|
194
|
+
A model chain starts with a pinned model followed by `fallbackModels` in a session or subagent; `model: "auto"` starts with your configured default model:
|
|
195
|
+
|
|
196
|
+
- Candidates whose providers lack credentials are skipped before any request (recorded in session history and subagent run details). `auto` never selects an unauthenticated default model.
|
|
197
|
+
- A provider that rejects credentials (HTTP 401 or an invalid, expired, revoked, or restricted key/token) is skipped for the rest of that chain. A model-scoped HTTP 403 skips only that model.
|
|
198
|
+
- A chain with no usable candidate fails immediately and names each skipped model and provider. A single pinned model with no fallbacks is never replaced.
|
|
199
|
+
|
|
200
|
+
For full fallback rules, see [`fallbackModels`](/settings#fallbackmodels).
|
|
201
|
+
|
|
202
|
+
## Related reference
|
|
203
|
+
|
|
204
|
+
- [`models.json` schema reference](/models-configuration): every provider, model, override, and compatibility field.
|
|
205
|
+
- [Model configuration reference](/models/reference): supported APIs, value resolution, custom headers, OpenAI built-in models, image limits, sampling parameters, cost tiers, thinking level maps, overrides, fast variants, and API compatibility rules.
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
|
|
2
|
+
title: "Migrate an earlier workflow to a skill"
|
|
3
|
+
sidebarTitle: "Migrate workflows"
|
|
4
|
+
description: "Convert legacy Atomic workflow files into reusable skills without executing or modifying the originals."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# Convert an earlier workflow into a skill
|
|
7
|
-
|
|
8
7
|
Ask Atomic in chat or invoke `/skill:workflow-files`:
|
|
9
8
|
|
|
10
9
|
```text
|
|
@@ -15,40 +14,40 @@ Convert .atomic/workflows/triage.ts into a skill
|
|
|
15
14
|
/skill:workflow-files .atomic/workflows/triage.ts
|
|
16
15
|
```
|
|
17
16
|
|
|
18
|
-
To convert and run immediately, include your inputs, for example: "Run the triage workflow on these reports."
|
|
17
|
+
To convert and run immediately, include your inputs, for example: "Run the triage workflow on these reports." At startup, Atomic scans directly inside `workflows/` directories for legacy `.ts`, `.js`, `.mjs`, and `.cjs` files (excluding `.d.ts` files and subdirectories) and notes up to 20 discovered files (with `+N more` if additional files exist). Atomic never writes or converts anything automatically.
|
|
19
18
|
|
|
20
19
|
How conversion works:
|
|
21
20
|
|
|
22
21
|
- Atomic reads the workflow file and local helpers as plain text and uses `skill-creator` to write `SKILL.md` plus deterministic scripts under `scripts/`.
|
|
23
22
|
- The original workflow file is never imported, executed, edited, or deleted.
|
|
24
|
-
- Existing skills are never overwritten. Pick a new name or reuse the existing skill.
|
|
25
|
-
- Workflow files in untrusted projects are never offered for conversion. Global workflows still convert. For an explicitly trusted external source inside an untrusted project, Atomic asks before saving globally.
|
|
23
|
+
- Existing skills are never overwritten. Atomic checks symlinks at the target skill path before writing and never writes into an occupied directory. Pick a new name or reuse the existing skill.
|
|
24
|
+
- Workflow files in untrusted projects are never offered for conversion, and Atomic never writes into an untrusted project directory. Global workflows still convert. For an explicitly supplied, trusted external source inside an untrusted project, Atomic asks before saving globally.
|
|
26
25
|
|
|
27
26
|
| Workflow source | Output skill location |
|
|
28
27
|
| --- | --- |
|
|
29
28
|
| Trusted project `.atomic/workflows/`, `.pi/workflows/`, project settings paths, project-installed packages | `.atomic/skills/<name>/` |
|
|
30
29
|
| `~/.atomic/agent/workflows/`, global settings paths, globally installed packages | `~/.atomic/agent/skills/<name>/` (or `skills/` in your agent directory) |
|
|
31
|
-
| Package via `-e`, or trusted
|
|
30
|
+
| Package loaded via `-e`, or a trusted external project directory | Current trusted project's `.atomic/skills/<name>/` (never the external tree) |
|
|
32
31
|
|
|
33
|
-
After reviewing the generated skill and scripts, run `/reload`, then invoke `/skill:<name>` with your inputs. See [skills as workflows](/skills#skills-as-workflows) and [
|
|
32
|
+
After reviewing the generated skill and scripts, run `/reload`, then invoke `/skill:<name>` with your inputs. See [skills as workflows](/skills#skills-as-workflows) and [Orchestrate with codemode and subagents](/orchestration).
|
|
34
33
|
|
|
35
34
|
## What conversion preserves
|
|
36
35
|
|
|
37
36
|
| Earlier workflow API | Equivalent in the converted skill |
|
|
38
37
|
| --- | --- |
|
|
39
|
-
| `ctx.stage`, `ctx.task`, model and thinking | Codemode `tools.subagent()` launches in the
|
|
38
|
+
| `ctx.stage`, `ctx.task`, model and thinking | Codemode `tools.subagent()` launches in the main chat that keep prompts, inputs, and model pins. |
|
|
40
39
|
| Stage `fallbackModels`, `tools`, `mcp` | Named [custom subagent](/subagents/authoring) launched without per-call `model` ([Pinned stages](#pinned-stages)). |
|
|
41
40
|
| `ctx.parallel`, loops, retries | `tasks` batches, explicit round caps, and checks between notices (plus Intercom `group` for peers). |
|
|
42
41
|
| `ctx.tool`, deterministic helpers | Reviewed scripts in `scripts/` with validated args, timeouts, and exit checks. |
|
|
43
42
|
| Inputs, `ctx.ui`, approvals | Skill arguments and defaults plus `ask_user_question` steps (an unanswered approval is never a pass). |
|
|
44
|
-
| Nested `ctx.workflow` | Separately converted skill called by name (the
|
|
45
|
-
| Structured outputs, `ctx.exit`, blocked states | Per-
|
|
43
|
+
| Nested `ctx.workflow` | Separately converted skill called by name (the main session still owns all subagent launches). |
|
|
44
|
+
| Structured outputs, `ctx.exit`, blocked states | Per-subagent output files validated by codemode, stopping on failure or missing prerequisites. |
|
|
46
45
|
|
|
47
|
-
Running the new skill starts fresh work. Earlier workflow run IDs cannot resume old checkpoints. Verify which external side effects already ran before repeating them. See [What survives interruption
|
|
46
|
+
Running the new skill starts fresh work. Earlier workflow run IDs cannot resume old checkpoints. Verify which external side effects already ran before repeating them. See [What survives interruption](/orchestration#what-survives-interruption).
|
|
48
47
|
|
|
49
48
|
### Pinned stages
|
|
50
49
|
|
|
51
|
-
When a stage pinned `fallbackModels`, exact `tools`, or `mcp` servers, conversion writes a companion agent file in `.atomic/agents/` (project) or `~/.atomic/agent/agents/` (global) without overwriting existing agents, and asks before adding any MCP server to config:
|
|
50
|
+
When a stage pinned `fallbackModels`, exact `tools`, or `mcp` servers, conversion writes a companion agent file in `.atomic/agents/` (project) or `~/.atomic/agent/agents/` (global) without overwriting existing agents. Conversion never copies MCP secrets into agent definitions, and asks before adding any MCP server to config:
|
|
52
51
|
|
|
53
52
|
```markdown
|
|
54
53
|
---
|
|
@@ -62,18 +61,18 @@ tools: read, search, mcp:issue-tracker
|
|
|
62
61
|
Classify the report you are given as bug, feature, or question, with file:line evidence.
|
|
63
62
|
```
|
|
64
63
|
|
|
65
|
-
The skill launches
|
|
64
|
+
Both comma-separated strings and YAML lists work for `fallbackModels` and `tools` in agent frontmatter. The skill launches the agent without a `model` override so the agent's pins apply:
|
|
66
65
|
|
|
67
66
|
```js
|
|
68
67
|
const launch = await tools.subagent({ agent: "triage-reviewer", task: report });
|
|
69
68
|
```
|
|
70
69
|
|
|
71
|
-
Package maintainers can ask Atomic to place the skill and agents directly in the package's [`agents` manifest field](/packages/authoring#subagents), where they run as `<namespace>.<name>` (
|
|
70
|
+
Package maintainers can ask Atomic to place the skill and agents directly in the package's [`agents` manifest field](/packages/authoring#subagents), where they run as `<namespace>.<name>` (derived from `package.json` `name`, so `@acme/triage` becomes `acme.triage.triage-reviewer`).
|
|
72
71
|
|
|
73
|
-
##
|
|
72
|
+
## Replacing removed built-in workflows
|
|
74
73
|
|
|
75
74
|
- `classify-and-act`, `fan-out-and-synthesize`, `adversarial-verification`, `generate-and-filter`, `tournament`, and `loop-until-done` map to the matching [orchestration patterns](/orchestration/patterns).
|
|
76
|
-
- `ralph` maps to a research, implementation, and review loop in the
|
|
75
|
+
- `ralph` maps to a research, implementation, and review loop in the main chat with an explicit round limit.
|
|
77
76
|
- `goal` maps to combining [loop-until-done](/orchestration/patterns#loop-until-done) with [adversarial verification](/orchestration/patterns#adversarial-verification).
|
|
78
77
|
- `open-claude-design` maps to `/skill:impeccable` with your design brief and target artifact.
|
|
79
78
|
|
|
@@ -82,4 +81,7 @@ Package maintainers can ask Atomic to place the skill and agents directly in the
|
|
|
82
81
|
Old workflow data is safe to leave alone. To reclaim space, back it up and stop any older Atomic binaries first, then remove only workflow-only directories under `~/.atomic/workflows/`:
|
|
83
82
|
|
|
84
83
|
- Safe to delete if unused: `runs/`, `pool/`, and `journal/`.
|
|
85
|
-
|
|
84
|
+
|
|
85
|
+
<Warning>
|
|
86
|
+
Do not delete `~/.atomic/workflows/journal.sqlite` or its sidecar files (they store your Atomic sessions), the entire `~/.atomic/workflows/` directory, shared databases, or your workflow source files. Custom storage paths may differ.
|
|
87
|
+
</Warning>
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Orchestration patterns"
|
|
3
|
-
|
|
3
|
+
sidebarTitle: "Patterns"
|
|
4
|
+
description: "Seven reusable patterns for splitting work across subagents, isolating edits, and verifying results."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
Give each subagent one concrete deliverable, explicit inputs, clear edit rules, and a verification check. Put conflicting edits in separate worktrees, and run final verification in your main session. A subagent claiming "done" is not proof.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Each snippet below is a short codemode call from the parent chat, not a long-lived script. After any restart, reconcile `status` with [saved receipts](/orchestration#what-survives-interruption) before launching more children.
|
|
9
|
+
Each snippet below is a short codemode call from the main chat, not a long-lived script. After any restart, reconcile `status` with [saved task IDs](/orchestration#what-survives-interruption) before launching more subagents.
|
|
11
10
|
|
|
12
11
|
## Prompt anatomy
|
|
13
12
|
|
|
14
|
-
Make every
|
|
13
|
+
Make every subagent assignment self-contained so it does not rely on the main chat's full history:
|
|
15
14
|
|
|
16
15
|
- **Objective and why it matters.** Name the decision or change that depends on the output.
|
|
17
16
|
- **Inputs and permissions.** List the exact files or paths to read, what may be edited, and what is out of scope.
|
|
@@ -26,7 +25,7 @@ Example prompt:
|
|
|
26
25
|
Specify observable outcomes rather than effort:
|
|
27
26
|
|
|
28
27
|
- For fixes, name the changed behavior, adjacent behavior that must remain unchanged, and checks proving both.
|
|
29
|
-
- For reviews, distinguish "checked and found nothing" from "could not verify." Re-run key checks in
|
|
28
|
+
- For reviews, distinguish "checked and found nothing" from "could not verify." Re-run key checks in your main session before acting on results. See [Verification and evidence](/verification).
|
|
30
29
|
|
|
31
30
|
### Stop conditions
|
|
32
31
|
|
|
@@ -37,12 +36,12 @@ Define upfront when to halt, such as an attempt cap, a missing prerequisite, con
|
|
|
37
36
|
- **Fit.** Check whether one direct command answers the question faster than delegation.
|
|
38
37
|
- **Isolation.** Give each writer a distinct worktree or disjoint files, and launch dependent tasks only after prerequisites pass.
|
|
39
38
|
- **Handoffs.** Pass file paths and output schemas rather than raw transcripts.
|
|
40
|
-
- **Recovery.** Store
|
|
39
|
+
- **Recovery.** Store subagent IDs, target commits, and next checks so restarts reconcile before re-running side effects.
|
|
41
40
|
- **Approval.** Keep permission to publish or merge separate from permission to implement.
|
|
42
41
|
|
|
43
42
|
## Classify-and-act
|
|
44
43
|
|
|
45
|
-
Triage input with a read-only
|
|
44
|
+
Triage input with a read-only subagent, validate the returned label in the main session, then dispatch the right specialist:
|
|
46
45
|
|
|
47
46
|
```js
|
|
48
47
|
const { label, report } = load("triage");
|
|
@@ -52,7 +51,7 @@ store("triage:action", r.tasks);
|
|
|
52
51
|
return r.tasks;
|
|
53
52
|
```
|
|
54
53
|
|
|
55
|
-
On recovery, check `status` for an existing action
|
|
54
|
+
On recovery, check `status` for an existing action subagent before launching another, and verify the fix against the original report.
|
|
56
55
|
|
|
57
56
|
## Fan-out-and-synthesize
|
|
58
57
|
|
|
@@ -70,11 +69,11 @@ store("platforms", r.tasks);
|
|
|
70
69
|
return r.tasks;
|
|
71
70
|
```
|
|
72
71
|
|
|
73
|
-
Synthesize only after every required
|
|
72
|
+
Synthesize only after every required subagent settles, and reconcile contradictions against source code. On restart, recover results by task ID instead of repeating the whole batch.
|
|
74
73
|
|
|
75
74
|
## Adversarial verification
|
|
76
75
|
|
|
77
|
-
Give a fresh read-only
|
|
76
|
+
Give a fresh read-only subagent the acceptance criteria and candidate, without the author's conclusion, and ask for a failing input:
|
|
78
77
|
|
|
79
78
|
```js
|
|
80
79
|
const r = await tools.subagent({
|
|
@@ -86,16 +85,17 @@ store("date:review", r.tasks);
|
|
|
86
85
|
return r.tasks;
|
|
87
86
|
```
|
|
88
87
|
|
|
89
|
-
Verify reported failures in the
|
|
88
|
+
Verify reported failures in the main session by checking real exit codes before requesting repairs. With multiple reviewers, collect independent verdicts first, then allow one bounded Intercom debate. A reproducible failing case beats a majority vote. For user interfaces, [exercise the real interface](/computer-use).
|
|
90
89
|
|
|
91
90
|
## Generate-and-filter
|
|
92
91
|
|
|
93
|
-
Ask
|
|
92
|
+
Ask subagents for concrete candidates, then filter all of them with one deterministic check in codemode. Pass `context: "fresh"` (or use a read-only agent) so generators do not inherit the main chat's history (`worker` defaults to forked context and edit tools):
|
|
94
93
|
|
|
95
94
|
```js
|
|
96
95
|
const r = await tools.subagent({
|
|
96
|
+
context: "fresh",
|
|
97
97
|
tasks: ["year boundary", "leap day"].map((topic) => ({
|
|
98
|
-
agent: "
|
|
98
|
+
agent: "codebase-analyzer",
|
|
99
99
|
task: `Return three distinct dates around a ${topic} as a JSON string array. Don't edit files.`,
|
|
100
100
|
})),
|
|
101
101
|
});
|
|
@@ -111,6 +111,7 @@ Compare competing approaches on identical fixtures with pre-agreed scoring and t
|
|
|
111
111
|
|
|
112
112
|
```js
|
|
113
113
|
const r = await tools.subagent({
|
|
114
|
+
context: "fresh",
|
|
114
115
|
tasks: ["lookup-table", "parser"].map((strategy) => ({
|
|
115
116
|
agent: "worker",
|
|
116
117
|
task: `Implement the ${strategy} approach on your own branch; return the commit and test command.`,
|
|
@@ -121,27 +122,41 @@ store("candidates:round1", r.tasks);
|
|
|
121
122
|
return r.tasks;
|
|
122
123
|
```
|
|
123
124
|
|
|
125
|
+
Note two details when running `worker` in named worktrees:
|
|
126
|
+
|
|
127
|
+
- `worker` defaults to `context: "fork"`, so pass `context: "fresh"` when you want independent attempts without the main chat's prior reasoning.
|
|
128
|
+
- Named worktrees (`worktree: { branch }`) are never deleted automatically and do not symlink `node_modules`. Have each competitor install dependencies if its test command needs them, or remove finished branches and worktrees manually when the tournament ends.
|
|
129
|
+
|
|
124
130
|
Record scores, commit SHAs, and round numbers so restarts never double-advance a candidate. Never pick a winner that fails a required check.
|
|
125
131
|
|
|
126
132
|
## Loop-until-done
|
|
127
133
|
|
|
128
|
-
Run the project's verification command in the
|
|
134
|
+
Run the project's verification command in the main session between bounded repair rounds. Pass a foreground `wait` budget suited to your test suite, and handle the string return value in case the command yields to the background:
|
|
129
135
|
|
|
130
136
|
```js
|
|
131
|
-
const check = await tools.bash({
|
|
137
|
+
const check = await tools.bash({
|
|
138
|
+
command: "npm test",
|
|
139
|
+
wait: { kind: "foreground", budgetMs: 60000 },
|
|
140
|
+
});
|
|
141
|
+
if (typeof check === "string") {
|
|
142
|
+
return `Test suite is still running in the background. Wait for completion before repairing.\n${check}`;
|
|
143
|
+
}
|
|
132
144
|
if (check.exit_code === 0) return "Passed";
|
|
133
145
|
const round = load("repair:round") ?? 0;
|
|
134
146
|
if (round >= 3) return "Still failing after three repair attempts.";
|
|
147
|
+
const output = typeof check.output === "string" ? check.output.slice(-2000) : "";
|
|
135
148
|
const r = await tools.subagent({
|
|
136
149
|
agent: "debugger",
|
|
137
|
-
task: `Repair the test failure; don't suppress the test.\n${
|
|
150
|
+
task: `Repair the test failure; don't suppress the test.\n${output}`,
|
|
138
151
|
});
|
|
139
152
|
store("repair:round", round + 1);
|
|
140
153
|
store("repair:last", r.tasks);
|
|
141
154
|
return r.tasks;
|
|
142
155
|
```
|
|
143
156
|
|
|
144
|
-
|
|
157
|
+
When `bash` exceeds its foreground observation budget (10 seconds by default), it yields to the background and returns a plain status string instead of structured output. Passing a larger `budgetMs` and checking `typeof check === "string"` avoids crashing on slower test suites.
|
|
158
|
+
|
|
159
|
+
Run a new repair round only after the previous subagent settles, and stop on refusal, missing prerequisites, or approval gates. On restart, inspect the checkout and rerun the check before spending another round.
|
|
145
160
|
|
|
146
161
|
## Stacked slices
|
|
147
162
|
|
|
@@ -159,4 +174,4 @@ store("cli-slice", r.tasks);
|
|
|
159
174
|
return r.tasks;
|
|
160
175
|
```
|
|
161
176
|
|
|
162
|
-
Verify each slice against its base and run full integration checks at the tip. Run independent slices in parallel instead.
|
|
177
|
+
Because `worker` defaults to `context: "fork"`, each slice sees the main chat's verified decisions unless you pass `context: "fresh"`. Named worktrees keep their branches and do not symlink `node_modules`. Verify each slice against its base and run full integration checks at the tip. Run independent slices in parallel instead.
|