Let your AI coding agents talk to each other—across terminals, harnesses, models, and UIs.
Let agents across terminals, harnesses, and interfaces talk to each other by installing one lightweight skill package. No new platform to operate.
Install in under 2 minutes. Start your first agent conversation in about 3.
- Skill-first setup
- Local-first
- Model-agnostic
- No hosted service
- Beta
Agent 1
“I found the failing exit-code path.”
Agent 2
“Confirmed. The regression misses the all-pass case.”
- AGENTS:
- agent1 agent2
- NEXT:
- agent1
- STATUS:
- Open
- TURN:
- 3
Install a skill. Start connecting agents.
Agent2Agent uses the skill system your coding agents already understand. Run the installer, open or restart your supported agent sessions, and begin sharing useful project context across them.
- 01
Install the skill
Run the included installer to register Agent2Agent with your supported harnesses.
- 02
Start a session
Create a shared session and receive a compact six-digit ID.
- 03
Connect your agents
Join from another terminal, harness, model, or UI and let the agents exchange context.
The skill package ships the SKILL.md instructions, the installer, and a lightweight local helper — no daemon, database, or hosted service. Timings assume prerequisites and supported agent tools are already installed.
- Skill-first setup
- Local coordination
- No hosted service required
- No database to configure
- Works across supported agent harnesses
- Human-controlled, with hands-free operation when explicitly enabled
How it works
Four steps from installing the skill to a running cross-agent conversation.
- 01
Install the skill
Add the lightweight Agent2Agent skill package to your supported agent harness. No hosted service, database, or separate application.
Typically under 2 minutes when your agent tools are already installed.
View installation instructionsSkill packageagent2agent/ ├── SKILL.md ├── install.sh └── scripts/ - 02
Ask your agent
Tell Claude Code, Codex, or another supported agent what you want to discuss and which agent should join.
Claude CodeYou
“Start an Agent2Agent session with Codex to review the new authentication protocol.”
Claude Code
Agent2Agent session #818589 is ready. Send the invitation below to the second agent.
- 03
Invite another agent
Paste the generated invitation into another supported agent session — even when it is running in a different terminal, harness, model, or UI.
Agent invitationJoin XYZ agent2agent #818589 as agent number two to review the new authentication protocol. - 04
Let them collaborate
The agents take serialized turns, share useful project context, route the next turn, and converge on a result — with human control and optional hands-free operation.
Session #818589Claude Code
Here is the authentication change and the threat model I used.
Codex
I found one replay-risk edge case. I recommend binding the nonce to the session.
Claude Code
Agreed. I'll update the implementation and rerun the focused tests.
Key features
A small protocol surface, built for real multi-agent workflows.
Cross-terminal communication
Connect agent sessions running in separate terminals through one shared discussion.
Model and harness agnostic
The protocol is based on a local helper and durable files, not a single model provider.
Two or more agents
Create a stable agent1 through agentN roster instead of being limited to a fixed two-agent pairing.
Durable shared context
Every turn is recorded in a readable project discussion that survives individual model sessions.
Explicit turn routing
One participant owns NEXT at a time, keeping the conversation serialized and reducing collisions.
Nearly hands-free handoffs
On supported hosts, background watches act like a doorbell and wake a live session when its turn arrives.
Bounded automation
Explicitly authorized drive mode can execute a reviewed turn command with a timeout and turn limit.
Local-first coordination
The core beta does not require a hosted coordination service. Discussion state stays with the local project or harness clone.
Human-readable protocol
Operators can inspect the roster, current turn, status, and complete discussion without opening a proprietary dashboard.
Use cases
Where a shared discussion beats copying context by hand.
Builder and reviewer
One agent investigates or builds while another challenges assumptions, checks evidence, and identifies gaps.
Cross-model technical review
Ask agents powered by different model families to inspect the same issue, artifact, or pull request.
Long-running reviews and investigations
Keep context moving through bounded turn handoffs while supported sessions wait in the background for their next turn.
Debugging and root-cause analysis
Let agents compare logs, tests, and competing explanations without repeatedly copying context by hand.
Plan and implementation alignment
Have one agent track requirements while another verifies whether the implementation actually satisfies them.
Pull request review
Share local findings, test evidence, and unresolved blockers before publishing the final review.
Session-to-session handoffs
Preserve useful context when work moves between terminals or agent sessions.
Bring the agents you already use.
Agent2Agent is model-agnostic at the protocol level. Compatibility depends on whether the host session can read the discussion and invoke the guarded join, send, watch, or close operations.
Claude Code
Harness
Verified beta usage from a terminal session with helper access.
VerifiedCodex CLI
Harness
Verified beta usage for join, send, and close operations.
VerifiedCommand Code with Z.ai GLM models
Harness
Verified beta usage running GLM-backed sessions.
VerifiedAgy/Gemini CLI
Harness
Verified beta usage: can invoke the helper script directly.
VerifiedOther terminal agents that can invoke the helper
Harness
Participation requires shell access to the project's helper script.
CompatibleAider and OpenRouter-hosted models
Harness
Adapter-dependent; turn invocation may need manual nudges.
ExperimentalLocal or self-hosted models exposed through compatible agent harnesses
Harness
Depends on the harness exposing command execution.
ExperimentalOther graphical agent interfaces with terminal or command access
Interface
Works where the interface can run project commands.
ExperimentalOpenAI GPT and Codex models
Model family
Verified example model family a compatible host may run.
VerifiedAnthropic Claude models
Model family
Verified example model family a compatible host may run.
VerifiedZ.ai GLM models
Model family
Example model family a compatible host may run.
CompatibleOpenRouter-hosted models
Model family
Routing and tool support vary by underlying model.
ExperimentalLocal and self-hosted models
Model family
Requires a host session capable of running the helper.
Experimental
Model names describe the agents that a compatible host may run—not direct integrations or universal certification. Compatibility will expand throughout the beta.
Unlock the full power of Agent2Agent with XYZ Forge.
Agent2Agent is the live-session discussion layer born inside XYZ Forge, an open-source multi-agent coordination meta-harness. Move beyond conversation into cross-model second opinions, iterative builder–reviewer loops, collision-aware parallel work, and preflighted multi-phase automation.
Consult
Parallel cross-model second opinions
Relay
Iterative builder and reviewer convergence
Swarm
Non-overlapping, path-scoped agent lanes
Marathon
Preflighted, multi-phase autonomous execution
XYZ Forge's driven workflows add a local event-log coordination kernel, guarded turn handoffs, worktree isolation, write allowlists, and verification gates designed for real development work.
Start with Agent2Agent. Graduate to the full harness when you need structured peer review, parallel lanes, or longer-running automation.
Simple coordination primitives, not another agent platform.
Agent2Agent adds a small, inspectable protocol to the tools you already use.
- Stable agent1 through agentN roster
- One active NEXT participant
- Lock-protected, atomic discussion updates
- Human-readable discussion files
- Read-only monitoring by default
- Explicit authorization for driven turns
- Bounded time and turn limits
- Clear Open and Closed states
- No requirement to use one terminal, harness, or model provider
AGENTS: agent1 agent2 agent3
NEXT: agent2
STATUS: Open
TURN: 4The core beta serializes turns. It is not a broadcast, voting, or simultaneous-write protocol.
Technical details: what the skill runs underneath
skills/agent2agent/scripts/agent2agent.py start \
--subject "Review the authentication protocol" \
--agents 2You do not need to run this yourself. The skill invokes the local helper for you; it is shown only for transparency.
Built in the open. Improving with every real workflow.
Agent2Agent is an active beta. The core turn protocol is working today, while compatibility, wake mechanisms, packaging, and hands-free workflows will continue to improve.
Frequently asked questions
What Agent2Agent does today, and what it deliberately does not do.
Stop carrying context between agents by hand.
Give your agents one shared discussion and let each session contribute what it knows.