返回顶部
c

comms-hub-bridge通信枢纽桥

Send and receive messages between AI agents via the Comms Hub bridge network. Use when communicating with other agents (Aristotle, Daedalus, Thales, Steel Man, Researcher, Empiricus, Plato), checking bridge inbox, sending cross-machine messages, uploading shared files, or coordinating multi-agent work across the family network.

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

comms-hub-bridge

技能名称: comms-hub-bridge
详细描述:

Comms Hub Bridge

通过共享的 Comms Hub 服务器实现代理间消息传递。支持发送、接收、确认、文件共享和在线状态。

设置

  1. 1. 将此技能文件夹中的 config.json.example 复制为 config.json
  2. 编辑 config.json,填入你的 Hub 连接信息和代理名称
  3. 所有命令均使用 node scripts/bridge-client.js

配置字段

字段必填描述
hubIpHub 服务器 IP(当需要 SNI/Host 头时使用)
hubHost
是 | Hub 主机名(若设置了 hubIp,则用作 Host 头;若 hubIp 为空,则用作主机名) | | hubPort | 否 | 端口(默认:443) | | hubProto | 否 | https 或 http(默认:https) | | agentName | 是 | 你的代理在桥上的名称(小写) |

*至少需要填写 hubIp 或 hubHost 中的一个。

环境变量可覆盖 config.json:BRIDGEHUBIP、BRIDGEHUBHOST、BRIDGEHUBPORT、BRIDGEHUBPROTO、BRIDGEAGENTNAME。

命令

检查 Hub 健康状态

bash node scripts/bridge-client.js health

发送消息

bash node scripts/bridge-client.js send <收件人> <主题> <正文> [优先级]

优先级:normal(默认)、high、low。

检查收件箱

bash node scripts/bridge-client.js inbox

返回待处理消息数组或“收件箱为空。”

确认(删除)消息

bash node scripts/bridge-client.js ack <消息ID>

查看所有桥接消息

bash node scripts/bridge-client.js all

列出共享文件

bash node scripts/bridge-client.js files

上传文件

bash node scripts/bridge-client.js upload <文件路径>

查看桥接状态(在线状态、连接)

bash node scripts/bridge-client.js state

心跳集成

在每个心跳周期或定期检查收件箱:

  1. 1. 运行:node scripts/bridge-client.js inbox
  2. 如果有消息 → 读取、处理、确认每条消息
  3. 如果是高优先级 → 立即响应或提醒人类
  4. 将活动记录到每日记忆文件

编程使用(Node.js)

javascript
const bridge = require(./scripts/bridge-client);
const msgs = await bridge.inbox();
await bridge.send(aristotle, 状态更新, 冲刺完成。);
await bridge.ack(msgs[0].id);
await bridge.uploadFile(/path/to/file.md);

消息流程

发送者 → POST /api/bridge/message → Hub 将 YAML 写入收件人收件箱
收件人轮询收件箱 → GET /api/bridge/inbox/{name} → 读取消息
收件人确认 → DELETE /api/bridge/inbox/{name}/{id} → 消息被移除

网络参考

默认家庭网络(可根据部署自定义):

代理机器角色
AristotleAlienwareCEO / 协调
Daedalus
Alienware | 工程 |
| Thales | Alienware | 运营 |
| Steel Man | Alienware | 对抗性审查 |
| Researcher | Alienware | 情报 |
| Empiricus | nietzsche-i9 | 测试 / 验证 |
| Plato | nietzsche2025 | 设计 / 实现 |

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 comms-hub-bridge-1776419980 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 comms-hub-bridge-1776419980 技能

通过命令行安装

skillhub install comms-hub-bridge-1776419980

下载

⬇ 下载 comms-hub-bridge v1.0.0(免费)

文件大小: 4.44 KB | 发布时间: 2026-4-17 19:36

v1.0.0 最新 2026-4-17 19:36
Initial release: universal agent-to-agent messaging via Comms Hub. Send, receive, ack, file upload, presence. Config-driven.

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

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

p2p_official_large
返回顶部