Skip to main content
Intercom provides direct and broadcast messaging between Atomic sessions on the same machine, or across multiple machines sharing a PostgreSQL database. You can message another session yourself or let agents coordinate directly, with no separate install required.

How sessions join

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. 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, 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

From the keyboard

1

Name your sessions (optional)

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 the arrow keys to pick a target session, press Enter, type your message, and press Enter to send (or Esc to cancel).
Sent messages are recorded in session history and confirmed with a notification.

From the agent

Agents list sessions and exchange messages through the intercom tool. The chat shows whether a message was delivered and a short preview. When you see an expand hint, press Ctrl+O or your own expand shortcut to read the full message and see the delivery details. In fullscreen mode, you can also click to expand it. If a message wakes a subagent, expand the notice in the chat that launched it to see the full message, who sent it, and which subagent woke up.

Receiving messages

Incoming messages appear inline in chat with the sender’s details and a reply hint:
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. 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.

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

Coordination patterns

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

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

Do not 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.

Answering 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; do not launch a replacement subagent just to answer it.

Structured interview replies

interview_request questions use { id, type, question, options?, context? }:
  • 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.
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 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.
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.

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 CI runner setup.

Run subagents

Delegated subagent runs, peer coordination, worktrees, run control, and released subagents.