Claude Code vs Codex: The Real Differences in 2026
Claude Code vs Codex compared on pricing, GitHub automation, open source status and the latest releases from Anthropic and OpenAI.
7 min read
The agent to agent protocol (A2A) lets AI agents from different vendors discover, delegate to and track each other's work. Here is how it works in 2026.
The agent to agent protocol, known as A2A, is an open standard that lets AI agents built by different teams, on different frameworks, talk to each other over a network. Google released it on 9 April 2025 with support from more than 50 technology partners including Atlassian, Box, Cohere, Salesforce, SAP, ServiceNow and Workday, and donated it to the Linux Foundation. It reached a stable v1.0 specification on 12 March 2026 under a technical steering committee with representatives from eight technology companies, and on 27 August 2026 A2A was accepted as a Growth Stage project at the Agentic AI Foundation (AAIF), the Linux Foundation body that also houses MCP, goose and AGENTS.md.
Agent to agent protocol is a standard for one agent to hand work to another agent running on a remote server, without either side sharing memory, prompts or tool access. A client agent fetches the remote agent's capabilities from a JSON "Agent Card," sends a message, and receives back either an immediate reply or a trackable, long-running task with its own status and history.
A2A defines a small set of objects that every implementation, whatever transport it uses, agrees on:
name, description and provider, its service url, the capabilities it supports such as streaming or pushNotifications, the authentication schemes it expects (for example Bearer or OAuth2), and its AgentSkill objects with id, name, description, inputModes and outputModes.completed, canceled, rejected or failed, or pauses in an interrupted state such as input-required or auth-required until a human or another system supplies what is missing.According to the official documentation, discovery of an Agent Card can happen three ways: a well-known URI for public agents intended for broad discovery, a curated registry for catalog-based discovery, or direct configuration for private, pre-arranged agent-to-agent links. A2A also mandates HTTPS in production and requires the server to authenticate every request at the transport layer using headers such as Authorization: Bearer <token>, returning 401 or 403 when that check fails.
Mastra, whose SDK implements both sides of A2A on the official @a2a-js/sdk, describes six things the protocol gives a builder: one GET request against a fixed URL reveals what a remote agent does and what it expects; a paused task resumes from the same task ID even days later; a dropped stream can resubscribe and reopen with a full snapshot so nothing is missed; the same task supports polling, streaming and webhooks at once; a forged Agent Card or a protocol version mismatch fails before any work is sent; and publishing an agent over A2A on Mastra requires no extra code, letting a remote agent drop in as a verified subagent.
Google's original announcement describes hiring as a worked example. A hiring manager tells their agent to find candidates matching a job listing, location and skill set. That agent uses A2A to task other, specialized agents: one to source candidates, another to schedule interviews once the hiring manager picks favorites, and a third to run background checks after interviews finish. Each of those agents can be built by a different vendor on a different framework and still cooperate, because none of them needs to see inside another's memory or tools, only its declared Agent Card and the messages passed between them.
Mastra also lays out where delegating to another agent over A2A differs from a normal MCP tool call:
| Tool call (MCP) | Delegation (A2A) | |
|---|---|---|
| Where it runs | inside your process or a local server | on another network |
| How long it takes | milliseconds | minutes to hours, pauses included |
| Who holds context | the caller's memory | the request plus the task's saved history |
| Where state lives | the call stack | a server-side task, addressable by ID |
| How the callee is found | configured by the host | a fetched Agent Card |
| What can go wrong | an in-process exception | drops, missed events, forged cards, version mismatch |
Both protocols usually run side by side in a production agent: MCP for pulling data and calling tools, A2A for handing a whole piece of work to another agent. IBM's glossary entry and Auth0's comparison post make the same split: MCP standardizes how an agent uses a tool or resource with structured input and output, while A2A standardizes how independent, often opaque agents discover each other, negotiate an interaction and exchange complex, multi-turn context to reach a shared goal.
A2A earns its complexity when a task genuinely runs for minutes to hours, needs to pause for a human or another system and resume later, or must be handed to an agent your team does not control and cannot see inside. The candidate-sourcing example above, or a travel booking flow that spans a flight agent, a hotel agent and a currency conversion agent, are the shape of problem it targets.
It is the wrong tool when a single agent can just call a function or an MCP-connected tool directly. A database query, a calculator, or a weather lookup finishes in milliseconds and does not need an Agent Card, a task ID or a discovery step; that is MCP's job, and reaching for A2A there only adds a network hop, an authentication handshake and a state machine you did not need. A 2026 discussion thread on Reddit's r/AI_Agents shows builders reaching the same conclusion from the field: several report abandoning dynamic, freeform agent-to-agent messaging in favor of predetermined message buses once they needed observability and control, precisely because open-ended delegation is harder to debug than a fixed pipeline.
MCP standardizes how a single agent calls a tool or reads a resource, such as a database or a search API, with structured input and output that resembles function calling. A2A standardizes how two independent agents, possibly built by different vendors, discover each other's capabilities through an Agent Card and delegate a task while exchanging conversational context. Production systems commonly use both: MCP inside an agent, A2A between agents.
Google announced A2A on 9 April 2025 with more than 50 launch partners, then donated it to the Linux Foundation. It now sits inside the Agentic AI Foundation, governed by a technical steering committee with representatives from eight technology companies including Google, Microsoft, AWS, Salesforce and IBM.
Yes. A2A reached a stable v1.0 specification on 12 March 2026, adding multi-tenancy, signed Agent Cards and a modernized security posture aimed at enterprise deployment. The protocol's announcement states it already runs in production across supply chains, financial services and mobile platforms and is backed by over 150 organizations.
Not necessarily. A2A solves cross-vendor, cross-framework delegation and long-running, resumable tasks. If every agent in your system is on one framework and every call finishes in milliseconds, a direct function call or an MCP tool call is simpler and has fewer moving parts to secure and monitor.
Builders comparing frameworks and hosted AI agents that implement A2A, or looking for the MCP servers that pair with it, can browse both on AI Agents Listing.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.
Claude Code vs Codex compared on pricing, GitHub automation, open source status and the latest releases from Anthropic and OpenAI.
7 min read
AI agent vs chatbot compared on control flow, tool use and autonomy, with sourced definitions from Salesforce, Google Cloud and Wikipedia.
6 min read
AI agent examples compared: Claude Code, Devin, ChatGPT agent, Intercom's Fin, Salesforce Agentforce and Manus, each sourced from the vendor's own docs.
8 min read