@bastani/atomic 0.10.14-alpha.1 → 0.10.15-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 +29 -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 +3 -3
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
- package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/{sdk-B5LEWGGI.js → sdk-OHKMDJ74.js} +27 -5
- package/dist/_shared/{sdk-B5LEWGGI.js.map → sdk-OHKMDJ74.js.map} +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-Q3MWKUK4.js +2 -2
- package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
- package/dist/_shared/{startup-0-2-5QHPCEON.js → startup-0-2-2HUMCPKX.js} +14 -16
- package/dist/_shared/startup-0-2-2HUMCPKX.js.map +1 -0
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
- package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
- package/dist/_shared/startup-0-5-YDW47QX6.js +3 -3
- package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +6 -30
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +3 -3
- package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -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/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/auth-cli.code.js +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- 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.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 +1 -1
- 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.js +2 -2
- package/dist/core/compaction/compactor.d.ts +0 -8
- 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.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- 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 +2 -2
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +3 -3
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- 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/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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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.impl.js +3 -3
- package/dist/core/tasks/task-view-source.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 +1 -1
- 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.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +1 -1
- 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 +21 -1
- package/dist/index.js +2 -2
- 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/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/print-mode.js +1 -1
- package/dist/package-manager-cli.code.js +2 -2
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/utils/startup-database-spare.code.js +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks/reference.md +182 -0
- package/docs/background-tasks.md +98 -405
- package/docs/build.md +67 -27
- package/docs/changelog.mdx +9 -0
- package/docs/codemode.md +108 -39
- package/docs/compaction/branch-summaries.md +54 -0
- package/docs/compaction/custom-compactors.md +161 -0
- package/docs/compaction/memory-compaction.md +77 -0
- package/docs/compaction/reference.md +86 -38
- package/docs/compaction.md +51 -252
- package/docs/computer-use.md +169 -321
- package/docs/containerization.md +71 -57
- package/docs/custom-provider/api-reference.md +119 -25
- package/docs/custom-provider/oauth.md +114 -132
- package/docs/custom-provider/override.md +37 -27
- package/docs/custom-provider/registration.md +107 -83
- package/docs/custom-provider/streaming.md +85 -71
- package/docs/custom-provider.md +85 -52
- package/docs/development.md +39 -29
- package/docs/docs.json +76 -63
- package/docs/environment-variables.md +94 -44
- package/docs/extensions/api-reference.md +86 -43
- package/docs/extensions/authoring.md +162 -154
- package/docs/extensions/events.md +80 -25
- package/docs/extensions/examples.md +90 -85
- package/docs/extensions/ui.md +206 -82
- package/docs/extensions.md +79 -108
- package/docs/getting-started/authentication.md +67 -36
- package/docs/getting-started/first-session.md +53 -43
- package/docs/getting-started/installation.md +116 -89
- package/docs/getting-started/project-instructions.md +48 -34
- package/docs/guides/configuration.md +82 -20
- package/docs/guides/non-interactive.md +66 -24
- package/docs/guides/resume-on-any-machine.md +135 -82
- package/docs/guides/team-setup.md +114 -105
- package/docs/guides.md +76 -32
- package/docs/herdr.md +15 -16
- package/docs/how-atomic-works.md +140 -0
- package/docs/index.md +58 -44
- package/docs/intercom/operations.md +141 -151
- package/docs/intercom/reference.md +85 -108
- package/docs/intercom.md +84 -145
- package/docs/json.md +120 -67
- package/docs/keybindings.md +85 -49
- package/docs/libraries/agent-core.md +137 -275
- package/docs/libraries/ai.md +100 -84
- package/docs/libraries/codemode.md +210 -300
- package/docs/libraries/schema.md +59 -53
- package/docs/libraries/storage-postgres.md +49 -35
- package/docs/libraries/telemetry.md +153 -354
- package/docs/libraries/tui.md +265 -393
- package/docs/libraries.md +42 -26
- package/docs/llama-cpp.md +171 -161
- package/docs/mcp-servers.md +90 -51
- package/docs/models/choose-a-model.md +188 -0
- package/docs/models/reference.md +74 -30
- package/docs/models.md +153 -88
- package/docs/orchestration/migrating-workflows.md +23 -16
- package/docs/orchestration/patterns.md +39 -44
- package/docs/orchestration.md +65 -26
- package/docs/packages/authoring.md +51 -29
- package/docs/packages/reference.md +42 -21
- package/docs/packages.md +69 -58
- package/docs/programmatic.md +118 -24
- package/docs/prompt-templates.md +84 -83
- package/docs/providers/reference.md +43 -48
- package/docs/providers.md +219 -451
- package/docs/quickstart.md +140 -120
- package/docs/reference/cli.md +135 -97
- package/docs/reference.md +20 -18
- package/docs/rpc/examples.md +76 -20
- package/docs/rpc/extension-ui.md +64 -38
- package/docs/rpc/protocol.md +361 -110
- package/docs/rpc.md +57 -17
- package/docs/sdk/reference.md +409 -534
- package/docs/sdk/storage.md +53 -13
- package/docs/sdk/structured-decisions.md +82 -56
- package/docs/sdk/web-server.md +57 -43
- package/docs/sdk.md +106 -84
- package/docs/security.md +42 -64
- package/docs/session-format.md +62 -38
- package/docs/sessions.md +99 -214
- package/docs/settings.md +165 -195
- package/docs/shell-aliases.md +9 -6
- package/docs/skills/authoring.md +69 -48
- package/docs/skills/reference.md +51 -20
- package/docs/skills.md +99 -148
- package/docs/slash-commands.md +129 -0
- package/docs/storage/custom-adapters.md +160 -85
- package/docs/storage/jsonl.md +81 -66
- package/docs/storage/postgres/pgbouncer.md +120 -126
- package/docs/storage/postgres/tuning.md +120 -143
- package/docs/storage/postgres.md +314 -330
- package/docs/storage/sqlite.md +71 -42
- package/docs/storage.md +298 -302
- package/docs/subagents/authoring.md +55 -38
- package/docs/subagents/reference.md +73 -33
- package/docs/subagents.md +119 -187
- package/docs/terminal-setup.md +50 -38
- package/docs/termux.md +67 -41
- package/docs/themes/reference.md +23 -19
- package/docs/themes.md +142 -127
- package/docs/tmux.md +47 -55
- package/docs/tools.md +147 -109
- package/docs/tui/reference.md +166 -214
- package/docs/tui.md +196 -341
- package/docs/usage.md +118 -138
- package/docs/verification.md +79 -51
- package/docs/web-access.md +121 -101
- package/docs/windows.md +26 -27
- package/docs/worktree-snapshots/reference.md +245 -0
- package/docs/worktree-snapshots.md +71 -259
- package/package.json +8 -8
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +0 -1
- package/docs/guides/intercom.md +0 -32
- package/docs/guides/orchestration.md +0 -28
- package/docs/guides/subagents.md +0 -37
|
@@ -1,88 +1,112 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Install Atomic"
|
|
3
|
-
sidebarTitle: "
|
|
3
|
+
sidebarTitle: "Install Atomic"
|
|
4
4
|
description: "Install Atomic with a package manager or standalone release archive, verify your setup, configure Git, and uninstall cleanly."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
**Outcome:** `atomic` is on your `PATH` and `atomic --version` prints
|
|
7
|
+
**Outcome:** `atomic` is on your `PATH` and `atomic --version` prints the installed version.
|
|
8
8
|
|
|
9
9
|
**Prerequisites:** A supported shell. See [Prerequisites](/quickstart#prerequisites).
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
| How you want to install | Best choice | Runtime requirement |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| Global CLI via npm, pnpm, or Bun | [Package managers](#package-managers) | [Node.js 24.20.0+](#nodejs-version) (or `bun --bun` with Bun 1.4.5+) |
|
|
14
|
+
| Zero-dependency install with pinned runtime | [Release archive](#release-archive) | None (bundles its own runtime) |
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
npm install -g @bastani/atomic
|
|
17
|
-
# or: pnpm add -g @bastani/atomic
|
|
18
|
-
# or: bun add -g @bastani/atomic
|
|
19
|
-
```
|
|
16
|
+
## Package managers
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
Install globally with npm, pnpm, or Bun:
|
|
19
|
+
|
|
20
|
+
<Tabs>
|
|
21
|
+
<Tab title="npm">
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g @bastani/atomic
|
|
24
|
+
```
|
|
25
|
+
</Tab>
|
|
26
|
+
<Tab title="pnpm">
|
|
27
|
+
```bash
|
|
28
|
+
pnpm add -g @bastani/atomic
|
|
29
|
+
```
|
|
30
|
+
</Tab>
|
|
31
|
+
<Tab title="Bun">
|
|
32
|
+
```bash
|
|
33
|
+
bun add -g @bastani/atomic
|
|
34
|
+
```
|
|
35
|
+
</Tab>
|
|
36
|
+
</Tabs>
|
|
37
|
+
|
|
38
|
+
- **Runtime requirement:** All package-manager installs—**including `bun add -g @bastani/atomic`**—run on [Node.js 24.20.0 or newer](#nodejs-version) by default. Running a package-manager install on Bun requires launching explicitly with `bun --bun` and **Bun 1.4.5+**.
|
|
39
|
+
- **No install scripts required:** Pass `--ignore-scripts` if your environment disables npm lifecycle scripts.
|
|
40
|
+
- **Native bindings:** Your package manager selects the matching platform package (`@bastani/atomic-natives-<platform>`) automatically.
|
|
41
|
+
- **Local storage by default:** Sessions save in `~/.atomic/workflows/journal.sqlite` with no database server needed. To share sessions across machines, see [Sharing storage across hosts](/storage#sharing-storage-across-hosts).
|
|
24
42
|
|
|
25
43
|
### Node.js version
|
|
26
44
|
|
|
27
|
-
Package-manager installs
|
|
45
|
+
Package-manager installs require **Node.js 24 LTS, version 24.20.0 or newer**. If you cannot upgrade Node.js right away, use the [release archive](#release-archive), which bundles its own runtime.
|
|
46
|
+
|
|
47
|
+
<Note>
|
|
48
|
+
Node.js 24.20.0 fixes both an upstream SQLite WAL-reset bug that could corrupt Atomic's session database on releases earlier than 24.15.0 and an IPv6 TLS proxy bug affecting 24.17.0 through 24.19.0.
|
|
49
|
+
</Note>
|
|
28
50
|
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
- **
|
|
32
|
-
- **Upgrade:** Install the current Node.js 24 LTS release from [nodejs.org](https://nodejs.org/en/download), or with a version manager: `nvm install 24`, `fnm install 24`, or `mise use -g node@24`. Then reinstall Atomic with `npm install -g @bastani/atomic` so it runs on the new Node.js.
|
|
51
|
+
- **Check your version:** Run `node --version`. It must print `v24.20.0` or a later `v24` release (or a newer major version).
|
|
52
|
+
- **On an older Node.js:** `atomic` stops at startup with `Atomic needs Node.js 24.20.0 or newer, but this is Node.js <version>.` and links back to this section.
|
|
53
|
+
- **Upgrade:** Install the current Node.js 24 LTS release from [nodejs.org](https://nodejs.org/en/download), or with a version manager (`nvm install 24`, `fnm install 24`, or `mise use -g node@24`), then reinstall Atomic with `npm install -g @bastani/atomic`.
|
|
33
54
|
|
|
34
55
|
### Package manager troubleshooting
|
|
35
56
|
|
|
36
|
-
- **Optional native packages:** Do not
|
|
37
|
-
- **Dependency resolution:** Atomic pins its direct dependencies to exact versions
|
|
38
|
-
- **Older Linux lockfiles:** On Linux, `npm ci` from an older
|
|
39
|
-
- **Mismatched native module after an update:** Atomic
|
|
57
|
+
- **Optional native packages:** Do not disable optional dependencies (`npm install --omit=optional`, `pnpm install --no-optional`, or `bun install --omit=optional`) in a project. Without your platform's native package, Atomic stops at startup naming the missing package; reinstall without those flags to fix it. (Global `npm install -g` still pulls transitive optional native packages even with `--omit=optional`.)
|
|
58
|
+
- **Dependency resolution:** Atomic pins its direct dependencies to exact versions while your package manager resolves sub-dependencies at install time. Use the [release archive](#release-archive) if you want the exact tested dependency tree.
|
|
59
|
+
- **Older Linux lockfiles:** On Linux, `npm ci` from an older lockfile lacking C-library tags can install both glibc and musl native packages; Atomic loads the matching one automatically.
|
|
60
|
+
- **Mismatched native module after an update:** Atomic refuses to start if its native module comes from a different release. If you updated Atomic while it was running, restart it; otherwise reinstall to repair the installation. For local native-binding diagnostics and overrides, see [Diagnostics and debugging](/development).
|
|
40
61
|
|
|
41
62
|
## Release archive
|
|
42
63
|
|
|
43
64
|
Install the self-contained release archive without Node.js or a package manager:
|
|
44
65
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
66
|
+
<Tabs>
|
|
67
|
+
<Tab title="macOS / Linux">
|
|
68
|
+
```bash
|
|
69
|
+
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh
|
|
70
|
+
```
|
|
71
|
+
</Tab>
|
|
72
|
+
<Tab title="Windows PowerShell">
|
|
73
|
+
```powershell
|
|
74
|
+
irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex
|
|
75
|
+
```
|
|
76
|
+
</Tab>
|
|
77
|
+
</Tabs>
|
|
78
|
+
|
|
79
|
+
The installer downloads the matching GitHub Release archive and `SHA256SUMS`, verifies the SHA-256 checksum, and installs into a versioned directory. Keep the installed directory (`node_modules`, libraries, and licenses) intact.
|
|
56
80
|
|
|
57
81
|
| Platform | Default payload directory | Default launcher | PATH behavior |
|
|
58
82
|
| --- | --- | --- | --- |
|
|
59
|
-
| macOS / Linux | `~/.local/share/atomic` | `~/.local/bin/atomic` | Never edits shell rc files; prints a paste-safe `export PATH=...` (or `fish_add_path`) command if missing |
|
|
60
|
-
| Windows | `%LOCALAPPDATA%\atomic` | `<ATOMIC_INSTALL_DIR>\bin\atomic.cmd` (default `%LOCALAPPDATA%\atomic\bin\atomic.cmd`) | Adds the bin directory to User PATH
|
|
83
|
+
| macOS / Linux | `~/.local/share/atomic` | `~/.local/bin/atomic` | Never edits shell rc files; prints a paste-safe `export PATH=...` (or `fish_add_path`) command if missing. |
|
|
84
|
+
| Windows | `%LOCALAPPDATA%\atomic` | `<ATOMIC_INSTALL_DIR>\bin\atomic.cmd` (default `%LOCALAPPDATA%\atomic\bin\atomic.cmd`) | Adds the bin directory to User PATH if missing and prompts you to open a new terminal. |
|
|
61
85
|
|
|
62
|
-
|
|
86
|
+
<Accordion title="Archive installer options, version pinning, and reruns">
|
|
63
87
|
|
|
64
|
-
Customize the
|
|
88
|
+
Customize the installer with CLI flags or environment variables:
|
|
65
89
|
|
|
66
90
|
| Option or variable | Behavior |
|
|
67
91
|
| --- | --- |
|
|
68
|
-
| `ATOMIC_VERSION`, `--ref <tag>`, `-r <tag>`, `--ref=<tag>` (Unix), `-Ref <tag>` (Windows) | Pin an exact release tag (`MAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH-alpha.REVISION`). CLI flags override `ATOMIC_VERSION
|
|
69
|
-
| `ATOMIC_INSTALL_DIR` | Override the
|
|
70
|
-
| `ATOMIC_BIN_DIR` | Override the launcher directory. Defaults to `~/.local/bin` on macOS/Linux (
|
|
92
|
+
| `ATOMIC_VERSION`, `--ref <tag>`, `-r <tag>`, `--ref=<tag>` (Unix), `-Ref <tag>` (Windows) | Pin an exact release tag (`MAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH-alpha.REVISION`). CLI flags override `ATOMIC_VERSION`; if GitHub returns a different tag, the installer aborts before downloading. |
|
|
93
|
+
| `ATOMIC_INSTALL_DIR` | Override the payload root (default `~/.local/share/atomic` on macOS/Linux, `%LOCALAPPDATA%\atomic` on Windows). Relative paths resolve from the starting directory. Cannot equal or sit inside the launcher path. |
|
|
94
|
+
| `ATOMIC_BIN_DIR` | Override the launcher directory. Defaults to `~/.local/bin` on macOS/Linux (unchanged if `ATOMIC_INSTALL_DIR` changes) and `<ATOMIC_INSTALL_DIR>\bin` on Windows. Cannot sit inside `current` or `versions`. Paths containing `:` (Unix) or `;` (Windows) cannot be added as a single `PATH` entry, so the installer prints direct-run instructions instead. |
|
|
71
95
|
| `ATOMIC_FORCE_INSTALL=1`, `--force` (Unix), `-Force` (Windows) | Force a reinstall even when the target version is already installed and healthy. Only exact `"1"` enables `ATOMIC_FORCE_INSTALL` (`true` and `yes` do not). |
|
|
72
|
-
| `GITHUB_TOKEN`, `GH_TOKEN` | Optional token for authenticated GitHub API fallback if rate-limited (
|
|
73
|
-
| `NO_COLOR` | Any value (including an empty string) switches
|
|
96
|
+
| `GITHUB_TOKEN`, `GH_TOKEN` | Optional token for authenticated GitHub API fallback if rate-limited (`GITHUB_TOKEN` takes precedence over `GH_TOKEN`). `curl` and GNU `wget` pass the token through a protected temporary file rather than process arguments; BusyBox `wget` works without a token or when redirects bypass the API. |
|
|
97
|
+
| `NO_COLOR` | Any value (including an empty string) switches output to plain text without color or progress bars. Plain mode also activates when stdout is not a TTY, `CI` is set, or Unix `TERM` is unset or `dumb`. |
|
|
74
98
|
| `ATOMIC_INSTALL_LOCK_TIMEOUT` | Seconds a concurrent installer waits for another install into the same directory before failing (default `1800`, 30 minutes). |
|
|
75
99
|
|
|
76
|
-
Pin
|
|
100
|
+
Pin an exact version:
|
|
77
101
|
|
|
78
102
|
```bash
|
|
79
103
|
# macOS / Linux
|
|
80
|
-
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh -s -- --ref 0.
|
|
104
|
+
curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh -s -- --ref 0.10.14
|
|
81
105
|
```
|
|
82
106
|
|
|
83
107
|
```powershell
|
|
84
108
|
# Windows PowerShell
|
|
85
|
-
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1))) -Ref 0.
|
|
109
|
+
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1))) -Ref 0.10.14
|
|
86
110
|
```
|
|
87
111
|
|
|
88
112
|
Force a reinstall:
|
|
@@ -99,16 +123,15 @@ curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh
|
|
|
99
123
|
$env:ATOMIC_FORCE_INSTALL = "1"; irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex
|
|
100
124
|
```
|
|
101
125
|
|
|
102
|
-
**Reruns and atomic switches:** If the target version is already installed and healthy, the installer skips downloading, prints the install path and `PATH` guidance, and exits `0`. Pinned reruns make no network request; unpinned reruns check for the latest tag.
|
|
126
|
+
**Reruns and atomic switches:** If the target version is already installed and healthy, the installer skips downloading, prints the install path and `PATH` guidance, and exits `0`. Pinned reruns make no network request; unpinned reruns check for the latest tag.
|
|
103
127
|
|
|
104
|
-
|
|
128
|
+
Health checks verify that `current` points to the target version inside the install root, the launcher resolves to `current`, and the core runtime files and bundled packages are intact. On Windows, existing-install checks inspect the `current` junction target, required payload files, the recorded `.atomic-launcher.sha256` hash, and `atomic.cmd` (without executing a potentially broken `atomic.exe`) and restore a missing User `PATH` entry; `--version` is checked on newly staged downloads before switching. Any missing or corrupted piece triggers a repair install while keeping the previous version usable until the final switch.
|
|
105
129
|
|
|
106
|
-
|
|
130
|
+
</Accordion>
|
|
107
131
|
|
|
108
|
-
|
|
132
|
+
### Alpine and musl Linux archives
|
|
109
133
|
|
|
110
|
-
|
|
111
|
-
- OSC 52 forwards clipboard writes over SSH, Mosh, or Rex and acts as a fallback on headless Linux. Set `ATOMIC_CLIPBOARD_OSC52=1` (legacy alias `PI_CLIPBOARD_OSC52=1`) to force terminal forwarding; your terminal must support OSC 52, and forwarding cannot verify the local write.
|
|
134
|
+
The shell installer automatically detects Alpine (`/etc/alpine-release`) and downloads `atomic-linux-x64-musl.tar.gz` or `atomic-linux-arm64-musl.tar.gz`. Keep the complete archive intact—including its bundled `libgcc` and `libstdc++` libraries—so stock Alpine runs without extra C++ runtime packages.
|
|
112
135
|
|
|
113
136
|
## Verify the install
|
|
114
137
|
|
|
@@ -116,30 +139,33 @@ The shell installer detects Alpine and downloads `atomic-linux-x64-musl.tar.gz`
|
|
|
116
139
|
atomic --version
|
|
117
140
|
```
|
|
118
141
|
|
|
119
|
-
You should see a single version line (for example `0.10.
|
|
142
|
+
You should see a single version line (for example `0.10.14`). If your shell reports `command not found`, open a new terminal or add the installer's bin directory to your `PATH`.
|
|
143
|
+
|
|
144
|
+
<Tip>
|
|
145
|
+
**Linux, Termux, and SSH clipboard support:** To copy text from `/copy` or fullscreen selection on Linux or Termux, install `wl-clipboard` (Wayland), `xclip` or `xsel` (X11), or `termux-api` (Termux). Over SSH or headless Linux, Atomic automatically forwards clipboard writes via OSC 52. See [Clipboard and OSC 52](/terminal-setup#clipboard-and-osc-52).
|
|
146
|
+
</Tip>
|
|
120
147
|
|
|
121
148
|
## Which runtime runs Atomic
|
|
122
149
|
|
|
123
|
-
Package-manager installs run on Node.js
|
|
150
|
+
- **Package-manager installs** (`npm`, `pnpm`, and `bun add -g`) run on **Node.js** via `#!/usr/bin/env node` unless you explicitly launch with `bun --bun` (Bun 1.4.5+). Installing Bun separately does not switch an existing npm or pnpm install to Bun.
|
|
151
|
+
- **Standalone release archives** bundle and run on **Bun**.
|
|
124
152
|
|
|
125
|
-
Both runtimes
|
|
153
|
+
Both runtimes ship an up-to-date, consistent SQLite library for local session storage (macOS release archives bundle their own SQLite copy so they do not depend on the macOS system SQLite). Run `atomic storage status` to inspect the active SQLite library version.
|
|
126
154
|
|
|
127
155
|
## Git
|
|
128
156
|
|
|
129
|
-
Atomic requires Git 2.30.0 or newer for worktrees, git packages, and the footer branch
|
|
157
|
+
Atomic requires **Git 2.30.0 or newer** for worktrees, git packages, and the footer branch indicator. It uses the first `git` found in an absolute `PATH` directory (never the working directory) when that binary is 2.30.0+; otherwise it automatically downloads a SHA-256-verified portable Git into `~/.atomic/agent/bin/git/`.
|
|
130
158
|
|
|
131
|
-
|
|
159
|
+
- Run `/tools` inside Atomic to inspect which Git binary is active and why.
|
|
160
|
+
- Set `ATOMIC_OFFLINE=1` to disable automatic downloads (an already-cached portable Git still works).
|
|
132
161
|
|
|
133
|
-
|
|
134
|
-
- **When:** Downloaded at interactive startup or on the first git package install or update. Run `/tools` to check which Git Atomic uses and why.
|
|
135
|
-
- **Verification:** Pinned to one release and verified against a built-in SHA-256 checksum; mismatched downloads are discarded.
|
|
136
|
-
- **Updates:** When a new Atomic version pins a newer Git release, the next online start switches to it while running commands finish on the older copy. Offline or after a failed download, the cached copy continues working and `/tools` notes the reason.
|
|
137
|
-
- **Supported platforms:** macOS (x64, arm64), Linux with glibc 2.34+ (x64, arm64, armv7), and Windows (x64, arm64, x86).
|
|
138
|
-
- **Agent shells:** If no `git` is on `PATH`, the `bash` tool prepends portable Git so agents can run `git`. If an older system `git` is on `PATH`, your shells keep it while Atomic uses portable Git internally.
|
|
139
|
-
- **Offline mode:** `ATOMIC_OFFLINE=1` prevents downloads; an already-cached portable Git still works.
|
|
140
|
-
- **Cache cleanup:** Older portable releases stay cached while running commands may use them. Close running Atomic sessions before deleting `~/.atomic/agent/bin/git/`. The next online startup downloads Git again; until then, offline use needs a system Git.
|
|
162
|
+
<Accordion title="Install Git manually and platform notes">
|
|
141
163
|
|
|
142
|
-
|
|
164
|
+
- **Version capabilities:** Git 2.33+ enables SDK workspace bindings and immediate error detection when creating a named subagent worktree is interrupted; Git 2.36+ supports restoring worktree snapshots whose paths contain line breaks.
|
|
165
|
+
- **Portable Git platforms and behavior:** Available for macOS (x64, arm64), Linux with glibc 2.34+ (x64, arm64, armv7), and Windows (x64, arm64, x86). Downloaded at interactive startup or on the first git package install/update, and updated automatically when a new Atomic release pins a newer copy. If no `git` is on `PATH`, the `bash` tool prepends portable Git so agents can run `git`; if an older system `git` is on `PATH`, your shell keeps it while Atomic uses portable Git internally. Close running Atomic sessions before deleting `~/.atomic/agent/bin/git/`.
|
|
166
|
+
- **HTTPS certificates with portable Git:** Linux uses its bundled CA file (overridable with `GIT_SSL_CAINFO`, which takes precedence over `http.sslCAInfo`) and needs system `libcurl` (for example `apt install libcurl4`) for HTTPS clones/fetches; macOS uses system trust; Windows uses the Windows certificate store.
|
|
167
|
+
|
|
168
|
+
If no suitable Git is found and portable download is unavailable, install Git for your platform:
|
|
143
169
|
|
|
144
170
|
| System | Install command |
|
|
145
171
|
| --- | --- |
|
|
@@ -157,41 +183,42 @@ If no suitable Git is found and portable download is unavailable, install Git fo
|
|
|
157
183
|
|
|
158
184
|
Run Linux package-manager commands as root. See [git-scm.com/downloads](https://git-scm.com/downloads) for other systems.
|
|
159
185
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
- **Linux:** Uses its bundled CA file (override with `GIT_SSL_CAINFO`, which takes precedence over `http.sslCAInfo` while set). HTTPS clones and fetches require system `libcurl` (for example `apt install libcurl4`); local operations do not.
|
|
163
|
-
- **macOS:** Uses system certificate trust.
|
|
164
|
-
- **Windows:** Uses the Windows certificate store.
|
|
186
|
+
</Accordion>
|
|
165
187
|
|
|
166
188
|
## Updating while Intercom is running
|
|
167
189
|
|
|
168
|
-
Sessions on one machine share a single Intercom broker process. Both the release-archive installers and `atomic update` finish by running `atomic intercom upgrade` with the newly installed binary:
|
|
190
|
+
Sessions on one machine share a single [Intercom](/intercom) broker process. Both the release-archive installers and `atomic update` finish by running `atomic intercom upgrade` with the newly installed binary:
|
|
169
191
|
|
|
170
192
|
- If no sessions are connected, the older broker stops and the next session starts the new one.
|
|
171
|
-
- If sessions are still connected, they are not interrupted; the next session
|
|
193
|
+
- If sessions are still connected, they are not interrupted; the next session launched on the new version takes over the broker.
|
|
172
194
|
|
|
173
|
-
|
|
195
|
+
You can run `atomic intercom upgrade` manually at any time (it is idempotent), and you should run it after upgrading directly via a package manager such as `npm install -g @bastani/atomic`. Pinning an older release without `atomic intercom upgrade` skips this step silently; `atomic update` skips it with a note if `atomic` on `PATH` points to a different binary than the one updated.
|
|
174
196
|
|
|
175
|
-
|
|
197
|
+
<Accordion title="Upgrading on Windows from 0.10.4 or earlier">
|
|
176
198
|
|
|
177
|
-
|
|
199
|
+
Earlier Intercom brokers (0.10.4 and earlier) locked files inside the npm installation folder, which can cause `npm install -g @bastani/atomic` to fail with `EBUSY` on Windows while an older broker is running. Close running Atomic sessions and wait 5 seconds (or run `atomic intercom restart`), then rerun `npm install -g @bastani/atomic`. From 0.10.5 onward, the broker runs outside the installation directory, so npm upgrades and uninstalls succeed while sessions and the broker run.
|
|
178
200
|
|
|
179
|
-
|
|
201
|
+
</Accordion>
|
|
180
202
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
- **macOS / Linux:** Delete `~/.local/share/atomic` and `~/.local/bin/atomic` (or your custom `ATOMIC_INSTALL_DIR` and `ATOMIC_BIN_DIR` launcher).
|
|
184
|
-
- **Windows:** Delete `%LOCALAPPDATA%\atomic`. If you set `ATOMIC_BIN_DIR`, also remove `atomic.cmd` and the `atomic-current` junction from that directory, then remove it from User PATH.
|
|
185
|
-
|
|
186
|
-
**Package manager:**
|
|
187
|
-
|
|
188
|
-
```bash
|
|
189
|
-
npm uninstall -g @bastani/atomic
|
|
190
|
-
# or: pnpm remove -g @bastani/atomic
|
|
191
|
-
# or: bun remove -g @bastani/atomic
|
|
192
|
-
```
|
|
203
|
+
## Uninstall
|
|
193
204
|
|
|
194
|
-
|
|
205
|
+
<Tabs>
|
|
206
|
+
<Tab title="Package manager">
|
|
207
|
+
```bash
|
|
208
|
+
npm uninstall -g @bastani/atomic
|
|
209
|
+
# or: pnpm remove -g @bastani/atomic
|
|
210
|
+
# or: bun remove -g @bastani/atomic
|
|
211
|
+
```
|
|
212
|
+
</Tab>
|
|
213
|
+
<Tab title="macOS / Linux archive">
|
|
214
|
+
Delete `~/.local/share/atomic` and `~/.local/bin/atomic` (or your custom `ATOMIC_INSTALL_DIR` and `ATOMIC_BIN_DIR` launcher).
|
|
215
|
+
</Tab>
|
|
216
|
+
<Tab title="Windows archive">
|
|
217
|
+
Delete `%LOCALAPPDATA%\atomic`. If you set `ATOMIC_BIN_DIR`, also remove `atomic.cmd` and the `atomic-current` junction from that directory, then remove it from User `PATH`.
|
|
218
|
+
</Tab>
|
|
219
|
+
</Tabs>
|
|
220
|
+
|
|
221
|
+
Uninstalling removes only the CLI. Your settings, credentials, and installed packages remain in `~/.atomic/agent/`, and your default SQLite sessions remain in `~/.atomic/workflows/journal.sqlite`, until you delete `~/.atomic/`.
|
|
195
222
|
|
|
196
223
|
## Next step
|
|
197
224
|
|
|
@@ -1,57 +1,71 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Add project instructions"
|
|
3
|
-
sidebarTitle: "
|
|
4
|
-
description: "Guide Atomic with repository conventions in AGENTS.md and CLAUDE.md files, including
|
|
3
|
+
sidebarTitle: "Add project instructions"
|
|
4
|
+
description: "Guide Atomic with repository conventions in AGENTS.md and CLAUDE.md files, including precedence and system prompt rules."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
**Outcome:** Atomic loads your repository's conventions automatically at startup.
|
|
7
|
+
**Outcome:** Atomic loads your repository's build commands, coding conventions, and guardrails automatically at startup.
|
|
8
8
|
|
|
9
9
|
**Prerequisites:** [Run your first session](/getting-started/first-session) is complete.
|
|
10
10
|
|
|
11
11
|
## Create an AGENTS.md file
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Add an `AGENTS.md` file at the root of your repository:
|
|
14
14
|
|
|
15
15
|
```markdown
|
|
16
16
|
# Project Instructions
|
|
17
17
|
|
|
18
|
-
- Run `
|
|
18
|
+
- Run `npm run typecheck` after code changes.
|
|
19
19
|
- Do not run production migrations locally.
|
|
20
20
|
- Keep responses concise.
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Run `/reload` or restart Atomic after editing
|
|
23
|
+
Run `/reload` (or restart Atomic) after editing instruction files so the updated rules take effect.
|
|
24
24
|
|
|
25
|
-
## Discovery and precedence
|
|
25
|
+
## Discovery and precedence
|
|
26
26
|
|
|
27
|
-
Atomic loads
|
|
27
|
+
Atomic loads at most **one** instruction file per directory, choosing the first regular file (or symlink to one) in this exact order:
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
| Priority | Filename | Notes |
|
|
30
|
+
| --- | --- | --- |
|
|
31
|
+
| 1 | `AGENTS.override.md` | Shadows all other instruction files in the same directory. |
|
|
32
|
+
| 2 | `AGENTS.md` | Recommended default; shadows `CLAUDE.md`. |
|
|
33
|
+
| 3 | `AGENTS.MD` | Uppercase fallback. |
|
|
34
|
+
| 4 | `CLAUDE.md` | Loaded when no `AGENTS*` file exists in the same directory. |
|
|
35
|
+
| 5 | `CLAUDE.MD` | Uppercase fallback. |
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
Files load top-down—first from your global config directory (`~/.atomic/agent/`), then from ancestor directories down to your current working directory—and are concatenated in that order.
|
|
38
|
+
|
|
39
|
+
<Note>
|
|
40
|
+
**Project trust:** In an untrusted project, Atomic still loads your global instruction files from `~/.atomic/agent/`, while skipping all project and ancestor-directory instruction files until you trust the project. See [Security](/security).
|
|
41
|
+
</Note>
|
|
42
|
+
|
|
43
|
+
<Accordion title="Traversal, linked worktrees, and legacy directory details">
|
|
44
|
+
|
|
45
|
+
- **Root-to-cwd traversal:** Atomic walks from your current working directory all the way up to the filesystem root (`/` or the Windows drive root); it does not stop at the Git repository root or `$HOME`.
|
|
46
|
+
- **File matching details:** Leading UTF-8 BOMs are stripped automatically. Uppercase `AGENTS.override.MD` is not recognized.
|
|
47
|
+
- **Global directories:** When `ATOMIC_CODING_AGENT_DIR` is unset, Atomic checks both `~/.pi/agent/` and `~/.atomic/agent/` and loads both when they resolve to different directories (`~/.pi/agent/` first, then `~/.atomic/agent/`). When `ATOMIC_CODING_AGENT_DIR` is set, Atomic checks only that directory.
|
|
48
|
+
- **Nested linked Git worktrees:** When your working directory is inside a linked Git worktree nested under a repository (for example `<repo>/.worktrees/feature`) and the worktree root has an instruction file, Atomic skips the matching file from the main repository root (or any file in the main repository root when the worktree uses `AGENTS.override.md`) so instructions are not loaded twice.
|
|
49
|
+
- **Disable for one run:** Pass `--no-context-files` (`-nc`) to skip all instruction files for a single run.
|
|
50
|
+
|
|
51
|
+
</Accordion>
|
|
42
52
|
|
|
43
53
|
## System prompt files
|
|
44
54
|
|
|
45
|
-
To
|
|
55
|
+
To replace or append to Atomic's base system prompt—rather than adding project conventions—create `SYSTEM.md` (replaces the default prompt) or `APPEND_SYSTEM.md` (appends to it).
|
|
56
|
+
|
|
57
|
+
Atomic loads only the **first existing file** in this order:
|
|
58
|
+
|
|
59
|
+
1. `.atomic/SYSTEM.md` *(trusted projects only)*
|
|
60
|
+
2. `.pi/SYSTEM.md` *(trusted projects only)*
|
|
61
|
+
3. `~/.atomic/agent/SYSTEM.md`
|
|
62
|
+
4. `~/.pi/agent/SYSTEM.md`
|
|
63
|
+
|
|
64
|
+
`APPEND_SYSTEM.md` uses the exact same four-path order. Unlike `AGENTS.md` context files, a project `APPEND_SYSTEM.md` **replaces** a global `APPEND_SYSTEM.md` rather than concatenating with it.
|
|
46
65
|
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
3. `~/.atomic/agent/SYSTEM.md`
|
|
51
|
-
4. `~/.pi/agent/SYSTEM.md`
|
|
52
|
-
- `APPEND_SYSTEM.md` follows the exact same four-path order. Unlike context files, a project `APPEND_SYSTEM.md` **replaces** a global `APPEND_SYSTEM.md` instead of concatenating with it.
|
|
53
|
-
- Passing `--system-prompt <text|path>` overrides `SYSTEM.md`. Passing `--append-system-prompt <text|path>` **replaces** any discovered `APPEND_SYSTEM.md`.
|
|
54
|
-
- Context files (`AGENTS.md`/`CLAUDE.md`) and skills still append even when `SYSTEM.md` or `--system-prompt` replaces the default prompt.
|
|
66
|
+
- `--system-prompt <text|path>` overrides `SYSTEM.md`.
|
|
67
|
+
- `--append-system-prompt <text|path>` replaces any discovered `APPEND_SYSTEM.md`.
|
|
68
|
+
- Instruction files (`AGENTS.md`/`CLAUDE.md`) and skills still append even when `SYSTEM.md` or `--system-prompt` replaces the base prompt.
|
|
55
69
|
|
|
56
70
|
## Verify Atomic loaded them
|
|
57
71
|
|
|
@@ -61,13 +75,13 @@ Run `/reload`, then ask:
|
|
|
61
75
|
What project instructions are you following in this repository?
|
|
62
76
|
```
|
|
63
77
|
|
|
64
|
-
Atomic should cite
|
|
78
|
+
Atomic should cite the rules from your file (such as `npm run typecheck`). If it gives generic advice instead, check that:
|
|
65
79
|
|
|
66
|
-
- The
|
|
67
|
-
-
|
|
80
|
+
- The filename matches one of the five supported names in the table above.
|
|
81
|
+
- The file is a regular file (or symlink to one) in your current directory or an ancestor directory.
|
|
68
82
|
- No higher-priority file in the same directory shadows it.
|
|
69
|
-
- The project is trusted (see [Security](/security)).
|
|
83
|
+
- The project is trusted (run `/trust` or see [Security](/security)).
|
|
70
84
|
|
|
71
85
|
## Next step
|
|
72
86
|
|
|
73
|
-
|
|
87
|
+
Read [How Atomic works](/how-atomic-works) for the full mental model, or continue to [Use interactive mode](/usage) and [Configure Atomic](/guides/configuration).
|
|
@@ -1,31 +1,73 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Configure Atomic"
|
|
3
|
-
sidebarTitle: "
|
|
4
|
-
description: "
|
|
3
|
+
sidebarTitle: "Configure Atomic"
|
|
4
|
+
description: "Understand Atomic's configuration files and directories, set global defaults in settings.json, and override settings per project."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
After your [first session](/getting-started/first-session), save global preferences in `~/.atomic/agent/settings.json`. Use `.atomic/settings.json` for overrides that apply only to
|
|
7
|
+
After your [first session](/getting-started/first-session), save global preferences in `~/.atomic/agent/settings.json`. Use `.atomic/settings.json` inside a repository for overrides that apply only to that project.
|
|
8
8
|
|
|
9
|
-
You can edit either file directly or run `/settings`
|
|
9
|
+
You can edit either file directly or run `/settings` in an interactive session to change common options. Both files use strict JSON (no `//` comments or trailing commas).
|
|
10
10
|
|
|
11
11
|
## Where to configure what
|
|
12
12
|
|
|
13
|
-
Atomic splits configuration by scope and purpose:
|
|
14
|
-
|
|
15
13
|
| What you want to configure | Where to put it | Guide |
|
|
16
14
|
| --- | --- | --- |
|
|
17
15
|
| Subscriptions, API keys, and cloud credentials | `/login`, `~/.atomic/agent/auth.json`, or provider env vars | [Model providers](/providers) |
|
|
16
|
+
| Everyday model selection, thinking defaults, and fallbacks | `/model`, `/scoped-models`, or `settings.json` | [Choose a model](/models/choose-a-model) |
|
|
18
17
|
| Custom models, local servers, proxies, overrides, and remote compactors | `~/.atomic/agent/models.json` | [Configure custom models](/models) |
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
18
|
+
| Persistent preferences, tools, compaction, retries, and themes | `~/.atomic/agent/settings.json` and `.atomic/settings.json` | [Settings reference](/settings) |
|
|
19
|
+
| Local SQLite, JSONL, or shared PostgreSQL storage | `storage` / `sessions.storage`, or `atomic storage join` | [Storage](/storage) |
|
|
20
|
+
| Keyboard shortcuts | `~/.atomic/agent/keybindings.json` | [Keybindings](/keybindings) |
|
|
22
21
|
| One-run overrides for a single command | CLI flags (`--model`, `--models`, `--tools`, `--storage`) | [CLI reference](/reference/cli) |
|
|
23
22
|
| Process, CI, terminal, and diagnostic overrides | `ATOMIC_*` environment variables | [Environment variables](/environment-variables) |
|
|
24
|
-
|
|
23
|
+
|
|
24
|
+
<Note>
|
|
25
|
+
Building extensions or embedding Atomic in TypeScript? Extensions can register custom provider APIs and OAuth flows ([Build custom providers](/custom-provider)), and TypeScript hosts can pass settings and storage programmatically ([SDK](/sdk) and [SDK storage](/sdk/storage)).
|
|
26
|
+
</Note>
|
|
27
|
+
|
|
28
|
+
## Configuration files and directories
|
|
29
|
+
|
|
30
|
+
### Global files (`~/.atomic/`)
|
|
31
|
+
|
|
32
|
+
Set `ATOMIC_CODING_AGENT_DIR` to relocate `~/.atomic/agent/`. When a file does not exist in `~/.atomic/agent/`, Atomic falls back to legacy `~/.pi/agent/` where supported.
|
|
33
|
+
|
|
34
|
+
| Path | Purpose |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| `~/.atomic/agent/settings.json` | Global preferences, defaults, tools, storage, compaction, and packages ([Settings](/settings)) |
|
|
37
|
+
| `~/.atomic/agent/auth.json` | Saved OAuth tokens and API keys from `/login` and `atomic auth login` ([Providers](/providers)) |
|
|
38
|
+
| `~/.atomic/agent/models.json` | Custom chat, classifier, and compactor models, proxies, and overrides ([Custom models](/models)) |
|
|
39
|
+
| `~/.atomic/agent/models-store.json` | Cached provider model catalogs refreshed in the background |
|
|
40
|
+
| `~/.atomic/agent/keybindings.json` | Custom keyboard shortcuts ([Keybindings](/keybindings)) |
|
|
41
|
+
| `~/.atomic/agent/mcp.json` | Global MCP server configurations ([MCP servers](/mcp-servers)) |
|
|
42
|
+
| `~/.atomic/agent/trust.json` | Saved per-project trust decisions ([Security](/security#project-trust)) |
|
|
43
|
+
| `~/.atomic/agent/SYSTEM.md`, `APPEND_SYSTEM.md` | Global system prompt replacement or standing instructions ([Project instructions](/getting-started/project-instructions)) |
|
|
44
|
+
| `~/.atomic/agent/blueprint.yaml` | Global environment setup blueprint for restored worktrees ([Resume anywhere](/guides/resume-on-any-machine)) |
|
|
45
|
+
| `~/.atomic/agent/extensions/`, `skills/`, `prompts/`, `themes/` | User-level extensions, skills, prompt templates, and themes |
|
|
46
|
+
| `~/.atomic/agent/sessions/` | Opt-in JSONL session files when JSONL storage is enabled ([JSONL storage](/storage/jsonl)) |
|
|
47
|
+
| `~/.atomic/agent/worktree-snapshots/` | Local restored worktrees and snapshot cache ([Worktree snapshots](/worktree-snapshots)) |
|
|
48
|
+
| `~/.atomic/agent/bin/`, `cache/` | Managed helper binaries (`fd`, `rg`) and extension transpile cache |
|
|
49
|
+
| `~/.atomic/agent/atomic-debug.log` | Debug event log and `/debug` snapshots ([Diagnostics](/development#debugging)) |
|
|
50
|
+
| `~/.atomic/workflows/journal.sqlite` | Default local SQLite database for sessions and snapshots ([SQLite storage](/storage/sqlite)) |
|
|
51
|
+
| `~/.atomic/web-search.json` | Web-access search provider settings and shortcuts ([Web access](/web-access)) |
|
|
52
|
+
|
|
53
|
+
### Project files (`.atomic/` and repository root)
|
|
54
|
+
|
|
55
|
+
Atomic also checks legacy `.pi/` directories at lower precedence than `.atomic/`.
|
|
56
|
+
|
|
57
|
+
| Path | Requires trust | Purpose |
|
|
58
|
+
| --- | --- | --- |
|
|
59
|
+
| `.atomic/settings.json` | Yes | Project-specific setting overrides |
|
|
60
|
+
| `.atomic/mcp.json` | Yes | Project MCP servers ([MCP servers](/mcp-servers)) |
|
|
61
|
+
| `.atomic/blueprint.yaml` | Yes | Repository setup blueprint for cross-machine resume ([Resume anywhere](/guides/resume-on-any-machine)) |
|
|
62
|
+
| `.atomic/SYSTEM.md`, `APPEND_SYSTEM.md` | Yes | Project system prompt replacement or appendix ([Project instructions](/getting-started/project-instructions)) |
|
|
63
|
+
| `.atomic/extensions/`, `skills/`, `prompts/`, `themes/`, `agents/` | Yes | Project-local extensions, skills, templates, themes, and custom subagents (legacy `.atomic/workflows/` is also trust-gated) |
|
|
64
|
+
| `AGENTS.override.md`, `AGENTS.md`, `CLAUDE.md` | Yes | Project instructions at the repo root or subdirectories ([Project instructions](/getting-started/project-instructions)) |
|
|
65
|
+
| `.atomic/snapshot-ignore` | No | Extra `.gitignore`-style exclusions for worktree snapshots ([Worktree snapshots](/worktree-snapshots)) |
|
|
66
|
+
| `.atomic/todos/` | No | File-based task items managed by the built-in `todo` tool ([Tools](/tools)) |
|
|
25
67
|
|
|
26
68
|
## Create a global settings file {#example}
|
|
27
69
|
|
|
28
|
-
Add `"$schema"` for editor autocomplete and validation, then set the provider, model, and preferences you want
|
|
70
|
+
Add `"$schema"` for editor autocomplete and validation, then set the provider, model, and preferences you want in `~/.atomic/agent/settings.json`:
|
|
29
71
|
|
|
30
72
|
```json
|
|
31
73
|
{
|
|
@@ -55,18 +97,29 @@ In this example, `enabledModels` restricts startup fallback, `Ctrl+P` cycling, `
|
|
|
55
97
|
|
|
56
98
|
## Project overrides
|
|
57
99
|
|
|
58
|
-
|
|
100
|
+
<Warning>
|
|
101
|
+
Project settings in `.atomic/settings.json` (and legacy `.pi/settings.json`) load only when the project is trusted. Interactive sessions prompt once before trusting a project; non-interactive runs skip untrusted project settings unless you pass `--approve` (`-a`) or set global `defaultProjectTrust` to `"always"`. See [Project trust](/security#project-trust).
|
|
102
|
+
</Warning>
|
|
59
103
|
|
|
60
104
|
When a project is trusted, `.atomic/settings.json` merges over `~/.atomic/agent/settings.json` using these rules:
|
|
61
105
|
|
|
62
|
-
- **Nested objects merge recursively.**
|
|
106
|
+
- **Nested objects merge recursively.** Override a single nested field (such as `compaction.reserveTokens`) without repeating its siblings.
|
|
63
107
|
- **`storage` and `sessions.storage` replace as whole objects.** Setting either in a project file replaces the global object instead of merging individual fields.
|
|
64
108
|
- **Resource arrays combine across scopes.** `packages`, `extensions`, `skills`, `prompts`, and `themes` combine entries from global and project settings. When both scopes name the same package, the project entry wins. Use `!pattern` or `-exact` exclusions to suppress a resource. Setting `"packages": []` in `.atomic/settings.json` clears only a legacy `.pi/settings.json` in the same project, not global `~/.atomic/agent/settings.json`.
|
|
65
109
|
- **Other arrays and scalars replace global values.** Settings such as `enabledModels`, `fallbackModels`, `npmCommand`, `resume.cache`, and scalar values replace the global value. Setting `"enabledModels": []` in a project file clears a global model scope for that project.
|
|
66
110
|
- **`defaultTools` supports additive modifiers.** A project `defaultTools` array containing only `+tool` or `-tool` entries layers on top of global `defaultTools`. Any plain tool name or `[]` replaces the global list.
|
|
67
|
-
- **
|
|
111
|
+
- **Security-sensitive and host-level settings are global-only.** Atomic ignores project values for global-only keys such as `defaultProjectTrust`, `httpProxy`, and `debug` (see [Settings reference](/settings) for every global-only key). Project `storage` applies only to sessions—not Intercom multi-node routing—and `atomic update` reads `npmCommand` only from global settings.
|
|
112
|
+
|
|
113
|
+
For example, to add `tool_search`, drop `codemode`, and exclude a global skill in one project:
|
|
114
|
+
|
|
115
|
+
```json
|
|
116
|
+
{
|
|
117
|
+
"defaultTools": ["+tool_search", "-codemode"],
|
|
118
|
+
"skills": ["!legacy-deploy"]
|
|
119
|
+
}
|
|
120
|
+
```
|
|
68
121
|
|
|
69
|
-
|
|
122
|
+
Or override only `compaction.reserveTokens` while keeping the rest of your global config:
|
|
70
123
|
|
|
71
124
|
Global `~/.atomic/agent/settings.json`:
|
|
72
125
|
|
|
@@ -104,8 +157,17 @@ Effective settings for the project:
|
|
|
104
157
|
|
|
105
158
|
## Next steps
|
|
106
159
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
160
|
+
<Columns cols={2}>
|
|
161
|
+
<Card title="Settings reference" href="/settings">
|
|
162
|
+
Every supported key, type, default, and global-only rule.
|
|
163
|
+
</Card>
|
|
164
|
+
<Card title="Choose a model" href="/models/choose-a-model">
|
|
165
|
+
Switch models daily, scope cycling, and configure fallbacks.
|
|
166
|
+
</Card>
|
|
167
|
+
<Card title="Storage" href="/storage">
|
|
168
|
+
Choose between local SQLite, JSONL, and shared PostgreSQL.
|
|
169
|
+
</Card>
|
|
170
|
+
<Card title="CLI reference" href="/reference/cli">
|
|
171
|
+
Override configuration for a single run with CLI flags.
|
|
172
|
+
</Card>
|
|
173
|
+
</Columns>
|