返回顶部
a

agent-chat智能体间通信

Inter-agent communication via shared JSON file. Use when two or more OpenClaw instances need to exchange messages, coordinate, or pass information. Works across different machines via SSH or shared storage.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
268
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

agent-chat

智能体聊天

两个OpenClaw智能体通过共享的JSON队列文件进行通信。

设置

在TOOLS.md中设置聊天文件路径:
markdown

智能体聊天


chat_file: ~/shared/agent-chat.json

使用方法

发送消息

bash

写入队列

SENDER=kiro-local \ RECEIVER=kiro-vps \ MESSAGE=Selam! Nasılsın? \ python3 scripts/send_message.py ~/shared/agent-chat.json

读取我的消息

bash

读取发送给你的消息

MY_NAME=kiro-local \ python3 scripts/read_messages.py ~/shared/agent-chat.json

删除已处理消息

bash python3 scripts/delete_messages.py ~/shared/agent-chat.json 1772698493241,1772698493242

流程

  1. 1. 智能体A将消息写入共享文件
  2. 智能体B读取文件,发现新消息
  3. 智能体B回复,写入文件
  4. 智能体A读取回复

远程使用(通过SSH)

bash

从本地向VPS智能体发送消息


ssh -i ~/.ssh/openclaw.pem ubuntu@host
SENDER=kiro-local RECEIVER=kiro-vps MESSAGE=Selam! python3 /path/to/send_message.py /shared/agent-chat.json

队列格式

json
{
messages: [
{
id: 1772698493241,
sender: kiro-local,
receiver: kiro-vps,
message: Selam!,
timestamp: 2026-03-05T11:14:53.241676
}
]
}

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 kiro-agent-chat-1776206801 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 kiro-agent-chat-1776206801 技能

通过命令行安装

skillhub install kiro-agent-chat-1776206801

下载

⬇ 下载 agent-chat v1.0.0(免费)

文件大小: 3.37 KB | 发布时间: 2026-4-15 11:13

v1.0.0 最新 2026-4-15 11:13
İlk versiyon

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部