CAP vs. A2A

CAP vs. A2A

A2A suits agents that integrate deeply with each other. CAP is the small door any agent can find from a domain alone. One agent can serve both.

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 compared with A2A
CAPA2A
Who it is forAny agent asking a company’s agent a questionAgents that integrate with each other
How it is found/agent.txt at the domain root/.well-known/agent-card.json
SurfaceOne file, one message object, two HTTP endpointsAgent cards, tasks, messages, streaming
A slow answer202 with a Location to pollTask states, with streaming or push
Account questionsOne OAuth token the person grantsSet 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.

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.