peer_exchange
Send plan proposals, point-by-point critiques, or final agreements to a peer AI agent asynchronously, optionally wait for live replies, and keep discussions isolated per project.
Instructions
Send a plan proposal, point-by-point critique, or final agreement to the peer agent (claude or antigravity). Async-first by default (wait_for_reply=false): queues your message immediately and returns so you can switch harnesses at your own pace. Set wait_for_reply=true only when you want an opt-in live blocking ping-pong debate.
Planning Review Protocol:
Pass project_path (your current workspace root) so discussions stay cleanly isolated per repository.
Summarize key points concisely in your chat window before calling peer_exchange.
Be rigorous: verify claims against the codebase and address points explicitly (e.g. "Point 1: Agree. Point 2: Disagree because...").
Use stance="propose" for an initial plan or major revision; stance="critique" for objections or improvements; stance="agreed" ONLY when you agree 100% with zero further changes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>",
"stance": "<stance>"
},
"name": "peer_exchange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room | No | Optional explicit room name override (e.g. "auth-refactor"). If omitted, derived from project_path or falls back to "default". | |
| topic | No | Optional short title for the discussion topic. | |
| stance | Yes | "propose" for initial plan or major rework; "critique" when raising any objection, question, or improvement; "agreed" ONLY when you agree 100% with the peer's latest version with zero changes. | |
| message | Yes | Your full message to the peer agent (plan proposal, numbered critique, or final agreement summary). | |
| new_session | No | Set to true ONLY on the first message of a brand-new topic to archive previous messages and start a clean planning session (dev handoffs are preserved). | |
| timeout_sec | No | Seconds to wait per heartbeat cycle when wait_for_reply=true (default: 45, max: 120). | |
| project_path | No | Optional absolute path to the current workspace or repo. Automatically walks up to the git root and derives a deterministic per-project room ID so both agents share the same room. | |
| wait_for_reply | No | Whether to block and wait live for the peer reply (default: false for async-first reviews; set true for live ping-pong debate). Automatically false when stance="agreed" reaches consensus. |