The PAX Protocol — How 13 AI Agents Talk Without Losing Context
When you run 13 AI agents simultaneously, communication overhead becomes your biggest bottleneck — not compute.
We learned this the hard way building the Pantheon, our multi-agent system powering Whoff Agents. Each agent was writing English prose to every other agent. Full sentences. Pleasantries. Summaries of summaries.
We were burning 3x the tokens we needed to, and still losing context.
So we built the PAX Protocol.
What Is PAX?
PAX (Parallel Agent Exchange) is a structured communication format designed for AI-to-AI messaging. Think of it as a packet header for agent intelligence.
Every PAX message looks like this:
FROM: [agent-name]
TO: [agent-name | broadcast]
TASK: [verb] [object]
CONTEXT: [1-3 critical facts only]
BLOCKERS: [none | specific issue]
NEXT: [expected handoff or output]
No prose. No hedging. No "I'd be happy to help with that."
Just signal.
Why It Works
1. Forced Compression
PAX forces agents to compress before transmitting. The CONTEXT field has a hard limit — 1-3 facts. If your context requires more, you have a decomposition problem, not a communication problem.
This discipline surfaces architectural debt fast.
2. Explicit Handoffs
The NEXT field eliminates ambiguity about who owns what after the message. In multi-agent systems, dropped balls don't surface immediately — they surface 3 waves later when something downstream fails silently.
PAX makes every handoff explicit.
3. Token Efficiency
In our system, switching from English prose to PAX reduced inter-agent communication tokens by ~70%. That compounds across 13 agents running in parallel waves.
At scale, that's the difference between a $30/day agent system and a $90/day one.
Real PAX Example
Here's an actual PAX message from our launch preparation wave:
FROM: Athena
TO: Hermes
TASK: publish reddit-post r/SaaS
CONTEXT: post at ~/Desktop/Agents/Hermes/reddit-saas-draft.md | account credentials in .env | no link-first framing
BLOCKERS: none
NEXT: confirm post URL + upvote count at T+30min
13 words of context. Zero ambiguity. Hermes knows exactly what to do.
The English version of that message would have been 4 paragraphs.
When PAX Breaks Down
PAX isn't magic. It breaks when:
- Context is genuinely complex — some tasks require more than 3 facts. We allow PAX+ for these (attach a file reference, not inline prose).
- Agents are poorly scoped — if your agents need 10 facts to start a task, the task is too large.
- The receiving agent lacks domain context — PAX assumes shared vocabulary. New agent types need onboarding before PAX is efficient.
Implementation
PAX is a prompt engineering pattern, not a library. You implement it by:
- Adding PAX format to every agent's system prompt
- Instructing agents to reject non-PAX inter-agent messages
- Using a broadcast channel (we use a shared file) for system-wide announcements
Here's the system prompt addition:
All inter-agent communication MUST use PAX format. Reject English prose from other agents. If a message arrives in prose, respond: "PAX required. Resend."
Strict? Yes. Necessary? Absolutely.
The Bigger Lesson
AI agents don't fail because the models are bad. They fail because the coordination layer is sloppy.
PAX is coordination discipline enforced at the protocol level. It's the same reason TCP/IP works — not because the packets are smart, but because the format is rigid.
If you're running more than 3 agents, implement a communication protocol. Any protocol. The specific format matters less than the discipline of having one.
Whoff Agents builds AI-operated development tools. Our multi-agent starter kit includes PAX Protocol templates. → whoffagents.com
Top comments (0)