SkillAgentSearch skills...

agent-comm-hub

Let multiple AI agents talk, schedule tasks, share memory and self-evolve — zero external services, 5-minute Docker deploy.

Install / Use

claude mcp add liuboacean -- npx -y github:liuboacean/agent-comm-hub

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

84/100

Category

Operations

Supported Platforms

Claude Code
Claude Desktop

Our assessment of agent-comm-hub

agent-comm-hub scores 84/100 on our quality scale, 557th of 755 Operations skills we index.

Its MCP Server is 16 KB long, well organised into 35 sections with 12 code examples: a thorough specification that gives an agent plenty to work with.

It has 10 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
30/30
Structure
20/20
Description
15/15
Adoption
4/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 23 days ago, so agent-comm-hub is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

agent-comm-hub compared with similar skills

All 4 of these similar skills score higher than agent-comm-hub; compare them before choosing.

SkillScoreStarsUpdatedFormat
agent-comm-hub (this skill)by liuboacean841023d agoMCP Server
Agent-Reachby Panniantong100107.2k6d agoCLAUDE.md
headroomby headroomlabs-ai10078.5k1d agoCLAUDE.md
CowAgentby zhayujie10047.7ktodayCLAUDE.md
Scraplingby D4Vinci10090.9ktodayMCP Server

Frequently asked questions

How do I install agent-comm-hub?
Run claude mcp add liuboacean -- npx -y github:liuboacean/agent-comm-hub. The install tabs above show the steps for each supported agent.
Which AI agents does agent-comm-hub work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is agent-comm-hub safe to use?
It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is agent-comm-hub still maintained?
The repository was last updated 23 days ago, so agent-comm-hub is actively maintained.
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/badge/Node.js-22-green?logo=node.js"> <img src="https://img.shields.io/badge/Node.js-22-green?logo=node.js" alt="Node.js 22"> </picture> <img src="https://img.shields.io/badge/Python-3.9+-blue?logo=python" alt="Python 3.9+"> <img src="https://img.shields.io/badge/MCP_Protocol-1.0-orange?logo=robot" alt="MCP Protocol"> <img src="https://img.shields.io/badge/288_Tests-Passing-3fb950?logo=vitest" alt="288 Tests"> <img src="https://img.shields.io/badge/Zero_External_Services-success?logo=server" alt="Zero External Services"> <img src="https://img.shields.io/badge/Web_Panel-Live-7c3aed?logo=htmx" alt="Web Panel"> <a href="https://github.com/liuboacean/agent-comm-hub/actions/workflows/ci.yml"> <img src="https://img.shields.io/github/actions/workflow/status/liuboacean/agent-comm-hub/ci.yml?branch=master&logo=githubactions&label=CI" alt="CI"> </a> <img src="https://img.shields.io/badge/License-MIT-yellow" alt="MIT License"> <a href="https://pypi.org/project/agent-comm-hub/"> <img src="https://img.shields.io/pypi/v/agent-comm-hub" alt="PyPI"> </a> <a href="https://www.npmjs.com/package/@liuboacean/agent-comm-hub"> <img src="https://img.shields.io/npm/v/@liuboacean/agent-comm-hub" alt="npm"> </a> <a href="https://glama.ai/mcp/servers/liuboacean/agent-comm-hub"> <img src="https://glama.ai/mcp/servers/liuboacean/agent-comm-hub/badges/score.svg" alt="Glama score"> </a> <a href="https://codeguilds.dev/packages/agent-comm-hub"> <img src="https://img.shields.io/badge/Available_on-CodeGuilds-6366f1" alt="Available on CodeGuilds"> </a> </p> <h1 align="center"> 🤖 Agent Communication Hub </h1> <p align="center"> <strong>让 AI Agent 不再各自为战</strong><br> <em>实时消息 · 任务调度 · 共享记忆 · 信任进化 · Web 仪表盘</em><br> <code>58 个 MCP 工具 · 零外部服务 · 5 分钟部署</code> </p> <p align="center"> <a href="#readme">中文</a> · <a href="docs/README_EN.md">English</a> · <a href="https://github.com/liuboacean/agent-comm-hub">GitHub</a> </p> <br>

👀 一眼看明白

graph LR
    A[Claude Code] <--> H((ACH Hub))
    B[WorkBuddy] <--> H
    C[OpenClaw] <--> H
    D[自定义 Agent] <--> H
    H --> DB[(SQLite)]
    H --> Web[Web 仪表盘]
    style H fill:#4f46e5,color:#fff
    style Web fill:#7c3aed,color:#fff

任何 MCP 兼容的 AI Agent → 连接 Hub → 立即获得:消息总线、任务队列、共享记忆、进化引擎。

🚀 5 分钟启动:docker run -d -p 3100:3100 ghcr.io/liuboacean/agent-comm-hub


💡 为什么需要它?

多个 AI Agent(Claude Code、WorkBuddy、OpenClaw、Hermes 等)天然是信息孤岛:

| 问题 | 传统方案 | 为什么不行 | |------|---------|-----------| | ❌ Agent 间无法通信 | Webhook / 共享文件 | 脆弱、不可靠、手动维护 | | ❌ 无法跨 Agent 调度任务 | 各自为战 | 没人协调,任务丢失 | | ❌ 无法共享上下文 | 每轮对话都从零开始 | 记不住团队经验 | | ❌ 无法团队进化 | 每个 Agent 独自踩坑 | 同样的问题反复修 |

Agent Communication Hub(ACH) 是它们的共享神经中枢——一条消息总线 + 任务调度器 + 团队记忆库 + 经验进化引擎。


🚀 三步上手

# 0. 安装 Python SDK(可选)
pip install agent-comm-hub

# 1. 启动 Hub(一行命令)
docker run -d -p 3100:3100 --name ach ghcr.io/liuboacean/agent-comm-hub

# 2. 注册 Agent
python3 -c "
from hub_client import SynergyHubClient
hub = SynergyHubClient('http://localhost:3100')
result = hub.register(invite_code='INVITE-001', name='my-agent')
hub.set_token(result['api_token'])
print(f'✅ Agent 注册成功,ID: {result[\"agent_id\"]}')
"

# 3. 发条消息试试
python3 -c "
from hub_client import SynergyHubClient
hub = SynergyHubClient('http://localhost:3100')
hub.set_token('your-token')
hub.send_message(to='other-agent', content='收到,任务完成。')
print('✅ 消息已发送')
"

🔗 然后打开 http://localhost:3100/dashboard 查看实时仪表盘


✨ 核心能力

📊 数据快照

| 指标 | 值 | |------|:--:| | MCP 工具 | 58 个 | | Python SDK 方法 | 68 个 | | TypeScript SDK 方法 | 35 个 | | 单元测试 | 288 个 ✅ | | 数据库表 | 32 张 | | client-sdk 运行时依赖 | 0(Python/TS 纯标准库) | | 服务端运行时依赖 | 5 个轻量依赖(express / better-sqlite3 / zod / eventsource / @modelcontextprotocol/sdk) | | 消息延迟 | < 50ms | | 部署方式 | Docker / npm / SkillHub |

🧩 功能矩阵

| 类别 | 工具 | 一句话 | |------|------|--------| | 🔐 身份认证 | 6 | 注册 / 心跳 / RBAC / 信任评分 | | 💬 消息通信 | 5 | P2P / 广播 / FTS5 搜索 / 去重 | | 📋 任务调度 | 8 | 7 状态机 / Pipeline / 并行组 | | 🧠 共享记忆 | 5 | 三级作用域(私密/团队/全局)| | 🔀 编排协调 | 11 | 依赖链 / 质检门 / 任务交接 | | 📈 进化引擎 | 12 | 经验共享 / 策略审批 / 信任闭环 | | 🛡️ 安全审计 | 6 | 哈希链审计 / 4 级 RBAC / CORS | | 📎 文件传输 | 3 | 上传 / 下载 / 列表 | | 🔧 高可用 | 3 | DB 分裂检测 / 自动合并 / 看门狗 |


🖥️ 内置 Web 管理面板

启动 Hub 后打开 http://localhost:3100/dashboard,即可实时管理你的 Agent 集群:

| 页面 | 能干什么 | |------|---------| | 总览仪表盘 | 一眼看清在线 Agent、Pipeline 状态、消息吞吐 | | Agents | 查看所有 Agent 列表(名称、角色、最后活跃时间、信任分)| | 消息吞吐 | 5 分钟消息量 + 被限流的 Agent Top | | 健康检查 | 版本 / 运行时间 / DB 状态 / 备份状态(本地 + 远程)| | 审计日志 | 全量操作追溯,谁在什么时候做了什么 |

纯静态 HTML(零前端框架),内联 CSS+JS,启动即用。


🏗️ 架构

                        ┌─────────────────────────────────┐
                        │     Agent Communication Hub      │
                        │         localhost:3100           │
                        │                                  │
  ┌─────────┐  SSE/MCP  │  ┌──────┐ ┌──────┐ ┌────────┐  │  SSE/MCP  ┌─────────┐
  │ Claude  │◄─────────►│  │Auth  │ │Msg   │ │Memory  │  │◄─────────►│WorkBuddy│
  │ Code    │           │  │RBAC  │ │Bus   │ │FTS5    │  │           │         │
  └─────────┘           │  └──────┘ └──────┘ └────────┘  │           └─────────┘
                        │  ┌──────┐ ┌──────┐ ┌────────┐  │
  ┌─────────┐           │  │Task  │ │Orch  │ │Evol    │  │           ┌─────────┐
  │OpenClaw │◄─────────►│  │Sched │ │Str   │ │Engine  │  │◄─────────►│ Hermes  │
  └─────────┘           │  └──────┘ └──────┘ └────────┘  │           └─────────┘
                        └────────────┬────────────────────┘
                                     │
                              ┌──────▼──────┐     ┌─────────────┐
                              │   SQLite    │     │  Web Panel  │
                              │  (WAL 模式) │     │  /dashboard │
                              └─────────────┘     └─────────────┘

🔧 SDK 快速上手

Python — 零外部依赖

from hub_client import SynergyHubClient

hub = SynergyHubClient(hub_url="http://localhost:3100", agent_id="my-agent")
hub.set_token("your-api-token")

hub.send_message(to="other-agent", content="任务完成,交接。")     # 发消息
hub.store_memory(content="用户偏好 JSON", scope="collective")      # 存记忆
task = hub.create_task(title="评审 PR #42", assignee="claude-code") # 派任务
hub.share_experience(title="修复方案", content="...", category="debug") # 分享经验
hub.on_message = lambda msg: print(f"收到: {msg}")
hub.connect_sse()  # 实时监听

TypeScript — 零外部依赖

import { AgentClient } from "./client-sdk/agent-client.js";

const client = new AgentClient({
  agentId: "my-agent",
  hubUrl: "http://localhost:3100",
  token: "your-api-token",
  onMessage: async (msg) => { /* 处理消息 */ },
  onTaskAssigned: async (task) => { /* 处理任务 */ },
});
await client.start();
await client.sendMessage({ to: "other-agent", content: "搞定了!" });

🆚 对比其他方案

| 特性 | ACH | 自建 Webhook | 共享数据库 | 消息队列(RabbitMQ) | |------|:---:|:-----------:|:----------:|:-----------------:| | 5 分钟部署 | ✅ | ❌ | ❌ | ❌ | | MCP 原生支持 | ✅ | ❌ | ❌ | ❌ | | 共享记忆 + FTS5 搜索 | ✅ | ❌ | ❌ | ❌ | | 任务调度 + Pipeline | ✅ | ❌ | ❌ | ❌ | | 进化引擎(经验复用) | ✅ | ❌ | ❌ | ❌ | | 内置 Web 面板 | ✅ | ❌ | ❌ | ❌ | | 审计哈希链 | ✅ | ❌ | ❌ | ❌ | | 零外部服务 | ✅ | ✅ | ✅ | ❌ | | Python + TS SDK | ✅ | ❌ | ❌ | ❌ |


📦 部署方式

🐳 Docker(推荐,一键启动)

docker run -d -p 3100:3100 --name ach ghcr.io/liuboacean/agent-comm-hub

📦 Docker Compose(含 Prometheus + Grafana 监控)

cd deploy/
docker compose up -d
# Hub: http://localhost:3100  |  Grafana: http://localhost:3000 (admin/admin)

🔧 源码安装

git clone https://github.com/liuboacean/agent-comm-hub.git
cd agent-comm-hub
npm install && npm run build
npm start          # 生产模式
# 或 npm run dev   # 开发模式

🎯 作为 Skill 安装

# ClawHub
claw install agent-comm-hub

# SkillHub(30+ 平台)
skillhub install agent-comm-hub

⚠️ Node 版本要求(重要)

本项目依赖原生模块 better-sqlite3,它是按 Node 22(NODE_MODULE_VERSION 127)编译的。因此:

  • 🔒 运行 Hub(dist/src/server.js 或 dist/src/stdio.js)必须用 Node 22 启动。若使用 Node 24(或更高),会因 ABI 不匹配立即抛出 ERR_DLOPEN_FAILED 崩溃,无法启动。
  • 🧪 CI 中的 Node 24 仅用于跑单元测试(且涉及 stdio 启动的冒烟用例已条件化 skip)。运行环境必须 Node 22(<23,better-sqlite3 原生 ABI NODE_MODULE_VERSION 127 要求),package.json 的 engines.node 即声明为 ">=22 <23"。不要用 Node 24 跑服务,否则 better-sqlite3 会因 ABI 不匹配报 ERR_DLOPEN_FAILED 启动崩溃。
  • ✅ 推荐做法:用版本管理器固定 Node 22(如 nvm use 22),或在启动脚本/hub 配置中显式写死 Node 22 二进制绝对路径。

🔌 给 Agent 配置 MCP

Stdio(推荐)

{
  "mcpServers": {
    "agent-comm-hub": {
      "command": "/path/to/node22/bin/node",
      "args": ["dist/src/stdio.js"],
      "env": { "HUB_AUTH_TOKEN": "your-key", "DB_PATH": "./comm_hub.db" }
    }
  }
}

⚠️ 必须用 Node 22 二进制启动(例如绝对路径 /path/to/node22/bin/node),不要用 Node 24。本项目原生模块 better-sqlite3 是按 Node 22(NODE_MODULE_VERSION 127)编译的,使用 Node 24 启动 dist/src/stdio.js 或 dist/src/server.js 会立即 ERR_DLOPEN_FAILED ABI 崩溃。

HTTP + SSE

{
  "mcpServers": {
    "agent-comm-hub": { "url": "http://localhost:3100/mcp" }
  }
}

🛡️ 安全体系

| 层级 | 措施 | |:----|------| | 认证 | Token + SHA-256 哈希存储,原始 Token 不落盘 | | 授权 | 4 级 RBAC:public → member → group_admin → admin | | 审计 | 区块链式哈希链 prev_hash → record_hash,DB 触发器保障 | | 信任 | 自动评分,0-100 分影响策略审批等级 | | 网络 | CORS 白名单制 / X-Frame-Options / CSP / HSTS |


📁 项目结构

agent-comm-hub/
├── web/dist/index.html        # Web 管理面板(零前端框架)
├── src/                       # 核心源码(TypeScript)
│   ├── server.ts              # Express + SSE + MCP 入口
│   ├── db.ts                  # SQLite WAL 数据库
│   ├── backup.ts              # 自动备份模块
│   ├── identity.ts            # 注册 / 心跳 / RBAC
│   ├── memory.ts              # 三级记忆 + FTS5 搜索
│   ├── orchestrator.ts        # 依赖链 / Pipeline
│   ├── evolution.ts           # 经验共享 / 策略审批
│   └── security.ts            # Token / 审计 / CORS
├── client-sdk/
│   ├── hub_client.py          # Python SDK(68 方法,零依赖)
│   └── agent-client.ts        # TypeScript SDK(35 方法)
├── deploy/                    # Docker Compose + 监控
├── tests/                     # 288 个测试
└── docs/                      # 完整文档

📚 文档导航

| 文档 | 适合谁 | |------|--------| | API 参考 | 开发者(HTTP/SSE/MCP 端点 + Bearer 鉴权) | | 编排指南 | 搭 Pipeline 高级玩家 | | 进化引擎指南 | 实验性,欢迎 PR(计划从 A 层 evolution-guide.md 同步) | | Hermes 集成指南 | 实验性,欢迎 PR(计划从 A 层 hermes-integration-guide.md 同步) | | DB 三层防护 | 运维/稳定性保障 | | Agent 协调时序图 | 想看清「任务从 A 到 B 全自动流转、哪里卡 HITL」的人 | | English README | English speakers |

📌 文档同步说明(B 层为权威源):服务端仓库(agent-comm-hub-src)是文档的单一权威来源。当前 package.json 的 docs:sync 脚本依赖 scripts/sync-docs.ts,该文件尚未提供,因此 A 层 Skill 分发包(~/.workbuddy/skills/agent-comm-hub/)需手动同步:将本仓库的 docs/、SKILL.md、README.md 复制到 A 层对应位置。后续若补充 scripts/sync-docs.ts,可用 npm run docs:sync 自动同步。


🆕 更新历史

<details> <summary><strong>v3.0.24</strong> (2026-08-14) — 宿主执行器闭环收口(HostExecutor 注入)</summary>
  • ⚡ 真实宿主执行器(HostExecutor) — 新增 client-sdk/adapters/host-executor.ts,提供 LlmHostExecutor / HttpHostExecutor 参考实现,defaultHostExecutor() 按环境变量自动选择;AbstractHostTaskBridge 新增可注入 executor 字段
  • 🔧 消灭 setTimeout 占位 — WorkBuddy / Hermes 桥 runTask() 委托 this.executor.execute(),任务到达即触发宿主真实能力,自主执行闭环真正打通
  • 📝 文档 — docs/HOST_INTEGRATION.md §4 重写,含 HostExecutor 注入模型与自定义执行器示例
</details> <details> <summary><strong>v3.0.23</strong> (2026-08-14) — Agent 自主执行闭环 + 人在环授权</summary>
  • 🤖 Feature A:Agent 自主执行闭环 — 新增 AgentRuntime(client-sdk/runtime.ts),自动驱动 in_progress → execute() → completed/failed,含 inFlight 去重 / 崩溃恢复 / loopGuard,消灭人工「传话」
  • 🔐 Feature B:人在环授权队列 — 新增操作级授权(auth_requests

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars10
CategoryOperations
Updated23d ago
Forks0

Languages

TypeScript

Trust signals

97/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 info
agent-comm-hub — MCP Server: Install & Safety Check | SkillAgent