// book 11
patriola.com

Book 11 · Patriola’s Guide to Claude

Agent Messaging


Your agents have inboxes. They still can’t talk. A renamed field can take down four agents before lunch with nothing rejected and nothing logged. This book builds the layer that catches it.

Buy Ebook on Amazon Buy Paperback on Amazon

Patriola's Guide to Claude — Agent Messaging: Wire Claude Agents to Talk to Each Other
What this book is

The layer that makes messages trustworthy

An inbox moves bytes from one place to another, and it does that part well: a reliable file system underneath, writes that land, reads that come back when asked. A messaging layer is the thing that tells you the bytes mean what the receiver thinks they mean. Those are different guarantees, and most multi-agent setups ship the first while assuming they have the second.

A small fleet with stable schemas can run for months on bare inboxes and never feel the missing pieces. Trouble starts as the fleet grows, as agents update on different days, and as a node goes quiet while still needing to be reached. This book builds the connective tissue that keeps the fleet honest through all of it.

What you’ll learn

Seven parts, one messaging layer

  • message-envelope — The required-field contract that turns a silent missing value into a loud rejection at the door. A schema every message must satisfy before any agent is allowed to trust it.
  • routing-agent — One agent reads its own inbox, classifies what arrives, and routes each message to the correct per-agent inbox. Delivery stops being something every agent improvises.
  • write-prohibition — A structural invariant rather than a polite convention: only the routing agent may write into another agent’s inbox, and a violation is detectable after the fact. This is what keeps one agent out of another’s state.
  • schema-versioning — How to evolve an envelope across an agent update without shattering the receivers that have not caught up yet. The discipline that lets schemas change under a running fleet.
  • cross-node-dispatcher — The mechanism that reaches an agent in a node with no active session by queuing the work instead of failing the call. An asleep node stops being unreachable.
  • event-log — The append-only truth store every significant action writes to, and the record recovery reads from when state goes bad and you need to reconstruct what happened and in what order.
  • deliberation-protocol — Fan-out messaging with enforced independence: a query goes to several agents at once, and quorum rules decide when enough of them have answered.
From the book

A preview

That None went straight into state. Then the agent kept running, because as far as it could tell, work had arrived and work had been processed. Nothing fired an exception or wrote a warning or moved a metric. The inbox had done its job flawlessly. What had failed was the thing nobody had built: a layer that checks what an inbox carries before an agent trusts it.
You — after a schema change The sender renamed a required field this morning. Some receivers updated, some didn’t. How does the envelope contract handle that without a flag day?
Claude The envelope carries a schema version, so the routing agent reads the version before it reads the body. Messages on the old version still validate against the old required-field set and pass through untouched; messages on the new version validate against the new one. A lagging receiver keeps working on what it understands rather than reading None off a field that moved. Once every receiver is on the new version, you retire the old one. Nothing breaks while the fleet catches up.
Each chapter opens on a real failure, builds the pattern that prevents it, and ends with an artifact you can drop into a running system. None of the failures are invented for the page. Every one happened to a fleet that was being watched by someone who thought watching was enough.
Who it’s for

Operators running a real multi-agent fleet

Developers running real multi-agent Claude Code systems who have outgrown bare inboxes. The techniques assume a fleet that already runs: agents with role contracts, inboxes read on a schedule, and quality gates that stop bad work moving downstream. Prerequisite: AI Teams (Book 5), where the inbox pattern and role contracts get established. Self-Verifying Pipelines (Book 7) is strongly assumed, since a schema contract exercises the same gate-on-measured-quality muscle.

A longer excerpt is available to newsletter subscribers.

Buy Ebook on Amazon Buy Paperback on Amazon

Stay current

New books in this series

One short email per book launch.