Inter-Agent Communication

Communication mechanisms fall into two paradigms of inter-process interaction: shared memory and message passing.

Three ways:

  • tool call parameters — synchronous transfer with structure;
  • shared filesystem — shared memory: large artifacts, persistence;
  • message bus — asynchronous delivery via intermediary, pub/sub.

Go’s compromise: “Don’t communicate by sharing memory—share memory by communicating”: shared memory is fast, but dangerous with conflicts; messages require orchestration, but data ownership is clear.

The same compromise will arise in concurrent conflicts.

Related: Multi-Agent Interaction Without Shared Context, Filesystem in Multi-Agent Systems, A2A Protocol