@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/docs/usage.md
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "Interactive
|
|
3
|
-
|
|
2
|
+
title: "Interactive mode"
|
|
3
|
+
sidebarTitle: "Interactive mode"
|
|
4
|
+
description: "Use Atomic's terminal editor, slash commands, startup typing, message queue, sessions, and context files."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
Interactive mode runs Atomic in a fullscreen terminal interface for day-to-day coding, slash commands, message queueing, and session navigation. For every CLI command, flag, and exit code, see the [CLI reference](/reference/cli).
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
## Terminal interface
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
This page covers interactive use: the interactive loop, slash commands, the message queue, sessions, context files, and the design principles behind them. Every command, flag, argument, and environment variable now lives in the [CLI reference](/reference/cli).
|
|
13
|
-
|
|
14
|
-
## Interactive mode
|
|
15
|
-
|
|
16
|
-
<p align="center"><img src="images/interactive-mode.png" alt="Interactive Mode" width="600" /></p>
|
|
11
|
+
<p align="center"><img src="images/interactive-mode.png" alt="Screenshot of Atomic interactive mode in a dark terminal window displaying the purple Atomic logo, a user prompt, inline tool call results, token and cost statistics above the bottom input box, and the esc to interrupt footer hint." width="600" /></p>
|
|
17
12
|
|
|
18
13
|
The interface has four main areas:
|
|
19
14
|
|
|
@@ -24,11 +19,11 @@ The interface has four main areas:
|
|
|
24
19
|
|
|
25
20
|
Built-in views such as `/settings` or custom extension UI can temporarily replace the editor.
|
|
26
21
|
|
|
27
|
-
### Startup and working
|
|
22
|
+
### Startup animation and working indicator
|
|
28
23
|
|
|
29
|
-
The startup animation
|
|
24
|
+
The startup animation introduces Atomic on launch. Press any key, including `Ctrl+C`, to finish it immediately and continue normal input. Setting `quietStartup` to `true` hides it, while `"header"` keeps it. Non-TTY sessions and `ATOMIC_REDUCED_MOTION=1` show the settled logo without animation. Setting `NO_COLOR` (to any value, including an empty string) or `FORCE_COLOR=0` turns off foreground and background colors and text styles (bold, italic, dim, underline, inverse, and strikethrough).
|
|
30
25
|
|
|
31
|
-
Startup lists loaded context files, skills, prompts, and extensions by name. Custom themes are not listed; choose them in `/settings`. Duplicate local extension names include path details. Expand the startup block to inspect source paths.
|
|
26
|
+
Startup lists loaded context files, skills, prompts, and extensions by name. Custom themes are not listed; choose them in `/settings`. Duplicate local extension names include path details. Expand the startup block with `Ctrl+O` to inspect source paths.
|
|
32
27
|
|
|
33
28
|
While the agent works, `∀` pulses beside a status message with the current run's elapsed time and output tokens. A new run starts a fresh meter; steering keeps the current meter. Retry, fallback, compaction, cancellation, and error notices take precedence, and approval prompts hide ordinary activity. Set `ATOMIC_REDUCED_MOTION=1` for a static mark (elapsed time still updates once per second) or `NO_COLOR` for plain unstyled output. Extensions can [customize the indicator](/tui#pattern-4b-working-indicator-customization).
|
|
34
29
|
|
|
@@ -37,31 +32,37 @@ Compaction shows a still `∀` mark with elapsed time and the cancel key. Openin
|
|
|
37
32
|
### Editor features
|
|
38
33
|
|
|
39
34
|
| Feature | How |
|
|
40
|
-
|
|
35
|
+
| --- | --- |
|
|
41
36
|
| File reference | Type `@` to fuzzy-search project files |
|
|
42
|
-
| Path completion | Press Tab to complete paths |
|
|
37
|
+
| Path completion | Press `Tab` to complete paths |
|
|
43
38
|
| Prompt history | `↑` and `↓` walk past prompts; `Ctrl+R` searches them and places the chosen prompt in the editor without sending |
|
|
44
39
|
| Multi-line input | `Shift+Enter` or `Ctrl+J` |
|
|
45
40
|
| Images | Paste with `Ctrl+V` (`Alt+V` or `Ctrl+V` on Windows and WSL), or drag into the terminal |
|
|
46
41
|
| Shell command | `!command` runs a command and includes output in model context |
|
|
47
42
|
| Hidden shell command | `!!command` runs a command without sending output to model context |
|
|
48
|
-
| External editor | `Ctrl+G` opens `externalEditor`, `$VISUAL`, or `$EDITOR` |
|
|
43
|
+
| External editor | `Ctrl+G` opens `externalEditor`, `$VISUAL`, or `$EDITOR` (falling back to `notepad` on Windows or `nano` on macOS and Linux) |
|
|
49
44
|
|
|
50
|
-
The `@` and `/` menus end with a hint line naming active keys
|
|
45
|
+
**`@` file picker and completion menus:** The `@` picker searches with `fd` (`--follow --hidden`, respecting `.gitignore` and skipping `.git/`), supports quoted paths with spaces (`@"path with spaces"`), and wraps paths containing spaces automatically. If `fd` is unavailable, it falls back to single-directory listing like `Tab`. Both `@` and `/` menus end with a hint line naming active keys: `Tab` completes without sending, and `Enter` inserts an `@` path or submits a `/`-prefixed completion (including absolute paths). Remapped menu keys appear only when an app shortcut or earlier menu action does not claim them first.
|
|
51
46
|
|
|
52
|
-
`Ctrl+R` searches the viewed agent's recorded prompts
|
|
47
|
+
**Prompt history:** Editor `↑` and `↓` keep up to 100 recent adjacent-deduplicated prompts typed during the current run (per viewed agent: `main` or the selected subagent; retrieve queued messages with `Alt+Up` or `Alt+Q` instead). `Ctrl+R` searches the viewed agent's recorded prompts newest first, including prompts expanded from templates or skills and prompts transformed by an `input` hook. When an `input` hook transforms a prompt, Atomic saves and searches the transformed text in `Ctrl+R`, while editor `↑` and `↓` walk the raw text you typed. `Esc` clears search text and then closes search without touching your draft or interrupting the agent. Avoid typing secrets directly into prompts.
|
|
53
48
|
|
|
54
|
-
|
|
49
|
+
**Interactive shell commands (`!` and `!!`):** Only one interactive `!` or `!!` command can run at a time; submitting another warns that a command is already running and restores your text. On native Windows, `!` and `!!` run PowerShell (preferring PowerShell 7 `pwsh.exe`, then Windows PowerShell `powershell.exe`; see [Windows](/windows)). Linux, macOS, and WSL use Bash. Extension-provided execution hooks take precedence. `shellCommandPrefix` is prepended to each command, so match the active shell's syntax (`shellPath` configures Bash, not Windows interactive PowerShell). `Esc` or `Ctrl+C` cancels a running command. While viewing a subagent, `!` and `!!` commands are refused; switch to `main` to run them.
|
|
50
|
+
|
|
51
|
+
**Suspend and subshell:** On native Windows, `Alt+Z` opens an interactive PowerShell subshell; type `exit` to return to the same Atomic session while background tasks keep running, and `Ctrl+Z` stays editor undo. On POSIX systems and WSL, `Ctrl+Z` suspends Atomic and `fg` resumes it.
|
|
55
52
|
|
|
56
53
|
See [Keybindings](/keybindings) for all shortcuts and customization.
|
|
57
54
|
|
|
58
|
-
|
|
55
|
+
## Startup typing
|
|
59
56
|
|
|
60
|
-
On
|
|
57
|
+
On eligible interactive starts, Atomic opens the prompt editor immediately so you can start typing right away, and keeps your text while the session finishes loading.
|
|
61
58
|
|
|
62
|
-
|
|
59
|
+
Immediate startup typing activates in a fullscreen terminal when all of these hold:
|
|
63
60
|
|
|
64
|
-
|
|
61
|
+
- Standard input and output are a TTY, `CI` is unset, and `TERM` is not `dumb`.
|
|
62
|
+
- No startup dialog (such as first-run setup or a project trust prompt) is shown.
|
|
63
|
+
- No CLI flags are passed outside `--offline`, `--no-mcp`, `--verbose`, `--approve`/`-a`, and `--no-approve`/`-na`.
|
|
64
|
+
- None of these editor display settings are set in global, legacy, or project settings: `editorPaddingX`, `autocompleteMaxVisible`, `showHardwareCursor`, `terminal`, `fullscreenScrollbar`, `fullscreenCopyOnSelect`, or `fullscreenWheelScrollLines`.
|
|
65
|
+
- No project or legacy `theme` override is set, and the global `theme` is unset or one of the six static built-in themes (`dark`, `light`, `catppuccin-frappe`, `catppuccin-latte`, `catppuccin-macchiato`, `catppuccin-mocha`). `system` and `light/dark` pairs use standard startup.
|
|
65
66
|
|
|
66
67
|
While the session is still loading:
|
|
67
68
|
|
|
@@ -85,63 +86,72 @@ When a startup screen appears (project trust, first-run setup, resume picker, or
|
|
|
85
86
|
|
|
86
87
|
Type `/` in the editor to open command completion. Extensions can register custom commands, skills run as `/skill:name`, and prompt templates expand via `/templatename`. While viewing a subagent, built-in commands target `main` (confirming commands that replace or rewrite the main chat, refusing `/model` and `/thinking`, and using `/copy` for the viewed subagent's last message), while skills, prompt templates, and user or project extension commands target the viewed subagent; see [Commands while viewing a subagent](/background-tasks#commands-while-viewing-a-subagent).
|
|
87
88
|
|
|
89
|
+
Commands that take no arguments (such as `/new`, `/tools`, `/reload`, `/tree`, `/fork`, `/clone`, `/settings`, and `/session` with anything other than `snapshot`) match only when entered bare. Appending extra text sends that text to the model as a normal prompt.
|
|
90
|
+
|
|
88
91
|
`/settings` lists each setting and value, shortening long labels on narrow terminals. Type to search; press `Enter` or `Space` to step a value or open its picker (`›`). `Right` never changes or saves a setting. The selected setting's description appears below the list, and `Esc` clears search before closing.
|
|
89
92
|
|
|
90
93
|
| Command | Description |
|
|
91
|
-
|
|
92
|
-
| `/login
|
|
93
|
-
| `/
|
|
94
|
-
| `/
|
|
94
|
+
| --- | --- |
|
|
95
|
+
| `/login [provider]` | Sign in with an OAuth subscription or save an API key. Accepts an optional provider ID or display name |
|
|
96
|
+
| `/logout [provider]` | Remove stored credentials from `~/.atomic/agent/auth.json` (leaves environment variables and `models.json` unchanged) |
|
|
97
|
+
| `/model [provider/model]` | Switch models and save the startup default. An exact case-insensitive match (`provider/id` or bare `id`, no `:thinking` suffix) switches immediately; other text opens the picker pre-filtered. Searches scoped models when active, otherwise all available models |
|
|
98
|
+
| `/thinking [level]` | Set the thinking level (case-insensitive) and save the startup default. Rejects levels unsupported by the current model with an error listing available levels |
|
|
95
99
|
| `/scoped-models` | Enable, disable, and reorder models for `Ctrl+P` cycling |
|
|
96
100
|
| `/settings` | Change theme, message delivery, transport, and other preferences |
|
|
97
|
-
| `/resume` |
|
|
101
|
+
| `/resume [id\|prefix]` | Open a session directly by full ID or unique 8-hex prefix, or browse previous sessions when called with no argument |
|
|
98
102
|
| `/new` | Start a new session |
|
|
99
|
-
| `/name
|
|
103
|
+
| `/name [name]` | Set the session display name, or print the current name when called with no argument |
|
|
100
104
|
| `/session [snapshot]` | Show session location, ID, messages, tokens, and cost; `snapshot` shows worktree snapshots and diffs |
|
|
101
105
|
| `/tools` | Show active tools, why other tools are off, and unregistered names in `defaultTools` |
|
|
102
|
-
| `/tasks` | Inspect
|
|
106
|
+
| `/tasks [taskId]` | Inspect background subagents and shells, or open a specific task directly by task ID |
|
|
103
107
|
| `/tree` | Jump to any point in the session tree and continue from there |
|
|
104
108
|
| `/fork` | Create a new session from an earlier user message |
|
|
105
109
|
| `/clone` | Duplicate the current active branch into a new session |
|
|
106
|
-
| `/compact [instructions]` | Clear or compact the context window
|
|
110
|
+
| `/compact [instructions]` | Clear or compact the context window so the agent recovers details from session history. A manual `/compact` can take over an automatic compaction in progress; a second manual call warns and is ignored |
|
|
107
111
|
| `/copy` | Copy the last assistant message to the clipboard |
|
|
108
|
-
| `/export [file]` | Export the session to HTML (default) or
|
|
109
|
-
| `/import <file>` | Import
|
|
110
|
-
| `/share` | Upload
|
|
112
|
+
| `/export [file]` | Export the session to HTML (default) or to a JSONL export when `file` ends in `.jsonl` (case-insensitive). Accepts quoted paths with spaces and rejects unclosed quotes |
|
|
113
|
+
| `/import <file>` | Import an exported `.jsonl` session (accepts quoted paths; asks for confirmation before replacing the current session) |
|
|
114
|
+
| `/share` | Upload a private GitHub gist with a shareable HTML link. Requires `gh` installed and authenticated (`gh auth login`); strips worktree snapshot contents and large tool-output blobs from the uploaded copy |
|
|
111
115
|
| `/trust` | Save a project trust decision for future sessions |
|
|
112
|
-
| `/
|
|
113
|
-
| `/reload` | Reload keybindings, extensions, skills, prompts, themes, and context files |
|
|
116
|
+
| `/reload` | Reload keybindings, extensions, skills, prompts, themes, context files, system prompt files, `settings.json`, and `models.json` (refused while the agent is streaming or compaction is active) |
|
|
114
117
|
| `/hotkeys` | Show all keyboard shortcuts |
|
|
115
118
|
| `/changelog` | Display the full version history |
|
|
119
|
+
| `/debug` | Unlisted diagnostic command that appends a UI and message snapshot to `~/.atomic/agent/atomic-debug.log` and prints the file path (see [Debugging](/development#debugging)) |
|
|
116
120
|
| `/exit`, `/quit` | Exit Atomic |
|
|
117
121
|
|
|
118
|
-
Bundled
|
|
122
|
+
**Bundled extension commands:** Atomic's bundled extensions also register `/agents` (subagents), `/mcp` (MCP servers), `/intercom` (Intercom overlay), `/llama` (load, unload, or download local `llama.cpp` router models from Hugging Face; see [Local models](/llama-cpp)), and `/curator`, `/websearch`, `/search`, `/google-account` ([Web access](/web-access)).
|
|
119
123
|
|
|
120
124
|
## Message queue
|
|
121
125
|
|
|
122
|
-
You can submit messages while the agent works.
|
|
126
|
+
You can submit messages while the agent works. Atomic runs your session in a background session process separate from the terminal UI so queued input and interrupts stay responsive.
|
|
127
|
+
|
|
128
|
+
### Queueing and interrupting
|
|
129
|
+
|
|
130
|
+
The same queue and interrupt keys apply on `main` and while viewing a subagent, except `Esc` pauses a viewed subagent instead of interrupting `main`:
|
|
123
131
|
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
-
|
|
128
|
-
-
|
|
132
|
+
- **`Enter`** queues a steering message, delivered after the current assistant turn finishes its tool calls.
|
|
133
|
+
- **`Alt+Enter`** (**`Ctrl+Q`** on Windows and WSL) queues a follow-up message, delivered after the agent finishes all work.
|
|
134
|
+
- **`Escape`** aborts active or queued work and restores still-queued steering and follow-up messages to the editor. The session stays paused until you submit the next ordinary chat message, which releases any held queue before starting the turn. Another `Escape` while paused restores newly queued text without releasing the pause.
|
|
135
|
+
- **`Ctrl+C`** clears editor text first. On an empty editor, it aborts active or queued work and pauses queued messages in place in their original order until your next ordinary submission. After the abort settles, `Ctrl+C` on an empty editor displays `Press Ctrl+C again to exit` without releasing the hold, and a second press within 0.8 seconds exits.
|
|
136
|
+
- **`Alt+Up`** (**`Alt+Q`** on Windows and WSL) retrieves queued messages back to the editor without aborting active work or resuming a paused session. It restores only messages the agent has not already taken into its turn, and reports an error without dropping messages if the background session process is unreachable.
|
|
129
137
|
|
|
130
|
-
Each queue keeps submission order, and steering messages run ahead of follow-ups. Messages submitted during compaction, prompt templates, skills, and messages sent
|
|
138
|
+
Each queue keeps submission order, and steering messages run ahead of follow-ups. Messages submitted during compaction, prompt templates, skills, and messages sent by slash commands wait in queue order until compaction ends or is cancelled. Non-prompt slash commands such as `/settings`, `/tasks`, and `/model` run immediately during compaction.
|
|
131
139
|
|
|
132
140
|
Messages submitted while Atomic prepares a prompt, waits to retry a failed request, or finishes end-of-run extension hooks queue the same way and join the next turn boundary in order. If the first message sent after compaction fails, it stays queued ahead of later messages so your next submission retries them in order, and `Alt+Up` (or `Alt+Q`) returns them together.
|
|
133
141
|
|
|
134
142
|
Interrupts hold only messages still waiting in the queue. A message the agent already picked up stays in the transcript; if an interrupt cancels its reply before any output prints, Atomic answers it rather than stranding it. A reply that already began printing stays as printed, and sending a message while a recovered reply streams queues cleanly until it finishes.
|
|
135
143
|
|
|
136
|
-
|
|
144
|
+
On Windows and WSL, follow-up queueing defaults to `Ctrl+Q` and dequeue defaults to `Alt+Q`, avoiding Windows Terminal's `Alt+Enter` fullscreen binding. Only remap `Alt+Enter` in [Terminal setup](/terminal-setup) if you explicitly rebind an action to `alt+enter`.
|
|
137
145
|
|
|
138
|
-
|
|
146
|
+
Configure delivery behavior with `steeringMode` and `followUpMode` in [Settings](/settings#message-delivery).
|
|
139
147
|
|
|
140
|
-
|
|
148
|
+
### Interrupt grace period and recovery
|
|
141
149
|
|
|
142
|
-
|
|
150
|
+
Both abort paths request cooperative cancellation and keep the background session process running during normal interrupts. Pending tool calls abort immediately with `Operation aborted`. Any active tool call still running 10 seconds after the interrupt (configurable via `ATOMIC_TOOL_ABORT_GRACE_MS`; see [Environment variables](/environment-variables)) receives `Operation aborted: <tool> did not stop within 10 seconds after the turn was interrupted`, letting the turn finish while discarding any later output from that call.
|
|
143
151
|
|
|
144
|
-
|
|
152
|
+
`Ctrl+C` also provides explicit recovery. It closes an extension's custom UI if that UI does not handle `Ctrl+C`. If the background session process stops answering, or a cancel or queue-clear request fails or stalls for over one second, `Ctrl+C` terminates and restarts the session process. Recovery never triggers automatically. Restarting the session process interrupts running tools; check `/tasks` and the transcript before repeating actions.
|
|
153
|
+
|
|
154
|
+
If sending fails, Atomic restores your unsent text (including pasted content) to the editor above any text typed while the send was pending, along with later queued messages in order, without adding a redundant red error. See [Keybindings](/keybindings#application).
|
|
145
155
|
|
|
146
156
|
## Sessions
|
|
147
157
|
|
|
@@ -159,13 +169,20 @@ Useful interactive session commands:
|
|
|
159
169
|
|
|
160
170
|
See [Sessions](/sessions) and [Compaction](/compaction) for storage selection, ID matching, branching, and compaction details.
|
|
161
171
|
|
|
162
|
-
## Context files
|
|
172
|
+
## Context and system prompt files
|
|
163
173
|
|
|
164
|
-
Atomic loads `AGENTS.override.md`, `AGENTS.md`,
|
|
174
|
+
Atomic loads `AGENTS.override.md`, `AGENTS.md`, `AGENTS.MD`, `CLAUDE.md`, or `CLAUDE.MD` from global config directories, ancestor directories up to the filesystem root, and the current directory. See [Add project instructions](/getting-started/project-instructions) for exact single-file-per-directory priority, worktree shadowing, and untrusted-project rules. Disable context files for one run with `--no-context-files` or `-nc`.
|
|
165
175
|
|
|
166
176
|
### System prompt files
|
|
167
177
|
|
|
168
|
-
Replace the default system prompt with
|
|
178
|
+
Replace the default system prompt with `SYSTEM.md` or append standing instructions with `APPEND_SYSTEM.md`. Atomic loads only the **first existing file** in this order:
|
|
179
|
+
|
|
180
|
+
1. `.atomic/SYSTEM.md` (trusted projects only)
|
|
181
|
+
2. `.pi/SYSTEM.md` (trusted projects only)
|
|
182
|
+
3. `~/.atomic/agent/SYSTEM.md`
|
|
183
|
+
4. `~/.pi/agent/SYSTEM.md`
|
|
184
|
+
|
|
185
|
+
`APPEND_SYSTEM.md` uses the exact same four-path order, so a project `APPEND_SYSTEM.md` **replaces** (does not concatenate with) a global `APPEND_SYSTEM.md`. Passing `--system-prompt` overrides `SYSTEM.md`, and passing `--append-system-prompt` replaces any discovered `APPEND_SYSTEM.md`. Context files and skills still append even when `SYSTEM.md` or `--system-prompt` replaces the default prompt.
|
|
169
186
|
|
|
170
187
|
The default prompt instructs the agent to write self-describing code without unnecessary comments unless requested. Ask for comments directly in your prompt or add a standing rule in a context file or `APPEND_SYSTEM.md`.
|
|
171
188
|
|
|
@@ -173,37 +190,18 @@ The agent recalls earlier sessions in this project through `history://` when you
|
|
|
173
190
|
|
|
174
191
|
## Exporting and sharing sessions
|
|
175
192
|
|
|
176
|
-
Use `/export [file]` to write a session to HTML (default) or to
|
|
193
|
+
Use `/export [file]` to write a session to HTML (default) or to a JSONL export when the filename ends in `.jsonl` (case-insensitive). Quoted filenames work for paths containing spaces, and unclosed quotes return an error. In exported HTML, press `T` to toggle thinking, `O` to toggle tool output, and `H` to show custom messages hidden in the terminal.
|
|
177
194
|
|
|
178
|
-
`atomic --export <session.jsonl> [file]` renders
|
|
195
|
+
`atomic --export <session.jsonl> [file]` renders a single subagent launch on the selected branch as an `Agent(...)` card showing its prompt, tool calls, and final answer. Parallel launches and other extension tools keep their normal export format.
|
|
179
196
|
|
|
180
|
-
Use `/share` to upload a private GitHub gist with a shareable link that opens in `https://bastani.ai/session/` (override with `ATOMIC_SHARE_VIEWER_URL`).
|
|
197
|
+
Use `/share` to upload a private GitHub gist with a shareable link that opens in `https://bastani.ai/session/` (override with `ATOMIC_SHARE_VIEWER_URL`). `/share` requires the GitHub CLI (`gh`) installed and authenticated, and strips worktree snapshot contents and large tool-output blobs before uploading.
|
|
181
198
|
|
|
182
199
|
Treat exported and shared sessions as sensitive. Transcripts can contain source code, file paths, and credentials; review a session before sharing it with anyone who has the link.
|
|
183
200
|
|
|
184
|
-
##
|
|
185
|
-
|
|
186
|
-
Atomic keeps the core CLI small and bundles first-party integrations for subagents, MCP, web access, and [Intercom](/intercom). For reusable multi-step procedures, write a [skill](/skills#skills-as-workflows).
|
|
187
|
-
|
|
188
|
-
## Moved sections
|
|
189
|
-
|
|
190
|
-
CLI flags, commands, and environment variables moved to the [CLI reference](/reference/cli):
|
|
201
|
+
## CLI reference
|
|
191
202
|
|
|
192
|
-
|
|
193
|
-
<a id="package-commands" />
|
|
194
|
-
<a id="credential-commands" />
|
|
195
|
-
<a id="modes" />
|
|
196
|
-
<a id="model-options" />
|
|
197
|
-
<a id="session-options" />
|
|
198
|
-
<a id="tool-options" />
|
|
199
|
-
<a id="project-trust-options" />
|
|
200
|
-
<a id="resource-options" />
|
|
201
|
-
<a id="other-options" />
|
|
202
|
-
<a id="file-arguments" />
|
|
203
|
-
<a id="examples" />
|
|
204
|
-
<a id="environment-variables" />
|
|
203
|
+
All CLI commands, flags, model-matching rules, and environment variables live in the [CLI reference](/reference/cli):
|
|
205
204
|
|
|
206
|
-
- [CLI reference](/reference/cli#cli-reference), [Package commands](/reference/cli#package-commands), and [Credential commands](/reference/cli#credential-commands)
|
|
207
205
|
- [Modes](/reference/cli#modes), [Model options](/reference/cli#model-options), and [Session options](/reference/cli#session-options)
|
|
208
206
|
- [Tool options](/reference/cli#tool-options), [Project trust options](/reference/cli#project-trust-options), [Resource options](/reference/cli#resource-options), and [Other options](/reference/cli#other-options)
|
|
209
|
-
- [File arguments](/reference/cli#file-arguments), [Examples](/reference/cli#examples), and [Environment variables](/reference/cli#environment-variables)
|
|
207
|
+
- [File arguments](/reference/cli#file-arguments), [Examples](/reference/cli#examples), [Package commands](/reference/cli#package-commands), [Credential commands](/reference/cli#credential-commands), and [Environment variables](/reference/cli#environment-variables)
|
package/docs/verification.md
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
|
|
2
|
+
title: "Verify changes with evidence"
|
|
3
|
+
sidebarTitle: "Verification"
|
|
4
|
+
description: "Choose real checks for code, terminal, browser, and desktop changes, capture reproducible evidence, and attach it to pull requests."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# Verification and evidence
|
|
7
|
-
|
|
8
7
|
Good verification tests the exact behavior that changed. A unit test and its output may be enough for a library fix. When a change affects what a user sees or does, exercise that interaction directly. A recording helps when motion or timing matters, though it does not replace a required test.
|
|
9
8
|
|
|
10
|
-
<a id="select-the-verification-environment" />
|
|
11
|
-
|
|
12
9
|
## Choose checks that answer the question
|
|
13
10
|
|
|
14
11
|
Start with the project's required tests, build, typecheck, and lint. Then ask what could still fail if all of those pass:
|
|
@@ -22,7 +19,7 @@ Start with the project's required tests, build, typecheck, and lint. Then ask wh
|
|
|
22
19
|
|
|
23
20
|
### Reuse past verification
|
|
24
21
|
|
|
25
|
-
Past sessions, commits, and pull requests can suggest useful checks, but they do not prove the current revision works. See [
|
|
22
|
+
Past sessions, commits, and pull requests can suggest useful checks, but they do not prove the current revision works. See [Automate browsers, desktops, and terminals](/computer-use) for tool setup, operating-system permissions, and coverage limits.
|
|
26
23
|
|
|
27
24
|
## Define a reproducible scenario
|
|
28
25
|
|
|
@@ -34,9 +31,6 @@ Wait for an observable result with a deadline instead of a fixed sleep, and save
|
|
|
34
31
|
|
|
35
32
|
## Capture evidence appropriate to the change
|
|
36
33
|
|
|
37
|
-
<a id="terminal-contracts" />
|
|
38
|
-
<a id="reproduce-stage-skill-terminal-evidence" />
|
|
39
|
-
|
|
40
34
|
### Terminal changes
|
|
41
35
|
|
|
42
36
|
Use Herdr when requested and running inside a Herdr-managed pane. Otherwise use a dedicated tmux session on macOS or Linux, or native psmux on Windows. See [Terminal automation with Herdr](/computer-use#terminal-automation-with-herdr) for setup and commands.
|
|
@@ -49,7 +43,7 @@ Use [agent-browser](/computer-use#browser-automation-with-agent-browser) for sup
|
|
|
49
43
|
|
|
50
44
|
Keep a screenshot for layout checks or a short recording for multi-step motion. For example, in a dedicated session named `pr-check`:
|
|
51
45
|
|
|
52
|
-
```
|
|
46
|
+
```bash
|
|
53
47
|
agent-browser --session pr-check snapshot > after.yaml
|
|
54
48
|
agent-browser --session pr-check screenshot after.png
|
|
55
49
|
```
|
|
@@ -60,25 +54,21 @@ For motion, run `agent-browser --session pr-check record start flow.webm` before
|
|
|
60
54
|
|
|
61
55
|
For Mobile Safari, run `agent-browser -p ios` against a real iOS Simulator (`set device` in Chromium changes the viewport, not the WebKit engine), and record with `xcrun simctl`. For a native mobile app, use device or emulator tooling such as XCUITest or UI Automator instead of browser captures.
|
|
62
56
|
|
|
63
|
-
<a id="desktop-safety" />
|
|
64
|
-
|
|
65
57
|
### Native desktop changes
|
|
66
58
|
|
|
67
59
|
Use [agent-desktop](/computer-use#desktop-automation-with-agent-desktop) in a dedicated graphical session after verifying `agent-desktop status`. Observe the app, act on a ref from that snapshot, wait for the intended postcondition with a timeout, and read it back.
|
|
68
60
|
|
|
69
|
-
Keep the snapshot, action, and wait JSON together with before and after screenshots. A partial accessibility tree (`data.complete: false`) requires another observation before acting. If a click or save times out, inspect the app and saved files before retrying because the action may already have landed.
|
|
70
|
-
|
|
71
|
-
<a id="use-evidence-in-a-workflow" />
|
|
61
|
+
Keep the snapshot, action, and wait JSON together with before and after screenshots. A partial accessibility tree (`data.complete: false`) requires another observation before acting. If a click or save times out, inspect the app and saved files before retrying because the action may already have landed. Grant OS consent dialogs yourself when prompted; Atomic pauses for your approval instead of trying to click through system permission dialogs.
|
|
72
62
|
|
|
73
63
|
## Verify delegated work
|
|
74
64
|
|
|
75
|
-
When
|
|
65
|
+
When you delegate verification to [subagents](/subagents), give them the same scenario and acceptance criteria you want checked directly. Ask for the tested revision, exact commands, observed results, and saved artifact paths.
|
|
76
66
|
|
|
77
|
-
After a
|
|
67
|
+
After a subagent finishes, inspect its evidence or have Atomic rerun key checks directly through [codemode](/codemode). A task confirmation, a filename, or agreement between reviewers does not replace an actual check result. Fix real failures and rerun the checks against the updated revision before accepting the change. Approving a change stays separate from permission to publish it, which Atomic confirms separately (for example via [`ask_user_question`](/tools#ask_user_question)).
|
|
78
68
|
|
|
79
69
|
### Switching between delegated and direct execution
|
|
80
70
|
|
|
81
|
-
Apply the same verification rules when
|
|
71
|
+
Apply the same verification rules when running checks directly in your main session. If you switch from subagent verification to direct execution, finish or stop running subagents and check modified files and background tasks before repeating a command.
|
|
82
72
|
|
|
83
73
|
## When a tool or environment is unavailable
|
|
84
74
|
|
|
@@ -86,11 +76,21 @@ Check installed tools and cached runtimes first, and install missing dependencie
|
|
|
86
76
|
|
|
87
77
|
For example, a passing headless-browser test does not verify a native file dialog. Report skipped or simulated scenarios clearly instead of counting them as real-platform passes.
|
|
88
78
|
|
|
89
|
-
###
|
|
79
|
+
### Code quality checks with `qlty`
|
|
80
|
+
|
|
81
|
+
[`qlty`](https://qlty.sh) coordinates repository linters, formatters, and built-in static analysis (Atomic ships a bundled `qlty` skill; see [Skills](/skills)). Repository scripts and CI checks remain authoritative, so use `qlty` alongside them rather than replacing project tooling.
|
|
90
82
|
|
|
91
|
-
|
|
83
|
+
- **Install.** On macOS and Linux, install with `curl https://qlty.sh | sh` after reviewing the installer (default binary path is `~/.qlty/bin`; override with `QLTY_NO_MODIFY_PATH=1` or `QLTY_INSTALL_BIN_PATH`). If you verify release attestations before installing, use `gh` 2.67.0 or later so missing attestations are not accepted as valid (CVE-2025-25204).
|
|
84
|
+
- **Run scoped checks.** `qlty check` and `qlty fmt` inspect changed files by default. Pass `--all` to cover the whole repository, `--upstream origin/main` to compare against a branch, or `--filter` and `--skip` with plugin names (or `plugin:rule` entries on `check`) to narrow scope. Built-in `qlty metrics` and `qlty smells` run offline once `qlty` is installed:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
qlty check
|
|
88
|
+
qlty check --upstream origin/main
|
|
89
|
+
qlty metrics --functions path/to/file.ts
|
|
90
|
+
qlty smells path/to/file.ts
|
|
91
|
+
```
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
- **Config and offline fallback.** Keep an existing `.qlty/qlty.toml` intact rather than re-initializing over it or adding competing formatters during a read-only review. If config changes are in scope and no `.qlty/qlty.toml` exists, run `qlty init --no` and review the generated file. Cached plugins and built-in metrics work offline, while uncached plugins need network downloads. Valid TOML does not prove a linter ran; record which checks executed, continue with available repository checks, and flag any required check that stayed blocked.
|
|
94
94
|
|
|
95
95
|
## Include evidence in a PR
|
|
96
96
|
|
|
@@ -100,9 +100,9 @@ State the tested revision and environment, actions taken, expected and actual ou
|
|
|
100
100
|
|
|
101
101
|
Upload evidence only to an authorized repository after reviewing and redacting personal data, credentials, private source, and unrelated windows. Local capture does not authorize publication.
|
|
102
102
|
|
|
103
|
-
On a supported GitHub host, check `gh --version` and `gh pr create --help` for [attachment support](https://docs.github.com/en/github-cli/github-cli/attaching-files-with-github-cli) (`gh` 2.99.0 or newer). In a POSIX shell:
|
|
103
|
+
On a supported GitHub host, check `gh --version` and `gh pr create --help` for GitHub CLI [attachment support](https://docs.github.com/en/github-cli/github-cli/attaching-files-with-github-cli) (`gh` 2.99.0 or newer). In a POSIX shell:
|
|
104
104
|
|
|
105
|
-
```
|
|
105
|
+
```bash
|
|
106
106
|
gh pr create --title "Fix settings save" --body-file body.md \
|
|
107
107
|
--attach 'before.png#Settings before saving' \
|
|
108
108
|
--attach 'after.png#Settings after reopening' \
|
|
@@ -111,4 +111,4 @@ gh pr create --title "Fix settings save" --body-file body.md \
|
|
|
111
111
|
|
|
112
112
|
Use a single line or PowerShell continuation syntax on Windows. To add evidence to an existing pull request, use `gh pr edit` or an authorized `gh pr comment` with `--body-file` and `--attach`. The `#text` suffix sets image alt text; omit it for video.
|
|
113
113
|
|
|
114
|
-
Read back the pull request or comment to confirm the hosted links render before reporting an upload. If the CLI, host, permissions, or file size prevent attachment, keep the artifacts local, explain the limitation, and
|
|
114
|
+
Read back the pull request or comment to confirm the hosted links render before reporting an upload. If the CLI, host, permissions, or file size prevent attachment, keep the artifacts local, explain the limitation, and use the manual upload path instead of uploading to an unrelated service.
|