Search

PythonReactSEOPDF
OpenClaw

Openclaw Multi Brain

Multi Brain Protocol

dannydvm0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install dannydvm/openclaw-multi-brain

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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)
[Perspecti...

Source information

Source
github
Repository
openclaw/skills
Path
skills/dannydvm/openclaw-multi-brain
Version
—
Commit
724fb8a855e3d51ff30a9bc3055395d9f2821e75
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

🧬 openclaw-multi-brain

Multi-LLM perspective synthesis for OpenClaw agents via hooks.

Give your AI agents cognitive diversity by generating perspectives from multiple LLMs (Kimi K2.5 + GPT 5.3 Codex) before the primary agent responds. Three brains instead of one.

Architecture

Uses OpenClaw's turn:before hook to intercept every qualifying message and call external LLMs in parallel.

User Message (with "mb" prefix)
    |
    v
[turn:before hook fires]
    |
    +---> Kimi K2.5 (Moonshot API, ~5s)
    +---> GPT 5.3 Codex (codex exec CLI, ~4s)
    |     (parallel)
    v
[Perspectives injected into system content]
    |
    v
Claude Opus 4.6 responds with all 3 viewpoints synthesized

System-enforced. No protocol compliance needed. Fail-open.

Trigger System

Multi-brain only fires when triggered. Default mode is keyword-only.

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)

Examples:

  • mb should we change pricing? -> fires, AIs see "should we change pricing?"
  • need a 500mb upload -> does NOT fire (mb is not first word)
  • hey check this out -> does NOT fire (no keyword)

Quick Start

1. Create hook directory
mkdir -p /path/to/workspace/hooks/turn-preflight
2. Add HOOK.md
---
name: turn-preflight
description: "Multi-Brain: Kimi K2.5 + Codex 5.3 perspectives before every agent turn"
metadata:
  openclaw:
    emoji: "🧬"
    events: ["turn:before"]
    handler: "handler.js"
    install: [{ id: "workspace", kind: "workspace", label: "Workspace hook" }]
---
3. Add handler.js

Copy hooks/turn-preflight/handler.js from this repo.

4. Set Kimi API key
echo "your-moonshot-api-key" > /path/to/workspace/.kimi-api-key
5. Install Codex CLI
npm install -g @openai/codex
codex auth   #...

Extracted content

SKILL.md
# 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:
```bash
mkdir -p hooks/turn-preflight
# Copy HOOK.md and handler.js from this package
```

2. Set Kimi API key:
```bash
echo "your-moonshot-api-key" > .kimi-api-key
```

3. Install Codex CLI:
```bash
npm install -g @openai/codex
codex auth   # OAuth login
```

4. Enable in openclaw.json:
```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)
[Perspecti...
README
# 🧬 openclaw-multi-brain

**Multi-LLM perspective synthesis for OpenClaw agents via hooks.**

Give your AI agents cognitive diversity by generating perspectives from multiple LLMs (Kimi K2.5 + GPT 5.3 Codex) before the primary agent responds. Three brains instead of one.

## Architecture

Uses OpenClaw's `turn:before` hook to intercept every qualifying message and call external LLMs in parallel.

```
User Message (with "mb" prefix)
    |
    v
[turn:before hook fires]
    |
    +---> Kimi K2.5 (Moonshot API, ~5s)
    +---> GPT 5.3 Codex (codex exec CLI, ~4s)
    |     (parallel)
    v
[Perspectives injected into system content]
    |
    v
Claude Opus 4.6 responds with all 3 viewpoints synthesized
```

**System-enforced. No protocol compliance needed. Fail-open.**

## Trigger System

Multi-brain only fires when triggered. Default mode is **keyword-only**.

| 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) |

**Examples:**
- `mb should we change pricing?` -> fires, AIs see "should we change pricing?"
- `need a 500mb upload` -> does NOT fire (mb is not first word)
- `hey check this out` -> does NOT fire (no keyword)

## Quick Start

### 1. Create hook directory
```bash
mkdir -p /path/to/workspace/hooks/turn-preflight
```

### 2. Add HOOK.md
```yaml
---
name: turn-preflight
description: "Multi-Brain: Kimi K2.5 + Codex 5.3 perspectives before every agent turn"
metadata:
  openclaw:
    emoji: "🧬"
    events: ["turn:before"]
    handler: "handler.js"
    install: [{ id: "workspace", kind: "workspace", label: "Workspace hook" }]
---
```

### 3. Add handler.js
Copy `hooks/turn-preflight/handler.js` from this repo.

### 4. Set Kimi API key
```bash
echo "your-moonshot-api-key" > /path/to/workspace/.kimi-api-key
```

### 5. Install Codex CLI
```bash
npm install -g @openai/codex
codex auth   #...

Related skills

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

parakeet-stt

carlulsoe

Local speech-to-text with NVIDIA Parakeet TDT 0.6B v3 (ONNX on CPU). 30x faster than Whisper, 25 languages, auto-detection, OpenAI-compatible API. Use when transcribing audio files, converting speech to text, o...

OpenClaw

feishu-process-feedback

carlzhao007

飞书消息自动处理与进度反馈技能。安装后后台运行,监听飞书任务消息并自动创建独立进程处理。 在处理前后发送实时进度反馈(任务确认、进度百分比、完成通知)。 支持任务类型识别、智能解析、错误重试、并发控制、状态持久化...