Agent-to-Agent (A2A) Communication Protocol
Turns Claude Code into a coordinator that lets multiple agents message each other, share context, and hand off tasks through a single shared state file.
AutomationAdvanced★ 287⑂ 44AI score 7/10Last updated: Aug 11, 2026
What it does
- Puts Claude Code in the role of an A2A Coordinator that assembles two or more agents into a team.
- Uses
.a2a-context.jsonat the project root as the single source of truth for agent registry, tasks, messages, and conclusions. - Lets you pick a collaboration pattern — pipeline, fan-out/fan-in, conversation, or supervisor — and dispatch sub-agents via the Agent tool (parallel calls supported).
- Enforces formal handoffs: full payload, explicit ACK, and an appended task
chainfor traceability. - Provides recovery procedures for timeouts, rejections, deadlocks, and failures, with an escalation matrix and a 3-retry cap.
- Safety rules: no secrets in the context file, add it to
.gitignore, summarize context once it exceeds 50KB.
Who it's for
- Developers automating multi-stage work with distinct roles (research → writing, implement → review).
- Power users who want parallel sub-agents to cut research and analysis time.
- Anyone frustrated by agents losing each other's context and producing inconsistent results.
Examples
- Researcher + writer pipeline: "Research the top 5 AI frameworks and write a comparison article" — the researcher writes findings to shared context, the writer reads them and drafts a 1200-word piece.
- Code + review loop: an implementation agent ships a feature, a review agent inspects it and returns change requests as a handoff payload.
- Fan-out research: four independent subtopics dispatched to four agents in parallel, with the Coordinator merging results into the
conclusionssection for a final report.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/OneWave-AI/claude-skills/HEAD/agent-to-agent/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the agent-to-agent folder from the GitHub repo OneWave-AI/claude-skills into my ~/.claude/skills/agent-to-agent/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/OneWave-AI/claude-skills.git /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/agent-to-agent ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/OneWave-AI/claude-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill together with its reference docs:
cp -r claude-skills/agent-to-agent ~/.claude/skills/ - Verify the references landed:
ls ~/.claude/skills/agent-to-agent/referencesshould listprotocol.md,patterns.md, and friends. - Restart Claude Code and try a prompt like "use multiple agents to research this and then write it up".
- The first run creates
.a2a-context.jsonin your project — add it to.gitignoreso shared state never gets committed.
View source on GitHub ↗License: MIT