🧠

多模型并行认知增强协议

openclaw-multi-brain · v5.3
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(HAS_SCRIPTS,NO_FRONTMATTER)。我们仍保留下载,方便你自行查看内容。
AI 增强 安全 A 级 作者 Dannydvm 公开目录收录
2k 下载 694 安装 5.8k 收藏 7k 浏览

简介

基于OpenClaw Hook架构,并行调用Kimi与GPT为多智能体提供认知多样性视角,有效消除模型偏见并增强决策质量。

原始描述

Runs Kimi K2.5 and GPT 5.3 Codex in parallel pre-turn hook, injecting their perspectives for cognitive diversity before primary agent responds.

通过你的 Agent 添加

安装目录:openclaw-multi-brain/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/openclaw-multi-brain/
Codex CLI~/.codex/skills/openclaw-multi-brain/
DeepSeek Harness~/.agents/skills/openclaw-multi-brain/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Multi-Brain Protocol 是一套系统级多模型协作机制。用户在消息开头输入 mb 即可触发:系统并行调用 Kimi K2.5 和 GPT 5.3 Codex 获取多元视角,主模型(Claude Opus 4.6)综合三方观点后输出最终答案。对AI Agent而言完全透明——通过 turn:before 钩子自动注入,无需手动操作。

显著优点

  • 认知多样性覆盖:三种不同架构(Claude/Kimi/GPT)带来训练数据、推理风格与安全边界的互补
  • 偏见自动对冲:单一模型的系统性盲区可被其他模型视角抵消
  • 按需付费:仅 keyword 触发时消耗额外 token,支持 hybrid/auto 模式灵活配置
  • Fail-Open 韧性:任一外部LLM故障不影响主流程继续运行
  • 零依赖架构:纯 Node.js 内置模块实现,无第三方依赖供应链风险

潜在局限

  • 延迟成本:并行调用增加 4-5 秒响应时间,不适用于实时场景
  • 隐私外溢:用户消息经截断(1000字符)后发送至 Moonshot/OpenAI/Groq 第三方服务
  • 配置门槛:需分别配置 Moonshot API key 与 Codex CLI OAuth,新手上手成本较高
  • T3来源:个人开发者维护,长期更新持续性存疑

适合人群

  • AI Agent 开发者:需要系统级多模型校验,而非应用层手动调用
  • 高风险决策场景:法律、医疗、财务等需要多源交叉验证的专业领域
  • 企业合规用户:愿意承担数据出境风险以换取更高输出质量的场景
  • 隐私敏感度低:公开信息或非敏感业务查询的用户

常规风险

风险类型 详情 缓解建议
数据出境 消息发送至境外云服务 启用本地 Ollama 模式替代
延迟累积 每次触发 +5s 响应 hybrid 模式减少触发频率
路径硬编码 残留开发环境绝对路径 手动修改为环境变量配置
审计日志 本地磁盘持续写入 配置日志轮转策略

推荐配置:keyword 模式 + Ollama 本地后端,兼顾安全与功能。

技能正文

Multi-Brain Protocol

What it does: Gives your AI agents cognitive diversity by calling multiple LLMs (Kimi K2.5 + GPT 5.3 Codex) in parallel before the primary agent responds. Three brains instead of one.

For Agents

Multi-Brain is system-enforced via a turn:before hook. No manual steps needed.

When triggered (user types mb as first word), the hook:

  1. Calls Kimi K2.5 and GPT 5.3 Codex in parallel
  2. Injects their perspectives into your system context
  3. You synthesize all viewpoints into your response
  4. Never mention the other AIs to the user

Perspectives appear in your context as:

[KIMI K2.5 PERSPECTIVE]
<perspective text>

[CODEX 5.3 PERSPECTIVE]
<perspective text>

For Humans

Setup

  1. Install the hook:
mkdir -p hooks/turn-preflight
# Copy HOOK.md and handler.js from this package
  1. Set Kimi API key:
echo "your-moonshot-api-key" > .kimi-api-key
  1. Install Codex CLI:
npm install -g @openai/codex
codex auth   # OAuth login
  1. Enable in openclaw.json:
{
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "turn-preflight": { "enabled": true }
      }
    }
  }
}

Trigger Modes

Configure TRIGGER_MODE in handler.js:

Mode Behavior
keyword (default) Only fires when mb or multibrain is the first word
hybrid Keyword forces it, auto on messages >50 chars
auto Fires on every message (token-expensive)

LLMs

LLM Role Provider Latency
Claude Opus 4.6 Primary agent OpenClaw (Anthropic) n/a
Kimi K2.5 Second perspective Moonshot API ~5s
GPT 5.3 Codex Third perspective codex exec CLI ~4s

Architecture

User types: "mb should we change pricing?"
    |
    v
[turn:before hook detects "mb" keyword]
    |
    +---> Kimi K2.5 (Moonshot API, parallel)
    +---> GPT 5.3 Codex (CLI, parallel)
    |
    v (~5s combined)
[Perspectives injected into system content]
    |
    v
Claude Opus 4.6 responds with all 3 viewpoints

Benefits

  • Cognitive diversity: three different AI architectures
  • Bias mitigation: different training data and approaches
  • On-demand: only burns tokens when you ask for it
  • Fail-open: if any LLM fails, the others still work
  • System-enforced: no protocol compliance needed from agents

Source: https://github.com/Dannydvm/openclaw-multi-brain

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

apidevelopment-engineeringproductivityautomationbackend

同类 Skill