实现隔离 OpenClaw 代理间的点对点跨域通信,解决了 `sessions_send` 无法跨越代理边界的限制。
🗣️ A powerful, secure, and zero-intrusive peer-to-peer communication skill for OpenClaw.
This skill enables independent OpenClaw agents (e.g., zz, dev, rc) to securely send messages and wake up each other across isolated workspaces. It acts as an asynchronous "intercom system" for your Multi-Agent setup.
Run the setup script to generate the communication protocol SOP:
bash
python <SKILL_DIR>/scripts/intercom.py setup
⚠️ Important: The script will print an SOP block to the screen — it does NOT auto-write any files. You must manually copy the printed SOP block and paste it at the bottom of each agent's AGENTS.md file. After pasting, type /new in your chat to reload their brains.
Determine the target agent's ID and your own ID, then run:
bash
python <SKILL_DIR>/scripts/intercom.py send <TARGET_AGENT_ID> <YOUR_AGENT_ID> "<YOUR_MESSAGE>"
Note: This script runs asynchronously in the background. It will return immediately. Do not wait or retry.
bash
python <SKILL_DIR>/scripts/intercom.py send dev zz "Hi dev, the Boss wants us to update our avatars today. Acknowledge when done."
When 'dev' receives this, the message will be formatted as [From Agent zz] Hi dev, the Boss wants us to update our avatars today... — the SOP embedded in AGENTS.md tells 'dev' exactly how to respond.
By design, OpenClaw agents run in isolated databases and sandboxes. The built-in sessions_send tool can only send messages within an agent's own subagent hierarchy. If Agent A tries to use sessions_send to message Agent B, it will result in a "Session not found" error.
Multi-Agent Intercom solves this by leveraging the native openclaw agent CLI mechanism to safely bridge these isolated environments, allowing agents to act as equal peers in a decentralized company.
CREATE_NO_WINDOW + close_fds on Windows for zero console popups.cmd.exe argument truncation via PowerShell routingmain session by defaultCommandWhat it doespython intercom.py setupPrints the SOP block for manual copy-paste into AGENTS.mdpython intercom.py send <target> <sender> "<msg>"Sends a message to another agent
Note: There is NO
installsubcommand. Usesetupto generate the SOP.
Created for the OpenClaw / ClawDBot community.