Three ways agents share information
What it is
Agents in one system exchange information in three ways:
- Message passing: one agent sends another a message (a brief, a report, a question). Each keeps its own private context.
- Shared context: agents read the same conversation history. Everyone sees everything said.
- Shared state: agents read and write a structured record (plan, facts, task statuses) held outside any one context.
Why it matters
The choice decides how much each agent knows and how much it costs to tell it.
- Message passing keeps contexts small and isolates mistakes, and anything not put in the message is lost.
- Shared context loses nothing and grows without limit.
- Shared state gives a common picture in compact form, and needs rules about who may write what.
- Most good systems combine message passing with a small shared state.
In the real world: A framework's default 'group chat' mode shared one transcript among six agents; by turn thirty each call carried forty thousand tokens of other agents' chatter. Switching to briefs and a shared task table cut cost by five-sixths.
Visual example
ChannelsThe middle column is the easiest to build and the first to break.
Defaulting to shared context because it is easiest to build: just give every agent the full transcript. It works with two agents for ten turns and collapses with five agents over a hundred.
Practise it: Design an AI Customer Support Agent