LeoYeAI/agent-master-skills / skills/agent-comm-hub
agent-comm-hub
Flagged多智能体协同通信基础设施——基于 MCP+SSE 的实时消息、任务调度、记忆共享与进化引擎。支持 WorkBuddy、Hermes、QClaw 及任意 MCP 兼容 Agent 接入。53 个 MCP 工具、4 级权限、零外部依赖 Python SDK。触发词:agent通信、智能体通信、hub通信、多智能体、跨agent通信、任务调度、assign_task、send_message、hermes通信、workbuddy通信、agent hub、通信hub、mcp通信、记忆共享、进化引擎、策略共享、经验分享、共享记忆,共同进化
src/memory.d.ts
View on GitHubexport interface MemoryEntry {
id: string;
agent_id: string;
title: string | null;
content: string;
scope: "private" | "group" | "collective";
tags: string | null;
source_agent_id: string | null;
source_task_id: string | null;
created_at: number;
updated_at: number | null;
}
export interface MemoryStats {
total: number;
by_agent: Record<string, number>;
by_scope: Record<string, number>;
fts_entries: number;
}
/**
* 存储新记忆
*
* @returns
* - { ok: true, memory } — 成功
* - { ok: false, error } — 失败
*/
export declare function storeMemory(agentId: string, content: string, options?: {
title?: string;
scope?: "private" | "group" | "collective";
tags?: string[];
source_agent_id?: string;
source_task_id?: string;
}): {
ok: true;
memory: MemoryEntry;
} | {
ok: false;
error: string;
};
/**
* 通过全文搜索召回记忆
*
* 搜索范围:
* - private: 仅本人的记忆
* - group: scope=group 或 scope=collective 的记忆
* - collective: scope=collective 的记忆
*
* @param query 搜索关键词(FTS5 query syntax)
* @param agentId 查询者 ID(用于 scope 过滤)
* @param options 可选参数
* @returns 匹配的记忆列表
*/
export declare function recallMemory(query: string, agentId: string, options?: {
limit?: number;
scope?: "private" | "group" | "collective" | "all";
}): MemoryEntry[];
/**
* 列出 Agent 的记忆
*/
export declare function listMemories(agentId: string, options?: {
scope?: "private" | "group" | "collective" | "all";
limit?: number;
offset?: number;
}): MemoryEntry[];
/**
* 删除记忆
* 仅允许删除自己的记忆,或 admin 删除任何记忆
*/
export declare function deleteMemory(memoryId: string, agentId: string, role: string): {
ok: true;
deleted: boolean;
} | {
ok: false;
error: string;
};
/**
* 获取记忆统计信息
*/
export declare function getMemoryStats(): MemoryStats;
/**
* 为所有已有 memories 重建 FTS 索引(Phase 2 Migration)
* 在 server.ts 启动时调用一次
*/
export declare function rebuildFtsIndex(): void;
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |