AgentProtocol.ai
//how agents communicate

AI agent communication

Most writing about agent communication describes protocols — message formats, transports, task lifecycles. This page covers the part that is specific to AI agents: what changes when the things exchanging messages are language models, which turns out to complicate almost everything.

ConceptLLM-specific

How AI agents actually communicate

In almost every system running today, agents talk to each other in natural language wrapped in a structured envelope. The envelope — who sent it, which task it belongs to, what status the work is in — is machine-readable and standardised by protocols like A2A. The payload inside is usually prose.

That split is deliberate, and it is the single most important thing to understand about AI agent communication. Protocols standardise the parts a computer needs to route and track. They leave the meaning to text, because no one has agreed a schema rich enough to express what one agent wants another to do.

Why agents talk in human language at all

It is a reasonable question, and an active research one. Two agents built by the same team could exchange structured data far more precisely than English. They mostly do not, for three practical reasons:

  • It is what models are good at. An LLM's competence is in language. Forcing it to emit a rigid schema often costs accuracy on the underlying task.
  • It degrades gracefully. A slightly unexpected sentence is still usable. A malformed JSON field is an error.
  • It is inspectable. When a multi-agent system misbehaves, a human can read the transcript. That debugging property is worth a great deal in practice.

The cost is precision, and researchers are actively probing whether it is worth paying — including proposals to pass model activations between agents rather than words, which would be denser but entirely unreadable. Treat that as a research direction rather than something you will deploy.

Three communication paradigms

Multi-agent research generally sorts agent conversations into three shapes. They are not protocols — they describe what the agents are trying to do to each other:

  • Cooperative. Agents share information toward a joint answer. The default, and the easiest to reason about.
  • Debate. Agents argue opposing positions deliberately, on the theory that disagreement surfaces errors a single agent would confidently miss. Expensive, but genuinely effective on reasoning-heavy tasks.
  • Competitive. Agents pursue goals that conflict, as in negotiation or market simulations. Rare in production, common in research.
Debate is the one worth knowing about
If a multi-agent system is producing confident but wrong answers, having two agents independently argue the question before a third decides often helps more than improving any single prompt. It costs several times the tokens, so reserve it for decisions that justify the spend.

What breaks when the sender is a model

Ordinary distributed systems assume a message means exactly what it says and that the same input produces the same output. Neither holds here:

  • Messages are lossy restatements. An agent passing work along rewrites it in its own words. Constraints get dropped silently — not through error, but through paraphrase.
  • The same request yields different answers. Retrying is not idempotent. A retry after a timeout may produce work that contradicts the first attempt, which both may have already acted on.
  • Wrong answers arrive confidently. There is no error code for “I made this up”. A fabricated result is formatted exactly like a correct one, and the receiving agent has no signal to distrust it.
  • Context is finite. Deep delegation chains eventually exceed what fits in a context window, and what gets truncated is usually the earliest instructions — the original intent.

The practical mitigations are the same ones that help in any agent-to-agent system: forward the original request alongside any summary of it, cap delegation depth, and verify results that matter rather than trusting the format they arrive in.

Prompt injection crosses agent boundaries

This is the security property that genuinely distinguishes AI agent communication, and it is easy to underestimate. If an agent reads untrusted content — a web page, a document, an email — instructions hidden in that content can influence what it does next. When that agent then messages a peer, the influence travels with it.

The receiving agent has no way to tell an instruction that originated with its operator from one that arrived via a compromised peer's paraphrase. Message-level authentication does not help: the peer really is who it claims to be, and really is sending the message. It has simply been convinced to send something else.

Trust between agents is not the same as trust in their messages
Authenticating a peer tells you the message came from where it claims. It tells you nothing about whether the content was shaped by something that peer read. Treat inbound agent messages as data to be evaluated rather than instructions to be followed, particularly where any agent in the chain touches untrusted input.

Where protocols fit

None of the above is solved by picking a protocol — but protocols do make the tractable parts conventional. The three layers each have one: MCP for reaching tools and data, A2A for delegating between agents, and the Agent Protocol REST spec for driving an agent from a client application.

A worked example
A support agent receives a ticket through an API (client-to-agent), looks up the customer through MCP (agent-to-tool), and asks a billing agent to issue a refund over A2A (agent-to-agent). Three layers, three protocols, one task — and the refund request itself is a sentence.

For the protocols themselves, the agent communication protocol page covers the full roster and how the layers divide. For the architecture of multi-agent systems, see agent-to-agent communication.

//questions

Frequently asked questions

How do AI agents communicate with each other?

In most production systems, through natural-language messages wrapped in a structured envelope. The envelope carries routing and task status in a machine-readable format, standardised by protocols such as A2A, while the actual request stays as prose because no schema has proved rich enough to replace it.

Why don't AI agents use a structured format instead of English?

Some do for narrow cases, but language is what models are best at, it degrades gracefully when slightly unexpected, and it leaves a transcript a human can debug. The trade is precision, and whether that trade is right is still an open research question.

What is multi-agent debate?

A pattern where agents argue opposing positions before a decision is made, on the basis that disagreement surfaces errors a single agent would confidently miss. It is effective on reasoning-heavy tasks and costs several times the tokens of a single pass.

Can prompt injection spread between agents?

Yes, and it is the security property most specific to AI agent communication. If one agent reads untrusted content, instructions hidden there can shape what it sends to its peers. Authenticating the peer does not help, because the peer genuinely sent the message — it was just influenced into sending that one.

Is retrying an agent request safe?

Not in the way it is with a conventional API. The same request can produce a different answer, so a retry after a timeout may yield work that contradicts the first attempt. Use task identifiers and check whether the original attempt completed before reissuing it.