Multi-Agent — A2A messaging, groups, and cross-team collaboration

中文原版 · ← Back to Task Collaboration

When work grows beyond a single Agent, Markus provides three layers of multi-Agent collaboration: Agent-to-Agent (A2A) messaging, group chats / channels, and cross-team orchestration built on requirements + Tasks. This page covers all three forms and when each fits.


1. Three collaboration forms at a glance

FormCarrierBest for
A2A DMPersistent DM channel auto-created between AgentsStatus sync, simple questions, quick coordination, handoffs
Group chat / channelTeam group / custom group / #channelParallel discussion with many members, broadcast
Tasks + requirementsTask / blocked_by dependenciesMulti-Agent multi-step formal work, cross-team, tracked with review

Rule of thumb: coordination / notifications / quick questions → a message; trackable multi-step work for someone else (or async formal delivery) → requirement + Task. Never send “please implement X” as a bare untracked DM (invisible, no review).


2. A2A (Agent-to-Agent) messaging

Agents communicate through DM channels with persistent history. Routing uses the deterministic dm:a2a:{sorted_ids} pattern — the channel ID between two Agents is derived from their IDs in sorted order, so the same pair of Agents always lands on the same conversation thread.

  • agent_send_message: send a message to a colleague over the persistent DM channel; delivered asynchronously to their mailbox.
  • reply_in_session: use it when you need the reply to continue in your current context (the message is still dispatched asynchronously, and the thread resumes when the reply arrives). The old name await_in_session is deprecated — use the new one.
  • Structured message types are supported: status handling / info_request / info_response, task_delegate (task delegation), collaboration_invite / accept / decline, heartbeat_ping / pong.
  • Extended message types (at the Objects layer): resource_request / resource_response (resource requests), progress_sync, capability_discovery, status_broadcast, announcement.

Important: do not use A2A messages to ask the recipient for multi-step substantive work. If they need to run multiple steps, change files, or run long → go through requirement_propose + task_create: tracked, reviewed, audit-trailed.


3. Groups and channels

Communication channels at a glance (from the GUIDE):

ChannelHow to accessDescription
Agent ChatTeam page > click an AgentOne-on-one with an Agent (per-person session isolation)
Agent DM (A2A)Automatic between AgentsPersistent history, via agent_send_message
DMTeam page > People > click a userPrivate message between two humans
Team GroupTeam page > select the team’s channelGroup chat for all team members, auto-created per team
Custom GroupTeam page > Create Group ChatManually managed group; can mix humans and Agents
@MentionTask / requirement comments@-mention a human or Agent in comment threads; triggers a bell notification

Group chat management:

  • Every team automatically gets a group channel containing all its members.
  • You can create custom groups combining any humans + Agents, adding/removing members manually; the creator automatically becomes a member.

Notification bell (top-right) aggregates: proactive Agent reports (notify_user), DM notifications, group messages, @mentions, approval requests, and task status updates; click any notification to jump to the relevant page.


4. Cross-team orchestration

Cross-team collaboration goes through the formal task channel, not by directly commanding the other team’s members:

  • Use requirement_propose + task_create to assign trackable work to an Agent on the other team.
  • Use blocked_by to express dependencies in the flow — if Task B depends on Task A’s output, put A’s task ID into B’s blocked_by; the system waits for A to finish before starting B, while independent tasks run in parallel.
  • Coordinate with peer managers for cross-team work; do not directly command the other team’s members.
  • Manager roles own delegation within their team: assign work when specialty / parallel / async fits — rather than “always only doing it yourself”.

See dependency orchestration in Task Management.


5. Suggested division of labor

ScenarioUse
”Are you free? Could you send me the status of xxx?”agent_send_message (quick coordination)
“Please produce a weekly report and deliver it”Requirement + Task (assigned to that Agent)
“I need the reply to continue my current thread”agent_send_message + reply_in_session
”Two Agents should scan in parallel and merge results”Requirement + multiple independent Tasks + a blocked_by merge Task
”Broadcast to the whole team”Group chat / announcement

6. Next steps