Inter-Agent Messaging - Claude Code
Teammates communicate directly without routing through the lead.
Inter-agent messaging lets teammates talk to each other directly. The lead doesn't have to relay every question.
What it does
Teammates can send messages to named peers or broadcast to the team. Messages appear in the recipient's context on the next turn. This is how a researcher can hand a finding to an implementer, or two implementers can sync on an interface, without funneling everything through the lead.
When to use it
- Tasks that need a brief handoff between peers.
- Collaborative patterns where two agents share an interface contract.
- Reducing lead overhead on trivial coordination.
- Debugging - ask one agent to query another's state.
Gotchas
- Messages add context to both sides. Keep them tight.
- Misuse can create tangled threads - prefer lead-mediated coordination for big decisions.
- Messaging is not a replacement for the shared task list. Tasks are the source of truth.
Official docs: https://code.claude.com/docs/en/agent-teams.md#context-and-communication
Technical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools - delivered free every week.
Was this helpful?






