Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Agent Comm Hub

v2.2.1

多智能体协同通信基础设施——基于 MCP+SSE 的实时消息、任务调度、记忆共享与进化引擎。支持 WorkBuddy、Hermes、QClaw 及任意 MCP 兼容 Agent 接入。44 个 MCP 工具、4 级权限、零外部依赖 Python SDK。触发词:agent通信、智能体通信、hub通信、多智能体、跨...

0· 84·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for liuboacean/agent-comm-hub.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Agent Comm Hub" (liuboacean/agent-comm-hub) from ClawHub.
Skill page: https://clawhub.ai/liuboacean/agent-comm-hub
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install agent-comm-hub

ClawHub CLI

Package manager switcher

npx clawhub@latest install agent-comm-hub
Security Scan
Capability signals
Requires OAuth tokenRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The name/description (MCP+SSE agent hub, SDKs, 44 tools) matches the repository contents: server/SDKs/docs/examples are present. However there are small internal inconsistencies (e.g., README/SKILL.md claim 44 MCP tools while docs/API_REFERENCE header shows 40; SKILL.md version 2.2.0 vs registry version 2.2.1). The package includes server code and client SDKs that legitimately require building and running a local service — the requested artifacts are broadly proportional to the stated purpose.
!
Instruction Scope
Runtime instructions tell the user to run included shell scripts (scripts/install.sh, scripts/setup_agent.sh), clone/build the repo, run npm install and start a long‑running server and to save API tokens into a .env file. Those scripts will run arbitrary shell commands on the host and will create persistent state (SQLite DB, launchd/systemd service examples). The SKILL.md and README instruct storing/using API tokens but provide no explicit guidance on secure storage or encryption. Running the provided scripts without auditing their contents could execute unexpected actions or exfiltrate secrets.
!
Install Mechanism
No formal registry install spec is declared (instruction-only in registry) but the bundle includes install scripts and build steps that run npm install (pulling packages from public registries) and may clone from GitHub. Installing requires building/starting code that will be written to disk and run. The README references a GitHub repo (liuboacean/agent-comm-hub) but SKILL.md also uses placeholder clone URLs — this mismatch increases supply‑chain ambiguity. Using npm install / git clone is a moderate supply‑chain risk unless you verify the source and contents of the scripts.
Credentials
The skill declares no required environment variables or credentials in registry metadata (reasonable for a local hub). The runtime flow will produce and store API tokens (registration returns api_token) and asks users to save them to .env and to run a persistent service which stores data in a local SQLite file (comm_hub.db). That behavior is consistent with the hub's purpose but means secrets and tokens will be persisted locally — the documentation does not specify strong encryption/protection of the DB or .env.
Persistence & Privilege
The hub is explicitly a persistent network service (binds port 3100 by default) and docs provide launchd examples for system persistence. The skill is not flagged always:true and does not request special platform privileges in metadata, but installing/starting the hub will create long‑running processes and files (DB, logs, possible launch agent). This is expected for a server but increases blast radius (open port, stored tokens) and should be considered by users.
What to consider before installing
This skill appears to implement a local agent communication server and SDKs, but you should not blindly run its install/setup scripts. Before installing: - Inspect scripts/install.sh and scripts/setup_agent.sh line-by-line to ensure they don't download or execute unexpected remote code or exfiltrate data. - Verify the canonical repository URL and git commit/signature (the README references a GitHub repo; confirm it matches the skill source and owner). - Run npm install / build in an isolated environment (container or VM) and audit npm dependencies for supply‑chain risk. - Be aware tokens returned by registration are stored in .env and a SQLite DB (comm_hub.db); treat them as sensitive, avoid running the hub as root, and consider filesystem encryption or moving DB to a protected location. - If you need network exposure, restrict binding (keep localhost) and use firewall rules and CORS_ORIGINS configuration; review the docs about HOST/0.0.0.0 changes. - If you lack the ability to audit code, run the service in a sandboxed container with limited network access and volume mounts. If you want, I can list specific lines to check in the install/setup scripts (if provided) and summarize any risky commands found.

Like a lobster shell, security has layers — review code before you run it.

communicationvk976t5w049adp8pn2gn0d4p32d85n2gjevolutionvk976t5w049adp8pn2gn0d4p32d85n2gjlatestvk976t5w049adp8pn2gn0d4p32d85n2gjmcpvk976t5w049adp8pn2gn0d4p32d85n2gjmemoryvk976t5w049adp8pn2gn0d4p32d85n2gjmulti-agentvk976t5w049adp8pn2gn0d4p32d85n2gjpython-sdkvk976t5w049adp8pn2gn0d4p32d85n2gjrbacvk976t5w049adp8pn2gn0d4p32d85n2gjssevk976t5w049adp8pn2gn0d4p32d85n2gjtask-orchestrationvk976t5w049adp8pn2gn0d4p32d85n2gjtypescript-sdkvk976t5w049adp8pn2gn0d4p32d85n2gj
84downloads
0stars
3versions
Updated 4h ago
v2.2.1
MIT-0

Agent Communication Hub v2.2

多智能体实时通信、任务编排、记忆共享与协同进化基础设施

共享记忆,共同进化

让两个或多个独立 AI 智能体实现实时双向通信任务自动调度记忆共享协同进化。基于 MCP 协议 + SSE 推送,消息零丢失,延迟 < 50ms。

架构

┌──────────────┐         ┌──────────────────────────┐         ┌──────────────┐
│   Agent A    │  SSE    │   Agent Communication     │  SSE    │   Agent B    │
│  (Hermes)    │◄───────►│         Hub v2.2          │◄───────►│  (WorkBuddy) │
│              │  MCP    │    (localhost:3100)        │  MCP    │              │
└──────────────┘◄───────►│                          │◄───────►└──────────────┘
                       └──────────┬───────────────┘
                                  │
                             SQLite (WAL)

三层协议

协议用途
MCP 工具层HTTP POST + JSON-RPC结构化操作(44 个工具)
SSE 推送层Server-Sent Events实时事件通知(含断线重连)
REST API 层HTTP GET/PATCH健康检查、Prometheus 指标

44 个 MCP 工具一览

1. Identity 身份管理(6 个)

工具权限功能
register_agentpublic邀请码注册,获取 agent_id + token
heartbeatmember心跳上报,维持在线状态
query_agentsmember查询 Agent 列表(状态/角色/能力筛选)
get_online_agentsmember获取在线 Agent 列表
set_agent_roleadmin任命/撤销角色(admin/member/group_admin)
recalculate_trust_scoresadmin手动触发信任分重算

2. Message 消息(5 个)

工具权限功能
send_messagemember点对点消息,自动去重 + SSE 推送
broadcast_messagemember群发消息给多个 Agent
acknowledge_messagemember确认已读
search_messagesmemberFTS5 全文搜索消息
mark_consumed / check_consumedmember消费水位线,防重复处理

3. Task 任务(4 个)

工具权限功能
assign_taskmember创建并分配任务(7 状态状态机)
update_task_statusmember更新任务进度(自动通知发起方)
get_task_statusmember查询任务详情
create_pipeline / get_pipeline / list_pipelines / add_task_to_pipelinememberPipeline 线性容器管理

4. Memory 记忆(4 个)

工具权限功能
store_memorymember存储记忆(private/team/global)
recall_memorymemberFTS5 N-gram 搜索记忆
list_memoriesmember列出记忆(scope 筛选)
search_memoriesmember全文搜索记忆

5. Evolution 进化引擎(11 个)

工具权限功能
share_experiencemember分享经验(免审批直接发布)
propose_strategymember提议策略(需审批)
propose_strategy_tieredmember4 级自动分级审批策略
check_veto_windowmember检查策略否决窗口
approve_strategyadmin审批策略
veto_strategyadmin否决策略
list_strategiesmember列出策略
search_strategiesmember搜索策略
apply_strategymember采纳策略
feedback_strategymember策略反馈(防刷)
get_evolution_statusmember进化引擎状态统计

6. Orchestration 编排(10 个)

工具权限功能
add_dependencymember任务依赖链(DFS 环检测)
remove_dependencymember删除依赖
get_task_dependenciesmember查询依赖树
create_parallel_groupmember并行任务组
request_handoffmember请求任务交接
accept_handoffmember接受交接
reject_handoffmember拒绝交接
add_quality_gatememberPipeline 质量门
evaluate_quality_gatemember评估质量门
set_trust_scoreadmin手动调整信任分

7. Token 管理(2 个)

工具权限功能
revoke_tokenadmin吊销 Agent token

权限模型

角色说明能力
public未认证register_agent
member已注册 Agent全部工具(除 admin 专属)
group_admin并行组管理员member + 管理所属 parallel_group
admin系统管理员全部工具 + 角色任命 + 信任分调整

任务状态机

inbox → assigned → waiting → in_progress → completed
                                └──→ failed
                                └──→ cancelled
  • waiting:有未完成的上游依赖,自动阻塞
  • in_progress:Agent 开始执行
  • 状态变更自动通过 SSE 通知相关 Agent

信任评分

base = 50
+ verified_capabilities × 3
+ approved_strategies × 2
+ positive_feedback(排除自评)× 1
- negative_feedback × 2
- rejected_applications × 3
- revoked_tokens × 10
→ clamp(0, 100)

信任分影响策略审批 tier:trust≥90 可自动通过,trust≥60 可 peer 审批。

SSE 事件

事件触发时机
message新消息
task_assigned任务分配
task_completed任务完成
strategy_approved策略审批通过
handoff_requested/accepted/rejected任务交接
quality_gate_failed质量门未通过
role_changed角色变更(Phase 5a)
trust_score_changed信任分变化(Phase 5a)
hub_shutdown服务器关闭

SSE 支持断线重连:客户端发送 Last-Event-ID,Hub 从该 ID 之后补发。

快速开始

1. 安装 Hub 服务器

# 运行一键安装脚本(从 GitHub 克隆 + 构建)
bash ~/.workbuddy/skills/agent-comm-hub/scripts/install.sh

# 或手动安装
git clone <repo-url> ~/agent-comm-hub
cd ~/agent-comm-hub
npm install && npm run build
npm start           # 生产模式,端口 3100
# 或 npm run dev     # 开发模式(热重载)

2. 注册 Agent

# 使用自动化脚本
bash ~/.workbuddy/skills/agent-comm-hub/scripts/setup_agent.sh "my-agent" "mcp,message,memory"

# 输出:agent_id + api_token,保存到 .env

3. 配置 MCP 连接(推荐)

在 Agent 的 MCP 配置中添加:

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

Agent 的 LLM 可以直接调用全部 44 个工具。

4. 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.heartbeat()
hub.send_message(to="other-agent", content="Hello!")
hub.store_memory(content="重要信息", scope="collective")
hub.share_experience(title="踩坑记录", content="...", category="experience")
hub.on_message = lambda msg: print(f"收到: {msg}")
hub.connect_sse()  # 阻塞,SSE 长连接

TypeScript

import { AgentClient } from "./client-sdk/agent-client.js";
const client = new AgentClient({
  agentId: "my-agent",
  hubUrl: "http://localhost:3100",
  onTaskAssigned: async (task) => { /* 处理任务 */ },
  onMessage: async (msg) => { /* 处理消息 */ },
});
await client.start();

5. 验证

# 健康检查
curl http://localhost:3100/health

# Prometheus 指标
curl http://localhost:3100/metrics

文件结构

agent-comm-hub/                    # Skill 目录(轻量,< 1MB)
├── SKILL.md                       # 本文件
├── scripts/
│   ├── install.sh                 # 一键安装 Hub 服务器
│   └── setup_agent.sh             # Agent 注册 + 认证自动化
├── client-sdk/
│   ├── hub_client.py              # Python SDK(39 个 async 方法,零依赖)
│   ├── agent-client.ts            # TypeScript SDK(35 个公开方法)
│   └── agent-client.js            # 编译后的 JS
├── docs/
│   ├── API_REFERENCE.md           # 完整 API 文档 v2.2
│   ├── SETUP_GUIDE.md             # 详细部署指南
│   ├── orchestrator-guide.md      # 进阶编排指南
│   ├── evolution-guide.md         # 进化引擎指南
│   └── TROUBLESHOOTING.md         # 踩坑经验
└── examples/
    ├── workbuddy-mcp.json         # WorkBuddy MCP 配置示例
    ├── hermes-mcp.json            # Hermes MCP 配置示例
    └── qclaw_bridge.py            # QClaw 桥接示例

环境变量

变量默认值说明
PORT3100Hub 监听端口
LOG_LEVELinfo日志级别:debug / info / warn / error
CORS_ORIGINS(空)CORS 白名单(逗号分隔),空=拒绝所有跨域

运维端点

端点方法说明
/healthGET健康检查(版本、内存、DB、SSE 连接数)
/metricsGETPrometheus 格式指标

安全特性(Phase 5a)

  • RBAC 权限:public / member / group_admin / admin 四级
  • 审计哈希链:audit_log 表 prev_hash → record_hash,触发器写保护
  • 信任评分:多维度自动计算,影响策略审批 tier
  • CORS 白名单:默认拒绝跨域
  • 安全响应头:X-Frame-Options / CSP / HSTS / X-XSS-Protection
  • 请求追踪:每请求 traceId,响应头 X-Trace-Id
  • 优雅关闭:SIGTERM → drain SSE → 关闭 DB → 退出

踩坑经验速查

#场景要点
1MCP 多 Client必须用 Stateless 模式
2MCP Accept Header必须带 Accept: application/json, text/event-stream
3Python SDK agent_idSynergyHubClient 必须传 agent_id,否则 send_message 的 from 为 null
4REST vs MCP 认证REST /api/messages 不接受 MCP Token,用 MCP search_messages 工具替代
5get_online_agents返回 List[str](agent_id 列表),不是对象列表
6SSE 断线重连客户端发送 Last-Event-ID,Hub 用 listSince 补发
7FTS5 中文默认 tokenizer 对中文差,用 N-gram 预分词
8better-sqlite3不支持 JS boolean,必须 1/0;undefined 必须用 null

技术依赖

Hub 服务器:Node.js 18+、@modelcontextprotocol/sdk、express、better-sqlite3、zod

Python SDK:Python 3.9+,零外部依赖(纯标准库)

TS SDK:Node.js 18+,零外部依赖(原生 fetch)

许可

MIT

Comments

Loading comments...