@bastani/atomic 0.10.18 → 0.10.19-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 +38 -0
- package/README.md +27 -5
- package/dist/_shared/config-binary-install-SNFYFXWB.js +70 -0
- package/dist/_shared/config-binary-install-SNFYFXWB.js.map +1 -0
- 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 → mode-interactive-sdk-JXBZ3H27.js} +434 -11
- package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -0
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +21 -6
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +7 -6
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p0-cli-BB45ZQY6.js +56 -3
- package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +3 -3
- package/dist/_shared/{sdk-OHKMDJ74.js → sdk-BHX35EPK.js} +40 -9
- package/dist/_shared/sdk-BHX35EPK.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/{startup-0-0-OV6RAEAP.js → startup-0-0-4EDVBK5P.js} +464 -7
- package/dist/_shared/startup-0-0-4EDVBK5P.js.map +1 -0
- package/dist/_shared/{startup-0-1-EZAJI6RE.js → startup-0-1-H5IXVRXQ.js} +85 -7
- package/dist/_shared/startup-0-1-H5IXVRXQ.js.map +1 -0
- package/dist/_shared/startup-0-2-YZZOC22D.js +4 -4
- package/dist/_shared/startup-0-3-DE2NCS6A.js +4 -4
- package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
- package/dist/_shared/startup-0-5-HZX3ZPTP.js +44 -11
- package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
- package/dist/_shared/startup-14-0-MLX36RBG.js +3 -3
- package/dist/_shared/startup-15-0-YUKGAC63.js +3 -3
- package/dist/_shared/{startup-15-1-4S7FLMNG.js → startup-15-1-WQZBOTMZ.js} +70 -28
- package/dist/_shared/{startup-15-1-4S7FLMNG.js.map → startup-15-1-WQZBOTMZ.js.map} +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
- package/dist/_shared/{startup-8-1-LZFXSD3Z.js → startup-8-1-QZMXUGHI.js} +242 -20
- package/dist/_shared/startup-8-1-QZMXUGHI.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +5 -5
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/binary-self-update.js +281 -0
- package/dist/binary-self-update.js.map +1 -0
- package/dist/builtin/intercom/index.bundle.mjs +2 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +15 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/agent-browser/SKILL.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/SKILL.md +3 -3
- package/dist/builtin/subagents/skills/impeccable/reference/audit.md +2 -2
- package/dist/builtin/subagents/skills/impeccable/reference/critique.md +3 -3
- package/dist/builtin/subagents/skills/impeccable/reference/generate.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/reference/init.md +0 -2
- package/dist/builtin/subagents/skills/impeccable/reference/live.md +4 -2
- package/dist/builtin/subagents/skills/impeccable/reference/new-work-comp.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/reference/new-work-world.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/scripts/VERSION +1 -1
- package/dist/builtin/subagents/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/dist/builtin/subagents/skills/impeccable/scripts/impeccable +28 -5
- package/dist/builtin/subagents/skills/impeccable/scripts/impeccable.cmd +11 -2
- package/dist/builtin/subagents/skills/impeccable/scripts/live-browser.js +10 -6
- package/dist/builtin/subagents/skills/research-codebase/SKILL.md +13 -19
- package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
- package/dist/builtin/subagents/skills/subagent/SKILL.md +7 -7
- package/dist/builtin/subagents/skills/workflow/SKILL.md +98 -0
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +2 -1
- package/dist/builtin/web-access/index.bundle.mjs +2 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +3 -3
- 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 +2 -2
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +2 -2
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- 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 +3 -3
- 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 +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli/usage-command.js +22 -0
- package/dist/cli/usage-command.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/config-binary-install.js +3 -0
- package/dist/config-binary-install.js.map +1 -0
- package/dist/core/agent-session-services.js +3 -0
- package/dist/core/agent-session-services.js.map +1 -0
- 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.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- 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/runner-context.js +2 -2
- 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/{legacy-workflow-files.d.ts → legacy-workflows.d.ts} +1 -1
- package/dist/core/model-runtime.d.ts +8 -2
- package/dist/core/package-manager-storage-adapters.code.js +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/resource-loader-core.d.ts +1 -1
- package/dist/core/resource-loader-internals.d.ts +1 -1
- package/dist/core/resource-loader-types.d.ts +1 -1
- package/dist/core/resource-loader-types.js.map +1 -1
- package/dist/core/sdk.code.js +4 -4
- 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.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager.js +5 -0
- package/dist/core/settings-manager.js.map +1 -0
- 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 +2 -2
- 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/subscription-usage-credential.d.ts +2 -0
- package/dist/core/subscription-usage-endpoints.d.ts +54 -0
- package/dist/core/subscription-usage.d.ts +55 -0
- package/dist/core/subscription-usage.js +3 -0
- package/dist/core/subscription-usage.js.map +1 -0
- 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.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.code.js +1 -1
- 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/edit-diff.d.ts +4 -6
- package/dist/core/tools/read-url.code.js +3 -3
- 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 +2 -2
- 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.d.ts +3 -0
- package/dist/index.js +7 -7
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +2 -2
- 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/interactive-mode-surface.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +3 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +3 -0
- package/dist/modes/rpc/rpc-types.d.ts +25 -0
- package/dist/package-manager-cli.code.js +31 -8
- package/dist/package-manager-cli.code.js.map +1 -1
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +2 -2
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/4.js +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/subscription-usage-sdk.d.ts +9 -0
- package/dist/utils/changelog.d.ts +1 -0
- package/dist/utils/startup-database-spare.code.js +2 -2
- 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/changelog.mdx +41 -6
- package/docs/containerization.md +17 -15
- package/docs/docs.json +1 -0
- package/docs/getting-started/installation.md +132 -80
- package/docs/guides/subscription-usage.md +133 -0
- package/docs/guides/team-setup.md +14 -3
- package/docs/guides.md +3 -0
- package/docs/index.md +18 -6
- package/docs/intercom/operations.md +1 -1
- package/docs/orchestration/migrating-workflows.md +16 -10
- package/docs/orchestration/patterns.md +8 -2
- package/docs/orchestration.md +17 -8
- package/docs/quickstart.md +7 -15
- package/docs/reference/cli.md +29 -22
- package/docs/rpc/protocol.md +9 -1
- package/docs/rpc.md +1 -1
- package/docs/sdk/reference.md +5 -1
- package/docs/skills.md +20 -4
- package/docs/slash-commands.md +3 -2
- package/docs/tools.md +57 -12
- package/docs/usage.md +1 -0
- package/docs/windows.md +4 -4
- package/package.json +9 -9
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +0 -1
- package/dist/_shared/sdk-OHKMDJ74.js.map +0 -1
- package/dist/_shared/startup-0-0-OV6RAEAP.js.map +0 -1
- package/dist/_shared/startup-0-1-EZAJI6RE.js.map +0 -1
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +0 -1
- package/dist/builtin/subagents/skills/workflow-files/SKILL.md +0 -28
|
@@ -95,6 +95,8 @@ Atomic validates `ATOMIC_STORAGE` at startup before opening a session and never
|
|
|
95
95
|
|
|
96
96
|
### GitHub Actions
|
|
97
97
|
|
|
98
|
+
Install Atomic with the native installer and add its launcher directory to `GITHUB_PATH` for later steps:
|
|
99
|
+
|
|
98
100
|
```yaml
|
|
99
101
|
jobs:
|
|
100
102
|
agent:
|
|
@@ -104,7 +106,10 @@ jobs:
|
|
|
104
106
|
ATOMIC_DB_PASSWORD: ${{ secrets.ATOMIC_DB_PASSWORD }}
|
|
105
107
|
steps:
|
|
106
108
|
- uses: actions/checkout@v5
|
|
107
|
-
-
|
|
109
|
+
- name: Install Atomic
|
|
110
|
+
run: |
|
|
111
|
+
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh
|
|
112
|
+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
|
108
113
|
- run: atomic install npm:@bastani/atomic-storage-postgres
|
|
109
114
|
- run: atomic -p "Fix the failing test in the checkout"
|
|
110
115
|
```
|
|
@@ -132,7 +137,10 @@ jobs:
|
|
|
132
137
|
runs-on: ubuntu-latest
|
|
133
138
|
steps:
|
|
134
139
|
- uses: actions/checkout@v5
|
|
135
|
-
-
|
|
140
|
+
- name: Install Atomic
|
|
141
|
+
run: |
|
|
142
|
+
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh
|
|
143
|
+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
|
136
144
|
- id: keys
|
|
137
145
|
run: atomic blueprint cache-key --format github-output >> "$GITHUB_OUTPUT"
|
|
138
146
|
- run: atomic blueprint prebuild --park --approve # Runs blueprints to populate stores; trust only the default branch
|
|
@@ -160,7 +168,10 @@ In the agent job, restore those cache entries before launching Atomic:
|
|
|
160
168
|
|
|
161
169
|
```yaml
|
|
162
170
|
- uses: actions/checkout@v5
|
|
163
|
-
-
|
|
171
|
+
- name: Install Atomic
|
|
172
|
+
run: |
|
|
173
|
+
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh
|
|
174
|
+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
|
164
175
|
- id: keys
|
|
165
176
|
run: atomic blueprint cache-key --format github-output >> "$GITHUB_OUTPUT"
|
|
166
177
|
- uses: actions/cache/restore@v4
|
package/docs/guides.md
CHANGED
|
@@ -67,6 +67,9 @@ New to Atomic? Start with the [Quickstart](/quickstart) to install, authenticate
|
|
|
67
67
|
<Card title="Choose a model" href="/models/choose-a-model">
|
|
68
68
|
Decide between subscriptions, API keys, local models, and custom endpoints, and configure model cycling.
|
|
69
69
|
</Card>
|
|
70
|
+
<Card title="Check subscription usage" href="/guides/subscription-usage">
|
|
71
|
+
Check limits and resets in the terminal, from a script, or with the SDK.
|
|
72
|
+
</Card>
|
|
70
73
|
<Card title="Model providers" href="/providers">
|
|
71
74
|
Connect subscription logins, API keys, and cloud gateways (Bedrock, Vertex AI, Azure, NIM).
|
|
72
75
|
</Card>
|
package/docs/index.md
CHANGED
|
@@ -12,14 +12,26 @@ Atomic is an extensible coding agent that runs in your terminal. Give it a goal
|
|
|
12
12
|
|
|
13
13
|
## Quick start
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
### Native install (recommended)
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
npm install -g @bastani/atomic
|
|
19
|
-
atomic
|
|
20
|
-
```
|
|
17
|
+
Run the command for your system:
|
|
21
18
|
|
|
22
|
-
|
|
19
|
+
<Tabs>
|
|
20
|
+
<Tab title="macOS, Linux, WSL">
|
|
21
|
+
```bash
|
|
22
|
+
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh
|
|
23
|
+
```
|
|
24
|
+
</Tab>
|
|
25
|
+
<Tab title="Windows PowerShell">
|
|
26
|
+
```powershell
|
|
27
|
+
irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex
|
|
28
|
+
```
|
|
29
|
+
</Tab>
|
|
30
|
+
</Tabs>
|
|
31
|
+
|
|
32
|
+
Open a new terminal, run `atomic`, then sign in with `/login`. Follow the [Quickstart](/quickstart) to run your first session.
|
|
33
|
+
|
|
34
|
+
If you installed with npm, pnpm, or Bun, see [Switch to the native installer](/getting-started/installation#switch-to-the-native-installer). If you still need a package manager, see [Advanced installation options](/getting-started/installation#advanced-installation-options).
|
|
23
35
|
|
|
24
36
|
## Start here
|
|
25
37
|
|
|
@@ -41,7 +41,7 @@ Sessions on one machine share a single local broker that keeps running after you
|
|
|
41
41
|
|
|
42
42
|
- **Automatic handover.** When a session on a newer Atomic version finds an older compatible broker, it asks that broker to shut down, waits up to 1 minute for exit (older Windows brokers can take around 30 seconds with active sessions), and starts the new broker. Existing sessions reconnect automatically, keep their session IDs, and continue exchanging messages.
|
|
43
43
|
- **When replacement fails.** If the older broker does not stop, uses a different shared storage selection, or speaks an incompatible protocol, the session leaves it running. Without multi-node storage, the session warns once and runs locally on the existing broker, failing only requests that require newer protocol features (`IntercomBrokerProtocolError`). With multi-node storage configured, the session refuses to register (`IntercomRoutingUnavailableError`) until you run `atomic intercom restart`.
|
|
44
|
-
- **Installer and update hook.**
|
|
44
|
+
- **Installer and update hook.** The [native installer](/getting-started/installation#release-archive) and `atomic update` run `atomic intercom upgrade`. This stops an idle older broker immediately. An active broker keeps running until the next session on the new version takes over. If you update directly with a package manager, run `atomic intercom upgrade` yourself.
|
|
45
45
|
|
|
46
46
|
<Note>
|
|
47
47
|
**Upgrading from Atomic 0.10.4 or earlier on Windows.** If `npm install -g @bastani/atomic` fails with `EBUSY` on `dist\builtin\intercom`, an older broker is holding that directory open. Close running Atomic sessions, wait 5 seconds (or run `atomic intercom restart`), and re-run the install. From 0.10.5 onward, the broker runs outside the installation directory and does not block npm updates or uninstalls.
|
|
@@ -4,31 +4,33 @@ sidebarTitle: "Migrate workflows"
|
|
|
4
4
|
description: "Convert legacy Atomic workflow files into reusable skills without executing or modifying the originals."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Use the bundled `workflow` skill to turn an earlier Atomic workflow file into a reusable [skill](/skills#skills-as-workflows), or to replace a removed built-in. Atomic reads the old files without running or changing them. For new workflows, start with [Orchestration](/orchestration) instead of writing a legacy workflow file.
|
|
8
8
|
|
|
9
9
|
<Steps>
|
|
10
10
|
<Step title="Start the conversion">
|
|
11
|
-
Ask Atomic in chat or invoke `/skill:workflow
|
|
11
|
+
Ask Atomic in chat or invoke `/skill:workflow` with the workflow path:
|
|
12
12
|
|
|
13
13
|
```text
|
|
14
14
|
Convert .atomic/workflows/triage.ts into a skill
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
```text
|
|
18
|
-
/skill:workflow
|
|
18
|
+
/skill:workflow .atomic/workflows/triage.ts
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
If you want Atomic to run the result, say so and include the inputs. For example: `Convert .atomic/workflows/triage.ts and run the new skill on reports/april`.
|
|
22
22
|
</Step>
|
|
23
23
|
<Step title="Review the generated skill and scripts">
|
|
24
|
-
|
|
24
|
+
Review the instructions in the new `SKILL.md`. If a step needs a script to run it the same way every time, Atomic places a new helper in `scripts/`. Atomic leaves the earlier files untouched and does not replace an existing skill. If the name is taken, use a different name.
|
|
25
25
|
</Step>
|
|
26
26
|
<Step title="Reload and invoke">
|
|
27
|
-
Run `/reload
|
|
27
|
+
Run `/reload` in the same Atomic session. Then run the new skill, for example `/skill:triage reports/april`. If the command is missing, compare its name with the `name` at the top of `SKILL.md` and check that Atomic [looks in the folder where you saved it](/skills#locations). If a run is interrupted, check `/tasks` in the original chat before starting it again.
|
|
28
28
|
</Step>
|
|
29
29
|
</Steps>
|
|
30
30
|
|
|
31
|
-
At startup, Atomic
|
|
31
|
+
At startup, Atomic can point out old `.ts`, `.js`, `.mjs`, and `.cjs` workflow files. It doesn't convert anything automatically. If your file isn't in the notice, give Atomic its path directly.
|
|
32
|
+
|
|
33
|
+
If you saved `/skill:workflow-files` in a prompt, replace it with `/skill:workflow`. The bundled skill no longer uses the old name.
|
|
32
34
|
|
|
33
35
|
Workflow files in untrusted projects are never offered for conversion, and Atomic never writes into an untrusted project directory. Global workflows still convert; for an explicitly supplied trusted external source inside an untrusted project, Atomic asks before saving globally.
|
|
34
36
|
|
|
@@ -40,7 +42,9 @@ Workflow files in untrusted projects are never offered for conversion, and Atomi
|
|
|
40
42
|
|
|
41
43
|
## What conversion preserves
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
Use this table to check that the new skill still does what you need. A stage in the old workflow was a named job, such as reviewing one report. You do not need to write or run the old API to migrate it.
|
|
46
|
+
|
|
47
|
+
| Earlier workflow | Equivalent in the converted skill |
|
|
44
48
|
| --- | --- |
|
|
45
49
|
| `ctx.stage`, `ctx.task`, model and thinking | Codemode `tools.subagent()` launches in the main chat that keep prompts, inputs, and model pins. |
|
|
46
50
|
| Stage `fallbackModels`, `tools`, `mcp` | Named [custom subagent](/subagents/authoring) launched without per-call `model` ([Pinned stages](#pinned-stages)). |
|
|
@@ -74,9 +78,11 @@ Both comma-separated strings and YAML lists work for `fallbackModels` and `tools
|
|
|
74
78
|
const launch = await tools.subagent({ agent: "triage-reviewer", task: report });
|
|
75
79
|
```
|
|
76
80
|
|
|
77
|
-
|
|
81
|
+
If you maintain an Atomic package, ask Atomic to update the source package, not the installed copy. List the skill under `skills` and the companion agent under [`agents`](/packages/authoring#subagents). Packaged agents use their full name, for example `acme.triage.triage-reviewer` for `triage-reviewer` in `@acme/triage`.
|
|
82
|
+
|
|
83
|
+
## Replace a removed built-in workflow
|
|
78
84
|
|
|
79
|
-
|
|
85
|
+
For example, ask `/skill:workflow Help me replace tournament with a skill that compares two approaches on the same tests`. There is no old file to convert. Review the scoring rules and isolation in the new skill before you run it.
|
|
80
86
|
|
|
81
87
|
- `classify-and-act`, `fan-out-and-synthesize`, `adversarial-verification`, `generate-and-filter`, `tournament`, and `loop-until-done` map to the matching [orchestration patterns](/orchestration/patterns).
|
|
82
88
|
- `ralph` maps to a research, implementation, and review loop in the main chat with an explicit round limit.
|
|
@@ -4,7 +4,13 @@ sidebarTitle: "Orchestration patterns"
|
|
|
4
4
|
description: "Seven reusable patterns for splitting work across subagents, isolating edits, and verifying results."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Use these patterns to decide what can happen in parallel, what needs an earlier result, and what counts as done. Ask for a pattern in chat for a one-off task, or use `/skill:workflow` to turn it into a reusable skill. For example:
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
/skill:workflow Draft a skill that reviews the Linux and Windows install guides in parallel and verifies both reviews before reporting. Don't launch it yet.
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Give each subagent one deliverable, its inputs, what it can edit, and a check. If subagents might edit the same files, give each writer a separate Git working copy, called a worktree. Run the final checks in your main session. If a result is missing, check `/tasks` in the original chat before starting the job again.
|
|
8
14
|
|
|
9
15
|
## Choose a pattern
|
|
10
16
|
|
|
@@ -107,7 +113,7 @@ return r.tasks;
|
|
|
107
113
|
`worker` defaults to `context: "fork"`, so pass `context: "fresh"` when you want independent attempts without the main chat's prior reasoning ([Fresh vs. forked context](/subagents#fresh-vs-forked-context)). Named worktrees (`worktree: { branch }`) are permanent and do not symlink `node_modules` — have competitors install dependencies if needed and remove unused branches/worktrees when the tournament ends.
|
|
108
114
|
</Tip>
|
|
109
115
|
|
|
110
|
-
Record
|
|
116
|
+
Record the task IDs, commit SHAs, scores, and which round each candidate finished. If interrupted, match those records against `/tasks` in the original chat before starting a new round. If both candidates fail a required check, report that neither won. If you used the former tournament built-in, ask `/skill:workflow` to save this pattern and your scoring rules as a skill.
|
|
111
117
|
|
|
112
118
|
## Loop-until-done
|
|
113
119
|
|
package/docs/orchestration.md
CHANGED
|
@@ -4,7 +4,7 @@ sidebarTitle: "Orchestrate multi-step work"
|
|
|
4
4
|
description: "Delegate multi-step work in plain language or codemode scripts, handle background results as they settle, and recover cleanly after interruptions."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Give Atomic a goal,
|
|
7
|
+
Give Atomic a goal, a way to check the result, and any limits on edits, cost, or time. Describe the work in plain language. Atomic can answer directly, run checks in [codemode](/codemode), or give separate jobs to [subagents](/subagents).
|
|
8
8
|
|
|
9
9
|
```text
|
|
10
10
|
Review the installation guide for Linux and Windows. Give each platform to a separate read-only subagent. Check disputed commands against the CLI, then report discrepancies by platform. Do not edit files.
|
|
@@ -14,8 +14,9 @@ Review the installation guide for Linux and Windows. Give each platform to a sep
|
|
|
14
14
|
| --- | --- |
|
|
15
15
|
| One-off multi-step task or parallel review | Ask in plain language; Atomic coordinates the subagents for you |
|
|
16
16
|
| Monitor, steer, or answer running subagents | Open `/tasks` or focus the [agent panel](/background-tasks#the-agent-panel) (`↓` on an empty prompt) |
|
|
17
|
-
| Save a repeatable multi-step procedure |
|
|
17
|
+
| Save a repeatable multi-step procedure | Ask `/skill:workflow` to help turn it into a [skill](/skills#skills-as-workflows) with inputs, steps, and checks |
|
|
18
18
|
| Pick a proven coordination structure | Start from the seven [orchestration patterns](/orchestration/patterns) |
|
|
19
|
+
| Convert an earlier workflow file or replace a removed built-in | Use `/skill:workflow` and follow the [migration guide](/orchestration/migrating-workflows) |
|
|
19
20
|
|
|
20
21
|
<Note>
|
|
21
22
|
**Who writes codemode JavaScript?** During ordinary chat, Atomic writes and runs the [codemode](/codemode) JavaScript below automatically when coordinating parallel subagents. You only write `tools.subagent(...)` snippets yourself when authoring a custom [skill](/skills#skills-as-workflows) or prompt template that encodes a repeatable workflow.
|
|
@@ -23,7 +24,9 @@ Review the installation guide for Linux and Windows. Give each platform to a sep
|
|
|
23
24
|
|
|
24
25
|
## Launch now, use the result later
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
Your **main session** decides what to run next and verifies the result. A **subagent** is a separate session with one job, such as checking Linux installation steps. **Codemode** runs short JavaScript steps that can call Atomic tools; the main session can use one step to launch checks and another to act on their results. Check `/tools` if `codemode` or `subagent` is unavailable.
|
|
28
|
+
|
|
29
|
+
For example, start two independent reviews in one batch, then let Atomic continue when both results arrive:
|
|
27
30
|
|
|
28
31
|
```js
|
|
29
32
|
const launch = await tools.subagent({
|
|
@@ -36,7 +39,7 @@ store("guide-review", launch.tasks);
|
|
|
36
39
|
return launch.tasks;
|
|
37
40
|
```
|
|
38
41
|
|
|
39
|
-
|
|
42
|
+
The launch result looks like this:
|
|
40
43
|
|
|
41
44
|
```json
|
|
42
45
|
[
|
|
@@ -45,7 +48,12 @@ Example `launch.tasks` output:
|
|
|
45
48
|
]
|
|
46
49
|
```
|
|
47
50
|
|
|
48
|
-
-
|
|
51
|
+
- `agent` is the role assigned to the job. `state` tells you whether it started (`admitted`), is waiting to start (`queued`), or was rejected (`refused`). A rejected launch includes a `reason`.
|
|
52
|
+
- `taskId` identifies the job in `/tasks` and lets a script wait for its result.
|
|
53
|
+
- `childId` identifies the subagent session. Use it to pause, stop, or resume the session, including after reopening the main session.
|
|
54
|
+
- `intercomTarget` is the address to use if another session needs to message this subagent.
|
|
55
|
+
|
|
56
|
+
The launch result does not tell you whether a job succeeded. Look for its completion notice or check `/tasks` or the [agent panel](/background-tasks#the-agent-panel).
|
|
49
57
|
- **Explicit parallel batches.** Separate `tools.subagent()` calls inside one script are not merged automatically; pass `tasks: [...]` to launch a parallel batch.
|
|
50
58
|
- **Explicit wait.** When a later step depends on a result immediately, wait on the existing task ID instead of launching a duplicate. The `// @options` comment sets per-script [codemode options](/codemode) such as `timeout_ms`:
|
|
51
59
|
|
|
@@ -57,9 +65,10 @@ return await tools.subagent({ action: "wait", id: task.taskId, budgetMs: 2000 })
|
|
|
57
65
|
```
|
|
58
66
|
|
|
59
67
|
In codemode, always pass `id` (passing `runId` is rejected), pass a non-negative integer for `budgetMs` (defaults to `30000` ms even when a host configures unlimited foreground waits), and note that `pause` and `quit` stops both report `result.status: "paused"`.
|
|
60
|
-
- **
|
|
68
|
+
- **Stopping a subagent.** Ending a wait or timing out a script leaves a launched subagent running. Use `tools.subagent({ action: "quit", id: childId })` to stop it. Verify completed work with the result and your checks, not the launch response.
|
|
61
69
|
- **One-level delegation.** Only the main session launches subagents. If a subagent discovers follow-up work, it reports back so the main session can launch the next batch.
|
|
62
|
-
- **Peer messaging.**
|
|
70
|
+
- **Peer messaging.** Use a shared [Intercom](/intercom) group when subagents need to coordinate, for example to agree which guide covers a shared prerequisite. Pass `group: true` for a new group shared by a batch, or reuse a named `group` across launches. Address each agent by the exact `intercomTarget` from the launch result, not its task ID. Keep independent reviews separate until each reviewer has reached a conclusion.
|
|
71
|
+
- **Progress files.** Ask a long-running writer to note its latest check, blocker, and next step in its own progress file. Pass `progress: true` to give it an isolated `progress.md` outside the checkout. Progress notes help you pick up the work; they don't replace the completion notice or the final check.
|
|
63
72
|
|
|
64
73
|
## What survives interruption
|
|
65
74
|
|
|
@@ -99,4 +108,4 @@ Subagents are persisted sessions; codemode scripts are not checkpointed programs
|
|
|
99
108
|
</Card>
|
|
100
109
|
</Columns>
|
|
101
110
|
|
|
102
|
-
|
|
111
|
+
Ask `/skill:workflow` to explain these patterns, draft a repeatable skill, or [migrate an older workflow](/orchestration/migrating-workflows). For one quick job, just ask in chat.
|
package/docs/quickstart.md
CHANGED
|
@@ -8,43 +8,35 @@ description: "Install Atomic, authenticate a model provider, run your first sess
|
|
|
8
8
|
|
|
9
9
|
## Prerequisites
|
|
10
10
|
|
|
11
|
-
- **
|
|
12
|
-
- **Release archive install:** macOS and Linux need `tar` and either `curl` or `wget`; Windows uses built-in PowerShell. No Node.js or package manager is required.
|
|
11
|
+
- **Native installer:** On macOS, Linux, or WSL, have `curl` and `tar` available. On Windows, use PowerShell.
|
|
13
12
|
- **Model provider:** A supported subscription or account login (`/login`), an API key, or a local `llama.cpp` server.
|
|
14
13
|
|
|
15
14
|
## Get up and running
|
|
16
15
|
|
|
17
16
|
<Steps>
|
|
18
|
-
<Step title="
|
|
19
|
-
|
|
17
|
+
<Step title="Native install (recommended)">
|
|
18
|
+
Run the command for your system. If you use WSL, run the macOS/Linux/WSL command inside your WSL terminal.
|
|
20
19
|
|
|
21
20
|
<Tabs>
|
|
22
|
-
<Tab title="
|
|
23
|
-
```bash
|
|
24
|
-
npm install -g @bastani/atomic
|
|
25
|
-
# or: pnpm add -g @bastani/atomic
|
|
26
|
-
# or: bun add -g @bastani/atomic
|
|
27
|
-
```
|
|
28
|
-
</Tab>
|
|
29
|
-
<Tab title="macOS / Linux archive">
|
|
21
|
+
<Tab title="macOS, Linux, WSL">
|
|
30
22
|
```bash
|
|
31
23
|
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh
|
|
32
24
|
```
|
|
33
25
|
</Tab>
|
|
34
|
-
<Tab title="Windows PowerShell
|
|
26
|
+
<Tab title="Windows PowerShell">
|
|
35
27
|
```powershell
|
|
36
28
|
irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex
|
|
37
29
|
```
|
|
38
30
|
</Tab>
|
|
39
31
|
</Tabs>
|
|
40
32
|
|
|
41
|
-
|
|
33
|
+
Open a new terminal and verify the install:
|
|
42
34
|
|
|
43
35
|
```bash
|
|
44
36
|
atomic --version
|
|
45
37
|
```
|
|
46
38
|
|
|
47
|
-
|
|
39
|
+
If you installed Atomic with npm, pnpm, or Bun, [switch to the native installer](/getting-started/installation#switch-to-the-native-installer). See [Advanced installation options](/getting-started/installation#advanced-installation-options) if you need to use a package manager.
|
|
48
40
|
</Step>
|
|
49
41
|
|
|
50
42
|
<Step title="Authenticate a provider">
|
package/docs/reference/cli.md
CHANGED
|
@@ -227,33 +227,36 @@ atomic --tools read,search,find,ls -p "Review the code"
|
|
|
227
227
|
|
|
228
228
|
## Package commands
|
|
229
229
|
|
|
230
|
+
Use these commands to manage [Atomic packages](/packages), such as extensions and skills. To remove Atomic itself, see [Uninstall](/getting-started/installation#uninstall).
|
|
231
|
+
|
|
230
232
|
```bash
|
|
231
|
-
atomic install <source>
|
|
232
|
-
atomic remove <source>
|
|
233
|
-
atomic
|
|
234
|
-
atomic
|
|
235
|
-
atomic update --all # Update Atomic and packages; reconcile pinned git refs
|
|
236
|
-
atomic update --extensions # Update packages only; reconcile pinned git refs
|
|
237
|
-
atomic update --models # Force-refresh authenticated provider model catalogs (15s timeout)
|
|
238
|
-
atomic update --self # Update Atomic only
|
|
239
|
-
atomic update --force # Reinstall Atomic even if the current version is latest
|
|
240
|
-
atomic update --extension <src> # Update one package (can be passed only once)
|
|
241
|
-
atomic list [-a|-na] # List installed packages
|
|
242
|
-
atomic config [-l|--local] [-a|-na] # Open resource TUI (-l/--local starts in project settings)
|
|
233
|
+
atomic install <source> # Install a package
|
|
234
|
+
atomic remove <source> # Remove a package (uninstall is an alias)
|
|
235
|
+
atomic list # List installed packages
|
|
236
|
+
atomic config # Choose which resources to use
|
|
243
237
|
```
|
|
244
238
|
|
|
245
|
-
|
|
239
|
+
Use `--local` (`-l`) with `install` or `remove` to change only this project's packages, or with `config` to open project settings first. Package commands ask whether to trust an untrusted project's settings when run in an interactive terminal and the project has settings that require trust. Pass `--approve` (`-a`) to trust them for the command or `--no-approve` (`-na`) to ignore them. `install --local`, `remove --local`, and `config --local` exit `1` if the project is not trusted.
|
|
240
|
+
|
|
241
|
+
### Update Atomic and packages
|
|
242
|
+
|
|
243
|
+
Run `atomic update` to update Atomic itself. It prints a reminder that it didn't update any packages. Use `atomic --version` afterward to check which version new sessions will use.
|
|
244
|
+
|
|
245
|
+
| Command | What it updates |
|
|
246
|
+
| --- | --- |
|
|
247
|
+
| `atomic update` or `atomic update --self` | Atomic only. `atomic update self` and `atomic update atomic` also work. |
|
|
248
|
+
| `atomic update --extensions` | All installed packages. A Git package pinned to a branch, tag, or commit is updated to that reference, not to a different one. |
|
|
249
|
+
| `atomic update --all` | Atomic and all installed packages. |
|
|
250
|
+
| `atomic update <source>` or `atomic update --extension <source>` | One installed package. Use the source shown by `atomic list`. |
|
|
251
|
+
| `atomic update --models` | The list of models available from configured providers. It doesn't update Atomic or packages. |
|
|
246
252
|
|
|
247
|
-
|
|
248
|
-
- **Update targets and constraints:**
|
|
249
|
-
- Running bare `atomic update` updates Atomic only and prints a note that extensions were skipped (`Run atomic update --extensions to update extensions`).
|
|
250
|
-
- Passing both `--self` and `--extensions` behaves like `--all`.
|
|
251
|
-
- `--all` and `--models` cannot be combined with other update targets or a positional source, and `--extension` can be passed only once.
|
|
252
|
-
- On Windows, built-in self-update supports only `npm` and `pnpm` installs; other install methods exit `1` unless [`ATOMIC_SELF_UPDATE_COMMAND` or global `selfUpdateCommand`](#custom-update-command) is configured.
|
|
253
|
-
- **Intercom broker upgrade:** After updating the Atomic CLI, `atomic update` runs the new version's [`atomic intercom upgrade`](#intercom-commands) when `atomic` on `PATH` reports the installed version and lists that command. Otherwise it prints a note and leaves the broker alone. A failed broker upgrade prints a warning and keeps exit code `0`. If you upgrade Atomic in place while a session is running and see a restart notice, restart that session (for example with `atomic -r`).
|
|
254
|
-
- **Model catalog refresh (`atomic update --models`):** Refreshes configured provider catalogs (15-second total timeout) without updating packages. Built-in catalogs do not refresh your provider login. Account-specific catalogs still need valid credentials; if an OAuth refresh fails, the command warns with `atomic auth login <provider>` and continues refreshing other catalogs. Other failures, such as a network error, exit nonzero.
|
|
253
|
+
`--all` and `--models` each select what to update on their own. Passing `--self` and `--extensions` together is the same as `--all`. Pass `--extension` only once.
|
|
255
254
|
|
|
256
|
-
|
|
255
|
+
When updating Atomic itself, add `--force` to reinstall even if you're already on the selected version. For [release archive installs](/getting-started/installation#update-a-release-archive-install), add `--version <release>` to install an exact version or `--prerelease` to include prereleases. Use only one of these two options. Exit and resume any open sessions to use the new version.
|
|
256
|
+
|
|
257
|
+
On Windows, `atomic update` supports release archive, npm, and pnpm installs. For other Windows installs, use the tool that installed Atomic or [configure a custom update command](#custom-update-command). If the update warns about Intercom, see [Updating while Intercom is running](/getting-started/installation#updating-while-intercom-is-running).
|
|
258
|
+
|
|
259
|
+
`atomic update --models` has 15 seconds to refresh the lists. If it asks you to sign in again, run `atomic auth login <provider>` with the provider name from the warning and retry. Atomic continues refreshing other providers when one login expires. Other failures, such as a network error, return a nonzero exit status.
|
|
257
260
|
|
|
258
261
|
### Custom update command
|
|
259
262
|
|
|
@@ -363,6 +366,10 @@ The credential print commands emit one configured credential for an external cli
|
|
|
363
366
|
|
|
364
367
|
`auth check --credentials --json` may write a credential-free JSON status object on a nonzero check result. Review [Credential export security](/security#credential-export) before wiring credential export into scripts.
|
|
365
368
|
|
|
369
|
+
## Subscription usage
|
|
370
|
+
|
|
371
|
+
Run `atomic usage` for a plain-text report of your signed-in accounts and `atomic usage --json` for the same report as one JSON object. Neither starts a session. A report can contain an unavailable or failed account without failing the command. `atomic usage --offline` lists accounts without contacting providers. See [Check subscription usage](/guides/subscription-usage) for supported accounts, an example, and the JSON fields.
|
|
372
|
+
|
|
366
373
|
## MCP commands
|
|
367
374
|
|
|
368
375
|
```bash
|
package/docs/rpc/protocol.md
CHANGED
|
@@ -11,7 +11,7 @@ Ordinary commands execute sequentially in FIFO order, while interrupts, `extensi
|
|
|
11
11
|
| Category | Commands |
|
|
12
12
|
| --- | --- |
|
|
13
13
|
| **Prompting & queue** | [`prompt`](#prompt), [`steer`](#steer), [`follow_up`](#follow_up), [`abort`](#abort), [`clear_queue`](#clear_queue), [`pause_queued_messages`](#pause_queued_messages), [`resume_queued_messages`](#resume_queued_messages), [`set_steering_mode`](#set_steering_mode), [`set_follow_up_mode`](#set_follow_up_mode) |
|
|
14
|
-
| **State & tasks** | [`get_state`](#get_state), [`get_messages`](#get_messages), [`get_tools`](#get_tools), [`stop_all_background`](#stop_all_background) |
|
|
14
|
+
| **State & tasks** | [`get_state`](#get_state), [`get_usage`](#get_usage), [`get_messages`](#get_messages), [`get_tools`](#get_tools), [`stop_all_background`](#stop_all_background) |
|
|
15
15
|
| **Models & auth** | [`set_model`](#set_model), [`cycle_model`](#cycle_model), [`set_scoped_models`](#set_scoped_models), [`get_available_models`](#get_available_models), [`login_provider`](#login_provider), [`cancel_login_provider`](#cancel_login_provider), [`save_provider_credential`](#save_provider_credential), [`logout_provider`](#logout_provider), [`refresh_models`](#refresh_models) |
|
|
16
16
|
| **Thinking** | [`set_thinking_level`](#set_thinking_level), [`cycle_thinking_level`](#cycle_thinking_level), [`get_available_thinking_levels`](#get_available_thinking_levels) |
|
|
17
17
|
| **Compaction & retry** | [`compact`](#compact), [`set_auto_compaction`](#set_auto_compaction), [`set_compaction_model`](#set_compaction_model), [`set_decision_model`](#set_decision_model), [`abort_compaction`](#abort_compaction), [`abort_branch_summary`](#abort_branch_summary), [`set_auto_retry`](#set_auto_retry), [`abort_retry`](#abort_retry) |
|
|
@@ -256,6 +256,14 @@ Key fields on `data`:
|
|
|
256
256
|
`get_state` reports the session path as `sessionLocation`, whereas `get_session_stats` reports it as `sessionFile`. Neither field is a `switch_session` target — pass `sessionId` to `switch_session`.
|
|
257
257
|
</Note>
|
|
258
258
|
|
|
259
|
+
#### get_usage
|
|
260
|
+
|
|
261
|
+
Read subscription usage without interrupting the current turn. The response `data` is the same [usage report](/guides/subscription-usage#json-and-sdk-contract) as `atomic usage --json`. An optional `provider` selects an account by its Atomic ID. Set `refresh` to `true` to skip the cache.
|
|
262
|
+
|
|
263
|
+
```json
|
|
264
|
+
{"type":"get_usage","id":"report","refresh":true}
|
|
265
|
+
```
|
|
266
|
+
|
|
259
267
|
#### get_messages
|
|
260
268
|
|
|
261
269
|
Return all messages in the active conversation branch.
|
package/docs/rpc.md
CHANGED
|
@@ -79,7 +79,7 @@ Atomic dispatches stdin frames across two lanes so cancellations and extension U
|
|
|
79
79
|
| Lane | Commands | Behavior |
|
|
80
80
|
| --- | --- | --- |
|
|
81
81
|
| **Sequential (FIFO) lane** | Ordinary commands (`get_state`, `set_model`, `switch_session`, `compact`, `prompt`, etc.) | Executed strictly one at a time in arrival order. `prompt` responds once preflight completes and detaches immediately so later commands run while the turn streams. In standalone RPC mode, `compact` holds this lane until compaction completes. |
|
|
82
|
-
| **Concurrent / control lane** | Interrupts (`abort`, `cancel_login_provider`, `abort_compaction`, `abort_branch_summary`, `abort_retry`, `abort_bash`, `pause_queued_messages`, `resume_queued_messages`, `clear_queue`), `extension_ui_response`, and concurrent commands (`bash`, `user_bash`, `refresh_models`, `set_compaction_model`, `set_decision_model`, `start_pending_recovery`, `stop_all_background`) | Bypass the sequential queue and run immediately even while an ordinary command (such as `compact` or a slow `switch_session`) is in flight. |
|
|
82
|
+
| **Concurrent / control lane** | Interrupts (`abort`, `cancel_login_provider`, `abort_compaction`, `abort_branch_summary`, `abort_retry`, `abort_bash`, `pause_queued_messages`, `resume_queued_messages`, `clear_queue`), `extension_ui_response`, and concurrent commands (`bash`, `user_bash`, `refresh_models`, `get_usage`, `set_compaction_model`, `set_decision_model`, `start_pending_recovery`, `stop_all_background`) | Bypass the sequential queue and run immediately even while an ordinary command (such as `compact` or a slow `switch_session`) is in flight. |
|
|
83
83
|
|
|
84
84
|
Because the first sequential frame starts synchronously before the next line is read, a follow-up interrupt sent immediately after a command cannot overtake the command's initialization.
|
|
85
85
|
|
package/docs/sdk/reference.md
CHANGED
|
@@ -4,6 +4,10 @@ sidebarTitle: "SDK API"
|
|
|
4
4
|
description: "Complete API reference for Atomic SDK session options, model scoping, session stores, resource loaders, run modes, task supervision, and exports."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## Subscription usage
|
|
8
|
+
|
|
9
|
+
Call `getSubscriptionUsage()` to check account limits without starting a session. It returns a `Promise<SubscriptionUsageReport>` with the same fields as `atomic usage --json`. By default it checks every configured account. Pass `accounts` for specific provider IDs, `maxAgeMs: 0` to check again instead of reusing a recent result, or `signal` to cancel. To include accounts added only to an existing SDK session, pass `modelRuntime: session.modelRuntime`. See [the SDK example](/guides/subscription-usage#check-from-the-sdk) for a script that compares weekly limits.
|
|
10
|
+
|
|
7
11
|
## Options reference
|
|
8
12
|
|
|
9
13
|
### Directories
|
|
@@ -256,7 +260,7 @@ Specify which tools to expose by name:
|
|
|
256
260
|
- Built-in tool names enabled by default: `read`, `bash`, `kill`, `edit`, `write`, `find`, `search`, `ask_user_question`, `todo`, `powershell` (on native Windows when PowerShell is available), and `codemode` when its extension is loaded.
|
|
257
261
|
- `find` discovers filesystem paths by glob; `search` searches file contents with regex patterns across files, directories, globs, and internal URLs.
|
|
258
262
|
- `builtins` selects shipped packages independently of tools: keys are `subagents`, `mcp`, `web-access`, and `intercom`. Omitted, `{}`, and omitted keys enable packages. A `false` value removes that package's extensions and resources, including on reload; `true` enables it.
|
|
259
|
-
- The `subagents` builtin ships all 21 bundled subagent skills: `agent-browser`, `agent-desktop`, `bro`, `create-spec`, `feedback`, `herdr`, `how`, `impeccable`, `liteparse`, `prompt-engineer`, `qlty`, `research-codebase`, `show-me`, `skill-creator`, `subagent`, `tdd`, `teach`, `tmux`, `unslop`, `why`, and `workflow
|
|
263
|
+
- The `subagents` builtin ships all 21 bundled subagent skills: `agent-browser`, `agent-desktop`, `bro`, `create-spec`, `feedback`, `herdr`, `how`, `impeccable`, `liteparse`, `prompt-engineer`, `qlty`, `research-codebase`, `show-me`, `skill-creator`, `subagent`, `tdd`, `teach`, `tmux`, `unslop`, `why`, and [`workflow`](/orchestration). If you want these skills without the delegation tool, keep `subagents` enabled and pass `excludedTools: ["subagent"]`. If you disable the package, install independent copies of the skills you need in your [skills directory](/skills#locations).
|
|
260
264
|
- `tools` accepts an allowlist of coding, extension, and custom tool names or `*` patterns. Pattern matching is **case-sensitive** and treats only `*` as a wildcard (matching any characters); `?`, `[]`, and `{}` are matched literally. `tools: []` exposes no tools, including Intercom. A list containing only `+name`/`-name` entries modifies resolved defaults (for example `tools: ["+codemode", "-write"]`). Modifiers require exact names (no `*`), cannot mix with plain entries, and apply across reloads. Invalid lists throw.
|
|
261
265
|
- **MCP retention with allowlists:** When `tools` is a non-empty allowlist with no `mcp__*` entry, MCP tools remain registered for `codemode` and `tool_search`. Adding any `mcp__*` entry switches MCP tools to explicit allowlisting too.
|
|
262
266
|
- `excludedTools` removes matching names (using the same case-sensitive `*`-only matching) from the registry and active selection. Exclusions win over `tools`; unknown names are ignored.
|
package/docs/skills.md
CHANGED
|
@@ -183,11 +183,27 @@ Subagents receive their assigned skills with the same `skill://` addresses and r
|
|
|
183
183
|
|
|
184
184
|
### Skills as workflows
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
Save a routine as a skill when you want to repeat the same steps. For a one-off job, ask in chat instead. A workflow skill can tell the main session to use codemode for short tool calls and subagents for separate background jobs, but it doesn't grant tools or permissions.
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
In a [trusted project](/security#project-trust), save this example as `.atomic/skills/review-guide/SKILL.md`:
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
```markdown
|
|
191
|
+
---
|
|
192
|
+
name: review-guide
|
|
193
|
+
description: Check installation instructions for Linux and Windows without editing.
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
Take the path to the installation guide as input. Ask if no path was given.
|
|
197
|
+
|
|
198
|
+
1. Give one read-only subagent the Linux steps and another the Windows steps.
|
|
199
|
+
2. Wait for both results. Verify conflicting claims against the CLI yourself.
|
|
200
|
+
3. Return a table of discrepancies and the commands you checked. If a review
|
|
201
|
+
could not finish, name the missing platform instead of calling it verified.
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Run `/reload`, then `/skill:review-guide docs/install.md`. Replace `docs/install.md` with the guide you want reviewed. If the work is interrupted, open the original chat and check `/tasks` before retrying. A subagent may still be running. See [Orchestration](/orchestration) for launch and recovery examples.
|
|
205
|
+
|
|
206
|
+
Ask `/skill:workflow` to help design a workflow like this, explain how the parts fit together, or [convert an older workflow file or removed built-in](/orchestration/migrating-workflows).
|
|
191
207
|
|
|
192
208
|
## Bundled skills
|
|
193
209
|
|
|
@@ -216,7 +232,7 @@ Atomic ships 22 bundled skills (21 from `@bastani/subagents` and `intercom` from
|
|
|
216
232
|
| `tmux` | Auto or `/skill:tmux` | Control `tmux` (or `psmux` on Windows) sessions, windows, and panes for interactive CLIs |
|
|
217
233
|
| `unslop` | Auto or `/skill:unslop` | Cut AI writing tells and filler from prose |
|
|
218
234
|
| `why` | Auto or `/skill:why` | Investigate design rationale, regressions, and tradeoffs across git, issues, docs, and MCPs |
|
|
219
|
-
| `workflow
|
|
235
|
+
| `workflow` | Auto or `/skill:workflow` | Explain or organize multi-step work, and convert earlier workflows into reusable skills |
|
|
220
236
|
|
|
221
237
|
### Setup notes for specific bundled skills
|
|
222
238
|
|
package/docs/slash-commands.md
CHANGED
|
@@ -16,6 +16,7 @@ Extensions, prompt templates, and skills can add more commands at runtime, so th
|
|
|
16
16
|
| `/thinking` | `[level]` | Open the thinking-level selector, or set and persist a specific level directly (such as `off`, `low`, `medium`, `high`). |
|
|
17
17
|
| `/scoped-models` | *(bare only)* | Enable or disable models included in `Ctrl+P` / `Shift+Ctrl+P` quick cycling. |
|
|
18
18
|
| `/login` | `[provider]` | Configure subscription, account, or API-key authentication. Passing a provider jumps straight to login, opens the method chooser, or filters the provider list. |
|
|
19
|
+
| `/usage` | *(bare only)* | Check [subscription usage](/guides/subscription-usage) without interrupting a reply. Press `r` to refresh or `Esc` to close. |
|
|
19
20
|
| `/logout` | `[provider]` | Remove stored credentials from `~/.atomic/agent/auth.json` (and legacy `~/.pi/agent/auth.json`). Does not clear environment variables, CLI flags, or `models.json` keys. |
|
|
20
21
|
|
|
21
22
|
## Sessions and context
|
|
@@ -85,7 +86,7 @@ Atomic splits any `/name args` submission at the first whitespace character (spa
|
|
|
85
86
|
|
|
86
87
|
- **Argument-taking built-ins (10 commands):** `/tasks`, `/model`, `/thinking`, `/export`, `/import`, `/name`, `/login`, `/logout`, `/compact`, and `/resume`. Atomic intercepts these whether typed bare or followed by arguments.
|
|
87
88
|
- **Exact-subcommand built-in (1 command):** `/session` matches only when bare or when the argument is literally `snapshot` (`/session snapshot`, with no extra trailing words). Any other text after `/session` passes through as ordinary chat text.
|
|
88
|
-
- **Bare-only built-ins
|
|
89
|
+
- **Bare-only built-ins:** `/settings`, `/usage`, `/scoped-models`, `/share`, `/trust`, `/reload`, `/quit`, `/exit`, `/tools`, `/changelog`, `/hotkeys`, `/tree`, `/fork`, `/clone`, `/new`, `/copy`, and `/debug`. Atomic intercepts these **only** when nothing follows the command name. Adding trailing text—such as `/copy that` or `/new approach`—sends the line to the model as a regular message.
|
|
89
90
|
|
|
90
91
|
## Extension, prompt template, and skill commands
|
|
91
92
|
|
|
@@ -114,7 +115,7 @@ Atomic shares one chat screen between the main conversation and any subagent you
|
|
|
114
115
|
|
|
115
116
|
| Commands | Behavior while viewing a subagent |
|
|
116
117
|
| --- | --- |
|
|
117
|
-
| `/settings`, `/scoped-models`, `/tasks`, `/resume`, `/export`, `/share`, `/trust`, `/login`, `/logout`, `/reload`, `/exit`, `/quit` | Run on `main` in place while the subagent stays on screen. |
|
|
118
|
+
| `/settings`, `/usage`, `/scoped-models`, `/tasks`, `/resume`, `/export`, `/share`, `/trust`, `/login`, `/logout`, `/reload`, `/exit`, `/quit` | Run on `main` in place while the subagent stays on screen. |
|
|
118
119
|
| All 8 bundled extension commands (`/agents`, `/mcp`, `/intercom`, `/curator`, `/google-account`, `/search`, `/websearch`, `/llama`) | Run on `main` in place while the subagent stays on screen. |
|
|
119
120
|
| `/session`, `/session snapshot`, `/tools`, `/changelog`, `/hotkeys`, `/name`, `/debug` | Switch the screen to `main` first so printed output lands in the main transcript (preserving main's draft). |
|
|
120
121
|
| `/compact`, `/tree`, `/fork`, `/clone`, `/new`, `/import`, and any registered extension command named `/clear` or `/rewind` | Ask to confirm first (`/<command> acts on the main conversation, not <agent>`, defaulting to **Cancel**). Once confirmed, `/new` and `/import` switch to `main` immediately; `/fork` and `/clone` switch once the new session is ready; cancelling restores your text to the subagent prompt. |
|