Install
openclaw skills install dual-brainClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Automatically generates and saves alternative perspectives from a secondary LLM for every user message to enhance reasoning and response quality.
openclaw skills install dual-brainWhat it does: Provides cognitive diversity by automatically generating perspectives from a secondary LLM (different from your primary model) for every user message.
Before responding to any user message, check for a dual-brain perspective:
cat ~/.dual-brain/perspectives/{your-agent-id}-latest.md
If the file exists and contains a recent perspective (check timestamp in comment), consider it alongside your own reasoning. The perspective may highlight:
Integration:
Example workflow:
~/.dual-brain/perspectives/{agent-id}-latest.mdSetup:
npm install -g openclaw-dual-brain
dual-brain setup # Interactive configuration
dual-brain start # Start daemon
Providers:
ollama - Local models (zero cost, requires Ollama)moonshot - Kimi/Moonshot API (Chinese LLM, fast)openai - GPT-4o, GPT-4-turbo, etc.groq - Fast inference with Llama modelsCommands:
dual-brain setup - Configure provider, model, API keydual-brain start - Run daemon (foreground)dual-brain stop - Stop daemondual-brain status - Check running statusdual-brain logs - View recent activitydual-brain install-daemon - Install as system serviceConfig location: ~/.dual-brain/config.json
Perspectives location: ~/.dual-brain/perspectives/
User Message → OpenClaw Session (JSONL)
↓
Dual-Brain Daemon (polling)
↓
Secondary LLM Provider
(ollama/moonshot/openai/groq)
↓
Perspective Generated (2-3 sentences)
↓
~/.dual-brain/perspectives/{agent}-latest.md
↓
Primary Agent reads & synthesizes
↓
Response to User
If Engram (semantic memory) is running on localhost:3400, perspectives are also stored as memories for long-term recall.