@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
package/docs/intercom.md
CHANGED
|
@@ -1,55 +1,43 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Coordinate sessions with Intercom"
|
|
3
|
-
sidebarTitle: "
|
|
3
|
+
sidebarTitle: "Coordinate sessions"
|
|
4
4
|
description: "Send messages, ask non-blocking questions, and escalate subagent decisions between Atomic sessions."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Intercom provides direct and broadcast messaging between Atomic sessions on the same machine, or across multiple machines
|
|
7
|
+
Intercom provides direct and broadcast messaging between Atomic sessions on the same machine, or across multiple machines sharing a [PostgreSQL database](/storage#sharing-storage-across-hosts). You can message another session yourself or let agents coordinate directly, with no separate install required.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
| What you want | Use this |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| Send a message from the terminal UI | Press `Alt+M` or run `/intercom` |
|
|
12
|
+
| Send a fire-and-forget update or handoff | `intercom({ action: "send", to, message })` |
|
|
13
|
+
| Ask a question without blocking the caller | `intercom({ action: "ask", to, message })` |
|
|
14
|
+
| Answer an incoming ask | `intercom({ action: "reply", message })` |
|
|
15
|
+
| Escalate a subagent decision or interview | `contact_supervisor({ reason, message, interview? })` |
|
|
16
|
+
| Coordinate sessions across machines or teams | [Running Intercom across machines](/intercom/operations#running-intercom-across-machines) |
|
|
10
17
|
|
|
11
|
-
|
|
18
|
+
## How sessions join
|
|
12
19
|
|
|
13
|
-
|
|
20
|
+
The `/intercom` command, `Alt+M` shortcut, and `intercom` tool are available as soon as Atomic starts. Interactive sessions join Intercom automatically in the background 3 seconds after startup, so other sessions in their group can list and message them right away without slowing startup.
|
|
14
21
|
|
|
15
|
-
|
|
22
|
+
Print (`-p`), JSON, RPC, and SDK sessions connect on first Intercom use or when they launch a subagent with Intercom. Interactive sessions do the same when startup join is disabled (`joinAtStartup: false` in [Intercom configuration](/intercom/reference#configuration), or `ATOMIC_INTERCOM_JOIN_AT_STARTUP=0` / `false`). Subagents launched with Intercom connect immediately before their first turn and inherit the launching session's group unless the launch sets `group`.
|
|
16
23
|
|
|
17
|
-
|
|
18
|
-
- **Runtime groups.** Add or remove named memberships without restarting. Joined sessions keep their Intercom session IDs, and later subagents inherit the most recently joined membership.
|
|
19
|
-
- **Session and group discovery.** List connected sessions or every active group with session counts and membership markers.
|
|
20
|
-
- **Keyboard overlay.** Press `Alt+M` or run `/intercom` to pick a session and compose a message.
|
|
21
|
-
- **Attachments.** Share `file`, `snippet`, and `context` payloads between sessions.
|
|
22
|
-
- **Subagent escalation.** Subagents receive `contact_supervisor` for decisions, structured interviews, and progress updates.
|
|
23
|
-
- **Run notifications.** Subagents deliver run results and activity notices to their launching session over Intercom.
|
|
24
|
-
- **Bundled skill.** Run `/skill:intercom` for planner-worker, group, broadcast, and escalation patterns.
|
|
25
|
-
- **Programmatic reach policies.** Embedded SDK hosts can constrain a session's reachable groups via [Intercom group and reach](/sdk#intercom-group-and-reach) and [Reach policies](/intercom/reference#reach-policies).
|
|
26
|
-
|
|
27
|
-
**Common use cases:**
|
|
28
|
-
|
|
29
|
-
- Planner and worker splits across two terminals.
|
|
30
|
-
- Research-to-implementation context handoffs.
|
|
31
|
-
- Supervisor decisions and structured interviews for subagents.
|
|
32
|
-
- Peer-to-peer coordination across parallel subagents.
|
|
33
|
-
- Pair debugging between sessions.
|
|
34
|
-
|
|
35
|
-
## Where to go next
|
|
36
|
-
|
|
37
|
-
Read this page for the quick start, coordination patterns, and supervisor escalation. Then continue to:
|
|
38
|
-
|
|
39
|
-
- [Operate Intercom](/intercom/operations) for connection lifecycles, delivery recovery, broker upgrades, and troubleshooting.
|
|
40
|
-
- [Running Intercom across machines](/intercom/operations#running-intercom-across-machines), [Sharing storage across hosts](/storage#sharing-storage-across-hosts), and [Set up teams and CI](/guides/team-setup) for multi-machine messaging through shared storage.
|
|
41
|
-
- [Intercom reference](/intercom/reference) for the `intercom` tool contract, targeting rules, error classes, and every Intercom setting.
|
|
42
|
-
- [Intercom group and reach in the SDK](/sdk#intercom-group-and-reach) and [SDK tools](/sdk/reference#tools) for programmatic reach policies and `builtins.intercom`.
|
|
24
|
+
Atomic enables `intercom` by default unless excluded by tool allowlists, exclusions, or `noTools: "all"`. For programmatic setup, `builtins: { intercom: false }`, and group reach policies, see [SDK tools](/sdk/reference#tools) and [Reach policies](/intercom/reference#reach-policies).
|
|
43
25
|
|
|
44
26
|
## Quick start
|
|
45
27
|
|
|
46
28
|
### From the keyboard
|
|
47
29
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
30
|
+
<Steps>
|
|
31
|
+
<Step title="Name your sessions (optional)">
|
|
32
|
+
Run `/name planner` in one terminal and `/name worker` in another so each session has a readable target name.
|
|
33
|
+
</Step>
|
|
34
|
+
<Step title="Open the Intercom overlay">
|
|
35
|
+
Press `Alt+M` or run `/intercom` to open the session list overlay (`Alt+M` is bound by the Intercom extension rather than `keybindings.json`; `/intercom` always works as a fallback).
|
|
36
|
+
</Step>
|
|
37
|
+
<Step title="Select a session and send">
|
|
38
|
+
Use the arrow keys to pick a target session, press `Enter`, type your message, and press `Enter` to send (or `Esc` to cancel).
|
|
39
|
+
</Step>
|
|
40
|
+
</Steps>
|
|
53
41
|
|
|
54
42
|
Sent messages are recorded in session history and confirmed with a notification.
|
|
55
43
|
|
|
@@ -66,7 +54,7 @@ intercom({ action: "list" })
|
|
|
66
54
|
// **Other visible sessions:**
|
|
67
55
|
// - `6332faab-1111-4222-8333-123456789abc` [same cwd, thinking] ~/projects/api (claude-sonnet-4) name: research
|
|
68
56
|
|
|
69
|
-
// Send a message
|
|
57
|
+
// Send a fire-and-forget message
|
|
70
58
|
intercom({ action: "send", to: "research", message: "Check if UserService.validate() handles null" })
|
|
71
59
|
// Output: Message sent to research
|
|
72
60
|
|
|
@@ -75,13 +63,13 @@ intercom({ action: "send", to: "subagent-worker-*", message: "Scope changed: ski
|
|
|
75
63
|
intercom({ action: "send", to: "subagents:*", message: "Stop and report what you have" })
|
|
76
64
|
// Output lists each recipient's outcome: delivered, queued, or not delivered with the reason
|
|
77
65
|
|
|
78
|
-
//
|
|
66
|
+
// Ask a non-blocking question (session IDs from list are valid targets too)
|
|
79
67
|
intercom({ action: "ask", to: "6332faab-1111-4222-8333-123456789abc", message: "Which validation path should I use?" })
|
|
80
68
|
// Quick replies return inline. Otherwise:
|
|
81
69
|
// Ask 4c4d8427-... delivered to research (busy: running bash).
|
|
82
70
|
// The reply arrives later as a message starting "Reply to your ask 4c4d8427-... from research".
|
|
83
71
|
|
|
84
|
-
//
|
|
72
|
+
// Control how long ask waits for an inline reply (same wait shape as bash)
|
|
85
73
|
intercom({ action: "ask", to: "research", message: "Any blockers?", wait: { kind: "background" } })
|
|
86
74
|
intercom({ action: "ask", to: "research", message: "Any blockers?", wait: { kind: "foreground", budgetMs: 60000 } })
|
|
87
75
|
|
|
@@ -90,9 +78,16 @@ intercom({ action: "pending" })
|
|
|
90
78
|
intercom({ action: "cancel", askId: "4c4d8427" })
|
|
91
79
|
intercom({ action: "cancel", replyTo: "9f2c1e07" })
|
|
92
80
|
|
|
93
|
-
// Check connection status
|
|
81
|
+
// Check connection and routing status
|
|
94
82
|
intercom({ action: "status" })
|
|
95
|
-
// Output:
|
|
83
|
+
// Output:
|
|
84
|
+
// **Intercom Status:**
|
|
85
|
+
// Connected: Yes
|
|
86
|
+
// Session ID: abc12345-1111-4222-8333-123456789abc
|
|
87
|
+
// Groups: default
|
|
88
|
+
// Active visible sessions: 3
|
|
89
|
+
// Multi-node routing: off: the shared storage selection names no database
|
|
90
|
+
// Your asks awaiting a reply: 0
|
|
96
91
|
|
|
97
92
|
// Send with attachments (file, snippet, or context)
|
|
98
93
|
intercom({
|
|
@@ -121,31 +116,31 @@ Found the issue: UserService.validate() does not check for null input.
|
|
|
121
116
|
See auth.ts:142-156.
|
|
122
117
|
```
|
|
123
118
|
|
|
124
|
-
The reply hint is enabled by default
|
|
119
|
+
The reply hint is enabled by default, so recipients can answer with `intercom({ action: "reply", message: "..." })` without tracking raw message IDs. Idle recipients start a new turn immediately, while busy interactive main sessions receive incoming messages when they become idle. Attachment content appears inside the model-visible body, and messages are stored in session history.
|
|
125
120
|
|
|
126
|
-
The recipient saves each message
|
|
121
|
+
The recipient saves each message before confirming `delivered` to the sender. If a busy recipient closes or crashes before displaying a saved message, resuming it with `atomic --session <id>` or `/resume` replays unread messages once in arrival order when the sender is still connected. Messages from a sender that is gone are recorded once without starting a turn, and sessions started with `--no-session` cannot recover unread messages after exit.
|
|
127
122
|
|
|
128
|
-
|
|
123
|
+
### Delivery modes for working subagents
|
|
129
124
|
|
|
130
|
-
Working subagents act on incoming `send` and `ask` messages in
|
|
125
|
+
Working subagents act on incoming `send` and `ask` messages in their active session according to the sender's case-sensitive `delivery` option (busy interactive main sessions always wait until idle):
|
|
131
126
|
|
|
132
127
|
| `delivery` | When a working subagent receives it | Use it for |
|
|
133
128
|
| --- | --- | --- |
|
|
134
129
|
| `"steer"` (default) | After its current tool calls finish. Current work is not cancelled. | Ordinary coordination, findings, and updates |
|
|
135
130
|
| `"followUp"` | After the subagent finishes and stops. | Low-priority notes or follow-up tasks |
|
|
136
|
-
| `"interrupt"` | Immediately.
|
|
131
|
+
| `"interrupt"` | Immediately. Cancels the current model call or cancellable tool call, then runs the message next. | Urgent corrections or stop orders |
|
|
137
132
|
|
|
138
|
-
Any sender can set `delivery` per `send` or `ask` call,
|
|
133
|
+
Any sender can set `delivery` per `send` or `ask` call, and an idle recipient starts a turn under any mode. For example, `intercom({ action: "send", to: "worker", message: "Stop; the spec changed", delivery: "interrupt" })` cancels the worker's current cancellable tool call; tools that ignore cancellation finish first, and completed side effects are not undone.
|
|
139
134
|
|
|
140
|
-
Messages from one sender always
|
|
135
|
+
Messages from one sender always arrive in order, whether delivered immediately, queued for idle, or replayed on resume. Subagent `pause` and `quit`, session cancellation, host stop, and permanent cancellation take precedence over later messages.
|
|
141
136
|
|
|
142
|
-
|
|
137
|
+
### Offline and finished subagents
|
|
143
138
|
|
|
144
|
-
|
|
139
|
+
Sending or asking a completed or failed subagent resumes it automatically. The call returns immediately with the message queued, the launching session resumes the subagent, and the subagent receives the message as its next prompt. Messages to a paused or quit subagent wait in a queue with no time limit until the launching session continues it.
|
|
145
140
|
|
|
146
|
-
|
|
141
|
+
Queued messages survive broker restarts and deliver once in order. If delivery becomes impossible—because the subagent was cancelled, the launching session ended, or the launching session stayed away for 7 consecutive days—the sender receives one delivery failure. See [Messages that resume a finished subagent](/intercom/reference#messages-that-resume-a-finished-subagent).
|
|
147
142
|
|
|
148
|
-
|
|
143
|
+
A busy non-interactive recipient other than a running subagent can refuse a message without interrupting its work. Refusals keep the reply thread: an `ask` receives a failed-ask message (or an inline error while waiting), and a `send` delivers an **Intercom delivery failed** notice with a `Sent:` timestamp without starting a standalone turn.
|
|
149
144
|
|
|
150
145
|
## Coordination patterns
|
|
151
146
|
|
|
@@ -187,13 +182,13 @@ intercom({
|
|
|
187
182
|
| **Peer handoff** | Sibling uses `send` | A researcher or debugger passes file paths, evidence, or a reproduction straight to the sibling that needs it. |
|
|
188
183
|
| **Peer challenge** | Sibling uses `ask` | One reviewer or worker challenges another's finding with evidence while each still returns its own verdict. |
|
|
189
184
|
| **Ownership claim** | Sibling uses `send` | Parallel writers divide file ownership or serialize a shared build, test suite, or migration. |
|
|
190
|
-
| **Broadcast** | Sibling uses `send`
|
|
191
|
-
|
|
192
|
-
Peer-to-peer coordination is the default for subagent swarms. Subagents launched together share an Intercom group, so they list each other and coordinate directly without routing messages through the supervisor. Routing peer exchanges through the supervisor adds latency, drops detail, and fills supervisor context. Reserve `contact_supervisor` for supervisor decisions. See [Peer coordination](/subagents#peer-coordination).
|
|
185
|
+
| **Broadcast** | Sibling uses `send` with a pattern | One agent shares a confirmed finding with every live sibling at once. |
|
|
193
186
|
|
|
194
|
-
|
|
187
|
+
Peer-to-peer coordination is the default for subagent swarms. Subagents launched together share an Intercom group, so they list each other and coordinate directly without routing peer messages through the supervisor. Reserve `contact_supervisor` for supervisor decisions. See [Peer coordination](/subagents#peer-coordination) and [Scaling a swarm](/subagents#scaling-a-swarm).
|
|
195
188
|
|
|
196
|
-
|
|
189
|
+
<Tip>
|
|
190
|
+
Run `/skill:intercom` for ready-to-use planner-worker, group, broadcast, attachment, and escalation patterns.
|
|
191
|
+
</Tip>
|
|
197
192
|
|
|
198
193
|
Add this snippet to your project's `AGENTS.md` to guide when agents should coordinate across sessions:
|
|
199
194
|
|
|
@@ -211,25 +206,25 @@ Coordinate with other local Atomic sessions on related codebases. Use `/skill:in
|
|
|
211
206
|
|
|
212
207
|
## Escalate subagent decisions with `contact_supervisor`
|
|
213
208
|
|
|
214
|
-
By default (`intercomBridge.mode: "always"` in
|
|
209
|
+
By default (`intercomBridge.mode: "always"` in [Subagent `config.json` reference](/subagents/reference#subagent-config-json-reference)), every subagent launched by a session with Intercom active receives the subagent-only `contact_supervisor` tool alongside `intercom`. Atomic wires up the supervisor target automatically; normal sessions never see `contact_supervisor`.
|
|
215
210
|
|
|
216
|
-
Setting `intercomBridge.mode` to `"off"` (or `"fork-only"` for fresh subagents) limits `contact_supervisor` to agents that explicitly
|
|
211
|
+
Setting `intercomBridge.mode` to `"off"` (or `"fork-only"` for fresh subagents) limits `contact_supervisor` to agents that explicitly list it in their frontmatter tools.
|
|
217
212
|
|
|
218
213
|
### Parameters and reasons
|
|
219
214
|
|
|
220
215
|
| Parameter | Type | Description |
|
|
221
216
|
| --- | --- | --- |
|
|
222
217
|
| `reason` | string | `"need_decision"` (blocking), `"interview_request"` (blocking structured questions), or `"progress_update"` (fire-and-forget). |
|
|
223
|
-
| `message` | string | Required for `progress_update
|
|
218
|
+
| `message` | string | Required for `progress_update`. Optional for `need_decision` (omitting it sends an empty question, so always pass a clear question) and optional note for `interview_request`. |
|
|
224
219
|
| `interview` | object | Required for `interview_request`: `{ title?, description?, questions: [...] }`. |
|
|
225
220
|
|
|
226
221
|
| Reason | Behavior | Use when |
|
|
227
222
|
| --- | --- | --- |
|
|
228
223
|
| `need_decision` | Waits inside the requesting subagent (up to 10 minutes) for the supervisor's correlated reply, then continues in that same subagent. | The subagent is blocked, uncertain, needs approval, or faces a product, API, or scope decision. |
|
|
229
224
|
| `interview_request` | Waits inside the requesting subagent (up to 10 minutes) for structured answers from the supervisor, then continues in that same subagent. | The subagent needs multiple machine-readable answers in one exchange. |
|
|
230
|
-
| `progress_update` | Fire-and-forget update to the supervisor. Returns immediately without waiting or disrupting siblings. | Meaningful progress or unexpected discoveries change the plan. |
|
|
225
|
+
| `progress_update` | Fire-and-forget update to the supervisor. Returns immediately without waiting or disrupting siblings. Under multi-node routing, queues automatically (`queued: true`) if the supervisor has no live session and delivers when the supervisor reconnects. | Meaningful progress or unexpected discoveries change the plan. |
|
|
231
226
|
|
|
232
|
-
Do not use `contact_supervisor` for routine completion handoffs; return the final subagent result normally. A parent's `subagent({ action: "wait" })` call yields so the supervisor can reply without cancelling active or queued siblings.
|
|
227
|
+
Do not use `contact_supervisor` for routine completion handoffs; return the final subagent result normally. A parent's `subagent({ action: "wait" })` call yields so the supervisor can reply without cancelling active or queued siblings. If the broker refused a subagent's supervisor authorization when it registered, `contact_supervisor` retries that authorization once on the next call.
|
|
233
228
|
|
|
234
229
|
```typescript
|
|
235
230
|
// Blocked subagent asks for guidance
|
|
@@ -248,7 +243,7 @@ contact_supervisor({
|
|
|
248
243
|
|
|
249
244
|
### Answering a subagent as the supervisor
|
|
250
245
|
|
|
251
|
-
The supervisor receives the question with child and run identity plus a reply hint. Answer through `intercom({ action: "reply", message: "..." })`. If several questions are pending, run `intercom({ action: "pending" })` and pass the exact `replyTo`. Your answer returns as the subagent's tool result;
|
|
246
|
+
The supervisor receives the question with child and run identity plus a reply hint. Answer through `intercom({ action: "reply", message: "..." })`. If several questions are pending, run `intercom({ action: "pending" })` and pass the exact `replyTo`. Your answer returns as the subagent's tool result; do not launch a replacement subagent just to answer it.
|
|
252
247
|
|
|
253
248
|
### Structured interview replies
|
|
254
249
|
|
|
@@ -284,86 +279,30 @@ Questions arrive without reordering or rewriting. Reply with plain JSON or a fen
|
|
|
284
279
|
}
|
|
285
280
|
```
|
|
286
281
|
|
|
287
|
-
The subagent's tool result preserves the raw reply text and populates `details.structuredReply` when the JSON matches the expected question IDs and options. If
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
## Intercom vs. shared-room messengers
|
|
311
|
-
|
|
312
|
-
| Aspect | Intercom | Shared-room messengers |
|
|
313
|
-
| --- | --- | --- |
|
|
314
|
-
| **Model** | Direct messaging and group-scoped broadcasts | Shared broadcast channel or room |
|
|
315
|
-
| **Primary use** | Coordinating your own sessions, supervisor escalation, and peer-to-peer agent swarms on one machine or across shared storage | Swarms that read and append to one shared public feed |
|
|
316
|
-
| **Discovery** | Real-time broker registry, local or backed by shared storage | Shared room or file-based registry |
|
|
317
|
-
| **Messages** | Targeted 1:1 messages, ask/reply threads, and pattern broadcasts within groups | Public broadcasts visible to every room member |
|
|
318
|
-
| **Persistence** | Stored in each participant's Atomic session history | Shared room transcript or coordination files |
|
|
319
|
-
|
|
320
|
-
Use Intercom for coordinating your own sessions and for peer-to-peer agent swarms that benefit from targeted delivery, ask/reply threads, and group isolation. Use a shared-room messenger only when every participant should read and append to a single public feed.
|
|
282
|
+
The subagent's tool result preserves the raw reply text and populates `details.structuredReply` when the JSON matches the expected question IDs and options. If parsing or validation fails, `details.structuredReply` is omitted and `details.structuredReplyParseError` describes the error while keeping the raw reply text.
|
|
283
|
+
|
|
284
|
+
<Note>
|
|
285
|
+
**Embedded SDK sessions without background task management.** When an embedded SDK session launches a single subagent directly without background task management, a blocking `need_decision` or `interview_request` ends that subagent instead of waiting in place. The caller receives terminal run metadata, ordered attachments, the original delegated task (including any structured interview questions), and a fresh-start `[TASK_CONTEXT]` `subagent(...)` call to launch with the supervisor's answer.
|
|
286
|
+
</Note>
|
|
287
|
+
|
|
288
|
+
## Next steps
|
|
289
|
+
|
|
290
|
+
<Columns cols={2}>
|
|
291
|
+
<Card title="Operate Intercom" href="/intercom/operations">
|
|
292
|
+
Broker lifecycles, multi-machine routing over PostgreSQL, zero-downtime upgrades, and connection recovery.
|
|
293
|
+
</Card>
|
|
294
|
+
<Card title="Intercom reference" href="/intercom/reference">
|
|
295
|
+
Complete `intercom` tool specification, targeting rules, groups, wake queues, `config.json`, and SDK errors.
|
|
296
|
+
</Card>
|
|
297
|
+
<Card title="Set up teams and CI" href="/guides/team-setup">
|
|
298
|
+
Share Intercom across a team with PostgreSQL while keeping personal sessions local, plus CI runner setup.
|
|
299
|
+
</Card>
|
|
300
|
+
<Card title="Run subagents" href="/subagents">
|
|
301
|
+
Delegated subagent runs, peer coordination, worktrees, run control, and released subagents.
|
|
302
|
+
</Card>
|
|
303
|
+
</Columns>
|
|
321
304
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
- [Operate Intercom](/intercom/operations) for broker lifecycles, upgrades, recovery, and multi-machine routing.
|
|
325
|
-
- [Intercom reference](/intercom/reference) for tool parameters, targeting rules, reach policies, and error classes.
|
|
326
|
-
- [Sharing storage across hosts](/storage#sharing-storage-across-hosts) and [Set up teams and CI](/guides/team-setup) for a shared PostgreSQL database.
|
|
327
|
-
- [Intercom group and reach in the SDK](/sdk#intercom-group-and-reach) and [SDK tools](/sdk/reference#tools) for programmatic Intercom policies and `builtins.intercom`.
|
|
305
|
+
- [Intercom group and reach in the SDK](/sdk#intercom-group-and-reach) and [SDK tools](/sdk/reference#tools) for programmatic reach policies and `builtins.intercom`.
|
|
328
306
|
- [Storage and Intercom CLI commands](/reference/cli#storage-and-intercom-commands) for `atomic intercom` and `atomic storage` subcommands.
|
|
329
|
-
- [
|
|
330
|
-
- [
|
|
331
|
-
- [Skills](/skills) for reusable instructions like `/skill:intercom`.
|
|
332
|
-
- [Environment variables](/environment-variables) for Intercom environment variables.
|
|
333
|
-
- [Interactive use](/usage) for interactive commands and bundled extensions.
|
|
334
|
-
|
|
335
|
-
## Moved sections
|
|
336
|
-
|
|
337
|
-
<div id="how-connection-works" />
|
|
338
|
-
|
|
339
|
-
<div id="troubleshooting-initialization" />
|
|
340
|
-
|
|
341
|
-
<div id="subagent-notifications" />
|
|
342
|
-
|
|
343
|
-
<div id="subagent-control-notices" />
|
|
344
|
-
|
|
345
|
-
<div id="delivery-ordering" />
|
|
346
|
-
|
|
347
|
-
<div id="keyboard-shortcuts" />
|
|
348
|
-
|
|
349
|
-
<div id="how-it-works" />
|
|
350
|
-
|
|
351
|
-
<div id="limitations" />
|
|
352
|
-
|
|
353
|
-
- **Intercom operations:** [How connection works](/intercom/operations#how-connection-works), [Troubleshooting initialization](/intercom/operations#troubleshooting-initialization), [Subagent notifications](/intercom/operations#subagent-notifications), [Subagent control notices](/intercom/operations#subagent-control-notices), [Delivery ordering](/intercom/operations#delivery-ordering), [Keyboard shortcuts](/intercom/operations#keyboard-shortcuts), [How it works](/intercom/operations#how-it-works), [Limitations](/intercom/operations#limitations).
|
|
354
|
-
|
|
355
|
-
<div id="the-intercom-tool" />
|
|
356
|
-
|
|
357
|
-
<div id="actions" />
|
|
358
|
-
|
|
359
|
-
<div id="targeting-sessions" />
|
|
360
|
-
|
|
361
|
-
<div id="groups" />
|
|
362
|
-
|
|
363
|
-
<div id="send-vs-ask-vs-reply" />
|
|
364
|
-
|
|
365
|
-
<div id="attachments" />
|
|
366
|
-
|
|
367
|
-
<div id="configuration" />
|
|
368
|
-
|
|
369
|
-
- **Intercom reference:** [The intercom tool](/intercom/reference#the-intercom-tool), [Actions](/intercom/reference#actions), [Targeting sessions](/intercom/reference#targeting-sessions), [Groups](/intercom/reference#groups), [send vs ask vs reply](/intercom/reference#send-vs-ask-vs-reply), [Attachments](/intercom/reference#attachments), [Configuration](/intercom/reference#configuration).
|
|
307
|
+
- [Orchestrate with codemode and subagents](/orchestration) for scripted multi-step workflows.
|
|
308
|
+
- [Environment variables](/environment-variables) for Intercom environment overrides.
|