Cross-Claude MCP — external-participant fallback
Scope is now narrow. Use this skill ONLY when the peer is one of:
- A non-Claude-Code AI — ChatGPT, Claude.ai (web), Claude Desktop.
- An AI on someone else's machine — outside this harness's session registry.
Everything else goes native. SendMessage + ListAgents are built into the harness, are
push-delivered, need no registration, no channel, and no polling — and they work better. See the
cross-session skill. That includes cases this skill used to own:
- Another Claude Code session →
SendMessage, addressed by project-dir basename. - Spawning a peer in another project →
cd <project-dir> && claude --bg "<task>". It inherits
that project's CLAUDE.md, memory, MCP servers, skills, and hooks — the whole reason
spawn-collaborator existed. Verified end-to-end 2026-08-21. **Do not use spawn-collaborator
for this; it is superseded.**
- The MANDATORY cross-project change rule → lives in
cross-sessionnow. Read it there.
If you are reaching for this skill and the peer is a Claude Code session, you are in the wrong
skill.
Before Starting (MANDATORY)
If the user's request does not specify a channel, stop and ask: "Which channel should I use?" Do not
call any Cross-Claude tools until a channel is provided.
Once a channel is specified:
registerwith a descriptive instance_id (e.g., "builder", "reviewer")- Use that channel — create it if it doesn't exist
- Proceed with the user's request
Message Protocol
- After sending a
request, callwait_for_replyimmediately — don't wait for user prompt - Stop polling only when: you receive a
donemessage, or the user says "disconnect"/"stop listening" - For large data (>500 chars), use
share_datathen reference the key in the message - Use typed messages:
request,response,handoff,status,done - Keep your
instance_idconsistent — don't re-register mid-conversation - When you poll, prefer the
after_idfrom your last read (the "Last message ID" line of a
check_messages/wait_for_reply result), not the id send_message just returned for your own
message. The server floors polling at your read position so a message that crossed your send is
still delivered — feeding it your read high-water mark keeps that guarantee even across
reconnects.
- One wait per channel: starting a new
wait_for_replyon a channel you're already waiting on
supersedes the old one. Never stack waits.
Delivery modes — know yours before making listening claims (MANDATORY)
Unlike native SendMessage, this transport does not push. Know which state you are in before
saying "listening":
- Live push — a
listen_live(channel)bridge,cc-listen <channel>, or a
--dangerously-load-development-channels subscription is active. Messages are injected as
<channel> blocks and wake you when idle. "I'll see messages as they arrive" is TRUE **only
here**. Requires a channels-enabled launch; these tools do not exist in a plain session.
- Foreground blocking wait (~2 min only) — you called
wait_for_replyand are blocked *right
now*. At ~120s the harness backgrounds the call and you go deaf.
- Poll-only — everything else, INCLUDING any backgrounded
wait_for_reply. Do NOT say you're
"listening"/"standing by"/"watching."
HARD TRUTH — a backgrounded wait_for_reply does NOT wake you (MANDATORY). Verified 2026-07-18
on Claude Code v2.1.214: a wait_for_reply that auto-backgrounds at ~120s does not wake an idle
session when a message arrives; it unblocks only when a human next prompts you. Never claim
otherwise. (Harness limitation, not a server bug — the server delivers fine.)
Durable listening — parked-wait-and-reschedule
The honest way to keep listening in a plain session. Each cycle:
check_messages(channel=<channel>, instance_id=<your id>, after_id=<cursor>)- Act on anything new.
ScheduleWakeupwith apromptrepeating this loop verbatim, and adelaySecondsmatched to
how fast the external peer actually replies.
- End your turn. The wakeup re-invokes you; go to step 1.
Done Signal (MANDATORY)
After your final message in a collaboration, always send a separate done message with a brief
summary. A response is not a done. Without it, the other participant polls indefinitely.