Skip to main content
Use Intercom to message other Atomic sessions on your machine, coordinate subagent swarms, or connect sessions across machines sharing a PostgreSQL database. No separate install is required. For multi-machine setup, broker upgrades, and disconnect recovery, see Operate Intercom. For the full tool schema, config.json keys, and SDK error classes, see Intercom reference. The following table matches each coordination task to the right tool or shortcut:

How sessions join

The /intercom command, Alt+M shortcut, and intercom tool are available when Atomic starts. Interactive sessions join Intercom in the background three seconds after startup so other sessions in their group can list and message them without slowing startup. Print (-p), JSON, remote procedure call (RPC), and SDK sessions connect on first Intercom use or when launching a subagent with Intercom. Interactive sessions do the same when startup join is disabled (joinAtStartup: false in Intercom 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. 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 and Reach policies.

Quick start

You can message another session interactively from the keyboard or let your agent call the intercom tool directly.

Before you begin

Confirm the following before sending your first message:
  • At least two Atomic sessions are open on the same machine (or across machines with multi-node routing enabled).
  • Neither session excludes the intercom tool (check /tools if Intercom is unavailable).

Send a message from the keyboard

1

Optional: Name your sessions

Run /name planner in one terminal and /name worker in another so each session has a readable target name.
2

Open the Intercom overlay

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).
3

Select a session and send

Use ↑ and ↓ to pick a target session, press Enter, type your message, and press Enter to send (or Esc to cancel). Confirm that the notification reports delivery and the message appears in the target session’s chat.
Sent messages are saved in session history.

Send and ask from the agent

Agents discover peers and exchange messages through the intercom tool. Chat displays a short preview and delivery status. When an expand hint appears, press Ctrl+O (or your custom expand binding) to read the full message and delivery details; in fullscreen mode, you can also click to expand it. When a message wakes a subagent, expand the notice in the launching chat to see the full message, sender, and woken subagent. The following examples cover listing sessions, sending, broadcasting, asking, cancelling, checking status, and sending attachments:

Receive messages

Incoming messages appear inline in chat with the sender’s details and a reply hint:
Because the reply hint is enabled by default, recipients can answer with intercom({ action: "reply", message: "..." }) without tracking raw message IDs. Idle recipients start a new turn immediately; 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. 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|prefix> 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 can’t recover unread messages after exit.

Delivery modes for working subagents

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). The following table lists the three delivery modes: 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 active cancellable tool call. Tools that ignore cancellation finish first, and completed side effects aren’t undone. 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.

Offline and finished subagents

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. 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 seven consecutive days—the sender receives one delivery failure (see Messages that resume a finished subagent). A busy non-interactive recipient other than a running subagent can refuse a message without interrupting its work. Refusals preserve 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.

Coordination patterns

A common setup splits a task between two terminal sessions: one holds the plan and review scope, and the other edits code. Start Atomic in both terminals and name them with /name:
Confirm both sessions appear in intercom({ action: "list" }), then coordinate:
The following table matches common coordination patterns to the right Intercom action: 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 and Scale a swarm).
Run /skill:intercom for ready-to-use planner-worker, group, broadcast, attachment, and escalation patterns.
To guide when agents should coordinate across sessions, add the following snippet to your project’s AGENTS.md:

Escalate subagent decisions with contact_supervisor

By default (intercomBridge.mode: "always" in 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. Setting intercomBridge.mode to "off" (or "fork-only" for fresh subagents) limits contact_supervisor to agents that explicitly list it in their frontmatter tools.

Parameters and reasons

The following table lists the parameters accepted by contact_supervisor: The following table summarizes how each reason behaves: Don’t use contact_supervisor for routine completion handoffs; return the final subagent result normally. A parent’s subagent({ action: "wait", id }) 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. The following examples show a blocking decision request and a non-blocking progress update:

Answer a subagent as the supervisor

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; don’t launch a replacement subagent just to answer it.

Structured interview replies

interview_request questions use { id, type, question, options?, context? } and follow these rules:
  • questions must be a non-empty array with unique, non-empty id strings.
  • type must be "single", "multi", "text", "image", or "info" (info items provide context only and need no answer).
  • options is required (non-empty array of strings or { label: string } objects) for single and multi, and rejected for text, image, and info.
  • message is optional.
The following example sends a two-question structured interview to the supervisor:
Questions arrive without reordering or rewriting. Reply with plain JSON or a fenced code block (if a reply contains multiple fenced blocks, only the first is parsed):
The subagent’s tool result keeps 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.
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.

Troubleshoot Intercom

The following table lists common messaging issues and how to resolve them:

Next steps

Operate Intercom

Broker lifecycles, multi-machine routing over PostgreSQL, zero-downtime upgrades, and connection recovery.

Intercom reference

Complete intercom tool specification, targeting rules, groups, wake queues, config.json, and SDK errors.

Set up teams and CI

Share Intercom across a team with PostgreSQL while keeping personal sessions local, plus continuous integration (CI) runner setup.

Run subagents

Delegated subagent runs, peer coordination, worktrees, run control, and released subagents.
For related SDK, CLI, and configuration details, see: