@bastani/atomic 0.10.14 → 0.10.15-alpha.2
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 +31 -0
- package/README.md +1 -1
- 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 +11 -1
- 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 +80 -67
- 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 +117 -90
- 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 +16 -17
- 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 -19
- 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 +51 -39
- 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
- package/docs/termux.md +0 -118
|
@@ -1,84 +1,97 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Set up teams and CI"
|
|
3
|
-
sidebarTitle: "
|
|
3
|
+
sidebarTitle: "Set up teams and CI"
|
|
4
4
|
description: "Share Intercom across a team through PostgreSQL while keeping personal sessions local, and configure CI runners with environment variables."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Share one PostgreSQL database across machines so teammates can
|
|
7
|
+
Share one PostgreSQL database across machines so teammates can coordinate over Intercom while keeping personal sessions local. CI runners can point both sessions and Intercom at that same database with one environment variable so teammates can inspect and resume CI runs.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Choose a storage layout
|
|
10
10
|
|
|
11
|
-
|
|
|
12
|
-
| --- | --- | --- |
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
11
|
+
| Profile | Sessions | Intercom | Best for |
|
|
12
|
+
| --- | --- | --- | --- |
|
|
13
|
+
| `individual` (default) | Local SQLite | Local machine only | Solo development on one machine |
|
|
14
|
+
| `team` | Local SQLite (share explicitly with `/share` or export/import) | Shared PostgreSQL, per-repository project group | Teammates collaborating over Intercom with private session history |
|
|
15
|
+
| `ci` | Shared PostgreSQL | Shared PostgreSQL, per-run group (`ATOMIC_INTERCOM_GROUP`) | CI runners, shared swarms, or syncing your own sessions across laptops |
|
|
16
|
+
| `custom` | Any other combination (JSONL, non-default SQLite path, project override, or mismatched prefixes) | Varies | Custom per-project or split-database layouts |
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
- `individual`: sessions use default local SQLite and Intercom has no shared adapter storage.
|
|
20
|
-
- `team`: sessions use default local SQLite while Intercom and shared `storage` use the same shared adapter database.
|
|
21
|
-
- `ci`: sessions, Intercom, and shared `storage` all use the same shared adapter database (if you ran `atomic storage join` to share sessions across your own laptops, `atomic team status` also reports `ci`).
|
|
22
|
-
- `custom`: any other combination, such as JSONL sessions, a non-default local SQLite file, a project `storage` override, or different adapters or prefixes between sessions and Intercom.
|
|
18
|
+
Inspect your active layout at any time with `atomic team status`:
|
|
23
19
|
|
|
24
20
|
```bash
|
|
25
|
-
atomic team status #
|
|
26
|
-
atomic team status --json # JSON output
|
|
21
|
+
atomic team status # Human-readable profile, project group, and storage report
|
|
22
|
+
atomic team status --json # Machine-readable JSON output
|
|
27
23
|
```
|
|
28
24
|
|
|
29
|
-
`atomic team status` exits `1` if the selection is invalid, the adapter fails to load, or the database does not answer.
|
|
25
|
+
`atomic team status --json` prints `{ profile, profileError?, projectGroup?, ...storageStatus }`, where `profile` is `{ profile, sessions, intercom }` (or `null` if configuration is invalid) and the remaining fields match `atomic storage status --json`. The command exits `1` if the storage selection is invalid, the adapter fails to load, or the database does not answer.
|
|
30
26
|
|
|
31
27
|
## Join a team
|
|
32
28
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"sessions
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
atomic
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
29
|
+
<Steps>
|
|
30
|
+
<Step title="Prepare the PostgreSQL database once">
|
|
31
|
+
Create the shared database, roles, and schema following [PostgreSQL](/storage/postgres#set-up-the-database). If multiple teams share one database, pass the same `--prefix` (such as `team_`) to `atomic storage migrate` and to every teammate's `atomic storage join`.
|
|
32
|
+
</Step>
|
|
33
|
+
<Step title="Install the adapter and join on each machine">
|
|
34
|
+
Install the PostgreSQL storage adapter, capture the runtime role's password in a temporary file, and run `atomic storage join`:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
atomic install npm:@bastani/atomic-storage-postgres
|
|
38
|
+
(umask 077; printf 'Runtime password: '; read -rs password; printf '\n'; printf '%s' "$password" > ~/atomic-db-password)
|
|
39
|
+
atomic storage join 'postgresql://atomic_runtime@db.example.com:5432/atomic?sslmode=verify-full' --password-file ~/atomic-db-password
|
|
40
|
+
rm ~/atomic-db-password # atomic storage join keeps its own private copy
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`atomic storage join` validates the URL, password, installed adapter, and a `SELECT 1` query within 15 seconds before updating `~/.atomic/agent/settings.json`. See [Joining a machine to a shared database](/storage#joining-a-machine-to-a-shared-database) for `--token-file`, `--auth azure|aws|gcp`, and `--prefix`.
|
|
44
|
+
</Step>
|
|
45
|
+
<Step title="Keep personal sessions local">
|
|
46
|
+
By default, `atomic storage join` sets top-level `storage`, which shares both sessions and Intercom. To keep personal sessions in local SQLite while Intercom uses the team database, add `"sessions": { "storage": {} }` to `~/.atomic/agent/settings.json` while keeping the `storage` block (and the exact `storage-token.<generated-id>` filename) that `atomic storage join` wrote:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"storage": {
|
|
51
|
+
"adapter": "@bastani/atomic-storage-postgres",
|
|
52
|
+
"options": {
|
|
53
|
+
"url": "postgresql://atomic_runtime@db.example.com:5432/atomic?sslmode=verify-full"
|
|
54
|
+
},
|
|
55
|
+
"secrets": {
|
|
56
|
+
"password": { "file": "agent/storage-token.<generated-id>" }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"sessions": { "storage": {} }
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
</Step>
|
|
63
|
+
<Step title="Restart Intercom and verify">
|
|
64
|
+
Restart the local Intercom broker so it connects to the shared database, then confirm the active profile reads `team`:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
atomic intercom restart
|
|
68
|
+
atomic team status
|
|
69
|
+
```
|
|
70
|
+
</Step>
|
|
71
|
+
</Steps>
|
|
72
|
+
|
|
73
|
+
- **Running sessions:** Sessions started before joining keep their previous Intercom group until restarted or reloaded with `/reload`.
|
|
74
|
+
- **Leaving a team:** Remove `storage` and `sessions.storage` from `~/.atomic/agent/settings.json`, run `atomic intercom restart`, and delete the generated `storage-token.<id>` file in your agent directory.
|
|
63
75
|
|
|
64
76
|
## Project groups
|
|
65
77
|
|
|
66
|
-
When multi-node Intercom routing is enabled, sessions without an explicit group join `project:<owner>/<repo>`, derived from the repository's `origin` remote
|
|
78
|
+
When multi-node Intercom routing is enabled, sessions without an explicit group automatically join `project:<owner>/<repo>`, derived from the Git repository's `origin` remote (falling back to the repository directory name without `origin`, or the working directory name outside Git).
|
|
67
79
|
|
|
68
|
-
Sessions in different repositories on the same database cannot see or message each other unless they join the same group. An explicit group (`ATOMIC_INTERCOM_GROUP`, Intercom's `config.json` `group`, or
|
|
80
|
+
Sessions in different repositories on the same database cannot see or message each other unless they join the same group. An explicit group (`ATOMIC_INTERCOM_GROUP`, Intercom's `config.json` `group`, or an inherited subagent group) always overrides the project group. Joining `default` explicitly while multi-node routing is on prints a warning because every teammate on the shared database can message `default`.
|
|
69
81
|
|
|
70
|
-
For
|
|
82
|
+
For remote URL casing rules, Git lookup errors, and multi-node routing checks, see [Running Intercom across machines](/intercom/operations#running-intercom-across-machines) and [Project groups](/intercom/operations#project-groups).
|
|
71
83
|
|
|
72
84
|
## CI and swarms
|
|
73
85
|
|
|
74
|
-
CI runners do not need a `settings.json` file.
|
|
86
|
+
CI runners do not need a `settings.json` file. Configure the shared database for the process and all child processes with environment variables:
|
|
75
87
|
|
|
76
88
|
| Variable | Value |
|
|
77
89
|
| --- | --- |
|
|
78
|
-
| `ATOMIC_STORAGE` | `{"adapter":"@bastani/atomic-storage-postgres","options":{"url":"<team database URL>"},"secrets":{"password":{"env":"ATOMIC_DB_PASSWORD"}}}
|
|
79
|
-
| `ATOMIC_DB_PASSWORD` |
|
|
90
|
+
| `ATOMIC_STORAGE` | `{"adapter":"@bastani/atomic-storage-postgres","options":{"url":"<team database URL>"},"secrets":{"password":{"env":"ATOMIC_DB_PASSWORD"}}}` (add `"prefix"` when your team uses one) |
|
|
91
|
+
| `ATOMIC_DB_PASSWORD` | Database password, read only when opening a store |
|
|
92
|
+
| `ATOMIC_INTERCOM_GROUP` | Optional per-run group isolating one CI job or swarm from others |
|
|
80
93
|
|
|
81
|
-
|
|
94
|
+
Atomic validates `ATOMIC_STORAGE` at startup before opening a session and never copies passwords into settings, logs, or child storage selections. See [Selecting storage per process](/storage#selecting-storage-per-process) for precedence rules.
|
|
82
95
|
|
|
83
96
|
### GitHub Actions
|
|
84
97
|
|
|
@@ -96,15 +109,17 @@ jobs:
|
|
|
96
109
|
- run: atomic -p "Fix the failing test in the checkout"
|
|
97
110
|
```
|
|
98
111
|
|
|
99
|
-
|
|
112
|
+
<Tip>
|
|
113
|
+
Store `ATOMIC_DB_PASSWORD` in an encrypted secret and scope it only to the step that runs Atomic, since tools run by the agent inherit that step's environment. On Azure, AWS, or Google Cloud, pass `"options": { "auth": "azure-entra" }` (or `"aws-iam"`, `"gcp-iam"`) to authenticate with the runner's cloud identity instead of a password ([Cloud identities](/storage/postgres#cloud-identities)).
|
|
114
|
+
</Tip>
|
|
100
115
|
|
|
101
116
|
### Caching between runs
|
|
102
117
|
|
|
103
|
-
Hosted CI runners start with an empty home directory. Use `atomic blueprint cache-key` to
|
|
118
|
+
Hosted CI runners start with an empty home directory. Use `atomic blueprint cache-key` to emit cache keys and paths for detected package stores and any extra `resume.cache` paths in `.atomic/settings.json` ([Caches for runners](/guides/resume-on-any-machine#caches-for-runners)).
|
|
104
119
|
|
|
105
120
|
Save caches only from a trusted job on the default branch (`push`, `schedule`, or `workflow_dispatch`), and restore them read-only in agent jobs with `actions/cache/restore`.
|
|
106
121
|
|
|
107
|
-
In the trusted job,
|
|
122
|
+
In the trusted job, [`atomic blueprint prebuild --park --approve`](/guides/resume-on-any-machine#prebuilt-worktrees) checks out the commit into a worktree, runs repository blueprints to warm package stores, writes the commit into Atomic's Git object store, and parks `"kind": "build"` paths from `resume.cache`. Prebuild requires a Git remote, `snapshots.enabled: true`, no uncommitted edits to tracked files, and no unpushed commits touching denied secret files. Install any required Atomic packages before running `atomic --list-models` to warm the compiled extension cache:
|
|
108
123
|
|
|
109
124
|
```yaml
|
|
110
125
|
on:
|
|
@@ -121,7 +136,7 @@ jobs:
|
|
|
121
136
|
- id: keys
|
|
122
137
|
run: atomic blueprint cache-key --format github-output >> "$GITHUB_OUTPUT"
|
|
123
138
|
- run: atomic blueprint prebuild --park --approve # Runs blueprints to populate stores; trust only the default branch
|
|
124
|
-
- run: atomic --list-models
|
|
139
|
+
- run: atomic --list-models # Compiles installed extensions into Atomic's cache
|
|
125
140
|
- uses: actions/cache/save@v4
|
|
126
141
|
with:
|
|
127
142
|
key: ${{ steps.keys.outputs.stores-key }}
|
|
@@ -141,7 +156,7 @@ jobs:
|
|
|
141
156
|
path: ${{ steps.keys.outputs.atomic-paths }}
|
|
142
157
|
```
|
|
143
158
|
|
|
144
|
-
In the agent job, restore those entries before launching Atomic:
|
|
159
|
+
In the agent job, restore those cache entries before launching Atomic:
|
|
145
160
|
|
|
146
161
|
```yaml
|
|
147
162
|
- uses: actions/checkout@v5
|
|
@@ -172,64 +187,58 @@ In the agent job, restore those entries before launching Atomic:
|
|
|
172
187
|
- run: atomic --session "$SESSION_ID" -p "Continue"
|
|
173
188
|
```
|
|
174
189
|
|
|
175
|
-
When the agent job resumes a session, Atomic fetches only
|
|
190
|
+
When the agent job resumes a session, Atomic fetches only commits missing from the cached Git store and restores parked build output at the same path used during prebuild (preserving path-sensitive artifacts such as Cargo's `target`).
|
|
176
191
|
|
|
177
|
-
-
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
192
|
+
- Keys hash lockfiles, `keyFiles`, `resume.cache`, the repository blueprint, OS, architecture, and Atomic version; `restore-keys` falls back to the newest older cache for incremental updates.
|
|
193
|
+
- `cache-key` omits paths that may hold credentials and warns on stderr while keeping `$GITHUB_OUTPUT` clean. Skip `build` steps when `build-key` is empty so `actions/cache` never receives an empty `path`.
|
|
194
|
+
|
|
195
|
+
<Warning>
|
|
196
|
+
Omit `"kind": "build"` paths from `resume.cache` if untrusted external contributor code builds on the default branch, because agent jobs reuse the trusted job's parked build output.
|
|
197
|
+
</Warning>
|
|
181
198
|
|
|
182
199
|
## From the SDK
|
|
183
200
|
|
|
184
|
-
`@bastani/atomic/storage` exports `getTeamProfile()`, which
|
|
201
|
+
`@bastani/atomic/storage` (and `@bastani/atomic`) exports `getTeamProfile(options?)`, which resolves the active layout matching `atomic team status`:
|
|
202
|
+
|
|
203
|
+
- **Options (`TeamProfileOptions`):** `{ agentDir?, cwd? }` (both optional; default to the resolved agent directory and `process.cwd()`).
|
|
204
|
+
- **Return value (`Promise<TeamProfile>`):** `{ profile, sessions, intercom }`, where `profile` is `"individual" | "team" | "ci" | "custom"`, `sessions` describes the active session store, and `intercom` describes the shared Intercom store (or `"off"` when local only).
|
|
185
205
|
|
|
186
206
|
```typescript
|
|
187
|
-
import {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
const url = process.env.TEAM_DATABASE_URL!;
|
|
192
|
-
const password = process.env.TEAM_DATABASE_PASSWORD!;
|
|
193
|
-
|
|
194
|
-
// Embedded SDK agent: sessions use the team database (requires `atomic install npm:@bastani/atomic-storage-postgres`
|
|
195
|
-
// or `DefaultResourceLoader({ additionalExtensionPaths })`).
|
|
196
|
-
const storage = {
|
|
197
|
-
adapter: "@bastani/atomic-storage-postgres",
|
|
198
|
-
options: { url },
|
|
199
|
-
secrets: { password: inMemorySecret(password) },
|
|
200
|
-
};
|
|
201
|
-
const { session } = await createAgentSession({ storage });
|
|
202
|
-
try {
|
|
203
|
-
await session.prompt("Summarize the failing tests");
|
|
204
|
-
} finally {
|
|
205
|
-
await session.dispose();
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// Spawned agent process: sessions and Intercom both use the team database.
|
|
209
|
-
const child = spawn("atomic", ["-p", "Fix the failing test"], {
|
|
210
|
-
env: {
|
|
211
|
-
...process.env,
|
|
212
|
-
ATOMIC_STORAGE: JSON.stringify({ adapter: "@bastani/atomic-storage-postgres", options: { url }, secrets: { password: { env: "ATOMIC_DB_PASSWORD" } } }),
|
|
213
|
-
ATOMIC_DB_PASSWORD: password,
|
|
214
|
-
},
|
|
215
|
-
stdio: "inherit",
|
|
216
|
-
});
|
|
207
|
+
import { getTeamProfile, inMemorySecret } from "@bastani/atomic/storage";
|
|
208
|
+
|
|
209
|
+
const layout = await getTeamProfile({ cwd: process.cwd() });
|
|
210
|
+
// layout: { profile: "team", sessions: "...", intercom: "..." }
|
|
217
211
|
```
|
|
218
212
|
|
|
219
|
-
|
|
213
|
+
To pass the team database to an embedded `createAgentSession({ storage })` call, keep the password in memory with `inMemorySecret(password)`. Because in-memory secrets serialize as `[redacted]`, spawned `atomic` subprocesses cannot reopen the store from them—pass an `{ "env": "ATOMIC_DB_PASSWORD" }` reference inside `ATOMIC_STORAGE` instead. See [SDK session storage](/sdk/storage) for complete recipes and store ownership rules, and [Team setup errors](/storage#team-setup-errors) for typed errors.
|
|
220
214
|
|
|
221
215
|
## Security
|
|
222
216
|
|
|
223
|
-
|
|
217
|
+
<Warning>
|
|
218
|
+
Anyone with read access to the shared PostgreSQL database can read everything stored in it, including CI sessions and Intercom messages in transit. Treat database read access as full read access to every session and message under that prefix.
|
|
219
|
+
</Warning>
|
|
220
|
+
|
|
221
|
+
- Give each team its own database or `--prefix` so teams never share tables or Intercom routing.
|
|
222
|
+
- Use a dedicated PostgreSQL runtime role with only the privileges Atomic requires, rotate passwords on offboarding, and prefer cloud identities (`--auth`) where supported ([PostgreSQL](/storage/postgres)).
|
|
223
|
+
- In the `team` profile, personal sessions stay off the shared database only because `sessions.storage` selects local SQLite. Share individual sessions intentionally with `/share` or `atomic storage export` / `atomic storage import`.
|
|
224
224
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
<Note>
|
|
226
|
+
**Upgrading from libSQL or Turso?** Atomic removed libSQL support together with `atomic team join`, `atomic team leave`, and `ATOMIC_PROFILE=ci`. Follow [Moving off libSQL](/storage#moving-off-libsql) to export existing sessions and move to PostgreSQL or local SQLite.
|
|
227
|
+
</Note>
|
|
228
228
|
|
|
229
229
|
## Related
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
<Columns cols={2}>
|
|
232
|
+
<Card title="PostgreSQL setup" href="/storage/postgres">
|
|
233
|
+
Database schema, owner vs. runtime roles, TLS, connection poolers, cloud IAM, and concurrency tuning.
|
|
234
|
+
</Card>
|
|
235
|
+
<Card title="Storage overview" href="/storage">
|
|
236
|
+
All storage backends, selection precedence, session export/import, and storage error reference.
|
|
237
|
+
</Card>
|
|
238
|
+
<Card title="Resume sessions on any machine" href="/guides/resume-on-any-machine">
|
|
239
|
+
Cross-machine worktree snapshots, `.atomic/blueprint.yaml`, and runner cache configuration.
|
|
240
|
+
</Card>
|
|
241
|
+
<Card title="Operate Intercom" href="/intercom/operations#running-intercom-across-machines">
|
|
242
|
+
Multi-node Intercom routing, project groups, offline queueing, and troubleshooting.
|
|
243
|
+
</Card>
|
|
244
|
+
</Columns>
|
package/docs/guides.md
CHANGED
|
@@ -1,50 +1,94 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Task guides"
|
|
3
|
-
sidebarTitle: "
|
|
4
|
-
description: "Task guides for
|
|
3
|
+
sidebarTitle: "Task guides"
|
|
4
|
+
description: "Task guides for everyday terminal work, sessions, compaction, subagents, models, and security."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
New to Atomic?
|
|
7
|
+
New to Atomic? Start with the [Quickstart](/quickstart) to install, authenticate, run your first session, and add project instructions, or read [How Atomic works](/how-atomic-works) for the complete mental model.
|
|
8
8
|
|
|
9
9
|
## Use Atomic daily
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
<Columns cols={2}>
|
|
12
|
+
<Card title="Use interactive mode" href="/usage">
|
|
13
|
+
Terminal editor, `@` file references, `!` shell commands, message queueing, and prompt history search.
|
|
14
|
+
</Card>
|
|
15
|
+
<Card title="Run non-interactively" href="/guides/non-interactive">
|
|
16
|
+
One-shot prompts with `-p`, piped stdin, JSON event streams, and headless scripting.
|
|
17
|
+
</Card>
|
|
18
|
+
<Card title="Configure Atomic" href="/guides/configuration">
|
|
19
|
+
Set up global defaults in `~/.atomic/agent/settings.json` and project-level overrides.
|
|
20
|
+
</Card>
|
|
21
|
+
<Card title="Manage sessions" href="/sessions">
|
|
22
|
+
Resume, name, search, branch with `/tree`, fork, clone, and recall past sessions.
|
|
23
|
+
</Card>
|
|
24
|
+
<Card title="Worktree snapshots" href="/worktree-snapshots">
|
|
25
|
+
Capture and restore Git repository state alongside your session history.
|
|
26
|
+
</Card>
|
|
27
|
+
<Card title="Resume on any machine" href="/guides/resume-on-any-machine">
|
|
28
|
+
Continue sessions across hosts over shared PostgreSQL and rebuild environments with `.atomic/blueprint.yaml`.
|
|
29
|
+
</Card>
|
|
30
|
+
<Card title="Context and compaction" href="/compaction">
|
|
31
|
+
Keep long runs within context limits with zero-call memory compaction or custom remote compactors.
|
|
32
|
+
</Card>
|
|
33
|
+
<Card title="Custom compaction models" href="/compaction/custom-compactors">
|
|
34
|
+
Use built-in Morph compaction or connect your own remote compactor endpoint with automatic fallback.
|
|
35
|
+
</Card>
|
|
36
|
+
</Columns>
|
|
20
37
|
|
|
21
38
|
## Delegate and automate
|
|
22
39
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
40
|
+
<Columns cols={2}>
|
|
41
|
+
<Card title="Orchestrate multi-step work" href="/orchestration">
|
|
42
|
+
Combine skills, subagents, and verification loops to plan and validate larger tasks.
|
|
43
|
+
</Card>
|
|
44
|
+
<Card title="Run subagents" href="/subagents">
|
|
45
|
+
Delegate independent work to fresh or forked subagents, isolate edits in worktrees, and control runs.
|
|
46
|
+
</Card>
|
|
47
|
+
<Card title="Background tasks" href="/background-tasks">
|
|
48
|
+
Launch, inspect, steer, pause, and stop background subagents and shells in `/tasks`.
|
|
49
|
+
</Card>
|
|
50
|
+
<Card title="Coordinate sessions with Intercom" href="/intercom">
|
|
51
|
+
Message and ask live sessions or sibling subagents on one machine or across a shared database.
|
|
52
|
+
</Card>
|
|
53
|
+
<Card title="Team and CI setup" href="/guides/team-setup">
|
|
54
|
+
Share Intercom across a team with PostgreSQL while keeping sessions private, and set up CI runners.
|
|
55
|
+
</Card>
|
|
56
|
+
<Card title="Computer use" href="/computer-use">
|
|
57
|
+
Automate browsers, native desktop apps, and terminals across macOS, Linux, and Windows.
|
|
58
|
+
</Card>
|
|
59
|
+
<Card title="Verification" href="/verification">
|
|
60
|
+
Reproduce bugs and gather verifiable evidence across terminal, browser, and desktop workflows.
|
|
61
|
+
</Card>
|
|
62
|
+
</Columns>
|
|
31
63
|
|
|
32
64
|
## Models and providers
|
|
33
65
|
|
|
34
|
-
|
|
35
|
-
|
|
66
|
+
<Columns cols={2}>
|
|
67
|
+
<Card title="Choose a model" href="/models/choose-a-model">
|
|
68
|
+
Decide between subscriptions, API keys, local models, and custom endpoints, and configure model cycling.
|
|
69
|
+
</Card>
|
|
70
|
+
<Card title="Model providers" href="/providers">
|
|
71
|
+
Connect subscription logins, API keys, and cloud gateways (Bedrock, Vertex AI, Azure, NIM).
|
|
72
|
+
</Card>
|
|
73
|
+
<Card title="Local models with llama.cpp" href="/llama-cpp">
|
|
74
|
+
Run local GGUF models with a `llama.cpp` router and manage them with `/llama`.
|
|
75
|
+
</Card>
|
|
76
|
+
</Columns>
|
|
36
77
|
|
|
37
78
|
## Security and isolation
|
|
38
79
|
|
|
39
|
-
|
|
40
|
-
|
|
80
|
+
<Columns cols={2}>
|
|
81
|
+
<Card title="Security" href="/security">
|
|
82
|
+
Review project trust boundaries, OS tool permissions, and credential guarantees.
|
|
83
|
+
</Card>
|
|
84
|
+
<Card title="Containerization" href="/containerization">
|
|
85
|
+
Isolate Atomic or its tool execution inside Gondolin, Docker, or OpenShell.
|
|
86
|
+
</Card>
|
|
87
|
+
</Columns>
|
|
41
88
|
|
|
42
|
-
##
|
|
89
|
+
## Build and reference
|
|
43
90
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- **[
|
|
47
|
-
- **[Settings](/settings)
|
|
48
|
-
- **[Environment variables](/environment-variables).** Look up Atomic variables, legacy aliases, color controls, and provider credentials.
|
|
49
|
-
- **[Keybindings](/keybindings).** Look up default shortcuts and custom bindings.
|
|
50
|
-
- **[Diagnostics and debugging](/development).** Capture debug snapshots, trace UI stalls, and report bugs.
|
|
91
|
+
Looking to extend, embed, or look up exact flags and schemas?
|
|
92
|
+
|
|
93
|
+
- **[Build with Atomic](/build):** Write [skills](/skills), [prompt templates](/prompt-templates), [themes](/themes), [extensions](/extensions), [custom models](/models) and [providers](/custom-provider), [Atomic packages](/packages), or embed Atomic via the [TypeScript SDK, RPC, or JSON mode](/programmatic).
|
|
94
|
+
- **[Reference index](/reference):** Look up [CLI options](/reference/cli), [Slash commands](/slash-commands), [Settings](/settings), [Environment variables](/environment-variables), [Keybindings](/keybindings), [Built-in tools](/tools), [Codemode](/codemode), [MCP servers](/mcp-servers), [Web access](/web-access), [Storage](/storage), [Platform setup](/reference#platform-setup), and [Diagnostics and debugging](/development).
|
package/docs/herdr.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "Herdr
|
|
3
|
-
sidebarTitle: "Herdr"
|
|
4
|
-
description: "Use Atomic's built-in Herdr status indicators, session restore, troubleshooting steps, and privacy controls."
|
|
2
|
+
title: "Run Atomic in Herdr"
|
|
3
|
+
sidebarTitle: "Run in Herdr"
|
|
4
|
+
description: "Use Atomic's built-in Herdr status indicators, automatic session restore, troubleshooting steps, and privacy controls."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Atomic reports its status to [Herdr](https://herdr.dev) automatically when you start it inside a Herdr pane. No extra extension is needed, and the pane identifies the agent as `atomic`.
|
|
8
8
|
|
|
9
|
-
For interactive terminal automation, pane isolation, and fallbacks, see [Computer use](/computer-use#terminal-automation-with-herdr). To let Atomic inspect or control Herdr panes, tabs, workspaces, worktrees, and commands from inside a Herdr pane (`HERDR_ENV=1`), invoke the bundled `/skill:herdr` skill ([Bundled skills](/skills#bundled-skills)). This
|
|
9
|
+
For interactive terminal automation, pane isolation, and fallbacks, see [Computer use](/computer-use#terminal-automation-with-herdr). To let Atomic inspect or control Herdr panes, tabs, workspaces, worktrees, and commands from inside a Herdr pane (`HERDR_ENV=1`), invoke the bundled `/skill:herdr` skill ([Bundled skills](/skills#bundled-skills)). This guide covers Atomic's built-in status and session-restore integration.
|
|
10
10
|
|
|
11
11
|
## Setup
|
|
12
12
|
|
|
13
13
|
Use Herdr 0.8.2 or newer and launch Atomic inside a Herdr pane. Herdr sets the pane environment variables automatically, so no manual configuration is required.
|
|
14
14
|
|
|
15
|
-
- Status reporting runs only in interactive Atomic sessions
|
|
15
|
+
- Status reporting runs only in interactive Atomic sessions; it stays off outside Herdr and in print, JSON, and RPC modes.
|
|
16
16
|
- Reporting stays active even when you pass `--no-extensions` (`-ne`); only setting `herdr.enabled: false` turns it off.
|
|
17
17
|
- Inside Herdr panes (`TERM_PROGRAM=herdr`), Atomic automatically enables Kitty inline images and clickable OSC 8 hyperlinks.
|
|
18
18
|
|
|
@@ -24,23 +24,23 @@ Use Herdr 0.8.2 or newer and launch Atomic inside a Herdr pane. Herdr sets the p
|
|
|
24
24
|
| Blocked | Work needs your input or approval, and no independent background work is running. |
|
|
25
25
|
| Idle / Done | No work is running. Herdr may show a newly finished turn as Done. |
|
|
26
26
|
|
|
27
|
-
Quiet periods such as provider waits, retries, and tool execution still count as Working
|
|
27
|
+
Quiet periods such as provider waits, retries, and tool execution still count as Working, and active background work keeps the pane Working after Atomic finishes its response. Opening [`/tasks`](/background-tasks) or [`/agents`](/subagents) does not mark the pane Blocked, and neither does a [subagent](/subagents) asking its supervisor for guidance. Check `/tasks` for pass or fail outcomes; the pane status shows activity, not a verdict.
|
|
28
28
|
|
|
29
|
+
<Note>
|
|
29
30
|
All Blocked states report the fixed message `"Waiting for approval"`, even for non-approval questions or prompts. Unlike [OSC 7501 program status](/terminal-setup#program-status), Herdr also reports [project trust](/security) prompts (`/trust` or resumed-folder trust) as Blocked when no background tasks are running.
|
|
30
|
-
|
|
31
|
-
Opening [`/tasks`](/background-tasks) or [`/agents`](/subagents) does not mark the pane Blocked, and neither does a [subagent](/subagents) asking its supervisor for guidance. Check `/tasks` for pass or fail outcomes; the pane status shows activity, not a verdict.
|
|
31
|
+
</Note>
|
|
32
32
|
|
|
33
33
|
## Restore after a Herdr restart
|
|
34
34
|
|
|
35
35
|
With Herdr 0.9.2 or newer, Atomic also reports a resume command so Herdr can reopen the same conversation in the pane after a Herdr server restart ([Sessions](/sessions), [Storage](/storage)). Atomic does not restart panes itself. To disable automatic agent restore in Herdr, set `[session] resume_agents_on_restore = false` in Herdr's config.
|
|
36
36
|
|
|
37
|
-
- **Local SQLite sessions (default):**
|
|
38
|
-
- **JSONL directory sessions:**
|
|
39
|
-
- **Other persisted stores (such as PostgreSQL):**
|
|
37
|
+
- **Local SQLite sessions (default):** Reports `atomic --session-store <path> --session <id>` (plus `--session-prefix <prefix>` when a table prefix is configured).
|
|
38
|
+
- **JSONL directory sessions:** Reports `atomic --session-dir <dir> --session <id>`. Session IDs ending in `.jsonl` still use `--session <id>`.
|
|
39
|
+
- **Other persisted stores (such as PostgreSQL):** Reports `atomic --session <id>`.
|
|
40
40
|
- **Switching sessions:** Running `/new`, `/resume`, `/fork`, or `/clone` updates the pane to the new session's ID and resume command.
|
|
41
|
-
- **Unsaved sessions:** Sessions started with `--no-session` report status without a resume command. For a brand-new persisted session, Atomic reports the resume command right away, though reopening succeeds only after the
|
|
41
|
+
- **Unsaved sessions:** Sessions started with `--no-session` report status without a resume command. For a brand-new persisted session, Atomic reports the resume command right away, though reopening succeeds only after the first entry is saved.
|
|
42
42
|
- **Quit vs. stop signals:** Quitting Atomic yourself (`Ctrl+D`, `Ctrl+C` twice, `/quit`, or `/exit`) clears the resume command so Herdr does not reopen the pane. When Herdr or the OS stops Atomic with `SIGTERM`, `SIGHUP`, or a Windows console close or sign-out, the resume command stays registered for restore.
|
|
43
|
-
- **Resume-command safety
|
|
43
|
+
- **Resume-command safety checks:** If the resume command is unusually long or contains a single quote (`'`) or control character in any argument (such as a session path), Atomic omits the resume command while continuing to report live status.
|
|
44
44
|
- **Older Herdr versions:** Herdr 0.8.2 through 0.9.1 show status indicators without session restore.
|
|
45
45
|
|
|
46
46
|
## Disable the integration
|
|
@@ -55,7 +55,7 @@ Add this to `~/.atomic/agent/settings.json` or trusted project `.atomic/settings
|
|
|
55
55
|
}
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
Reporting is enabled by default, and disabling it also disables resume-command reporting. Running `/reload` after setting `herdr.enabled` to `false` cleanly releases the pane registration and clears the resume command. Project settings follow
|
|
58
|
+
Reporting is enabled by default, and disabling it also disables resume-command reporting. Running `/reload` after setting `herdr.enabled` to `false` cleanly releases the pane registration and clears the resume command. Project settings follow normal [settings precedence](/settings).
|
|
59
59
|
|
|
60
60
|
## Troubleshooting
|
|
61
61
|
|
|
@@ -63,12 +63,11 @@ If Atomic does not appear in Herdr:
|
|
|
63
63
|
|
|
64
64
|
- Verify that you launched Atomic inside a Herdr pane rather than an external terminal.
|
|
65
65
|
- Check that Herdr is running and `herdr.enabled` is not set to `false`.
|
|
66
|
-
- Inside a Herdr pane, Atomic's built-in reporter supersedes Herdr's legacy file integration and skips
|
|
67
|
-
- If you installed a separate `herdr-atomic-reporter` extension, remove or disable one of the two reporters to prevent flickering status updates.
|
|
66
|
+
- **Upgrading from legacy Herdr extensions:** Inside a Herdr pane, Atomic's built-in reporter supersedes Herdr's legacy file integration and skips `herdr-agent-state.ts` and `herdr-agent-state.js` automatically (outside a Herdr pane, those files load normally). If you installed a separate `herdr-atomic-reporter` extension, remove or disable one of the two reporters to prevent flickering status updates.
|
|
68
67
|
|
|
69
68
|
Custom launchers must supply `HERDR_ENV=1` along with non-empty `HERDR_BIN_PATH`, `HERDR_PANE_ID`, and `HERDR_SOCKET_PATH` values. See [Herdr's integration guide](https://herdr.dev/docs/integrations/#integrate-your-own-agent).
|
|
70
69
|
|
|
71
|
-
|
|
70
|
+
Status calls time out quickly, never interrupt the agent, and log each error category to stderr at most once per session. Reloading or compacting a session keeps Atomic registered while enabled; if status stops updating, check Herdr's connection and run `/reload` (Atomic does not poll to reconnect).
|
|
72
71
|
|
|
73
72
|
## Privacy
|
|
74
73
|
|