@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
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
3
|
-
|
|
2
|
+
title: "Run your first session"
|
|
3
|
+
sidebarTitle: "First session"
|
|
4
|
+
description: "Start Atomic in a repository, run your first task, inspect background work, and verify saved sessions."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# First session
|
|
7
|
-
|
|
8
7
|
**Outcome:** You complete one interactive task and verify its saved session.
|
|
9
8
|
|
|
10
|
-
**Prerequisites:** [
|
|
9
|
+
**Prerequisites:** [Authenticate a provider](/getting-started/authentication) is complete.
|
|
11
10
|
|
|
12
|
-
##
|
|
11
|
+
## Start Atomic
|
|
13
12
|
|
|
14
13
|
Start Atomic in a repository directory:
|
|
15
14
|
|
|
@@ -18,7 +17,7 @@ cd /path/to/project
|
|
|
18
17
|
atomic
|
|
19
18
|
```
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
The first time you open an empty interactive session with no initial prompt on the command line, Atomic displays a one-time overview above the input box (after any What's New notes). Returning users skip it automatically; stored credentials alone do not skip it.
|
|
22
21
|
|
|
23
22
|
The prompt is ready immediately. Type a request, run `/login` to connect a provider, or run `/agents` to browse available subagents.
|
|
24
23
|
|
|
@@ -30,7 +29,7 @@ Run a bounded task in a repository you know:
|
|
|
30
29
|
List the top-level directories in this repository and say what each one holds.
|
|
31
30
|
```
|
|
32
31
|
|
|
33
|
-
Expected result: Atomic streams a response
|
|
32
|
+
Expected result: Atomic streams a response and calls `read`, `find`, or `bash` at least once, showing each tool call inline as it runs. It finishes with a summary naming directories that exist in your checkout. If it names nothing from your repository, quit, `cd` into the repository, and start Atomic again.
|
|
34
33
|
|
|
35
34
|
Exit Atomic (`/exit`) and verify the session was saved:
|
|
36
35
|
|
|
@@ -40,7 +39,7 @@ atomic -r
|
|
|
40
39
|
|
|
41
40
|
Expected result: the session picker lists the run you just finished. Run `atomic -c` to resume it.
|
|
42
41
|
|
|
43
|
-
##
|
|
42
|
+
## Explore built-in capabilities
|
|
44
43
|
|
|
45
44
|
Once your first session works, reach for these capabilities as needed.
|
|
46
45
|
|
|
@@ -55,11 +54,11 @@ Ask one subagent to trace the retry logic and another to find its tests. Compare
|
|
|
55
54
|
- Run `/tasks` to inspect background subagents and read their output.
|
|
56
55
|
- Run `/resume` to return to a saved session.
|
|
57
56
|
|
|
58
|
-
|
|
57
|
+
Converting an older Atomic workflow file? Give Atomic its path in a trusted project and ask it to convert the file into a skill. See [Migrating workflows](/orchestration/migrating-workflows).
|
|
59
58
|
|
|
60
59
|
### Top skills to invoke directly
|
|
61
60
|
|
|
62
|
-
Skills are reusable
|
|
61
|
+
Skills are reusable instructions invoked with `/skill:<name>`:
|
|
63
62
|
|
|
64
63
|
| Skill | When to use | Example |
|
|
65
64
|
| --- | --- | --- |
|
|
@@ -74,7 +73,7 @@ Skills are reusable expert instructions invoked with `/skill:<name>`:
|
|
|
74
73
|
| `liteparse` | Extract text, tables, or values from PDF, DOCX, PPTX, XLSX, and images locally. | `/skill:liteparse` |
|
|
75
74
|
| `show-me` | Explain topics visually with diagrams, code sketches, or focused HTML views (HumanLayer, MIT). | `/skill:show-me` |
|
|
76
75
|
|
|
77
|
-
Atomic bundles these skills with every release, and you can also add your own project or user skills. See [Skills](/skills) for skill discovery,
|
|
76
|
+
Atomic bundles these skills with every release, and you can also add your own project or user skills. Note that `agent-browser`, `agent-desktop`, `qlty`, and `liteparse` require their external CLI binaries to be installed on your machine. See [Skills](/skills) for skill discovery, requirements, and authoring details.
|
|
78
77
|
|
|
79
78
|
### Default tools and prompts
|
|
80
79
|
|
|
@@ -84,23 +83,23 @@ Type any plain request and press Enter:
|
|
|
84
83
|
Summarize this repository and tell me how to run its checks.
|
|
85
84
|
```
|
|
86
85
|
|
|
87
|
-
By default, Atomic gives the model these tools:
|
|
86
|
+
By default, Atomic gives the model these built-in coding tools:
|
|
88
87
|
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
88
|
+
- **`read`:** Read files, directories, images, archives, URLs, and SQLite selectors.
|
|
89
|
+
- **`bash`:** Run shell commands.
|
|
90
|
+
- **`kill`:** Cancel background shell tasks by task ID.
|
|
91
|
+
- **`edit`:** Patch files with exact text replacement.
|
|
92
|
+
- **`write`:** Create or overwrite files.
|
|
93
|
+
- **`find`:** Discover files by glob pattern.
|
|
94
|
+
- **`search`:** Search file contents with regular expressions.
|
|
95
|
+
- **`ask_user_question`:** Ask structured questions in the terminal UI.
|
|
96
|
+
- **`todo`:** Manage file-based todos.
|
|
97
|
+
- **`codemode`:** Compose permitted tool calls in a sandboxed script.
|
|
99
98
|
|
|
100
|
-
On native Windows, `powershell` is also enabled when a PowerShell executable is available.
|
|
99
|
+
On native Windows, `powershell` is also enabled when a PowerShell executable is available. Bundled integration tools such as `subagent`, `intercom`, `web_search`, and `fetch_content` are enabled alongside the coding tools by default; run `/tools` to inspect every active tool.
|
|
101
100
|
|
|
102
|
-
|
|
101
|
+
Atomic runs in your current working directory and can modify files there, so use Git or another checkpointing workflow for easy rollback.
|
|
103
102
|
|
|
104
103
|
## Next step
|
|
105
104
|
|
|
106
|
-
Continue to [
|
|
105
|
+
Continue to [Add project instructions](/getting-started/project-instructions).
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
3
|
-
|
|
2
|
+
title: "Install Atomic"
|
|
3
|
+
sidebarTitle: "Installation"
|
|
4
|
+
description: "Install Atomic with a package manager or standalone release archive, verify your setup, configure Git, and uninstall cleanly."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# Installation
|
|
7
|
-
|
|
8
7
|
**Outcome:** `atomic` is on your `PATH` and `atomic --version` prints a version.
|
|
9
8
|
|
|
10
9
|
**Prerequisites:** A supported shell. See [Prerequisites](/quickstart#prerequisites).
|
|
11
10
|
|
|
12
|
-
##
|
|
13
|
-
|
|
14
|
-
### Package managers
|
|
11
|
+
## Package managers
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
Install globally with npm, pnpm, or Bun (requires Node.js 22.19+, or Bun 1.4.2+ for Bun installs):
|
|
17
14
|
|
|
18
15
|
```bash
|
|
19
16
|
npm install -g @bastani/atomic
|
|
@@ -22,16 +19,18 @@ npm install -g @bastani/atomic
|
|
|
22
19
|
```
|
|
23
20
|
|
|
24
21
|
- Atomic does not require package install scripts; pass `--ignore-scripts` if you disable lifecycle scripts.
|
|
25
|
-
- Package managers select the matching platform
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- Do not omit optional dependencies (`npm install --omit=optional`, `pnpm install --no-optional`, or `bun install --omit=optional`) in a project. Without your platform's native package, Atomic stops at startup with an error naming the missing package; reinstall without those flags to fix it. Global npm installs still pull transitive optional native packages even with `--omit=optional`.
|
|
30
|
-
- Atomic also stops when its native module comes from another release. If you updated Atomic while it was running, restart it. Otherwise the installation is broken, and reinstalling fixes it. A process that stopped this way, such as an SDK program, keeps refusing until it restarts; once you reinstall, the error asks you to restart. This exact `@bastani/atomic-natives` version check applies to packaged releases and skips standalone binaries, source checkouts, `NAPI_RS_NATIVE_LIBRARY_PATH` overrides, and apps that bundle the SDK without pinning `@bastani/atomic-natives`.
|
|
31
|
-
- Sessions are stored locally in `~/.atomic/workflows/journal.sqlite` with no database server needed. To share sessions across machines, see [Sharing storage across hosts](/storage#sharing-storage-across-hosts).
|
|
32
|
-
- On Node 22, async operations have higher overhead than on Node 24 or Bun. Run Atomic on Node 24 or later to avoid this overhead. Do not set `NODE_OPTIONS=--experimental-async-context-frame`: Node 24 and later refuse to start with that option, and commands Atomic runs inherit `NODE_OPTIONS`.
|
|
22
|
+
- Package managers select the matching platform native package (`@bastani/atomic-natives-<platform>`) automatically.
|
|
23
|
+
- Sessions save locally in `~/.atomic/workflows/journal.sqlite` with no database server needed. To share sessions across machines, see [Sharing storage across hosts](/storage#sharing-storage-across-hosts).
|
|
24
|
+
|
|
25
|
+
### Package manager troubleshooting
|
|
33
26
|
|
|
34
|
-
|
|
27
|
+
- **Optional native packages:** Do not omit optional dependencies (`npm install --omit=optional`, `pnpm install --no-optional`, or `bun install --omit=optional`) in a project. Without your platform's native package, Atomic stops at startup with an error naming the missing package; reinstall without those flags to fix it. Global npm installs still pull transitive optional native packages even with `--omit=optional`.
|
|
28
|
+
- **Dependency resolution:** Atomic pins its direct dependencies to exact versions and does not bundle a lockfile, so your package manager resolves sub-dependencies at install time. Use the [release archive](#release-archive) if you want the exact dependency tree the release was tested with.
|
|
29
|
+
- **Older Linux lockfiles:** On Linux, `npm ci` from an older project lockfile that omits C-library tags can install both the glibc and musl native packages. Atomic loads the matching one automatically.
|
|
30
|
+
- **Mismatched native module after an update:** Atomic stops if its native module comes from a different release. If you updated Atomic while it was running, restart it. Otherwise reinstall to repair the installation. A long-running SDK program that stopped this way keeps refusing new sessions until restarted. This version check applies to packaged releases and skips standalone binaries, source checkouts, `NAPI_RS_NATIVE_LIBRARY_PATH` overrides, and apps that bundle the SDK without pinning `@bastani/atomic-natives`.
|
|
31
|
+
- **Node 22 overhead:** On Node 22, async operations have higher overhead than on Node 24 or Bun. Run Atomic on Node 24 or later to avoid this overhead. Do not set `NODE_OPTIONS=--experimental-async-context-frame`: Node 24 and later refuse to start with that option, and commands Atomic runs inherit `NODE_OPTIONS`.
|
|
32
|
+
|
|
33
|
+
## Release archive
|
|
35
34
|
|
|
36
35
|
Install the self-contained release archive without Node.js or a package manager:
|
|
37
36
|
|
|
@@ -45,18 +44,28 @@ curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh
|
|
|
45
44
|
irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex
|
|
46
45
|
```
|
|
47
46
|
|
|
48
|
-
The installer fetches the matching GitHub Release archive and `SHA256SUMS`, verifies the SHA-256 checksum, and installs into a versioned directory
|
|
47
|
+
The installer fetches the matching GitHub Release archive and `SHA256SUMS`, verifies the SHA-256 checksum, and installs into a versioned directory. Keep the archive's complete directory (`node_modules`, libraries, and licenses) intact.
|
|
49
48
|
|
|
50
49
|
| Platform | Default payload directory | Default launcher | PATH behavior |
|
|
51
50
|
| --- | --- | --- | --- |
|
|
52
51
|
| macOS / Linux | `~/.local/share/atomic` | `~/.local/bin/atomic` | Never edits shell rc files; prints a paste-safe `export PATH=...` (or `fish_add_path`) command if missing |
|
|
53
|
-
| Windows | `%LOCALAPPDATA%\atomic` | `%LOCALAPPDATA%\atomic\bin\atomic.cmd` | Adds the bin directory to User PATH when missing and tells you to open a new terminal |
|
|
52
|
+
| Windows | `%LOCALAPPDATA%\atomic` | `<ATOMIC_INSTALL_DIR>\bin\atomic.cmd` (default `%LOCALAPPDATA%\atomic\bin\atomic.cmd`) | Adds the bin directory to User PATH when missing and tells you to open a new terminal |
|
|
53
|
+
|
|
54
|
+
### Installer options and reruns
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
Customize the archive installer with flags or environment variables:
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
| Option or variable | Behavior |
|
|
59
|
+
| --- | --- |
|
|
60
|
+
| `ATOMIC_VERSION`, `--ref <tag>`, `-r <tag>`, `--ref=<tag>` (Unix), `-Ref <tag>` (Windows) | Pin an exact release tag (`MAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH-alpha.REVISION`). CLI flags override `ATOMIC_VERSION`. Pins are honored literally; if GitHub returns a different tag, the installer aborts before downloading. |
|
|
61
|
+
| `ATOMIC_INSTALL_DIR` | Override the versioned payload root (default `~/.local/share/atomic` on macOS/Linux, `%LOCALAPPDATA%\atomic` on Windows). Relative paths resolve against the directory where the installer starts. The install root cannot equal or sit inside the launcher path. |
|
|
62
|
+
| `ATOMIC_BIN_DIR` | Override the launcher directory. Defaults to `~/.local/bin` on macOS/Linux (stays `~/.local/bin` even if `ATOMIC_INSTALL_DIR` changes) and `<ATOMIC_INSTALL_DIR>\bin` on Windows. Cannot sit inside the install root's `current` or `versions` directories. Paths containing `:` on Unix or `;` on Windows cannot be added as one `PATH` entry, so the installer prints direct-run instructions instead. |
|
|
63
|
+
| `ATOMIC_FORCE_INSTALL=1`, `--force` (Unix), `-Force` (Windows) | Force a reinstall even when the target version is already installed and healthy. Only exact `"1"` enables `ATOMIC_FORCE_INSTALL` (`true` and `yes` do not). |
|
|
64
|
+
| `GITHUB_TOKEN`, `GH_TOKEN` | Optional token for authenticated GitHub API fallback if rate-limited (60 unauthenticated requests/hour per IP). `GITHUB_TOKEN` takes precedence over `GH_TOKEN`. `curl` and GNU `wget` pass the token through a protected temporary file rather than process arguments; BusyBox `wget` works without a token or when redirects avoid the API. |
|
|
65
|
+
| `NO_COLOR` | Any value (including an empty string) switches installer output to plain text without color or progress bars. Plain mode also activates automatically when stdout is not a TTY, `CI` is set, or Unix `TERM` is unset or `dumb`. |
|
|
66
|
+
| `ATOMIC_INSTALL_LOCK_TIMEOUT` | Seconds a concurrent installer waits for another install into the same directory before failing (default `1800`, 30 minutes). |
|
|
58
67
|
|
|
59
|
-
Pin
|
|
68
|
+
Pin a version:
|
|
60
69
|
|
|
61
70
|
```bash
|
|
62
71
|
# macOS / Linux
|
|
@@ -68,67 +77,57 @@ curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh
|
|
|
68
77
|
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1))) -Ref 0.9.11
|
|
69
78
|
```
|
|
70
79
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
#### Rerunning the installer
|
|
74
|
-
|
|
75
|
-
If the requested version (or latest release when unpinned) is already installed and healthy, the installer prints `atomic <tag> is already installed; skipping download (use --force to reinstall)`, prints the install path and any PATH guidance, and exits without downloading.
|
|
76
|
-
|
|
77
|
-
- **Offline reruns:** Pinned reruns make no network request. Unpinned reruns still check for the latest tag.
|
|
78
|
-
- **Health checks:** An install is healthy when `current` points to the target version inside the install root (a `current` that points at a versions directory somewhere else is repaired), the launcher matches its recorded hash and resolves to `current`, and the version directory must still hold the files Atomic needs to start: `package.json`, `app.js`, `native-modifiers.js`, `native-module-path.js`, `native-platform.js`, `builtin/`, and `node_modules/`.
|
|
79
|
-
- **Platform verification:** On macOS and Linux, the launcher link must resolve to an executable `current/atomic` without executing it. On Windows, `current\atomic.exe --version` must match, `atomic.cmd` and `atomic-current` must match, and a missing User PATH entry is restored. Any broken or missing piece triggers a full repair install.
|
|
80
|
-
- **Concurrency and atomic switches:** Only one installer runs per install directory at a time. A second run waits up to 30 minutes (override in seconds with `ATOMIC_INSTALL_LOCK_TIMEOUT`) and prints `Waiting for another atomic installer ... to finish...`. A killed installer releases its lock and the next run cleans up partial files. The previous `atomic` version stays usable until the final switch.
|
|
81
|
-
|
|
82
|
-
To force a reinstall, pass `--force` on macOS/Linux or `-Force` on Windows, or set `ATOMIC_FORCE_INSTALL=1`:
|
|
80
|
+
Force a reinstall:
|
|
83
81
|
|
|
84
82
|
```bash
|
|
83
|
+
# macOS / Linux
|
|
85
84
|
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh -s -- --force
|
|
86
85
|
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | ATOMIC_FORCE_INSTALL=1 sh
|
|
87
86
|
```
|
|
88
87
|
|
|
89
88
|
```powershell
|
|
90
|
-
|
|
89
|
+
# Windows PowerShell
|
|
91
90
|
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1))) -Force
|
|
91
|
+
$env:ATOMIC_FORCE_INSTALL = "1"; irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
Override the versioned payload root (default `~/.local/share/atomic` on macOS/Linux, `%LOCALAPPDATA%\atomic` on Windows). On macOS/Linux, a relative value resolves against the physical directory where the installer starts and is used verbatim, including any trailing whitespace or newline. The install root cannot equal or sit inside the launcher path (`ATOMIC_BIN_DIR/atomic`); invalid layouts fail before downloading.
|
|
94
|
+
**Reruns and atomic switches:** If the target version is already installed and healthy, the installer skips downloading, prints the install path and `PATH` guidance, and exits `0`. Pinned reruns make no network request; unpinned reruns check for the latest tag. Health checks verify that `current` points to the target version inside the install root, the launcher matches and resolves to `current`, and the core runtime files and bundled packages are intact (on Windows, `current\atomic.exe --version` must match and a missing User PATH entry is restored). Any missing or corrupted piece triggers a repair install. The previous version stays usable until the final switch, and a killed installer releases its lock so the next run cleans up partial files.
|
|
97
95
|
|
|
98
|
-
|
|
96
|
+
### Alpine and musl Linux archives
|
|
99
97
|
|
|
100
|
-
|
|
98
|
+
The shell installer detects Alpine and downloads `atomic-linux-x64-musl.tar.gz` or `atomic-linux-arm64-musl.tar.gz`. Keep the complete archive, including bundled `libgcc` and `libstdc++`; stock Alpine needs no runtime package install.
|
|
101
99
|
|
|
102
|
-
|
|
100
|
+
**Clipboard support:**
|
|
103
101
|
|
|
104
|
-
|
|
102
|
+
- Install `wl-clipboard` (Wayland), `xclip` or `xsel` (X11), or the Termux:API app plus `termux-api` package (Termux).
|
|
103
|
+
- OSC 52 forwards clipboard writes over SSH, Mosh, or Rex and acts as a fallback on headless Linux. Set `ATOMIC_CLIPBOARD_OSC52=1` (legacy alias `PI_CLIPBOARD_OSC52=1`) to force terminal forwarding; your terminal must support OSC 52, and forwarding cannot verify the local write.
|
|
105
104
|
|
|
106
|
-
|
|
105
|
+
## Verify the install
|
|
107
106
|
|
|
108
|
-
|
|
107
|
+
```bash
|
|
108
|
+
atomic --version
|
|
109
|
+
```
|
|
109
110
|
|
|
110
|
-
|
|
111
|
+
You should see a single version line (for example `0.10.5`). If your shell reports `command not found`, open a new shell or add the installer's bin directory to `PATH`.
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
## Which runtime runs Atomic
|
|
113
114
|
|
|
114
|
-
|
|
115
|
+
Package-manager installs run on Node.js (`#!/usr/bin/env node`), including global installs created with `bun add -g` unless you explicitly run with Bun (`--bun`). Standalone release archives run on Bun. Installing Bun separately does not switch an npm install to Bun. [Codemode scripts](/codemode) always run inside a sandboxed JavaScript VM with no direct Node or Bun APIs.
|
|
115
116
|
|
|
116
|
-
|
|
117
|
+
## Git
|
|
117
118
|
|
|
118
|
-
|
|
119
|
+
Atomic requires Git 2.30.0 or newer for worktrees, git packages, and the footer branch display. It uses the first `git` found in an absolute `PATH` directory (never the working directory) if that binary reports 2.30.0 or newer. Otherwise, Atomic downloads a verified portable Git (pinned to Git 2.56.0 from [desktop/dugite-native](https://github.com/desktop/dugite-native)), just as it does for `fd` and `rg`.
|
|
119
120
|
|
|
120
|
-
|
|
121
|
-
- Before Git 2.33, a named subagent worktree whose creation was interrupted reports busy after a 30-second wait rather than failing immediately.
|
|
122
|
-
- Before Git 2.36, a worktree snapshot restore stops with an error when a worktree in its store has a path containing a line break.
|
|
121
|
+
Newer Git versions unlock two extra behaviors: Git 2.33+ is required for SDK workspace bindings and immediate error detection when creating a named subagent worktree is interrupted, and Git 2.36+ supports restoring worktree snapshots whose paths contain line breaks.
|
|
123
122
|
|
|
124
123
|
- **Location:** `~/.atomic/agent/bin/git/` (or under `ATOMIC_CODING_AGENT_DIR`).
|
|
125
|
-
- **When:** Downloaded at interactive startup or on the first git package install
|
|
124
|
+
- **When:** Downloaded at interactive startup or on the first git package install or update. Run `/tools` to check which Git Atomic uses and why.
|
|
126
125
|
- **Verification:** Pinned to one release and verified against a built-in SHA-256 checksum; mismatched downloads are discarded.
|
|
127
126
|
- **Updates:** When a new Atomic version pins a newer Git release, the next online start switches to it while running commands finish on the older copy. Offline or after a failed download, the cached copy continues working and `/tools` notes the reason.
|
|
128
127
|
- **Supported platforms:** macOS (x64, arm64), Linux with glibc 2.34+ (x64, arm64, armv7), and Windows (x64, arm64, x86).
|
|
129
128
|
- **Agent shells:** If no `git` is on `PATH`, the `bash` tool prepends portable Git so agents can run `git`. If an older system `git` is on `PATH`, your shells keep it while Atomic uses portable Git internally.
|
|
130
129
|
- **Offline mode:** `ATOMIC_OFFLINE=1` prevents downloads; an already-cached portable Git still works.
|
|
131
|
-
- **Cache cleanup:** Older portable releases stay cached while
|
|
130
|
+
- **Cache cleanup:** Older portable releases stay cached while running commands may use them. Close running Atomic sessions before deleting `~/.atomic/agent/bin/git/`. The next online startup downloads Git again; until then, offline use needs a system Git.
|
|
132
131
|
|
|
133
132
|
If no suitable Git is found and portable download is unavailable, install Git for your platform (shown in the error and `/tools`):
|
|
134
133
|
|
|
@@ -149,43 +148,30 @@ If no suitable Git is found and portable download is unavailable, install Git fo
|
|
|
149
148
|
Run Linux package-manager commands as root. See [git-scm.com/downloads](https://git-scm.com/downloads) for other systems.
|
|
150
149
|
|
|
151
150
|
**HTTPS certificates with portable Git:**
|
|
152
|
-
|
|
151
|
+
|
|
152
|
+
- **Linux:** Uses its bundled CA file (override with `GIT_SSL_CAINFO`, which takes precedence over `http.sslCAInfo` while set). HTTPS clones and fetches require system `libcurl` (for example `apt install libcurl4`); local operations do not.
|
|
153
153
|
- **macOS:** Uses system certificate trust.
|
|
154
154
|
- **Windows:** Uses the Windows certificate store.
|
|
155
155
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
The shell installer detects Alpine and downloads `atomic-linux-x64-musl.tar.gz` or `atomic-linux-arm64-musl.tar.gz`. Keep the complete archive, including payload-local `libgcc` and `libstdc++`; stock Alpine needs no runtime package install.
|
|
159
|
-
|
|
160
|
-
**Clipboard support:**
|
|
161
|
-
- Install `wl-clipboard` (Wayland), `xclip` or `xsel` (X11), or the Termux:API app + `termux-api` package (Termux).
|
|
162
|
-
- OSC 52 forwards clipboard writes over SSH, Mosh, or Rex and acts as a fallback on headless Linux. Set `ATOMIC_CLIPBOARD_OSC52=1` (legacy alias `PI_CLIPBOARD_OSC52=1`) to force terminal forwarding; your terminal must support OSC 52 and forwarding cannot verify the local write.
|
|
163
|
-
|
|
164
|
-
Start Atomic in your project directory:
|
|
165
|
-
|
|
166
|
-
```bash
|
|
167
|
-
cd /path/to/project
|
|
168
|
-
atomic
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
### Updating while Intercom is running
|
|
156
|
+
## Updating while Intercom is running
|
|
172
157
|
|
|
173
158
|
Sessions on one machine share a single Intercom broker process. Both the release-archive installers and `atomic update` finish by running `atomic intercom upgrade` with the newly installed binary:
|
|
174
159
|
|
|
175
160
|
- If no sessions are connected, the older broker stops and the next session starts the new one.
|
|
176
161
|
- If sessions are still connected, they are not interrupted; the next session started on the new version takes over the broker.
|
|
177
162
|
|
|
178
|
-
Installing an older release with `--ref
|
|
163
|
+
Installing an older release with `--ref` or `-Ref` skips this step silently if that version lacks `atomic intercom upgrade`. `atomic update` skips it with a note if `atomic` on `PATH` points to a different binary than the one updated. If the step fails, the install still succeeds with a warning.
|
|
179
164
|
|
|
180
165
|
You can run `atomic intercom upgrade` manually anytime (it is idempotent), and you should run it after upgrading via a package manager such as `npm install -g`.
|
|
181
166
|
|
|
182
|
-
**Windows npm upgrades from 0.10.4 or earlier:** Earlier Intercom brokers
|
|
167
|
+
**Windows npm upgrades from 0.10.4 or earlier:** Earlier Intercom brokers locked files inside the npm installation folder, which can cause `npm install -g @bastani/atomic` to fail with `EBUSY` on Windows while an older broker is running. Close running Atomic sessions and wait 5 seconds (or run `atomic intercom restart`), then run `npm install -g @bastani/atomic`. From 0.10.5 onward, the broker runs outside the installation directory, so npm upgrades and uninstalls succeed while sessions and the broker run.
|
|
183
168
|
|
|
184
169
|
## Uninstall
|
|
185
170
|
|
|
186
171
|
**Release archive:**
|
|
187
|
-
|
|
188
|
-
- **
|
|
172
|
+
|
|
173
|
+
- **macOS / Linux:** Delete `~/.local/share/atomic` and `~/.local/bin/atomic` (or your custom `ATOMIC_INSTALL_DIR` and `ATOMIC_BIN_DIR` launcher).
|
|
174
|
+
- **Windows:** Delete `%LOCALAPPDATA%\atomic`. If you set `ATOMIC_BIN_DIR`, also remove `atomic.cmd` and the `atomic-current` junction from that directory, then remove it from User PATH.
|
|
189
175
|
|
|
190
176
|
**Package manager:**
|
|
191
177
|
|
|
@@ -197,14 +183,6 @@ npm uninstall -g @bastani/atomic
|
|
|
197
183
|
|
|
198
184
|
Uninstalling removes only the CLI. Your config, credentials, and installed packages remain in `~/.atomic/agent/`, and your default SQLite sessions remain in `~/.atomic/workflows/journal.sqlite`, until you delete `~/.atomic/`.
|
|
199
185
|
|
|
200
|
-
## Verify the install
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
atomic --version
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
You should see a single version line (for example `0.9.14-alpha.2`). If your shell reports `command not found`, open a new shell or add the installer's bin directory to `PATH`.
|
|
207
|
-
|
|
208
186
|
## Next step
|
|
209
187
|
|
|
210
|
-
Continue to [
|
|
188
|
+
Continue to [Authenticate a provider](/getting-started/authentication).
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
3
|
-
|
|
2
|
+
title: "Add project instructions"
|
|
3
|
+
sidebarTitle: "Project instructions"
|
|
4
|
+
description: "Guide Atomic with repository conventions in AGENTS.md and CLAUDE.md files, including exact precedence and system prompt rules."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# Project instructions
|
|
7
|
-
|
|
8
7
|
**Outcome:** Atomic loads your repository's conventions automatically at startup.
|
|
9
8
|
|
|
10
|
-
**Prerequisites:** [
|
|
9
|
+
**Prerequisites:** [Run your first session](/getting-started/first-session) is complete.
|
|
11
10
|
|
|
12
|
-
##
|
|
11
|
+
## Create an AGENTS.md file
|
|
13
12
|
|
|
14
13
|
Create an `AGENTS.md` file in your project root to tell Atomic your build commands, conventions, and guardrails:
|
|
15
14
|
|
|
@@ -21,12 +20,38 @@ Create an `AGENTS.md` file in your project root to tell Atomic your build comman
|
|
|
21
20
|
- Keep responses concise.
|
|
22
21
|
```
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
Run `/reload` or restart Atomic after editing context files so changes take effect.
|
|
24
|
+
|
|
25
|
+
## Discovery and precedence rules
|
|
26
|
+
|
|
27
|
+
Atomic loads context files automatically at startup using these exact rules:
|
|
28
|
+
|
|
29
|
+
- **One file per directory:** Inside each directory, Atomic loads at most one context file, choosing the first regular file (or symlink to a regular file; UTF-8 BOMs are stripped) in this exact order:
|
|
30
|
+
1. `AGENTS.override.md`
|
|
31
|
+
2. `AGENTS.md`
|
|
32
|
+
3. `AGENTS.MD`
|
|
33
|
+
4. `CLAUDE.md`
|
|
34
|
+
5. `CLAUDE.MD`
|
|
35
|
+
|
|
36
|
+
Because Atomic stops at the first match in each directory, `AGENTS.md` shadows `CLAUDE.md`, and `AGENTS.override.md` shadows both. Uppercase `AGENTS.override.MD` is not recognized.
|
|
37
|
+
- **Global directories:** When `ATOMIC_CODING_AGENT_DIR` is not set, Atomic checks both `~/.pi/agent/` and `~/.atomic/agent/` and loads both when they resolve to different directories (legacy `~/.pi/agent/` first, then `~/.atomic/agent/`). When `ATOMIC_CODING_AGENT_DIR` is set, Atomic checks only that directory.
|
|
38
|
+
- **Root-to-cwd traversal:** Atomic walks from your current working directory all the way up to the filesystem root (`/` or the Windows drive root); it does not stop at the Git repository root or `$HOME`. Files load top-down (global directories, then outermost ancestors, down to your current directory) and are concatenated in that order.
|
|
39
|
+
- **Nested linked Git worktrees:** When your working directory is inside a linked Git worktree nested under a repository (for example `<repo>/.worktrees/feature`) and the worktree root has a context file, Atomic skips the matching file from the main repository root (or any file in the main repository root when the worktree uses `AGENTS.override.md`) so instructions are not loaded twice.
|
|
40
|
+
- **Untrusted projects:** Before you trust a project, Atomic still loads your global context files (`~/.atomic/agent/`) while skipping all project and ancestor-directory context files. See [Security](/security).
|
|
41
|
+
- **Disable for one run:** Pass `--no-context-files` (`-nc`) to skip all context files for that run.
|
|
42
|
+
|
|
43
|
+
## System prompt files
|
|
25
44
|
|
|
26
|
-
|
|
27
|
-
2. **Project hierarchy:** `AGENTS.override.md`, `AGENTS.md`, or `CLAUDE.md` from parent directories down to the current directory.
|
|
45
|
+
To customize Atomic's base system prompt rather than adding project instructions, use `SYSTEM.md` (replaces the default prompt) or `APPEND_SYSTEM.md` (appends to the default prompt):
|
|
28
46
|
|
|
29
|
-
|
|
47
|
+
- Atomic loads only the **first existing file** in this order:
|
|
48
|
+
1. `.atomic/SYSTEM.md` (trusted projects only)
|
|
49
|
+
2. `.pi/SYSTEM.md` (trusted projects only)
|
|
50
|
+
3. `~/.atomic/agent/SYSTEM.md`
|
|
51
|
+
4. `~/.pi/agent/SYSTEM.md`
|
|
52
|
+
- `APPEND_SYSTEM.md` follows the exact same four-path order. Unlike context files, a project `APPEND_SYSTEM.md` **replaces** a global `APPEND_SYSTEM.md` instead of concatenating with it.
|
|
53
|
+
- Passing `--system-prompt <text|path>` overrides `SYSTEM.md`. Passing `--append-system-prompt <text|path>` **replaces** any discovered `APPEND_SYSTEM.md`.
|
|
54
|
+
- Context files (`AGENTS.md`/`CLAUDE.md`) and skills still append even when `SYSTEM.md` or `--system-prompt` replaces the default prompt.
|
|
30
55
|
|
|
31
56
|
## Verify Atomic loaded them
|
|
32
57
|
|
|
@@ -38,11 +63,11 @@ What project instructions are you following in this repository?
|
|
|
38
63
|
|
|
39
64
|
Atomic should cite your rules (such as `bun run typecheck`). If it gives generic advice, check that:
|
|
40
65
|
|
|
41
|
-
- The file is named `AGENTS.md`.
|
|
42
|
-
- It
|
|
43
|
-
- No
|
|
66
|
+
- The file is named `AGENTS.override.md`, `AGENTS.md`, `AGENTS.MD`, `CLAUDE.md`, or `CLAUDE.MD`.
|
|
67
|
+
- It is a regular file (or symlink to one) in your current directory or an ancestor directory.
|
|
68
|
+
- No higher-priority file in the same directory shadows it.
|
|
44
69
|
- The project is trusted (see [Security](/security)).
|
|
45
70
|
|
|
46
71
|
## Next step
|
|
47
72
|
|
|
48
|
-
Continue to [Interactive
|
|
73
|
+
Continue to [Interactive mode](/usage), then [Configure Atomic](/guides/configuration).
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Configure Atomic
|
|
3
|
-
|
|
2
|
+
title: "Configure Atomic"
|
|
3
|
+
sidebarTitle: "Configuration"
|
|
4
|
+
description: "Set up global preferences in settings.json and override settings per project."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# Configure Atomic
|
|
7
|
-
|
|
8
7
|
After your [first session](/getting-started/first-session), save global preferences in `~/.atomic/agent/settings.json`. Use `.atomic/settings.json` for overrides that apply only to the current project.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
You can edit either file directly or run `/settings` inside an interactive session to change common options. Both files use strict JSON (no `//` comments or trailing commas).
|
|
10
|
+
|
|
11
|
+
## Create a global settings file {#example}
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
Add `"$schema"` for editor autocomplete and validation, then set the provider, model, and preferences you want:
|
|
13
14
|
|
|
14
15
|
```json
|
|
15
16
|
{
|
|
17
|
+
"$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/settings.schema.json",
|
|
16
18
|
"defaultProvider": "anthropic",
|
|
17
19
|
"defaultModel": "claude-sonnet-4-6",
|
|
18
20
|
"defaultThinkingLevel": "medium",
|
|
@@ -36,34 +38,54 @@ Choose the provider and model you have configured, then add the settings you nee
|
|
|
36
38
|
|
|
37
39
|
## Project overrides
|
|
38
40
|
|
|
39
|
-
Project settings in `.atomic/settings.json`
|
|
41
|
+
Project settings in `.atomic/settings.json` (and legacy `.pi/settings.json`) load only when the project is trusted. Interactive sessions prompt once before trusting a project; non-interactive runs skip untrusted project settings unless you pass `--approve` or set global `defaultProjectTrust` to `"always"`. See [Project trust](/security#project-trust).
|
|
42
|
+
|
|
43
|
+
When a project is trusted, `.atomic/settings.json` merges over `~/.atomic/agent/settings.json` using these rules:
|
|
44
|
+
|
|
45
|
+
- **Nested objects merge recursively.** You can override one field inside an object (such as `compaction.reserveTokens`) without repeating its siblings.
|
|
46
|
+
- **`storage` and `sessions.storage` replace as whole objects.** Setting either in a project file replaces the global object instead of merging individual fields.
|
|
47
|
+
- **Resource arrays combine across scopes.** `packages`, `extensions`, `skills`, `prompts`, and `themes` combine entries from global and project settings. When both scopes name the same package, the project entry wins. Use `!pattern` or `-exact` exclusions to suppress a resource. Setting `"packages": []` in `.atomic/settings.json` clears only a legacy `.pi/settings.json` in the same project, not global `~/.atomic/agent/settings.json`.
|
|
48
|
+
- **Other arrays and scalars replace global values.** Settings such as `enabledModels`, `fallbackModels`, `npmCommand`, `resume.cache`, and scalar values replace the global value. Setting `"enabledModels": []` in a project file clears a global model scope for that project.
|
|
49
|
+
- **`defaultTools` supports additive modifiers.** A project `defaultTools` array containing only `+tool` or `-tool` entries layers on top of global `defaultTools`. Any plain tool name or `[]` replaces the global list.
|
|
50
|
+
- **Global-only settings are ignored in project files.** Atomic ignores project values for `defaultProjectTrust`, `debug`, `httpProxy`, `cacheWarming`, `selfUpdateCommand`, `deviceId`, and the deprecated `resume.setupCommand`. Project `storage` applies to sessions, not Intercom multi-node routing, and `atomic update` reads `npmCommand` only from global settings.
|
|
40
51
|
|
|
41
|
-
|
|
42
|
-
- `storage` and `sessions.storage` replace as whole objects rather than merging field by field.
|
|
43
|
-
- Arrays and scalar values replace the global value. An exception is `defaultTools`: a project array containing only `+tool` or `-tool` modifiers applies on top of the global tool list.
|
|
44
|
-
- Global-only settings are ignored in project settings: `defaultProjectTrust`, `debug`, `httpProxy`, `cacheWarming`, `selfUpdateCommand`, `deviceId`, and the deprecated `resume.setupCommand`.
|
|
52
|
+
This example overrides only `compaction.reserveTokens` for one project while keeping the rest of the global config.
|
|
45
53
|
|
|
46
|
-
|
|
54
|
+
Global `~/.atomic/agent/settings.json`:
|
|
47
55
|
|
|
48
56
|
```json
|
|
49
|
-
// ~/.atomic/agent/settings.json (global)
|
|
50
57
|
{
|
|
51
58
|
"theme": "dark",
|
|
52
|
-
"compaction": {
|
|
59
|
+
"compaction": {
|
|
60
|
+
"enabled": true,
|
|
61
|
+
"reserveTokens": 16384
|
|
62
|
+
}
|
|
53
63
|
}
|
|
64
|
+
```
|
|
54
65
|
|
|
55
|
-
|
|
66
|
+
Project `.atomic/settings.json`:
|
|
67
|
+
|
|
68
|
+
```json
|
|
56
69
|
{
|
|
57
|
-
"compaction": {
|
|
70
|
+
"compaction": {
|
|
71
|
+
"reserveTokens": 8192
|
|
72
|
+
}
|
|
58
73
|
}
|
|
74
|
+
```
|
|
59
75
|
|
|
60
|
-
|
|
76
|
+
Effective settings for the project:
|
|
77
|
+
|
|
78
|
+
```json
|
|
61
79
|
{
|
|
62
80
|
"theme": "dark",
|
|
63
|
-
"compaction": {
|
|
81
|
+
"compaction": {
|
|
82
|
+
"enabled": true,
|
|
83
|
+
"reserveTokens": 8192
|
|
84
|
+
}
|
|
64
85
|
}
|
|
65
86
|
```
|
|
66
87
|
|
|
67
|
-
## Next
|
|
88
|
+
## Next steps
|
|
68
89
|
|
|
69
|
-
|
|
90
|
+
- Review every supported key and default in the [Settings reference](/settings).
|
|
91
|
+
- Connect subscription logins or API keys in [Model providers](/providers).
|
package/docs/guides/intercom.md
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "Intercom"
|
|
3
|
-
|
|
2
|
+
title: "Intercom overview"
|
|
3
|
+
sidebarTitle: "Intercom overview"
|
|
4
|
+
description: "Coordinate multiple Atomic sessions on one machine or across a shared database."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
Intercom is a message channel between agent sessions running on the same machine, or on several machines that share a storage database ([Running Intercom across machines](/intercom/operations#running-intercom-across-machines)). Sessions in the same group send messages, ask questions, and coordinate directly without routing everything through you.
|
|
7
|
+
Intercom is a message channel between Atomic sessions running on the same machine, or across several machines that share a storage database ([Running Intercom across machines](/intercom/operations#running-intercom-across-machines)). Sessions in the same group send messages, ask questions, and coordinate directly without routing everything through you.
|
|
9
8
|
|
|
10
9
|
## When to use Intercom
|
|
11
10
|
|
|
12
|
-
Use Intercom when two or more sessions work on related tasks and share context: a planner handing work to a worker, a long-running session reporting a finding, or an orchestrator steering a subagent while it runs. You do not need Intercom for a single session working alone.
|
|
11
|
+
Use Intercom when two or more sessions work on related tasks and need to share context: a planner handing work to a worker, a long-running session reporting a finding, or an orchestrator steering a subagent while it runs. You do not need Intercom for a single session working alone.
|
|
12
|
+
|
|
13
|
+
## Key capabilities
|
|
14
|
+
|
|
15
|
+
- **Direct sends, asks, and broadcasts.** Send fire-and-forget updates, ask non-blocking questions whose replies arrive as messages, or broadcast to matching sessions in your group.
|
|
16
|
+
- **Named groups.** Isolate unrelated sessions by group so work in one repository or team does not interrupt another.
|
|
17
|
+
- **Subagent delivery.** Message subagents while they start, run, wait on tools, or after they finish. Messaging a completed or failed subagent resumes it automatically to handle your request, while messages to paused or quit subagents wait in a queue until the launching session continues them.
|
|
13
18
|
|
|
14
|
-
##
|
|
19
|
+
## Getting started
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
- Named groups that isolate unrelated sessions from each other.
|
|
18
|
-
- Delivery to subagents, including ones that are starting, released, paused, finished, or being restored.
|
|
21
|
+
Interactive sessions connect to Intercom automatically 3 seconds after startup. Name each session with `/name` so it is easy to target (for example `/name planner` and `/name worker`), then press `Alt+M` or run `/intercom` to pick a session and send a message.
|
|
19
22
|
|
|
20
23
|
## Next steps
|
|
21
24
|
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
+
- [Coordinate sessions with Intercom](/intercom) covers the quick start, coordination patterns, and supervisor escalation.
|
|
26
|
+
- [Operate Intercom](/intercom/operations) covers connection lifecycles, multi-machine routing, upgrades, and recovery.
|
|
27
|
+
- [Intercom reference](/intercom/reference) documents every `intercom` tool action, targeting rule, error class, and setting.
|
|
28
|
+
- [Subagents overview](/guides/subagents) explains when delegation fits better than session-to-session coordination.
|