Skip to content
Multi-Agent Systems / Communication & Protocols

Choose agent communication channels for durability, audience and trust

  • BP-0061
  • v1.0.0
  • draft
  • guideline
  • role: orchestrator
  • role: implementer
  • stage: plan
  • stage: build
  • stage: operate
  • updated 2026-11-24
  • reviewed 2026-11-24
  • next review 2027-05-24

BP-0043 covers protocols: the structure and meaning of messages (A2A tasks, MCP tool calls, typed schemas). This practice covers channels: the medium a message travels over (a function call, a shared file, a queue, an issue thread, a chat app, a webhook, a push into a running session) and therefore who can read it, who can write to it, whether it survives, and whether anyone notices. The same A2A message can be safe on one channel and dangerous on another.

  1. MUST choose each channel by its properties, not by convenience:

    Property Question
    Timing Does the sender wait (synchronous) or move on (asynchronous)?
    Durability Does the message survive a restart, a compaction, a closed session?
    Delivery At most once, at least once? Ordered? Can duplicates be detected?
    Audience Agents only, or people too? Who can read the history?
    Who may post Only authenticated principals, or anyone with access to the space?
    Data allowed Which data classes may it carry, given where its logs are kept?
  2. SHOULD use these as defaults:

    Channel Good for Watch for
    In-process call Orchestrator to worker in one process Nothing survives a crash
    Shared file, ledger, workflow memory Plans, progress, handoffs between sessions (BP-0013) Concurrent writers; leases needed
    Queue or event bus Decoupled, durable, retryable work between services Duplicates; dead letters
    Issue / pull-request threads Work people review; durable and auditable Anyone with access can comment: untrusted input
    Team chat (Slack, Teams, Discord, Telegram) Asking people, notifying, quick approvals Not a system of record; third-party retention; noisy
    Webhook / push into a running session Reacting to CI, alerts, deploys as they happen Spoofed senders; only delivered while the session runs
    Email External parties, formal records Spoofing; slow; untrusted content
  1. MUST keep control channels (where a principal gives instructions or approvals) separate from data channels (events, results, third-party content). Text on a data channel is data, never an instruction, whoever it claims to be from (BP-0005).
  2. MUST authenticate every sender that can push into an agent, with an allowlist bootstrapped by a deliberate step (for example pairing), and drop everyone else. Treat approval relay as privileged: anyone who can answer through the channel can approve the agent’s actions.
  3. MUST let administrators control which channel integrations may run and require each session to opt in to the channels it uses.
  1. MUST keep a durable system of record outside chat: decisions, approvals and results reached in a chat thread are copied to the ledger, issue or audit trail with a link back (BP-0040).
  2. MUST carry the task or workflow ID on every message, and keep one thread per task, so a conversation can be tied to its trace and resumed (BP-0051).
  3. MUST NOT send secrets, and send personal or restricted data only on channels approved for it (BP-0033).
  1. SHOULD route messages for people by urgency: a push notification for anything blocking (an approval, a failed run), a digest for information. Name an escalation channel with an owner for when nobody answers.
  2. MUST stop agent-to-agent loops on shared channels: agents respond only when addressed, ignore their own messages and those of other bots unless allow-listed, and cap replies per thread.
  3. MUST detect delivery failure: acknowledgements or receipts, retries with idempotency keys, a dead-letter place for messages that cannot be delivered, and a fallback channel when the primary is down.

Designing how agents talk to each other and to people, connecting an agent to chat, webhooks or issue trackers, and running agents unattended.

Claude Code channels (research preview) push events from Telegram, Discord, iMessage or a webhook into a running session. They show several rules at once: each channel plugin keeps a sender allowlist and silently drops other senders; Telegram and Discord senders are added by pairing; a server must be named with --channels for the session; and organisations control availability with managed settings:

{
"channelsEnabled": true,
"allowedChannelPlugins": [
{ "marketplace": "claude-plugins-official", "plugin": "telegram" },
{ "marketplace": "acme-corp-plugins", "plugin": "internal-alerts" }
]
}

Channel plan for a nightly triage workflow:

# author: Stephen Eaton
workflow: ci-triage
control: { channel: claude-session, senders: [stephen] } # instructions and approvals only
events: { channel: webhook:ci, auth: hmac-signature } # data, never instructions
handoffs: { channel: ledger:.work/ci-triage/progress.md } # durable record
people:
blocking: { channel: push:mobile } # approvals, failures
digest: { channel: slack:#ci-triage, thread_per: run_id, at: "07:30 local" }
escalation: { channel: pager:oncall-platform, after: 30m }
loops: { respond_only_when: mentioned, ignore: [self, bots], max_replies_per_thread: 3 }
  • Taking instructions from anything posted in a shared chat channel or issue comment.
  • A push channel with no sender allowlist.
  • Decisions that exist only in a chat thread.
  • Every event as an urgent notification, so people mute the channel.
  • Two agents in one channel answering each other forever.
  • Tokens pasted into chat “just to test”.
  • Each channel chosen against timing, durability, delivery, audience, posting rights and data class
  • Control and data channels separated; data never treated as instructions
  • Push senders authenticated and allow-listed; approval relay restricted
  • Integrations admin-approved; sessions opt in
  • Durable record outside chat; task IDs and one thread per task
  • Urgency routing and escalation owner; loop limits; delivery failures detected