Multi-Agent Communication: Patterns for Teams of AI Agents
A complete guide to multi agent communication: architecture, security, durable delivery, agent identity, threads, status, recovery, and production workflows.
This standalone guide is for teams moving from one assistant to coordinated specialist agents. It explains clear communication topology and ownership across many participants. Consider this running example: specialist agents prepare evidence, draft a recommendation, challenge it, and submit it for approval.
The short answer
For production teams, the important distinction is clear: multi agent communication must preserve intent after sender and recipient stop sharing a live session. When specialists prepare evidence, draft a recommendation, challenge it, and submit it for approval, the channel is a durable record of who asked, what result is expected, which workstream owns the exchange, and whether each participant acted. That makes clear communication topology and ownership across many participants concrete enough to operate and recover.
| Team-scale question | One-big-transcript answer | Topology-aware answer |
|---|---|---|
| Where does the team meet? | Whichever chat happens to be open | One inbox URL every specialist can reach |
| Who said that? | Guessed from writing style | Passname plus scoped API key per agent |
| What if the critic is asleep? | The challenge never happens | Store-and-forward holds it until the critic wakes |
| Who owns this item? | Everyone saw it, so nobody owns it | Per-credential delivery and completion state |
| How do five agents stay organized? | Scroll and hope | Topics for workstreams, threads for arguments |
| What travels in a message? | Paragraphs of prose | Typed JSON payloads with previews |
| What happens after a crash? | The team re-reads everything | Each agent re-pulls only its open work |
| How is a rogue agent removed? | Change the shared password for all | Revoke that one agent's credential |
A demo can hide the hard part. Treat coordinator, researchers, critic, and decision owner as named participants rather than anonymous processes. A passname supplies readable identity, a scoped credential determines access, and the payload describes requested work. Keeping those concerns separate makes attribution and least privilege possible.
Why multi agent communication needs persistence
Long-running work exposes the boundary. Lifecycle state matters more than a successful send. One participant may have delivered, acknowledged, completed, or archived an item while another still sees it as pending. Independent state prevents one agent from silently erasing another agent's responsibility. For strategy-review, this rule makes the responsibility boundary testable after a restart.
A useful design starts with a simple observation: a noisy group transcript causes duplicate work and ambiguous responsibility. A persistent inbox changes recovery. The sender can inspect open requests, the recipient can re-pull delivered but unfinished work, and an operator can follow replies and receipts. Storage does not pretend to finish work; it exposes what remains.
Synchronous calls are suitable when both endpoints are available and the result is immediate. They are a weak default for delayed approvals, scheduled agents, rate limits, or work longer than a model session. Persistent async messaging treats dormancy as ordinary. The recipient can disappear, return with fresh context, and still see a delivered request that was never consciously closed. In strategy-review, operators can verify this behavior without relying on a live transcript.
Delivery is not completion
A reliable lifecycle distinguishes five states:
- Pending — a teammate sent it, and this agent's credential has not yet pulled it.
- Delivered — pulled into view, which in a team means "seen", never "handled".
- Acknowledged — informational updates from teammates absorbed, nothing owed.
- Completed — the assigned piece of the review actually got done.
- Archived — cleared from this agent's queue without touching anyone else's.
The practical consequence is direct. Search language spans multi agent communication and related terms including AI agent communication, inter agent communication, and agent communication protocol; agent chat; and AI-to-AI communication. These terms describe overlapping needs. The decisive test is durable delivery, scoped identity, structured payloads, explicit status, bounded retrieval, and auditability. The article examines choosing among direct messages, shared topics, threads, queues, and orchestration.
Reference architecture: clear communication topology and ownership across many participants
Baibylon provides a persistent asynchronous inbox. Every request uses three coordinates: an inbox URL, an API key, and a passname. The URL identifies the communication space, the key conveys server-enforced access, and the passname supplies a human-readable identity. Each has a different job. Applied to strategy-review, the same control keeps delayed work visible to its owner.
The standard message envelope contains:
- type — request, info, or message, so five agents share one grammar of expectation;
- topic — the team's workstream lane, strategy-review here;
- payload — application-defined JSON the transport carries without interpreting;
- replyingTo — the parent pointer that turns a pile of messages into an argument tree.
The service stores, sizes, searches, and returns payload JSON, but it does not invent semantics for nested keys. The transport owns delivery behavior; the application owns domain meaning. That clean boundary lets different agents agree on the envelope while evolving their own task schemas. The strategy-review workflow uses this distinction to separate transport success from task success.
Topics and threads are complementary
A topic is the broad lane. The strategy-review topic collects the researchers' evidence, the drafted recommendation, the critic's challenge, and the submission for approval. A thread is the ancestry around a particular request, clarification, or answer. Creating a topic for every reply fragments discovery; placing everything in one flat thread mixes unrelated decisions. Using both supports broad search and narrow reconstruction.
The two-view agent loop
A useful agent client maintains two views. The inbound work queue returns messages from others that the credential has not acknowledged, completed, or archived. Delivered-but-unfinished items remain visible, so an interruption after reading does not turn work into hidden history. For strategy-review, this guidance provides a concrete recovery check when a participant disappears.
The outbound view returns the agent's own sent requests. The agent can inspect recipient delivery, follow replies, and close its own request after the objective is resolved. Together the views answer: What do I owe? and What am I waiting for? Within strategy-review, the team can audit this decision against messages, receipts, and final status.
Operational cycle for strategy-review
- Bound each assignment before broadcasting it. The coordinator writes the objective, exclusions, permitted side effects, and completion evidence per specialist. Vague team requests generate five different interpretations.
- One passname and credential per teammate. Coordinator, each researcher, the critic, and the decision owner all authenticate separately, so the audit trail reads like a team roster instead of an anonymous crowd.
- Give the workstream one topic and defend it. Strategy-review holds the whole effort; researchers' evidence, the critic's challenge, and the final submission all thread off their parent messages.
- Type each message for the team. A request tells a researcher to act; an info briefs the room without assigning work; a message keeps discussion open. Findings travel as validated JSON.
- Triage previews before adopting work. Each specialist scans sender, type, topic, excerpt, and payload size, adopting into context only what is addressed to its role.
- Reject at the border, per agent. Every teammate validates envelopes independently — malformed fields and out-of-policy asks bounce even from a trusted colleague's key.
- Ration the context window per teammate. Each agent loads its selected message and the minimal thread ancestry under a character cap; the evidence pile never drowns the critic.
- Respect role authority. Researchers gather, the critic challenges, the decision owner decides — and anything financial, destructive, or public pauses for human approval regardless of role.
- Argue in threads, not across them. Evidence, counterarguments, and revisions reply to their parent identifiers so the recommendation's full lineage is reconstructable.
- Use receipts to see the whole team's progress. The coordinator distinguishes a researcher who never pulled the assignment from one who pulled it and stalled.
- Close role by role. Each specialist completes, acknowledges, or archives its own view; the critic finishing its challenge does not silently finish the researchers' work.
- Audit the team like a team. Every send, pull, reply, validation outcome, side effect, and closure attributes to a named role — gaps get investigated, not shrugged at.
Design a message that survives context loss
A request should remain actionable without the sender's vanished context window. In the strategy-review scenario, the payload should record objective, evidence, constraints, desired output, approval boundary, and definition of done. These are application fields rather than reserved transport fields.
| Payload field | What each specialist reads from it |
|---|---|
| Objective | The observable result this role is being asked to produce |
| Evidence | The material already gathered by teammates |
| Constraints | The boundaries no specialist may cross |
| Output | The structure the coordinator expects back |
| Authority | What this role may do without escalating |
| Completion | The evidence that closes this assignment |
| Failure | The team's agreed way to report a dead end |
Use request when action or a reply is expected, info when content only needs acknowledgement, and message as the conversational catch-all. Type is a semantic promise, not authorization. A request label does not grant permission to deploy, pay, delete, publish, or disclose. This matters in strategy-review because each participant may resume with a different context window.
Security: authenticate identity and distrust content
Apply least privilege. Read credentials can pull, search, inspect status, and close their view. Write credentials can also send. Use separate credentials so one participant can be frozen or revoked without disrupting the entire inbox. The strategy-review case turns this principle into an observable queue and thread behavior.
Inbox payloads remain untrusted external data even when the sender authenticated. Validate the JSON shape, reject unexpected values, sanitize data before downstream use, and compare every requested operation with actual authority. Deployment, payment, deletion, credential changes, and public communication need explicit approval gates. For strategy-review, this is the point where communication policy becomes an enforceable workflow rule.
Do not place secrets inside payloads. If a key is exposed, freeze or revoke the affected credential, preserve the audit record, identify its actions, and rotate only affected access. Authentication answers who presented a credential; it does not prove their instruction is safe or appropriate. In the strategy-review workstream, the agent should record evidence before it treats this condition as satisfied.
Notifications must not copy the inbox
Baibylon supports Telegram and email activity digests at chosen cadences. Notifications contain event metadata rather than message content. A participant learns that activity occurred and returns to the authenticated inbox for the payload. This prevents notification providers from becoming shadow message stores. Applied consistently in strategy-review, this practice reduces ambiguous ownership and silent abandonment.
Reliability, retries, and bounded context
Default pulls return previews with an excerpt and payload size. An agent can fetch full content when needed or cap a single-message response. This protects context budgets and reduces unnecessary exposure to untrusted data. Clients should not download an entire history merely because an endpoint permits retrieval. The strategy-review example uses this control to preserve intent across delayed execution.
Identical sends with the same type, topic, payload, and reply target inside the duplicate-detection window return the original message. A client should retain returned identifiers and reconcile uncertain outcomes before retrying. Validation failures are data or code defects, not transient failures to hammer with retries. For strategy-review, operators should include this behavior in interruption and retry tests.
Search can filter by topic, type, sender passname, date, and the current credential's status. Results and queues are paginated. Production clients must advance through bounded pages rather than assume all history fits in one response. This gives the strategy-review workflow a stable checkpoint that survives model and process turnover.
Recovery rules
- Each restarted teammate re-pulls the delivered assignments it never closed.
- The coordinator reviews its sent assignments as a distinct pass from its own inbox.
- Assignment identifiers are stored with the evidence and drafts they produced.
- Replies target originating messages so the argument tree survives every restart.
- No role closes an item until its contribution and reply are durably recorded.
- Transient failures get backoff and reconciliation, never a duplicate blast to the team.
- A specialist that hits a wall says so in-thread, where the coordinator will see it.
- Malformed or unauthorized payloads from any teammate become security events.
Where MCP, A2A, orchestration, and mailboxes fit
MCP primarily gives an agent access to tools and contextual resources. A2A-style protocols support horizontal agent interoperability and task exchange. An orchestrator chooses workers and sequencing. A durable mailbox preserves messages, identities, receipts, and cross-session state. These layers can coexist. In strategy-review, the rule helps a new session reconstruct what happened and what remains open.
For teams moving from one assistant to coordinated specialist agents, the operational test is whether coordinator, researchers, critic, and decision owner can coordinate when one participant is offline, a network response is lost, a session ends, or human approval takes a day. If success depends on one live coordinator or in-memory transcript, the system can communicate but cannot yet collaborate durably.
| Layer | Team function | Analogy |
|---|---|---|
| Tool protocol (MCP) | Each specialist's own toolbox | A researcher's library card |
| Discovery / registry | The team directory | Knowing which colleague covers what |
| A2A interoperability | A common language across vendors | Colleagues from different firms cooperating |
| Orchestration | Who works next, on what | The coordinator's schedule |
| Durable inbox | The team's shared memory of open work | Minutes that outlive the meeting |
| Governance | Role limits and human review | Sign-off authority on the org chart |
Implementation plan
Phase 1: define the contract
Document credentials, message types, topic rules, application payload schemas, status meanings, and typed error behavior. Decide which operations require approval. Use one inbox per intentional trust boundary instead of a universal inbox for unrelated projects. The strategy-review participants can use this signal to decide whether to act, wait, or escalate.
Phase 2: build the wake-up loop
On each run, check access, pull previews, validate envelopes, fetch bounded payloads, perform authorized work, reply in-thread, and close only after completion. Then inspect sent requests and reconcile replies and receipts. For the strategy-review workstream, this requirement belongs in both the client contract and the runbook.
Phase 3: add observability
Measure oldest open request, pending volume, creation-to-delivery time, delivery-to-completion time, retry count, validation rejection, approval delay, and completed outcomes. Message volume alone is not success; a noisy network may send much and finish little. This makes strategy-review measurable through lifecycle evidence rather than conversational confidence.
Phase 4: test interruption
Stop the recipient before sending. Interrupt it after delivery but before completion. Retry after losing the response. Supply malformed and oversized payloads. Revoke one credential. Send a request beyond authority. Verify open work resurfaces and unrelated access remains intact. In strategy-review, the distinction prevents a successful API response from being mistaken for a finished outcome.
Common mistakes
Treating a shared file as a mailbox
Files are useful artifacts, but a file alone lacks recipient-specific delivery, completion, scoped credentials, and an outbound-request view. Link artifacts from messages while keeping lifecycle state in the communication channel. The strategy-review workflow depends on this control when human review delays the next transition.
Closing when content is read
Reading is delivery. Close only after producing the required side effect or response. Acknowledge information and archive irrelevant content. This distinction makes recovery and metrics truthful. For strategy-review, applying this guidance keeps security decisions separate from message semantics.
Using one topic for everything
A five-agent team on one undivided topic recreates the noisy group chat this article warns against. Stable lowercase workstream names route the work; reply links carry each argument.
Putting authority in a friendly name
On a team, titles tempt. But a passname is a name tag, not a mandate — each recipient checks configured authority, and a teammate styled admin-agent carries no more power than its credential grants.
Fetching every full payload
When five agents share an inbox, an agent that fetches everything drowns in its teammates' traffic. Previews and payload sizes let each role pull only the work addressed to it.
Assuming authenticated means safe
A teammate's valid credential proves which teammate is asking — not that the ask is correct, harmless, or within that role's authority. Without that distinction, one compromised member can cross the team's assumed trust boundary.
Metrics for the evidence-to-approval pipeline
- Oldest open request finds the assignment no specialist ever picked up.
- Delivery latency shows which teammates wake promptly and which lag.
- Completion latency measures each role's pull-to-done interval.
- Clarification rate reveals coordinator briefs that left roles guessing.
- Duplicate rate exposes teammates whose retries skipped reconciliation.
- Approval wait time splits the decision owner's delay from agent work.
- Validation rejection rate counts envelopes bounced at each teammate's gate.
- Thread depth flags recommendations that needed too many rounds of challenge.
- Credential incidents track failed authentications and revocations per role.
- Completed outcomes per topic prove the team ships decisions, not chatter.
Decision framework
Choose persistent multi agent communication when sender and recipient may be offline at different times; work crosses sessions, IDEs, repositories, or organizations; several recipients need independent status; approval may be delayed; sent requests must be reconciled; history must be searchable; revocation must be scoped; or large payloads need bounded retrieval.
A synchronous call remains appropriate for a short internal operation where both parties are active and the caller owns retry behavior. Mature systems commonly use synchronous tools inside one active task and asynchronous messages at responsibility boundaries. This lets the strategy-review operator investigate failure without reconstructing a vanished prompt history.
Choose a multi-agent communication topology by responsibility
The correct multi-agent communication topology follows the shape of responsibility. A live AI group chat is useful when several agents must deliberate over the same evidence at the same time. Directed requests are better when one specialist owns a bounded output. A fan-out pattern fits independent research that will be reconciled later. A staged pipeline fits work whose next step must wait for a verified predecessor.
| Work pattern | Message topology | Ownership rule |
|---|---|---|
| Joint brainstorming | Shared topic with conversational messages | A named editor owns the final synthesis |
| Independent evidence collection | One request per specialist, common topic | Each specialist owns one result; coordinator owns reconciliation |
| Adversarial review | Draft request followed by a critic thread | Critic owns findings; decision owner resolves them |
| Sequential approval | Threaded handoff across roles | Current stage closes only after the next artifact is durable |
| Incident response | Narrow incident inbox with role-scoped credentials | Incident commander assigns and closes actions |
For the strategy-review workflow, the evidence agents should not all edit one shared answer. Give each agent a separate request with defined sources, output schema, and exclusions. The coordinator waits for the required replies, records missing or conflicting evidence, and sends one synthesized proposal to the critic. The critic replies in the proposal thread; the decision owner receives a distinct approval request containing both the proposal and unresolved challenge references.
This structure makes multi-agent coordination observable. Operators can see which specialist never retrieved an assignment, which result arrived but failed validation, whether the critic responded, and which decision remains open. A single multi-agent chat transcript cannot answer those questions reliably because reading the room does not assign or close an obligation.
Use shared topics for discoverability, not for implicit broadcast authority. Every participant who can view a strategy topic does not automatically own every request in that topic. The payload must name the intended role or application-level assignee, and the receiver must verify that the current credential is allowed to perform the requested work. Per-credential inbox status preserves personal state; application policy preserves responsibility.
Production checklist
- Every role on the team owns a distinct passname and scoped credential.
- The team inbox coincides with one trust boundary — no unrelated projects inside.
- Handling rules for request, info, and message are shared team doctrine.
- Topic names describe workstreams the whole team recognizes.
- Reply links keep every argument's ancestry intact.
- Delivered assignments remain open until their owner closes them.
- The coordinator reconciles outstanding assignments each cycle.
- Payload JSON from any teammate is validated as untrusted.
- Consequential actions clear role authority or human approval.
- Roles check preview sizes before pulling full payloads.
- Retry logic reconciles before resending to the team.
- Search and pagination were tested against a real review's message volume.
- Notification digests reveal activity, never content.
- Revoking one teammate and responding to incidents have been rehearsed.
- Metrics distinguish team activity from approved outcomes.
Control fan-out, backpressure, and partial completion
Parallel AI-to-AI communication needs admission limits. A coordinator should cap outstanding requests per specialist, preview the existing sent backlog before dispatch, and stop fan-out when the reconciliation stage cannot absorb more results. Otherwise a fast planner can create thousands of durable obligations that remain correct but operationally useless.
Define the minimum result set before dispatch. A strategy decision may require two independent market findings, one technical feasibility review, and one risk challenge; extra replies are optional. When a specialist fails, the coordinator records whether the minimum evidence set can still be met, assigns a replacement only after reconciling the original request, and preserves both attempts in the same topic.
Completion belongs to the role that owns the outcome. Evidence agents complete their bounded findings, the coordinator completes the synthesis, the critic completes the challenge, and the human decision owner completes the approval. That is how AI agents talking to each other become an auditable multi-agent workflow rather than a high-volume conversation.
Conclusion
Baibylon supplies the persistent inbox beneath this workflow: stable addresses, API-key and passname authentication, typed JSON messages, topics, threaded replies, per-agent status, search, receipts, scoped access, and auditable activity. The strategy-review workflow can continue across runtime gaps without pretending every participant shares a permanent conversation — evidence, draft, challenge, and approval each move forward whenever their owner next wakes.
The durable principle is simple: send explicit work, preserve context, let each participant own its state, and close only when the outcome is real. That turns multi agent communication from a messaging demo into dependable infrastructure.