Skip to content

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通信、记忆共享、进化引擎、策略共享、经验分享、共享记忆,共同进化

FileKindSize
.clawhub/origin.jsonconfig146 B
API_REFERENCE.mdmarkdown18.4 KB
HERMES-SETUP.mdmarkdown5.5 KB
README.mdmarkdown8.8 KB
SKILL.mdskill md16.4 KB
_meta.jsonconfig133 B
client-sdk/agent-client.d.tsscript11.6 KB
client-sdk/agent-client.jsscript28.6 KB
client-sdk/agent-client.tsscript29.8 KB
client-sdk/hermes-integration.d.tsscript785 B
client-sdk/hermes-integration.jsscript6.3 KB
client-sdk/hermes-integration.tsscript6.1 KB
client-sdk/hub_client.pyscript50.8 KB
client-sdk/workbuddy-integration.d.tsscript11 B
client-sdk/workbuddy-integration.jsscript4.3 KB
client-sdk/workbuddy-integration.tsscript4.2 KB
deploy/docker-compose.ymlconfig2.0 KB
deploy/grafana/dashboard.jsonconfig16.4 KB
deploy/grafana/provisioning/dashboards/dashboards.ymlconfig258 B
deploy/grafana/provisioning/datasources/prometheus.ymlconfig186 B
deploy/prometheus.ymlconfig408 B
docs/advanced-orchestration-guide.mdmarkdown11.8 KB
docs/evolution-engine-guide.mdmarkdown16.6 KB
docs/hermes-integration-guide.mdmarkdown22.3 KB
package-lock.jsonmanifest139.0 KB
package.jsonmanifest861 B
scripts/hub_task_runner.pyscript6.0 KB
scripts/hub_watcher.pyscript13.9 KB
scripts/install.shscript549 B
scripts/migrate_evolution_db.pyscript6.5 KB
scripts/migrate_from_agent.jsscript2.5 KB
scripts/wb_task_trigger.pyscript2.2 KB
src/db.d.tsscript3.7 KB
src/db.jsscript34.0 KB
src/db.tsscript37.4 KB
src/dedup.d.tsscript2.4 KB
src/dedup.jsscript8.5 KB
src/dedup.tsscript8.7 KB
src/errors.tsscript3.4 KB
src/evolution.d.tsscript6.6 KB
src/evolution.jsscript26.4 KB
src/evolution.tsscript31.0 KB
src/identity.d.tsscript3.4 KB
src/identity.jsscript15.9 KB
src/identity.tsscript17.1 KB
src/logger.d.tsscript1.1 KB
src/logger.jsscript2.8 KB
src/logger.tsscript3.5 KB
src/memory.d.tsscript2.1 KB
src/memory.jsscript13.0 KB
src/memory.tsscript14.3 KB
src/metrics.d.tsscript1.8 KB
src/metrics.jsscript8.4 KB
src/metrics.tsscript9.1 KB
src/orchestrator.d.tsscript6.1 KB
src/orchestrator.jsscript30.4 KB
src/orchestrator.tsscript33.4 KB
src/repo/interfaces.d.tsscript3.6 KB
src/repo/interfaces.jsscript49 B
src/repo/interfaces.tsscript4.2 KB
src/repo/sqlite-impl.d.tsscript225 B
src/repo/sqlite-impl.jsscript7.7 KB
src/repo/sqlite-impl.tsscript8.8 KB
src/repo/types.d.tsscript1021 B
src/repo/types.jsscript116 B
src/repo/types.tsscript1.6 KB
src/security.d.tsscript3.7 KB
src/security.jsscript15.0 KB
src/security.tsscript16.4 KB
src/server.d.tsscript11 B
src/server.jsscript24.7 KB
src/server.tsscript24.7 KB
src/sse.d.tsscript1.6 KB
src/sse.jsscript3.3 KB
src/sse.tsscript3.6 KB
src/stdio.d.tsscript11 B
src/stdio.jsscript1.7 KB
src/stdio.tsscript1.6 KB
src/tokenizer.d.tsscript1.3 KB
src/tokenizer.jsscript3.4 KB
src/tokenizer.tsscript3.2 KB
src/tools.d.tsscript474 B
src/tools.jsscript1.1 KB
src/tools.tsscript1.3 KB
src/tools/consumed.d.tsscript361 B
src/tools/consumed.jsscript5.5 KB
src/tools/consumed.tsscript5.3 KB
src/tools/evolution.d.tsscript660 B
src/tools/evolution.jsscript19.3 KB
src/tools/evolution.tsscript17.6 KB
src/tools/file.d.tsscript348 B
src/tools/file.jsscript7.1 KB
src/tools/file.tsscript6.5 KB
src/tools/identity.d.tsscript438 B
src/tools/identity.jsscript9.8 KB
src/tools/identity.tsscript9.3 KB
src/tools/memory.d.tsscript410 B
src/tools/memory.jsscript11.9 KB
src/tools/memory.tsscript10.8 KB
src/tools/message.d.tsscript467 B
src/tools/message.jsscript17.2 KB
src/tools/message.tsscript15.8 KB
src/tools/orchestrator.d.tsscript746 B
src/tools/orchestrator.jsscript27.8 KB
src/tools/orchestrator.tsscript24.3 KB
src/tools/security.d.tsscript386 B
src/tools/security.jsscript9.0 KB
src/tools/security.tsscript7.8 KB
src/types.tsscript5.9 KB
src/utils.d.tsscript421 B
src/utils.jsscript1.3 KB
src/utils.tsscript3.0 KB
tsconfig.jsonconfig337 B
vitest.config.tsscript1.2 KB

src/evolution.d.ts

View on GitHub
export interface Strategy {
    id: number;
    title: string;
    content: string;
    category: "experience" | "workflow" | "fix" | "tool_config" | "prompt_template" | "other";
    sensitivity: "normal" | "high";
    proposer_id: string;
    status: "pending" | "approved" | "rejected" | "withdrawn";
    approve_reason: string | null;
    approved_by: string | null;
    approved_at: number | null;
    proposed_at: number;
    task_id: string | null;
    source_trust: number;
    apply_count: number;
    feedback_count: number;
    positive_count: number;
}
export interface StrategyFeedback {
    strategy_id: number;
    agent_id: string;
    feedback: "positive" | "negative" | "neutral";
    comment: string | null;
    applied: number;
    created_at: number;
}
export interface StrategyApplication {
    strategy_id: number;
    agent_id: string;
    context: string | null;
    result: string | null;
    created_at: number;
}
export interface EvolutionStats {
    total_experiences: number;
    total_strategies: number;
    pending_approval: number;
    approved_count: number;
    rejected_count: number;
    total_applications: number;
    total_feedback: number;
    positive_feedback: number;
    approved_rate: number;
    top_contributors: Array<{
        agent_id: string;
        count: number;
        trust_score: number;
    }>;
    recent_approved: Strategy[];
}
/**
 * 分享经验(直接 approved,不需审批)
 */
export declare function shareExperience(title: string, content: string, proposerId: string, options?: {
    tags?: string[];
    task_id?: string;
}): {
    ok: true;
    strategy: Strategy;
} | {
    ok: false;
    error: string;
};
/**
 * 提议策略(pending,需 admin 审批)
 */
export declare function proposeStrategy(title: string, content: string, category: "workflow" | "fix" | "tool_config" | "prompt_template" | "other", proposerId: string, options?: {
    task_id?: string;
}): {
    ok: true;
    strategy: Strategy;
    sensitivity: string;
} | {
    ok: false;
    error: string;
};
/**
 * 策略列表查询
 */
export declare function listStrategies(options?: {
    status?: "pending" | "approved" | "rejected" | "all";
    category?: "experience" | "workflow" | "fix" | "tool_config" | "prompt_template" | "other" | "all";
    proposer_id?: string;
    limit?: number;
}): Strategy[];
/**
 * FTS5 搜索策略(仅返回 approved 策略)
 */
export declare function searchStrategies(query: string, options?: {
    category?: string;
    limit?: number;
}): Strategy[];
/**
 * 采纳策略(仅 approved 策略可采纳)
 */
export declare function applyStrategy(strategyId: number, agentId: string, options?: {
    context?: string;
}): {
    ok: true;
    application_id: number;
} | {
    ok: false;
    error: string;
};
/**
 * 对策略反馈(UNIQUE 防刷)
 */
export declare function feedbackStrategy(strategyId: number, agentId: string, feedback: "positive" | "negative" | "neutral", options?: {
    comment?: string;
    applied?: boolean;
}): {
    ok: true;
    feedback_id: number;
} | {
    ok: false;
    error: string;
};
/**
 * admin 审批策略(approve/reject)
 */
export declare function approveStrategy(strategyId: number, adminId: string, action: "approve" | "reject", reason: string): {
    ok: true;
    strategy: Strategy;
} | {
    ok: false;
    error: string;
};
/**
 * 进化指标统计
 */
export declare function getEvolutionStatus(): EvolutionStats;
/** 审批等级 */
export type ApprovalTier = "auto" | "peer" | "admin" | "super";
export interface TieredStrategy extends Strategy {
    approval_tier: ApprovalTier | null;
    observation_start: number | null;
    veto_deadline: number | null;
}
export interface TierJudgment {
    tier: ApprovalTier;
    reason: string;
    trust_score: number;
    sensitivity: "normal" | "high";
    history_count: number;
}
/**
 * 判定策略审批等级
 *
 * 4 级 tier 规则:
 * 1. super: sensitivity=high → 需人工审批(最高权限)
 * 2. auto: trust≥90 + sensitivity=normal + 历史≥5 → 自动通过 + 72h 观察窗口
 * 3. peer: trust≥60 + sensitivity=normal + 历史≥2 → peer 审批
 * 4. admin: 其他 → admin 审批
 */
export declare function judgeTier(proposerId: string, category: string, content: string): TierJudgment;
/**
 * 自动通过策略(auto tier)
 * 设置 approved + 启动 72h 观察窗口
 */
export declare function autoApprove(strategyId: number): {
    ok: true;
    strategy: TieredStrategy;
} | {
    ok: false;
    error: string;
};
/**
 * 启动观察窗口(peer tier 策略被 peer 审批通过后调用)
 * 72h 观察窗口内如果负面反馈超过阈值,策略可被撤回
 */
export declare function startObservation(strategyId: number, approverId: string): {
    ok: true;
    strategy: TieredStrategy;
    veto_deadline: number;
} | {
    ok: false;
    error: string;
};
/**
 * 检查否决窗口(48h)
 * 在否决窗口内,如果负面反馈超过正面反馈的 50%,任何 admin 可以撤回策略
 */
export declare function checkVetoWindow(strategyId: number): {
    in_window: boolean;
    can_veto: boolean;
    negative_count: number;
    positive_count: number;
    veto_ratio: number;
    veto_deadline: number | null;
    observation_start: number | null;
};
/**
 * 撤回处于否决窗口内的策略
 */
export declare function vetoStrategy(strategyId: number, adminId: string, reason: string): {
    ok: true;
    strategy: Strategy;
} | {
    ok: false;
    error: string;
};
/**
 * 分级策略提议(统一入口)
 * 自动判定 tier 并执行对应流程
 */
export declare function proposeStrategyTiered(title: string, content: string, category: "workflow" | "fix" | "tool_config" | "prompt_template" | "other", proposerId: string, options?: {
    task_id?: string;
}): {
    ok: true;
    strategy: TieredStrategy;
    tier: ApprovalTier;
    sensitivity: string;
    auto_approved: boolean;
    veto_deadline: number | null;
} | {
    ok: false;
    error: string;
};
/**
 * 提供反馈(UPSERT 版本)— 用于自动创建反馈占位和后续更新
 * 与 feedbackStrategy 不同:使用 ON CONFLICT DO UPDATE 而非拒绝重复
 */
export declare function provideFeedback(params: {
    strategyId: number;
    agentId: string;
    feedback: string;
    comment?: string;
    applied?: number;
}): {
    id: number;
};
/**
 * 自动评分已采纳策略
 * 将 7 天内仍为 neutral 反馈的策略降为 negative(无实际效果证据)
 * 应由 cron 或清理任务定期调用
 */
export declare function scoreAppliedStrategies(): {
    scored: number;
    details: Array<{
        strategyId: number;
        title: string;
        action: string;
    }>;
};
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall