360 Secure SkillHub
360 安全技能中心

Kiro Agent Chat

面向多 Agent 协作的消息队列工具:提供发送、读取、删除三个 Python 脚本,通过共享 JSON 文件交换消息,可在同一机器或经 SSH 跨机器使用;未包含加密、鉴权或实时推送机制,且删除脚本具有破坏性。

sonerbo
sonerbo
热度 53.49
最近更新 2026-05-11 17:28:50
分类:协作依赖:代码执行 / 读写文件应用场景:工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add kiro-agent-chat
Metadata
name
agent-chat
description
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.

Agent Chat

Two OpenClaw agents communicate through a shared JSON queue file.

Setup

Set the chat file path in TOOLS.md:

## Agent Chat
chat_file: ~/shared/agent-chat.json

Usage

Send Message

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

Read My Messages

# Read messages sent to you
MY_NAME="kiro-local" \
python3 scripts/read_messages.py ~/shared/agent-chat.json

Delete Processed Messages

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

Flow

  1. Agent A writes message to shared file
  2. Agent B reads file, sees new message
  3. Agent B responds, writes to file
  4. Agent A reads response

Remote Usage (via SSH)

# From local, send to VPS agent
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
"

Queue Format

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