@bastani/atomic 0.10.9-alpha.1 → 0.10.10-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/README.md +211 -155
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +27 -12
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
- package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
- package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
- package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
- package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
- package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
- package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
- package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
- package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
- package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
- package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +6 -0
- package/dist/builtin/intercom/README.md +85 -114
- package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
- package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
- package/dist/builtin/intercom/group.ts +7 -3
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/README.md +37 -27
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +8 -0
- package/dist/builtin/subagents/README.md +71 -138
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
- package/dist/builtin/web-access/CHANGELOG.md +9 -0
- package/dist/builtin/web-access/README.md +60 -87
- package/dist/builtin/web-access/index.bundle.mjs +387 -351
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +2 -2
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +2 -2
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +2 -2
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +2 -2
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +2 -2
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/agent-session-methods.d.ts +4 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/compaction/compactor.d.ts +20 -14
- package/dist/core/compaction/errors.d.ts +120 -0
- package/dist/core/compaction/index.d.ts +1 -0
- package/dist/core/compaction/model-resolver.d.ts +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.code.js +1 -1
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/api-types.d.ts +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/provider-types.d.ts +18 -6
- package/dist/core/extensions/provider-types.js.map +1 -1
- package/dist/core/extensions/runner-context.js +1 -1
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/model-config.d.ts +40 -0
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-scope.d.ts +4 -4
- package/dist/core/model-runtime.d.ts +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/provider-composer-internal.d.ts +11 -2
- package/dist/core/sdk.code.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +5 -5
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +3 -3
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +2 -2
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +3 -3
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +3 -3
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +3 -3
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +4 -4
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.code.js +1 -1
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +2 -2
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +3 -3
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +2 -2
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index-extensions.d.ts +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +7 -7
- package/dist/main-first-time-setup.code.js +2 -2
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
- package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
- package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
- package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
- package/dist/modes/rpc/rpc-types.d.ts +29 -2
- package/dist/package-manager-cli.code.js +5 -5
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +1 -2
- package/dist/startup-stages/9.js +2 -1
- package/dist/utils/native-module.d.ts +44 -0
- package/dist/utils/startup-database-spare.code.js +3 -3
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks.md +235 -243
- package/docs/build.md +12 -11
- package/docs/codemode.md +60 -51
- package/docs/compaction/reference.md +61 -24
- package/docs/compaction.md +117 -65
- package/docs/computer-use.md +179 -146
- package/docs/containerization.md +79 -33
- package/docs/custom-provider/api-reference.md +148 -11
- package/docs/custom-provider/oauth.md +44 -27
- package/docs/custom-provider/override.md +14 -7
- package/docs/custom-provider/registration.md +75 -65
- package/docs/custom-provider/streaming.md +42 -19
- package/docs/custom-provider.md +25 -61
- package/docs/development.md +47 -43
- package/docs/docs.json +33 -33
- package/docs/environment-variables.md +83 -57
- package/docs/extensions/api-reference.md +323 -734
- package/docs/extensions/authoring.md +186 -269
- package/docs/extensions/events.md +308 -375
- package/docs/extensions/examples.md +122 -74
- package/docs/extensions/ui.md +217 -197
- package/docs/extensions.md +152 -259
- package/docs/getting-started/authentication.md +27 -14
- package/docs/getting-started/first-session.md +25 -26
- package/docs/getting-started/installation.md +62 -84
- package/docs/getting-started/project-instructions.md +39 -14
- package/docs/guides/configuration.md +42 -20
- package/docs/guides/intercom.md +17 -13
- package/docs/guides/non-interactive.md +29 -16
- package/docs/guides/orchestration.md +16 -10
- package/docs/guides/resume-on-any-machine.md +54 -49
- package/docs/guides/subagents.md +22 -14
- package/docs/guides/team-setup.md +37 -26
- package/docs/guides.md +22 -21
- package/docs/herdr.md +21 -16
- package/docs/index.md +16 -17
- package/docs/intercom/operations.md +68 -66
- package/docs/intercom/reference.md +196 -191
- package/docs/intercom.md +103 -92
- package/docs/json.md +71 -71
- package/docs/keybindings.md +63 -50
- package/docs/libraries/agent-core.md +49 -8
- package/docs/libraries/ai.md +21 -12
- package/docs/libraries/codemode.md +28 -6
- package/docs/libraries/schema.md +7 -7
- package/docs/libraries/telemetry.md +7 -7
- package/docs/libraries/tui.md +74 -94
- package/docs/libraries.md +5 -5
- package/docs/llama-cpp.md +38 -33
- package/docs/mcp-servers.md +96 -90
- package/docs/models/reference.md +46 -33
- package/docs/models-configuration.md +12 -6
- package/docs/models.md +93 -88
- package/docs/orchestration/migrating-workflows.md +21 -19
- package/docs/orchestration/patterns.md +35 -20
- package/docs/orchestration.md +22 -21
- package/docs/packages/authoring.md +28 -19
- package/docs/packages/reference.md +75 -16
- package/docs/packages.md +31 -33
- package/docs/programmatic.md +22 -21
- package/docs/prompt-templates.md +63 -41
- package/docs/providers/reference.md +35 -19
- package/docs/providers.md +61 -71
- package/docs/quickstart.md +32 -46
- package/docs/reference/cli.md +249 -252
- package/docs/reference.md +23 -20
- package/docs/rpc/examples.md +74 -17
- package/docs/rpc/extension-ui.md +79 -62
- package/docs/rpc/protocol.md +816 -358
- package/docs/rpc.md +75 -151
- package/docs/sdk/reference.md +175 -45
- package/docs/sdk/structured-decisions.md +92 -62
- package/docs/sdk/web-server.md +79 -46
- package/docs/sdk.md +237 -195
- package/docs/security.md +106 -43
- package/docs/session-format.md +96 -59
- package/docs/sessions.md +149 -113
- package/docs/settings.md +289 -204
- package/docs/shell-aliases.md +15 -6
- package/docs/skills/authoring.md +17 -9
- package/docs/skills/reference.md +23 -21
- package/docs/skills.md +104 -97
- package/docs/storage.md +140 -242
- package/docs/subagents/authoring.md +147 -16
- package/docs/subagents/reference.md +100 -30
- package/docs/subagents.md +220 -252
- package/docs/terminal-setup.md +97 -69
- package/docs/termux.md +51 -85
- package/docs/themes/reference.md +51 -37
- package/docs/themes.md +49 -54
- package/docs/tmux.md +38 -21
- package/docs/tools.md +198 -147
- package/docs/tui/reference.md +64 -32
- package/docs/tui.md +38 -66
- package/docs/usage.md +76 -78
- package/docs/verification.md +25 -25
- package/docs/web-access.md +72 -55
- package/docs/windows.md +53 -58
- package/docs/worktree-snapshots.md +62 -65
- package/package.json +8 -8
- package/schemas/models.schema.json +51 -0
- package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
- package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
- package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
- package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://github.com/bastani-inc/atomic">
|
|
3
|
-
<img alt="Atomic" src="https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/docs/logo.svg" width="324">
|
|
3
|
+
<img alt="Atomic logo" src="https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/docs/logo.svg" width="324">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -17,49 +17,58 @@
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
Atomic is a terminal coding-agent runtime. Use built-in tools for file edits and shell commands, codemode to script multi-step checks, and subagents to delegate work to isolated contexts. Extend Atomic with TypeScript [
|
|
20
|
+
Atomic is a terminal coding-agent runtime. Use built-in tools for file edits and shell commands, codemode to script multi-step checks, and subagents to delegate work to isolated contexts. Extend Atomic with TypeScript [extensions](#extensions), [skills](#skills), [prompt templates](#prompt-templates), and [themes](#themes), or share them as [Atomic packages](#atomic-packages) via npm or git.
|
|
21
21
|
|
|
22
22
|
Atomic bundles first-party integrations for subagents, MCP, web access, and Intercom. See [Orchestration](docs/orchestration.md) for multi-step tasks and [Migrating workflows](docs/orchestration/migrating-workflows.md) to convert an earlier workflow file to a skill.
|
|
23
23
|
|
|
24
|
-
Run Atomic interactively, in print or JSON mode, over RPC for process integration, or embedded
|
|
24
|
+
Run Atomic interactively, in print or JSON mode, over RPC for process integration, or embedded through the TypeScript SDK.
|
|
25
25
|
|
|
26
|
-
Full documentation: [docs.bastani.ai](https://docs.bastani.ai/)
|
|
26
|
+
Full documentation: [docs.bastani.ai](https://docs.bastani.ai/) | Contributing: [CONTRIBUTING.md](https://github.com/bastani-inc/atomic/blob/main/CONTRIBUTING.md)
|
|
27
27
|
|
|
28
|
-
## Table of
|
|
28
|
+
## Table of contents
|
|
29
29
|
|
|
30
|
-
- [Quick
|
|
31
|
-
- [Providers
|
|
32
|
-
- [Interactive
|
|
30
|
+
- [Quick start](#quick-start)
|
|
31
|
+
- [Providers and models](#providers-and-models)
|
|
32
|
+
- [Interactive mode](#interactive-mode)
|
|
33
33
|
- [Editor](#editor)
|
|
34
34
|
- [Commands](#commands)
|
|
35
|
-
- [Keyboard
|
|
36
|
-
- [Message
|
|
35
|
+
- [Keyboard shortcuts](#keyboard-shortcuts)
|
|
36
|
+
- [Message queue](#message-queue)
|
|
37
37
|
- [Sessions](#sessions)
|
|
38
|
+
- [Management](#management)
|
|
38
39
|
- [Branching](#branching)
|
|
39
40
|
- [Compaction](#compaction)
|
|
40
41
|
- [Settings](#settings)
|
|
41
|
-
- [
|
|
42
|
+
- [Model scoping with enabledModels](#model-scoping-with-enabledmodels)
|
|
43
|
+
- [Telemetry and update checks](#telemetry-and-update-checks)
|
|
44
|
+
- [Context files](#context-files)
|
|
42
45
|
- [Customization](#customization)
|
|
43
|
-
- [Prompt
|
|
46
|
+
- [Prompt templates](#prompt-templates)
|
|
44
47
|
- [Skills](#skills)
|
|
45
48
|
- [Extensions](#extensions)
|
|
46
49
|
- [Themes](#themes)
|
|
47
|
-
- [Atomic
|
|
48
|
-
- [Programmatic
|
|
50
|
+
- [Atomic packages](#atomic-packages)
|
|
51
|
+
- [Programmatic usage](#programmatic-usage)
|
|
49
52
|
- [Philosophy](#philosophy)
|
|
50
|
-
- [CLI
|
|
53
|
+
- [CLI reference](#cli-reference)
|
|
54
|
+
- [Contributing and development](#contributing-and-development)
|
|
55
|
+
- [License](#license)
|
|
56
|
+
- [See also](#see-also)
|
|
51
57
|
|
|
52
58
|
---
|
|
53
59
|
|
|
54
|
-
## Quick
|
|
60
|
+
## Quick start
|
|
55
61
|
|
|
56
|
-
Install globally with npm or Bun:
|
|
62
|
+
Install globally with npm, pnpm, or Bun (Node.js 22.19+ or Bun 1.4.5+):
|
|
57
63
|
|
|
58
64
|
```bash
|
|
59
65
|
npm install -g @bastani/atomic
|
|
60
|
-
# or:
|
|
66
|
+
# or: pnpm add -g @bastani/atomic
|
|
67
|
+
# or: bun add -g @bastani/atomic
|
|
61
68
|
```
|
|
62
69
|
|
|
70
|
+
For environments without Node.js or a package manager, use the self-contained release archive installer (`install.sh` on macOS/Linux or `install.ps1` on Windows). See [Installation](docs/getting-started/installation.md).
|
|
71
|
+
|
|
63
72
|
Authenticate with an API key:
|
|
64
73
|
|
|
65
74
|
```bash
|
|
@@ -67,98 +76,112 @@ export ANTHROPIC_API_KEY=sk-ant-...
|
|
|
67
76
|
atomic
|
|
68
77
|
```
|
|
69
78
|
|
|
70
|
-
Or sign in with an existing subscription:
|
|
79
|
+
Or sign in with an existing subscription or browser login:
|
|
71
80
|
|
|
72
81
|
```bash
|
|
73
82
|
atomic
|
|
74
83
|
/login # Select a provider
|
|
75
84
|
```
|
|
76
85
|
|
|
77
|
-
By default, Atomic provides built-in coding tools (`read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, plus `powershell` on native Windows when available). `edit` performs exact-text replacement without requiring an earlier `read
|
|
86
|
+
By default, Atomic provides built-in coding tools (`read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, plus `powershell` on native Windows when available). `edit` performs exact-text replacement without requiring an earlier `read`. See [docs/tools.md](docs/tools.md).
|
|
78
87
|
|
|
79
88
|
**Platform guides:** [Windows](docs/windows.md) | [Alpine/musl Linux](docs/getting-started/installation.md#alpine-and-musl-linux-archives) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)
|
|
80
89
|
|
|
81
90
|
---
|
|
82
91
|
|
|
83
|
-
|
|
92
|
+
<div id="providers--models"></div>
|
|
93
|
+
|
|
94
|
+
## Providers and models
|
|
84
95
|
|
|
85
96
|
Atomic ships a curated list of tool-capable models for each built-in provider. Authenticate via `/login` or an API key, then pick any model with `/model` (`Ctrl+L`).
|
|
86
97
|
|
|
87
|
-
**Subscriptions (`/login`):**
|
|
98
|
+
**Subscriptions and browser logins (`/login`):**
|
|
99
|
+
|
|
100
|
+
- OpenRouter (browser PKCE, optional key minting)
|
|
88
101
|
- Anthropic Claude Pro/Max
|
|
89
102
|
- OpenAI ChatGPT Plus/Pro (Codex)
|
|
103
|
+
- OpenAI ChatGPT sign-in (`openai`)
|
|
90
104
|
- GitHub Copilot
|
|
91
|
-
-
|
|
92
|
-
-
|
|
105
|
+
- Kimi Code (device authorization with automatic token refresh)
|
|
106
|
+
- Meta (Muse subscription)
|
|
93
107
|
- xAI (Grok/X subscription)
|
|
94
108
|
|
|
95
109
|
**API keys:**
|
|
96
|
-
Anthropic, Ant Ling, OpenAI, Azure OpenAI, DeepSeek, NVIDIA NIM, Google Gemini, Google Vertex, Amazon Bedrock, Mistral, Groq, Cerebras, Cloudflare AI Gateway, Cloudflare Workers AI, xAI, OpenRouter, Vercel AI Gateway, ZAI, ZAI Coding Plan (China), OpenCode Zen, OpenCode Go, Hugging Face, Fireworks, Together AI, Baseten, Kimi For Coding, Meta, MiniMax, MiniMax (China), Moonshot AI, Moonshot AI (China), Qwen Token Plan, Qwen Token Plan (Individual), Qwen Token Plan (China), Xiaomi MiMo, Xiaomi MiMo Token Plan (China / Amsterdam / Singapore).
|
|
110
|
+
Anthropic, Anthropic API (`anthropic-api`), Ant Ling, OpenAI, OpenAI API (`openai-api`), OpenAI Decisions (`openai-decisions`), OpenAI Images (`openai-images`), Azure OpenAI, DeepSeek, NVIDIA NIM, Google Gemini, Google Vertex, Amazon Bedrock, Mistral, Groq, Cerebras, Cloudflare AI Gateway, Cloudflare Workers AI, xAI, OpenRouter, Vercel AI Gateway, ZAI, ZAI Coding Plan (China), OpenCode Zen, OpenCode Go, Hugging Face, Fireworks, Together AI, Baseten, Kimi For Coding, Meta, MiniMax, MiniMax (China), Moonshot AI, Moonshot AI (China), Morph, Qwen Token Plan, Qwen Token Plan (Individual), Qwen Token Plan (China), Qwen Token Plan (Individual, China), TypeSafe, Xiaomi MiMo, Xiaomi MiMo Token Plan (China / Amsterdam / Singapore).
|
|
97
111
|
|
|
98
112
|
See [docs/providers.md](docs/providers.md) for provider setup and environment variables.
|
|
99
113
|
|
|
100
|
-
**Model
|
|
101
|
-
|
|
102
|
-
- **
|
|
103
|
-
- **
|
|
114
|
+
**Model capabilities and custom endpoints:**
|
|
115
|
+
|
|
116
|
+
- **Structured tool arguments:** Models that support strict JSON-schema or grammar-constrained tool calling enforce tool input schemas automatically. When a tool requires strict constraints that a model does not support, the call fails with an error instead of silently falling back. See [Extension authoring](docs/extensions/authoring.md#constrained-sampling) and [RPC protocol](docs/rpc/protocol.md#get_available_models).
|
|
117
|
+
- **Bearer auth for Anthropic:** Setting `ANTHROPIC_AUTH_TOKEN` authenticates Anthropic-compatible gateways with an `Authorization: Bearer` header (without sending `x-api-key`) across chat and summary requests.
|
|
118
|
+
- **Custom providers and models:** Add OpenAI-, Anthropic-, or Google-compatible providers in the active agent directory's `models.json` (normally `~/.atomic/agent/models.json`; not merged with legacy `.pi`). Configure custom sampling parameters, thinking token budgets, finish-reason behavior, and persisted `llama.cpp` models there, or write an extension for custom APIs and OAuth. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).
|
|
104
119
|
|
|
105
120
|
---
|
|
106
121
|
|
|
107
|
-
## Interactive
|
|
122
|
+
## Interactive mode
|
|
108
123
|
|
|
109
|
-
<p align="center"><img src="docs/images/interactive-mode.png" alt="
|
|
124
|
+
<p align="center"><img src="docs/images/interactive-mode.png" alt="Atomic interactive terminal UI showing the startup header, conversation messages, prompt editor, and footer status bar" width="600"></p>
|
|
110
125
|
|
|
111
126
|
The fullscreen TUI has four areas from top to bottom:
|
|
112
127
|
|
|
113
|
-
- **Startup header
|
|
114
|
-
- **Messages
|
|
115
|
-
- **Editor
|
|
116
|
-
- **Footer
|
|
128
|
+
- **Startup header:** Keybinding hints (`/hotkeys` for all), loaded context files, prompt templates, skills, and extensions.
|
|
129
|
+
- **Messages:** Prompts, responses, tool calls and results, notices, errors, and extension UI.
|
|
130
|
+
- **Editor:** Input box whose border color reflects the active thinking level, with a status row showing streaming activity.
|
|
131
|
+
- **Footer:** Working directory, session name, token and cache usage, cost, context usage, and active model.
|
|
117
132
|
|
|
118
|
-
[Extensions](#extensions) can replace the editor, show temporary
|
|
133
|
+
[Extensions](#extensions) can replace the editor, show temporary dialogs (such as `/settings` or selectors), or add widgets, status lines, custom footers, and overlays.
|
|
119
134
|
|
|
120
135
|
### Editor
|
|
121
136
|
|
|
122
137
|
| Feature | How |
|
|
123
138
|
| --- | --- |
|
|
124
139
|
| File reference | Type `@` to fuzzy-search project files |
|
|
125
|
-
| Path completion | `Tab` to complete paths |
|
|
126
|
-
| Multi-line | `Shift+Enter`
|
|
127
|
-
| Images | `Ctrl+V` (`Alt+V` on Windows) or drag onto terminal |
|
|
140
|
+
| Path completion | Press `Tab` to complete paths |
|
|
141
|
+
| Multi-line input | Press `Shift+Enter` or `Ctrl+J` (`Ctrl+Enter` or `Shift+Enter` on Windows Terminal) |
|
|
142
|
+
| Images | Press `Ctrl+V` (`Alt+V` or `Ctrl+V` on Windows and WSL) or drag onto the terminal |
|
|
128
143
|
| Shell commands | `!command` runs and sends output to the model; `!!command` runs without sending output |
|
|
129
144
|
|
|
130
|
-
See [docs/keybindings.md](docs/keybindings.md) for editing shortcuts.
|
|
145
|
+
See [docs/keybindings.md](docs/keybindings.md) for all editing shortcuts.
|
|
131
146
|
|
|
132
147
|
### Commands
|
|
133
148
|
|
|
134
|
-
Type `/` in the editor to
|
|
149
|
+
Type `/` in the editor to browse commands. [Extensions](#extensions) register custom commands, [skills](#skills) run as `/skill:<name>`, and [prompt templates](#prompt-templates) expand as `/<template>`.
|
|
150
|
+
|
|
151
|
+
**Core commands:**
|
|
135
152
|
|
|
136
153
|
| Command | Description |
|
|
137
154
|
| --- | --- |
|
|
138
|
-
| `/login`, `/logout` | OAuth and API key
|
|
139
|
-
| `/model` | Switch model and save as the startup default |
|
|
140
|
-
| `/thinking` | Switch thinking level and save as the startup default |
|
|
155
|
+
| `/login [provider]`, `/logout [provider]` | Configure or remove OAuth and API key credentials |
|
|
156
|
+
| `/model [provider/model]` | Switch model and save as the startup default |
|
|
157
|
+
| `/thinking [level]` | Switch thinking level and save as the startup default |
|
|
141
158
|
| `/scoped-models` | Enable or disable models for `Ctrl+P` cycling |
|
|
142
159
|
| `/settings` | Edit theme, message delivery, transport, and other preferences |
|
|
143
|
-
| `/resume` |
|
|
160
|
+
| `/resume [id]` | Browse and pick a past session, or open one directly |
|
|
144
161
|
| `/new` | Start a new session |
|
|
145
162
|
| `/name <name>` | Set the session display name |
|
|
146
|
-
| `/session` | Show session ID,
|
|
163
|
+
| `/session [snapshot]` | Show session ID, storage, messages, tokens, and cost, or inspect worktree snapshots |
|
|
147
164
|
| `/tree` | Jump to any point in the session and branch from there |
|
|
148
165
|
| `/fork` | Create a new session from an earlier user message |
|
|
149
166
|
| `/clone` | Duplicate the active branch into a new session |
|
|
150
|
-
| `/compact [instructions]` | Clear the context window; the agent recovers needed details from history |
|
|
167
|
+
| `/compact [instructions]` | Clear or compact the context window; the agent recovers needed details from history |
|
|
151
168
|
| `/copy` | Copy the last assistant message to clipboard |
|
|
152
|
-
| `/export [file]` | Export the session to HTML |
|
|
153
|
-
| `/
|
|
154
|
-
| `/
|
|
169
|
+
| `/export [file]` | Export the session to HTML (default) or `.jsonl` |
|
|
170
|
+
| `/import <file>` | Import and resume a session from a JSONL export |
|
|
171
|
+
| `/share` | Upload as a secret GitHub gist with a shareable HTML link |
|
|
172
|
+
| `/tools` | Show active, inactive, and missing tools |
|
|
173
|
+
| `/tasks` | Inspect and manage running subagents and background shells |
|
|
174
|
+
| `/trust` | Save the project trust decision for future sessions |
|
|
175
|
+
| `/reload` | Reload keybindings, extensions, skills, prompts, and context files (active custom themes hot-reload on save) |
|
|
155
176
|
| `/hotkeys` | List all keyboard shortcuts |
|
|
156
177
|
| `/changelog` | Show version history |
|
|
157
178
|
| `/exit`, `/quit` | Exit Atomic |
|
|
158
179
|
|
|
159
|
-
|
|
180
|
+
**Bundled extension commands:** `/agents` (browse subagents), `/mcp` (manage MCP servers), `/intercom` (open session Intercom overlay), `/websearch` (open search curator), `/curator` (toggle or configure the search curator workflow), `/search` (browse stored web search results), `/google-account` (show the active Google account for Gemini Web), and `/llama` (manage `llama.cpp` router models).
|
|
181
|
+
|
|
182
|
+
### Keyboard shortcuts
|
|
160
183
|
|
|
161
|
-
Run `/hotkeys` for the full list. Customize in `~/.atomic/agent/keybindings.json` (or under `ATOMIC_CODING_AGENT_DIR`). See [docs/keybindings.md](docs/keybindings.md).
|
|
184
|
+
Run `/hotkeys` for the full list. Customize bindings in `~/.atomic/agent/keybindings.json` (or under `ATOMIC_CODING_AGENT_DIR`). See [docs/keybindings.md](docs/keybindings.md).
|
|
162
185
|
|
|
163
186
|
| Key | Action |
|
|
164
187
|
| --- | --- |
|
|
@@ -167,22 +190,22 @@ Run `/hotkeys` for the full list. Customize in `~/.atomic/agent/keybindings.json
|
|
|
167
190
|
| `Escape` | Abort active work and hold queued messages |
|
|
168
191
|
| `Escape` twice | Open `/tree` |
|
|
169
192
|
| `Ctrl+L` | Open model selector |
|
|
170
|
-
| `Ctrl+P` / `Shift+Ctrl+P` | Cycle scoped models forward / backward |
|
|
193
|
+
| `Ctrl+P` / `Shift+Ctrl+P` (`Alt+P` on Windows/WSL) | Cycle scoped models forward / backward |
|
|
171
194
|
| `Shift+Tab` | Cycle thinking level |
|
|
172
195
|
| `Ctrl+O` | Collapse or expand tool output |
|
|
173
196
|
| `Ctrl+T` | Collapse or expand thinking blocks |
|
|
174
197
|
| `Ctrl+G` | Open the current editor buffer in your external editor |
|
|
175
198
|
|
|
176
|
-
### Message
|
|
199
|
+
### Message queue
|
|
177
200
|
|
|
178
201
|
Send messages while the agent is still working:
|
|
179
202
|
|
|
180
|
-
- **`Enter`** queues a
|
|
181
|
-
- **`Alt+Enter`** queues a
|
|
203
|
+
- **`Enter`** queues a steering message, delivered after the current turn's tool calls finish.
|
|
204
|
+
- **`Alt+Enter`** on macOS/Linux or **`Ctrl+Q`** on Windows and WSL queues a follow-up message, delivered after the agent finishes all work.
|
|
182
205
|
- **`Escape`** or **`Ctrl+C`** aborts active work and pauses queued messages in place. Sending the next regular message resumes held messages once in order. While idle, `Ctrl+C` clears the editor and a second quick press quits without releasing held messages.
|
|
183
|
-
- **`Alt+Up`** pulls queued messages back into the editor instead of resuming them.
|
|
206
|
+
- **`Alt+Up`** on macOS/Linux or **`Alt+Q`** on Windows and WSL pulls queued messages back into the editor instead of resuming them.
|
|
184
207
|
|
|
185
|
-
Configure `steeringMode` and `followUpMode` (`"one-at-a-time"` default, or `"all"`) and `transport` (`"sse"`, `"websocket"`, `"websocket-cached"`, `"auto"`) in [settings](docs/settings.md).
|
|
208
|
+
Configure `steeringMode` and `followUpMode` (`"one-at-a-time"` default, or `"all"`) and `transport` (`"sse"`, `"websocket"`, `"websocket-cached"`, `"auto"`) in [docs/settings.md](docs/settings.md).
|
|
186
209
|
|
|
187
210
|
---
|
|
188
211
|
|
|
@@ -192,7 +215,7 @@ Sessions store an append-only tree of entries (`id` and `parentId`), enabling in
|
|
|
192
215
|
|
|
193
216
|
### Management
|
|
194
217
|
|
|
195
|
-
Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite
|
|
218
|
+
Sessions auto-save per working directory in the default local SQLite store (`~/.atomic/workflows/journal.sqlite`). Legacy `~/.atomic/agent/sessions/` and `~/.pi/agent/sessions/` JSONL files remain readable.
|
|
196
219
|
|
|
197
220
|
```bash
|
|
198
221
|
atomic -c # Continue the most recent session
|
|
@@ -209,29 +232,29 @@ Run `/session` interactively to copy the current session ID for `--session`, `--
|
|
|
209
232
|
|
|
210
233
|
### Branching
|
|
211
234
|
|
|
212
|
-
- **`/tree
|
|
213
|
-
- Type to search, `Ctrl
|
|
214
|
-
- `Ctrl+O` cycles filters
|
|
235
|
+
- **`/tree`:** Jump to any earlier entry and continue on a new branch without creating a new session.
|
|
236
|
+
- Type to search, `Ctrl+Left`/`Ctrl+Right` or `Alt+Left`/`Alt+Right` to fold or jump branches, `Left`/`Right` to page.
|
|
237
|
+
- `Ctrl+O` cycles filters in order: `default`, `no-tools`, `user-only`, `labeled-only`, and `all`.
|
|
215
238
|
- `Shift+L` bookmarks an entry with a label; `Shift+T` toggles label timestamps.
|
|
216
|
-
- **`/fork
|
|
217
|
-
- **`/clone
|
|
218
|
-
- **`--fork <id|prefix
|
|
239
|
+
- **`/fork`:** Pick an earlier user message on the active branch, copy the path up to it into a new session, and load that prompt into the editor.
|
|
240
|
+
- **`/clone`:** Duplicate the full active branch into a new session at the current point.
|
|
241
|
+
- **`--fork <id|prefix>`:** Fork an existing session from the CLI into the current project.
|
|
219
242
|
|
|
220
|
-
<p align="center"><img src="docs/images/tree-view.png" alt="
|
|
243
|
+
<p align="center"><img src="docs/images/tree-view.png" alt="Atomic interactive session tree view displaying branched turns, bookmarks, and filter options" width="600"></p>
|
|
221
244
|
|
|
222
245
|
### Compaction
|
|
223
246
|
|
|
224
247
|
When a session approaches the context limit, compaction clears the active context window without a model call by default. Atomic leaves a recovery pointer telling the agent where earlier history lives and what to recover first (`<keepContext>` spans, requests, and constraints) using `read` and `search`. Setting `compactionModel` (such as `morph/morph-compactor`) replaces the context with that model's summary instead.
|
|
225
248
|
|
|
226
|
-
- **Manual:** `/compact [instructions]` (instructions guide what the agent recovers first).
|
|
249
|
+
- **Manual:** Run `/compact [instructions]` (instructions guide what the agent recovers first).
|
|
227
250
|
- **Automatic:** Enabled by default on context overflow (compacts and retries once) or near the limit. Configure in `/settings` or `settings.json`.
|
|
228
251
|
- **Full history stays intact:** Use `/tree` to revisit earlier entries. See [docs/compaction.md](docs/compaction.md).
|
|
229
252
|
|
|
230
|
-
Extensions can hide or replace an earlier message for future model turns using `context_edit` without altering raw history or usage records
|
|
253
|
+
Extensions can hide or replace an earlier message for future model turns using `context_edit` without altering raw history or usage records:
|
|
231
254
|
|
|
232
255
|
```typescript
|
|
233
|
-
const assistantId = sessionManager.appendMessage(partialAssistant);
|
|
234
|
-
sessionManager.appendContextEdit(assistantId, null); // Omitted from model context, kept in history.
|
|
256
|
+
const assistantId = await sessionManager.appendMessage(partialAssistant);
|
|
257
|
+
await sessionManager.appendContextEdit(assistantId, null); // Omitted from model context, kept in history.
|
|
235
258
|
```
|
|
236
259
|
|
|
237
260
|
---
|
|
@@ -247,21 +270,33 @@ Use `/settings` interactively, or edit JSON files directly:
|
|
|
247
270
|
|
|
248
271
|
See [docs/settings.md](docs/settings.md) for every option and default.
|
|
249
272
|
|
|
273
|
+
### Model scoping with enabledModels
|
|
274
|
+
|
|
275
|
+
Set `enabledModels` in `settings.json` (or pass `--models <patterns>` on the CLI) to limit the models cycled with `Ctrl+P` and restrict which models subagents can choose.
|
|
276
|
+
|
|
277
|
+
- **Exact matches:** `provider/model-id` (for example `anthropic/claude-sonnet-4-6`) matches that model directly, case-insensitively.
|
|
278
|
+
- **Glob patterns:** Entries containing `*`, `?`, or `[...]` match against both `provider/id` and the bare model ID (for example `anthropic/claude-*` or `*:high`).
|
|
279
|
+
- **Fuzzy matching:** Entries without glob characters that do not match an exact ID fall back to substring matching across available models.
|
|
280
|
+
- **Thinking suffixes:** Append `:off`, `:minimal`, `:low`, `:medium`, `:high`, `:xhigh`, or `:max` (case-insensitive) to pin a thinking level for that entry.
|
|
281
|
+
- **Interactive behavior:** Saving selections in `/scoped-models` writes exact `provider/id` entries. Picking an out-of-scope model with `/model` automatically appends it to global `enabledModels`.
|
|
282
|
+
|
|
283
|
+
See [docs/settings.md](docs/settings.md) for full precedence, deduplication, and `fallbackModels` details.
|
|
284
|
+
|
|
250
285
|
### Telemetry and update checks
|
|
251
286
|
|
|
252
287
|
Atomic runs two independent startup network checks:
|
|
253
288
|
|
|
254
289
|
- **Update check:** Checks for a newer Atomic release. Disable with `ATOMIC_SKIP_VERSION_CHECK=1` (legacy `PI_SKIP_VERSION_CHECK=1`).
|
|
255
|
-
- **Version-adoption telemetry:** Measures whether releases reach real interactive launches and which versions stay in use. The metric is version-adoption pings
|
|
290
|
+
- **Version-adoption telemetry:** Measures whether releases reach real interactive launches and which versions stay in use. The metric is version-adoption pings and first-interactive-launch pings, not installs, users, MAU, or retention. Repeated eligible launches on several machines overcount; opt-outs, offline mode, and dropped best-effort requests undercount. Atomic sends one bodyless `GET` request to `https://atomic-version-adoption.bastani-atomic.workers.dev/v1/version-adoption?version=<version>` with the standard `atomic/<version> (<platform>; <runtime>; <arch>)` User-Agent (no UUID, cookie, auth header, or user data).
|
|
256
291
|
- **When it fires:** Interactive mode only, and only on the first launch with fresh settings or the first launch after upgrading to a version with changelog entries. Never on every launch, npm install, reinstall keeping settings, or `-p`/RPC modes.
|
|
257
|
-
- **What is stored:** Atomic stores only UTC date, version, and an aggregate count
|
|
258
|
-
- **Opt out:** Set `"enableInstallTelemetry": false` in `settings.json` or `ATOMIC_TELEMETRY=0` (`PI_TELEMETRY=0`). Set `ATOMIC_TELEMETRY=1`/`true`/`yes` to force on.
|
|
292
|
+
- **What is stored:** Atomic stores only UTC date, version, and an aggregate count. Cloudflare, the hosting provider, processes transient connection metadata (IP, TLS) to serve the request.
|
|
293
|
+
- **Opt out:** Set `"enableInstallTelemetry": false` in `settings.json` or `ATOMIC_TELEMETRY=0` (`PI_TELEMETRY=0`). Set `ATOMIC_TELEMETRY=1`/`true`/`yes` to force on. This setting does not affect update checks.
|
|
259
294
|
|
|
260
|
-
Pass `--offline` or set `ATOMIC_OFFLINE=1` (`PI_OFFLINE=1`) to disable all startup network calls (update checks, package update checks, and version-adoption telemetry).
|
|
295
|
+
Pass `--offline` or set `ATOMIC_OFFLINE=1` (`PI_OFFLINE=1`) to disable all startup network calls (update checks, package update checks, and version-adoption telemetry). Setting `ATOMIC_OFFLINE=0` or `false` keeps Atomic online.
|
|
261
296
|
|
|
262
297
|
---
|
|
263
298
|
|
|
264
|
-
## Context
|
|
299
|
+
## Context files
|
|
265
300
|
|
|
266
301
|
At startup, Atomic loads `AGENTS.override.md`, `AGENTS.md`, or `CLAUDE.md` from:
|
|
267
302
|
|
|
@@ -269,49 +304,55 @@ At startup, Atomic loads `AGENTS.override.md`, `AGENTS.md`, or `CLAUDE.md` from:
|
|
|
269
304
|
2. Parent directories walking down to the current directory
|
|
270
305
|
3. The current directory
|
|
271
306
|
|
|
272
|
-
Within a directory, `AGENTS.override.md` replaces `AGENTS.md` and `CLAUDE.md
|
|
307
|
+
Within a directory, `AGENTS.override.md` replaces `AGENTS.md` and `CLAUDE.md`. Files from different directories concatenate. Disable with `--no-context-files` (`-nc`).
|
|
273
308
|
|
|
274
|
-
### System
|
|
309
|
+
### System prompt
|
|
275
310
|
|
|
276
|
-
Replace the default system prompt with `.atomic/SYSTEM.md` (project) or `~/.atomic/agent/SYSTEM.md` (global)
|
|
311
|
+
Replace the default system prompt with `.atomic/SYSTEM.md` (project) or `~/.atomic/agent/SYSTEM.md` (global). Append to it with `APPEND_SYSTEM.md` (legacy `.pi/` paths also work).
|
|
277
312
|
|
|
278
313
|
---
|
|
279
314
|
|
|
280
315
|
## Customization
|
|
281
316
|
|
|
282
|
-
### Prompt
|
|
317
|
+
### Prompt templates
|
|
283
318
|
|
|
284
|
-
Save reusable Markdown prompts in `~/.atomic/agent/prompts/`, `.atomic/prompts/` (legacy `.pi/` paths work), or an [Atomic package](#atomic-packages). Expand them with `/<name
|
|
319
|
+
Save reusable Markdown prompts in `~/.atomic/agent/prompts/`, `.atomic/prompts/` (legacy `.pi/` paths work), or an [Atomic package](#atomic-packages). Expand them with `/<name>` using positional arguments (`$1`, `$2`, `$@`, `$ARGUMENTS`, or defaults like `${1:-correctness}`):
|
|
285
320
|
|
|
286
321
|
```markdown
|
|
287
322
|
<!-- ~/.atomic/agent/prompts/review.md -->
|
|
288
323
|
Review this code for bugs, security issues, and performance problems.
|
|
289
|
-
Focus on: {
|
|
324
|
+
Focus on: ${1:-correctness}
|
|
325
|
+
Additional context: $ARGUMENTS
|
|
290
326
|
```
|
|
291
327
|
|
|
292
328
|
See [docs/prompt-templates.md](docs/prompt-templates.md).
|
|
293
329
|
|
|
294
330
|
### Skills
|
|
295
331
|
|
|
296
|
-
|
|
332
|
+
Skills are on-demand capability packages following the [Agent Skills standard](https://agentskills.io). Trigger a skill with `/skill:<name>` or let the agent load it automatically from its description. Every `SKILL.md` requires YAML frontmatter with `name` and a non-empty `description`:
|
|
297
333
|
|
|
298
334
|
```markdown
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
Use this skill when the user asks about X.
|
|
335
|
+
---
|
|
336
|
+
name: my-skill
|
|
337
|
+
description: Use this skill when the user asks about X.
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
# My skill
|
|
302
341
|
|
|
303
342
|
## Steps
|
|
304
343
|
1. Do this
|
|
305
344
|
2. Then that
|
|
306
345
|
```
|
|
307
346
|
|
|
308
|
-
|
|
347
|
+
Skills are discovered from `~/.atomic/agent/skills/`, `~/.agents/skills/`, `.atomic/skills/`, `.agents/skills/` (walking up from `cwd`), legacy `.pi/skills/`, and [Atomic packages](#atomic-packages). See [docs/skills.md](docs/skills.md).
|
|
309
348
|
|
|
310
349
|
### Extensions
|
|
311
350
|
|
|
312
|
-
TypeScript modules that register tools, commands, keybindings, event handlers, and custom TUI components:
|
|
351
|
+
Extensions are TypeScript modules that register tools, commands, keybindings, event handlers, and custom TUI components:
|
|
313
352
|
|
|
314
353
|
```typescript
|
|
354
|
+
import type { ExtensionAPI } from "@bastani/atomic";
|
|
355
|
+
|
|
315
356
|
export default function (atomic: ExtensionAPI) {
|
|
316
357
|
atomic.registerTool({ name: "deploy", ... });
|
|
317
358
|
atomic.registerCommand("stats", { ... });
|
|
@@ -319,42 +360,19 @@ export default function (atomic: ExtensionAPI) {
|
|
|
319
360
|
}
|
|
320
361
|
```
|
|
321
362
|
|
|
322
|
-
The default export may be `async`; Atomic awaits it before continuing startup (for example to fetch a remote model list before `atomic.registerProvider()`). The factory parameter can have any name; older extensions and examples call it `pi`.
|
|
363
|
+
The default export may be `async`; Atomic awaits it before continuing startup (for example, to fetch a remote model list before calling `atomic.registerProvider()`). The factory parameter can have any name; older extensions and examples call it `pi`.
|
|
323
364
|
|
|
324
|
-
`turn_end` and `agent_before_settle` handlers can append structural entries and request a one-shot continuation (
|
|
325
|
-
|
|
326
|
-
```typescript
|
|
327
|
-
let replacedResponse = false;
|
|
328
|
-
atomic.on("turn_end", (event) => {
|
|
329
|
-
if (replacedResponse || event.outcome !== "completed" || event.toolResults.length > 0) return;
|
|
330
|
-
replacedResponse = true;
|
|
331
|
-
return {
|
|
332
|
-
entries: [
|
|
333
|
-
...event.entries,
|
|
334
|
-
{ type: "context_edit", targetId: event.messageEntryId, replacement: null },
|
|
335
|
-
{
|
|
336
|
-
type: "custom_message",
|
|
337
|
-
customType: "replacement-instruction",
|
|
338
|
-
content: "Answer again using the persisted user request.",
|
|
339
|
-
display: false,
|
|
340
|
-
},
|
|
341
|
-
],
|
|
342
|
-
continue: true,
|
|
343
|
-
};
|
|
344
|
-
});
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
Always guard `continue: true` so it cannot loop indefinitely. Use `agent_before_settle` for final checks after retries, compaction, and queued input finish. See [docs/extensions/events.md](docs/extensions/events.md#agent_start-/-agent_end-/-agent_before_settle-/-agent_settled).
|
|
365
|
+
`turn_end` and `agent_before_settle` handlers can append structural entries and request a one-shot continuation (always guard `continue: true` so it cannot loop indefinitely; error and aborted turns always exit). See [Extension events](docs/extensions/events.md#agent_start--agent_end--agent_before_settle--agent_settled).
|
|
348
366
|
|
|
349
367
|
Place extensions in `~/.atomic/agent/extensions/`, `.atomic/extensions/` (legacy `.pi/` paths work), or an [Atomic package](#atomic-packages). See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).
|
|
350
368
|
|
|
351
369
|
### Themes
|
|
352
370
|
|
|
353
|
-
Built-in themes: `dark`, `light`, `catppuccin-frappe`, `catppuccin-latte`, `catppuccin-macchiato`, and `catppuccin-mocha`. Active custom themes hot-reload on save.
|
|
371
|
+
Built-in themes: `dark`, `light`, `catppuccin-frappe`, `catppuccin-latte`, `catppuccin-macchiato`, and `catppuccin-mocha`. Active custom themes watch their file path and hot-reload automatically on save (including project, package, `--theme`, and renamed themes).
|
|
354
372
|
|
|
355
373
|
Place custom themes in `~/.atomic/agent/themes/`, `.atomic/themes/` (legacy `.pi/` paths work), or an [Atomic package](#atomic-packages). See [docs/themes.md](docs/themes.md).
|
|
356
374
|
|
|
357
|
-
### Atomic
|
|
375
|
+
### Atomic packages
|
|
358
376
|
|
|
359
377
|
Share extensions, skills, prompts, themes, subagent definitions, MCP servers, and storage adapters via npm or git. Browse packages on [npmjs.com](https://www.npmjs.com/search?q=keywords%3Aatomic-package) or [Discord](https://discord.com/channels/1456806362351669492/1457744485428629628).
|
|
360
378
|
|
|
@@ -376,12 +394,12 @@ atomic update --extensions # Update packages only
|
|
|
376
394
|
atomic update --models # Force-refresh model catalogs
|
|
377
395
|
atomic update --self --force # Reinstall Atomic even if current
|
|
378
396
|
atomic update npm:@foo/atomic-tools # Update one package
|
|
379
|
-
atomic config
|
|
397
|
+
atomic config [-l] # Enable/disable resources
|
|
380
398
|
```
|
|
381
399
|
|
|
382
400
|
- Pass `-l` for project-local installs (`.atomic/git/`, `.atomic/npm/`; global git installs go to `~/.atomic/agent/git/`).
|
|
383
|
-
- Pinned `@ref` git packages are skipped by `atomic update --extensions`
|
|
384
|
-
- Git packages
|
|
401
|
+
- Pinned `@ref` git packages are skipped by `atomic update --extensions` and `--all`. Run `atomic install git:host/user/repo@new-ref` to move to a new ref.
|
|
402
|
+
- Git packages install runtime dependencies automatically: `npm` runs `install --omit=dev --legacy-peer-deps --no-audit --no-fund`, `bun` runs `install --omit=dev --omit=peer`, and `pnpm` runs `install --prod ...`. Set `npmCommand` in `settings.json` (for example `["mise", "exec", "node@20", "--", "npm"]`) to wrap a package manager; Atomic detects the underlying `npm`, `bun`, or `pnpm` command and only falls back to plain `install` for unrecognized package managers.
|
|
385
403
|
|
|
386
404
|
Declare resources under the `atomic` key in `package.json` (legacy `pi` key is still accepted), or rely on convention directories (`extensions/`, `skills/`, `prompts/`, `themes/`):
|
|
387
405
|
|
|
@@ -402,7 +420,7 @@ See [docs/packages.md](docs/packages.md).
|
|
|
402
420
|
|
|
403
421
|
---
|
|
404
422
|
|
|
405
|
-
## Programmatic
|
|
423
|
+
## Programmatic usage
|
|
406
424
|
|
|
407
425
|
### SDK
|
|
408
426
|
|
|
@@ -419,7 +437,7 @@ await session.prompt("What files are in the current directory?");
|
|
|
419
437
|
|
|
420
438
|
For multi-session runtime replacement, use `createAgentSessionRuntime()` and `AgentSessionRuntime`. See [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).
|
|
421
439
|
|
|
422
|
-
### RPC
|
|
440
|
+
### RPC mode
|
|
423
441
|
|
|
424
442
|
Integrate from any language over stdin/stdout:
|
|
425
443
|
|
|
@@ -427,7 +445,7 @@ Integrate from any language over stdin/stdout:
|
|
|
427
445
|
atomic --mode rpc
|
|
428
446
|
```
|
|
429
447
|
|
|
430
|
-
RPC uses strict LF-delimited JSONL framing. Split records on `\n` only
|
|
448
|
+
RPC uses strict LF-delimited JSONL framing. Split records on `\n` only, and avoid line readers like Node `readline` that also split on Unicode line separators inside JSON payloads. See [docs/rpc.md](docs/rpc.md).
|
|
431
449
|
|
|
432
450
|
---
|
|
433
451
|
|
|
@@ -435,22 +453,23 @@ RPC uses strict LF-delimited JSONL framing. Split records on `\n` only—avoid l
|
|
|
435
453
|
|
|
436
454
|
Atomic pairs a small, extensible core with bundled first-party integrations for common engineering workflows:
|
|
437
455
|
|
|
438
|
-
- **Extensible core:** Swap tools, UI components, providers, and
|
|
456
|
+
- **Extensible core:** Swap tools, UI components, providers, and procedures through [extensions](#extensions), [skills](#skills), and [Atomic packages](#atomic-packages).
|
|
439
457
|
- **Bundled integrations:** Subagents, MCP, web access, and Intercom ship as packaged extensions so they remain configurable and replaceable.
|
|
440
458
|
- **Explicit security:** Control trust per project with `/trust`, isolate execution in containers, or add custom confirmation hooks via extensions.
|
|
441
459
|
- **Composable task execution:** Combine codemode scripts, subagents, background tasks (`/tasks`), and file-based todos rather than locking into one rigid pipeline.
|
|
442
460
|
|
|
443
461
|
---
|
|
444
462
|
|
|
445
|
-
## CLI
|
|
463
|
+
## CLI reference
|
|
446
464
|
|
|
447
465
|
```bash
|
|
448
466
|
atomic [options] [--] [@files...] [messages...]
|
|
449
467
|
```
|
|
450
468
|
|
|
451
|
-
###
|
|
469
|
+
### Subcommands
|
|
452
470
|
|
|
453
471
|
```bash
|
|
472
|
+
# Packages and resources
|
|
454
473
|
atomic install <source> [-l] # Install package (-l for project-local)
|
|
455
474
|
atomic remove <source> [-l] # Remove package (alias: uninstall)
|
|
456
475
|
atomic update [source|self|atomic] # Update Atomic or one package
|
|
@@ -461,31 +480,43 @@ atomic update --self # Update Atomic only
|
|
|
461
480
|
atomic update --self --force # Reinstall Atomic even if current
|
|
462
481
|
atomic update --extension <src> # Update one package
|
|
463
482
|
atomic list # List installed packages
|
|
464
|
-
atomic config
|
|
483
|
+
atomic config [-l] # Enable/disable package resources
|
|
484
|
+
|
|
485
|
+
# Credentials, integrations, and storage
|
|
486
|
+
atomic auth <login|logout|check|print-api-key|print-bearer-token>
|
|
487
|
+
atomic mcp <add|remove|list|login|logout>
|
|
488
|
+
atomic storage <status|join|migrate|move-snapshot-chunks|search-session|export|import>
|
|
489
|
+
atomic team <join|status|leave>
|
|
490
|
+
atomic intercom <status|restart|upgrade>
|
|
491
|
+
atomic blueprint <cache-key|prebuild>
|
|
465
492
|
```
|
|
466
493
|
|
|
494
|
+
Run `atomic <command> --help` for full subcommand options, or see [docs/reference/cli.md](docs/reference/cli.md).
|
|
495
|
+
|
|
467
496
|
### Modes
|
|
468
497
|
|
|
469
498
|
| Flag | Description |
|
|
470
499
|
| --- | --- |
|
|
471
500
|
| *(default)* | Interactive fullscreen TUI |
|
|
472
|
-
| `-p`, `--print` | Print response and exit (
|
|
501
|
+
| `-p`, `--print` | Print response and exit (merges piped stdin separated by a newline from prompt text) |
|
|
473
502
|
| `--mode json` | Stream events as JSON lines ([docs/json.md](docs/json.md)) |
|
|
474
503
|
| `--mode rpc` | JSON-RPC over stdin/stdout ([docs/rpc.md](docs/rpc.md)) |
|
|
475
504
|
| `--export <in> [out]` | Export a session to HTML |
|
|
476
505
|
|
|
477
|
-
### Model
|
|
506
|
+
### Model options
|
|
478
507
|
|
|
479
508
|
| Option | Description |
|
|
480
509
|
| --- | --- |
|
|
481
|
-
| `--provider <name>` |
|
|
482
|
-
| `--model <pattern>` | Model ID or pattern (supports `provider/id` and `:<thinking>`) |
|
|
510
|
+
| `--provider <name>` | Provider to search for `--model` (requires `--model`) |
|
|
511
|
+
| `--model <pattern>` | Model ID or pattern (supports `provider/id` and case-insensitive `:<thinking>`) |
|
|
483
512
|
| `--api-key <key>` | API key override |
|
|
484
513
|
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max` |
|
|
485
|
-
| `--models <patterns>` | Comma-separated patterns for `Ctrl+P` cycling |
|
|
514
|
+
| `--models <patterns>` | Comma-separated patterns for `Ctrl+P` cycling (globs and fuzzy matching) |
|
|
515
|
+
| `--fallback-models <models>` | Comma-separated `provider/model[:thinking]` IDs to fall back to in order for this run |
|
|
516
|
+
| `--no-fallback` | Disable automatic model fallback for this run |
|
|
486
517
|
| `--list-models [search]` | List available models |
|
|
487
518
|
|
|
488
|
-
### Session
|
|
519
|
+
### Session and storage options
|
|
489
520
|
|
|
490
521
|
| Option | Description |
|
|
491
522
|
| --- | --- |
|
|
@@ -495,59 +526,66 @@ atomic config # Enable/disable package resources
|
|
|
495
526
|
| `--import <file>` | Import a format-4 JSONL export into storage |
|
|
496
527
|
| `--session-id <id>` | Open or create an exact project session ID |
|
|
497
528
|
| `--fork <id\|prefix>` | Fork by exact ID or unique 8-hex UUID prefix |
|
|
498
|
-
| `--session-dir <dir>` |
|
|
529
|
+
| `--session-dir <dir>` | Select JSONL session storage and lookup directory |
|
|
530
|
+
| `--session-store <path>` | Select a SQLite session database |
|
|
531
|
+
| `--session-prefix <prefix>` | Table prefix for `--session-store` (default: empty) |
|
|
532
|
+
| `--storage <json>` | Shared storage selection JSON for this process (never saved) |
|
|
533
|
+
| `--storage-file <path>` | Read the `--storage` JSON selection from a file |
|
|
499
534
|
| `--name <name>`, `-n <name>` | Set session display name |
|
|
500
535
|
| `--no-session` | No resumable session ([released history may use disk](docs/sessions.md)) |
|
|
501
536
|
|
|
502
|
-
### Tool
|
|
537
|
+
### Tool options
|
|
503
538
|
|
|
504
539
|
| Option | Description |
|
|
505
540
|
| --- | --- |
|
|
506
|
-
| `--tools <list>`, `-t <list>` |
|
|
507
|
-
| `--exclude-tools <list>`, `-xt <list>` |
|
|
508
|
-
| `--no-builtin-tools`, `-nbt` | Disable built-in tools while keeping extension
|
|
509
|
-
| `--no-tools`, `-nt` | Disable
|
|
541
|
+
| `--tools <list>`, `-t <list>` | Comma-separated allowlist of tool names or `*` patterns (built-in, extension, custom). Keeps MCP tools unless an entry starts with `mcp__`. Only `+name`/`-name` entries modify the default selection. Intercom follows the allowlist and exclusions. |
|
|
542
|
+
| `--exclude-tools <list>`, `-xt <list>` | Comma-separated denylist of tool names or `*` patterns, including MCP tools and Intercom |
|
|
543
|
+
| `--no-builtin-tools`, `-nbt` | Disable built-in tools by default while keeping extension and custom tools enabled |
|
|
544
|
+
| `--no-tools`, `-nt` | Disable every tool, including Intercom, even when `--tools` is also passed |
|
|
510
545
|
|
|
511
546
|
Default built-in tools: `read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `codemode`, plus `powershell` on native Windows when available. See [docs/tools.md](docs/tools.md).
|
|
512
547
|
|
|
513
|
-
### Project
|
|
548
|
+
### Project trust options
|
|
514
549
|
|
|
515
550
|
| Option | Description |
|
|
516
551
|
| --- | --- |
|
|
517
552
|
| `--approve`, `-a` | Trust project-local resources for this run |
|
|
518
553
|
| `--no-approve`, `-na` | Ignore project-local resources for this run |
|
|
519
554
|
|
|
520
|
-
Project trust gates `.atomic`/`.pi` resources, project settings, project context files, and project `.agents/skills`. Manage saved decisions with `/trust
|
|
555
|
+
Project trust gates `.atomic`/`.pi` resources, project settings, project context files, and project `.agents/skills`. Manage saved decisions with `/trust`. See [docs/security.md](docs/security.md).
|
|
521
556
|
|
|
522
|
-
### Resource
|
|
557
|
+
### Resource options
|
|
523
558
|
|
|
524
559
|
| Option | Description |
|
|
525
560
|
| --- | --- |
|
|
526
561
|
| `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |
|
|
527
|
-
| `--no-extensions`, `-ne` | Disable optional extension discovery (Intercom stays loaded) |
|
|
562
|
+
| `--no-extensions`, `-ne` | Disable optional extension discovery (bundled Intercom stays loaded) |
|
|
563
|
+
| `--no-mcp` | Disable built-in MCP support for this run |
|
|
528
564
|
| `--skill <path>` | Load skill (repeatable) |
|
|
529
565
|
| `--no-skills`, `-ns` | Disable skill discovery |
|
|
530
566
|
| `--prompt-template <path>` | Load prompt template (repeatable) |
|
|
531
567
|
| `--no-prompt-templates`, `-np` | Disable prompt template discovery |
|
|
532
568
|
| `--theme <path>` | Load theme (repeatable) |
|
|
569
|
+
| `--use-theme <name[/name]>` | Set the interactive theme for this run without saving it |
|
|
533
570
|
| `--no-themes` | Disable theme discovery |
|
|
534
571
|
| `--no-context-files`, `-nc` | Disable context-file loading |
|
|
535
572
|
|
|
536
|
-
Combine `--no-*` with explicit flags to override `settings.json` (for example `--no-extensions -e ./my-ext.ts`).
|
|
573
|
+
Combine `--no-*` with explicit flags to override `settings.json` (for example, `--no-extensions -e ./my-ext.ts`).
|
|
537
574
|
|
|
538
|
-
### Other
|
|
575
|
+
### Other options
|
|
539
576
|
|
|
540
577
|
| Option | Description |
|
|
541
578
|
| --- | --- |
|
|
542
579
|
| `--system-prompt <text>` | Replace default system prompt (context files and skills still append) |
|
|
543
|
-
| `--append-system-prompt <text>` | Append to system prompt |
|
|
580
|
+
| `--append-system-prompt <text>` | Append text or file contents to the system prompt (repeatable) |
|
|
544
581
|
| `--offline` | Disable startup network operations (update checks, package updates, telemetry) |
|
|
582
|
+
| `--debug` | Turn on debug mode for this run (same as `ATOMIC_DEBUG=1`) |
|
|
545
583
|
| `--verbose` | Force verbose startup |
|
|
546
584
|
| `--` | Stop option parsing; remaining args are prompts or `@file` inputs |
|
|
547
585
|
| `-h`, `--help` | Show help |
|
|
548
586
|
| `-v`, `--version` | Show version |
|
|
549
587
|
|
|
550
|
-
### File
|
|
588
|
+
### File arguments
|
|
551
589
|
|
|
552
590
|
Prefix files with `@` to attach them to the prompt:
|
|
553
591
|
|
|
@@ -571,28 +609,41 @@ atomic --tools read,search,find -p "Review the code" # Read-only mode
|
|
|
571
609
|
atomic --thinking high "Solve this complex problem" # Explicit thinking level
|
|
572
610
|
```
|
|
573
611
|
|
|
574
|
-
### Environment
|
|
612
|
+
### Environment variables
|
|
613
|
+
|
|
614
|
+
When both an `ATOMIC_*` variable and its legacy `PI_*` alias are set, the `ATOMIC_*` variable takes precedence. See [docs/environment-variables.md](docs/environment-variables.md) for the complete reference.
|
|
575
615
|
|
|
576
616
|
| Variable | Description |
|
|
577
617
|
| --- | --- |
|
|
578
|
-
| `AI_AGENT` | Set to `atomic` by CLI, RPC, binary entry points, and Atomic-owned child processes so tooling can identify them (caller
|
|
618
|
+
| `AI_AGENT` | Set to `atomic` by CLI, RPC, binary entry points, and Atomic-owned child processes so tooling can identify them (the caller environment object is not mutated). |
|
|
579
619
|
| `ATOMIC_CODING_AGENT_DIR` | Override config directory (default `~/.atomic/agent`; legacy `PI_CODING_AGENT_DIR`). |
|
|
580
|
-
| `ATOMIC_CODING_AGENT_SESSION_DIR` |
|
|
620
|
+
| `ATOMIC_CODING_AGENT_SESSION_DIR` | Non-empty value selects a JSONL session directory (overridden by `--session-dir` and `--no-session`; no legacy `PI_*` alias). |
|
|
621
|
+
| `ATOMIC_STORAGE` | Shared storage selection JSON for sessions and Intercom. |
|
|
622
|
+
| `ATOMIC_SESSIONS_STORAGE` | Session-only storage selection JSON (conflicts with `ATOMIC_CODING_AGENT_SESSION_DIR`). |
|
|
623
|
+
| `ATOMIC_PROFILE` | Set to `ci` to select the team database from `ATOMIC_TEAM_*` without writing settings. |
|
|
624
|
+
| `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX` | Team database settings used with `ATOMIC_PROFILE=ci`. |
|
|
581
625
|
| `ATOMIC_PACKAGE_DIR` | Override package directory (for Nix/Guix store paths; legacy `PI_PACKAGE_DIR`). |
|
|
582
|
-
| `ATOMIC_OFFLINE` |
|
|
626
|
+
| `ATOMIC_OFFLINE` | Set to `1`, `true`, or `yes` to disable startup network calls (`0`/`false` stays online; legacy `PI_OFFLINE`). |
|
|
583
627
|
| `ATOMIC_SKIP_VERSION_CHECK` | Skip startup version check (legacy `PI_SKIP_VERSION_CHECK`). |
|
|
628
|
+
| `ATOMIC_SELF_UPDATE_COMMAND` | Custom command for `atomic update` self-updates (legacy `PI_SELF_UPDATE_COMMAND`). |
|
|
584
629
|
| `ATOMIC_TELEMETRY` | Override version-adoption pings (`1`/`true`/`yes` or `0`/`false`/`no`; legacy `PI_TELEMETRY`). |
|
|
630
|
+
| `ATOMIC_DEBUG` | Set to `1` to enable debug mode for this run (legacy `PI_DEBUG`). |
|
|
585
631
|
| `ATOMIC_REDUCED_MOTION` | Set to `1` to skip startup animations and use a static working indicator. |
|
|
586
|
-
| `ATOMIC_NO_PTY` | Set to `1` to disable PTY allocation for bash commands (legacy `PI_NO_PTY`). |
|
|
632
|
+
| `ATOMIC_NO_PTY` | Set to `1` to disable PTY allocation for `bash` and `powershell` commands (legacy `PI_NO_PTY`). |
|
|
633
|
+
| `ATOMIC_CACHE_RETENTION` | Provider prompt-cache retention (`long` default, `short`, or `none`; legacy `PI_CACHE_RETENTION`). |
|
|
634
|
+
| `ATOMIC_OAUTH_CALLBACK_HOST` | Bind host for the local OAuth callback server during `/login` (default `127.0.0.1`; legacy `PI_OAUTH_CALLBACK_HOST`). |
|
|
635
|
+
| `ATOMIC_SHARE_VIEWER_URL` | Base URL for `/share` links (default `https://bastani.ai/session/`; legacy `PI_SHARE_VIEWER_URL`). |
|
|
636
|
+
| `ATOMIC_STDIN_TIMEOUT_MS` | Print-mode wait in milliseconds for piped stdin before starting (default `2000`; `0` waits until EOF; legacy `PI_STDIN_TIMEOUT_MS`). |
|
|
637
|
+
| `ATOMIC_TOOL_ABORT_GRACE_MS` | Grace period in milliseconds for an interrupted tool call before moving on (default `10000`). |
|
|
638
|
+
| `ATOMIC_HEAP_MB` | Node heap limit in MiB for the agent process (`0` keeps Node's default; legacy `PI_HEAP_MB`). |
|
|
587
639
|
| `NODE_COMPILE_CACHE` | Override Node's compile-cache directory (`NODE_DISABLE_COMPILE_CACHE=1` disables it). |
|
|
588
|
-
| `PI_CACHE_RETENTION` | Provider prompt-cache retention knob (`long` where supported; no `ATOMIC_*` alias). |
|
|
589
640
|
| `VISUAL`, `EDITOR` | External editor opened by `Ctrl+G`. |
|
|
590
641
|
|
|
591
642
|
Shell commands (`bash` and `powershell`) receive an execution-time session snapshot in `ATOMIC_SESSION_ID`, `ATOMIC_PROVIDER`, `ATOMIC_MODEL`, and `ATOMIC_REASONING_LEVEL` (with matching `PI_*` aliases). Session file paths are not exposed, and other environment variables pass through unchanged.
|
|
592
643
|
|
|
593
644
|
---
|
|
594
645
|
|
|
595
|
-
## Contributing
|
|
646
|
+
## Contributing and development
|
|
596
647
|
|
|
597
648
|
See [CONTRIBUTING.md](https://github.com/bastani-inc/atomic/blob/main/CONTRIBUTING.md) and [docs/development.md](docs/development.md).
|
|
598
649
|
|
|
@@ -600,8 +651,13 @@ See [CONTRIBUTING.md](https://github.com/bastani-inc/atomic/blob/main/CONTRIBUTI
|
|
|
600
651
|
|
|
601
652
|
MIT
|
|
602
653
|
|
|
603
|
-
## See
|
|
654
|
+
## See also
|
|
604
655
|
|
|
605
|
-
- [@bastani/atomic-ai](https://www.npmjs.com/package/@bastani/atomic-ai):
|
|
606
|
-
- [@bastani/atomic-agent-core](https://www.npmjs.com/package/@bastani/atomic-agent-core): Agent
|
|
607
|
-
- [@bastani/atomic-tui](https://www.npmjs.com/package/@bastani/atomic-tui):
|
|
656
|
+
- [@bastani/atomic-ai](https://www.npmjs.com/package/@bastani/atomic-ai): Unified LLM client and provider catalog
|
|
657
|
+
- [@bastani/atomic-agent-core](https://www.npmjs.com/package/@bastani/atomic-agent-core): Agent loop with tool execution, streaming, and hooks
|
|
658
|
+
- [@bastani/atomic-tui](https://www.npmjs.com/package/@bastani/atomic-tui): Differential terminal UI library
|
|
659
|
+
- [@bastani/atomic-codemode](https://www.npmjs.com/package/@bastani/atomic-codemode): Sandboxed JavaScript execution for tool scripting
|
|
660
|
+
- [@bastani/atomic-schema](https://www.npmjs.com/package/@bastani/atomic-schema): TypeScript-first JSON Schema builder and validator
|
|
661
|
+
- [@bastani/atomic-telemetry](https://www.npmjs.com/package/@bastani/atomic-telemetry): Typed OpenTelemetry span helpers and renderers
|
|
662
|
+
- [@bastani/atomic-storage-libsql](https://www.npmjs.com/package/@bastani/atomic-storage-libsql): Optional Turso / libSQL storage adapter
|
|
663
|
+
- [@bastani/atomic-storage-postgres](https://www.npmjs.com/package/@bastani/atomic-storage-postgres): Optional PostgreSQL storage adapter
|