Multi-Agent — A2A messaging, groups, and cross-team 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
| Form | Carrier | Best for |
|---|---|---|
| A2A DM | Persistent DM channel auto-created between Agents | Status sync, simple questions, quick coordination, handoffs |
| Group chat / channel | Team group / custom group / #channel | Parallel discussion with many members, broadcast |
| Tasks + requirements | Task / blocked_by dependencies | Multi-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 nameawait_in_sessionis 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):
| Channel | How to access | Description |
|---|---|---|
| Agent Chat | Team page > click an Agent | One-on-one with an Agent (per-person session isolation) |
| Agent DM (A2A) | Automatic between Agents | Persistent history, via agent_send_message |
| DM | Team page > People > click a user | Private message between two humans |
| Team Group | Team page > select the team’s channel | Group chat for all team members, auto-created per team |
| Custom Group | Team page > Create Group Chat | Manually managed group; can mix humans and Agents |
| @Mention | Task / 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_createto assign trackable work to an Agent on the other team. - Use
blocked_byto express dependencies in the flow — if Task B depends on Task A’s output, put A’s task ID into B’sblocked_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
| Scenario | Use |
|---|---|
| ”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
- The chat-vs-task boundary → Conversation.
- Task objects and dependency orchestration → Task Management.
- Delivery and acceptance → Results.