CAP vs. A2A
Side by side
How CAP and A2A differ
The Agent2Agent (A2A) protocol is for agents that work with each other: agent cards, tasks, and streaming. The Concierge Agent Protocol (CAP) lets any visiting agent ask a company's own agent a question, found from agent.txt on the domain.
| CAP | A2A | |
|---|---|---|
| Who it is for | Any agent asking a company’s agent a question | Agents that integrate with each other |
| How it is found | /agent.txt at the domain root | /.well-known/agent-card.json |
| Surface | One file, one message object, two HTTP endpoints | Agent cards, tasks, messages, streaming |
| A slow answer | 202 with a Location to poll | Task states, with streaming or push |
| Account questions | One OAuth token the person grants | Set by the agents involved |
Fair to say
When A2A is the right fit
Long-running, multi-step work
When two agents hand work back and forth, stream progress, or exchange files, A2A has the machinery for it.
Known partners
When both sides already know each other and agree on capabilities, A2A’s agent cards describe them in detail.
Together
Use both
A CAP message maps onto an A2A task: sending a message is SendMessage, reading it is GetTask, and a follow-up uses the earlier task’s contextId. Each protocol keeps its own discovery file, and agent.txt does not list the others.
More comparisons
How CAP fits with the rest
CAP vs. MCP
MCP is how an agent reaches its own tools. CAP is how someone else’s agent asks yours a question. A company runs MCP behind the door and CAP in front of it.
CAP vs. llms.txt
llms.txt tells a model what to read. agent.txt tells an agent where to ask. One hands over pages. The other hands over an answer.
Host your CAP agent on Cosmic
Cosmic runs the agent behind your agent.txt, free on every agent, from the content you publish. No agent yet? Enter your site and Cosmic builds one from your pages.