Skip to content
Back to skills

Openclaw Multi Brain

ASecurity

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

  • 14 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 7, 2026
ai-agentsbashgitapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill openclaw-multi-brain --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openclaw Multi Brain?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openclaw Multi Brain
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-openclaw-multi-brain/badge)](https://www.skillsdirectory.com/skills/modbender-openclaw-multi-brain)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Multi-Brain Protocol
description: Multi-Brain is system-enforced via a turn:before hook. No manual steps needed.
---

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

Files in this skill

  • BUILD-SUMMARY.md8.5 KB
  • CHANGELOG.md2.7 KB
  • QUICKSTART.md4.7 KB
  • README.md3.5 KB
  • SKILL.md2.6 KB
  • bin/dual-brain.js1.4 KB
  • daemon/dual-brain-watcher.js10.1 KB
  • daemon/install.sh2.5 KB
  • hooks-dual-brain-HOOK.md1.1 KB
  • hooks-dual-brain-handler.js5.5 KB
  • hooks/dual-brain/HOOK.md1.1 KB
  • hooks/dual-brain/handler.js5.7 KB
  • package.json677 B
  • src/cli.js8.5 KB
  • src/config.js3.8 KB
  • src/daemon.js6.7 KB
  • src/providers/groq.js2.6 KB
  • src/providers/interface.js840 B
  • src/providers/moonshot.js2.6 KB
  • src/providers/ollama.js2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…