← 返回
未分类

Multi-Agent Intercom

Enables peer-to-peer cross-communication between isolated OpenClaw agents. Resolves the limitation of `sessions_send` which cannot cross agent boundaries. 10...
实现隔离 OpenClaw 代理间的点对点跨域通信,解决了 `sessions_send` 无法跨越代理边界的限制。
zhangxue1985122219 zhangxue1985122219 来源
未分类 clawhub v1.1.6 1 版本 99887.6 Key: 无需
★ 2
Stars
📥 849
下载
💾 1
安装
1
版本
#latest

概述

Multi-Agent Intercom

🗣️ 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.


🚀 Quick-Start Instructions

1. Initialization (First Time Setup — One-Time Manual Step)

Run the setup script to generate the communication protocol SOP:

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.

2. Send a Message

Determine the target agent's ID and your own ID, then run:

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.

3. Example (You are 'zz', telling 'dev' to update avatars)

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.


🌟 Why is this needed?

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.

🛡️ Security First: Zero-Intrusive & 100% Compliant

  • No File Tampering: Does NOT automatically modify or rewrite any system files. You remain in full control.
  • No Shell Injection: Safe subprocess argument lists prevent RCE vulnerabilities.
  • True Silent Execution: Uses CREATE_NO_WINDOW + close_fds on Windows for zero console popups.
  • Anti-Loop Breaker: The protocol prevents infinite "Received → Thank you" loops.

✨ Features

  • Cross-Boundary Messaging — reach any agent on the same system
  • Robust Multiline Support — bypasses Windows cmd.exe argument truncation via PowerShell routing
  • Internationalization (i18n) — auto-detects OS language (English / Chinese)
  • Immediate Wake-up — bypasses sleep states, forces target to process now
  • Persistent Context — targets the main session by default

⚠️ Command Reference

CommandWhat it does
----------------------
python intercom.py setupPrints the SOP block for manual copy-paste into AGENTS.md
python intercom.py send ""Sends a message to another agent

> Note: There is NO install subcommand. Use setup to generate the SOP.

Requirements

  • OpenClaw >= 2026.x
  • Python 3.x

Created for the OpenClaw / ClawDBot community.

版本历史

共 1 个版本

  • v1.1.6 当前
    2026-03-30 05:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

一键转换为机关公文标准格式

zhangxue1985122219
严格按照GB/T 9704-2012格式生成政府正式文件,包括标题、正文、章节标题、页眉页脚、附件和联系人。
★ 3 📥 1,898
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,233 📥 268,580
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,089 📥 817,366