搜索

PythonReactSEOPDF
OpenClaw

Dual Brain

Dual Brain Skill

dannydvm0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install dannydvm/dual-brain

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Dual-Brain Skill

What it does: Provides cognitive diversity by automatically generating perspectives from a secondary LLM (different from your primary model) for every user message.

For Agents

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:

  • Angles you might miss
  • Alternative approaches
  • Important things to verify

Integration:

  • Perspectives are generated automatically by a background daemon
  • No manual action required on your part
  • Simply read the file before forming your response
  • Synthesize both viewpoints (yours + the secondary LLM's)

Example workflow:

  1. User sends message
  2. Daemon intercepts, sends to secondary LLM (e.g., Kimi, GPT-4, Llama)
  3. Secondary LLM generates 2-3 sentence perspective
  4. Written to ~/.dual-brain/perspectives/{agent-id}-latest.md
  5. You (primary agent) read it before responding
  6. You synthesize both perspectives into your answer

For Humans

Setup:

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 models

Commands:

  • dual-brain setup - Configure provider, model, API key
  • dual-brain start - Run daemon (foreground)
  • dual-brain stop - Stop daemon
  • dual-brain status - Check running status
  • dual-brain logs - View recent activity
  • dual-brain install-daemon - Install as system service

Config location: ~/.dual-brain/config.json

Perspectives location: ~/.dual-brain/perspectives/

Architecture

User Message → OpenClaw Session (JSONL)...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/dannydvm/dual-brain
Version
—
Commit
7d9bdde77acd0555bf8e0cc843a15c75f970315d
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

🧠 openclaw-dual-brain

Multi-LLM perspective synthesis for OpenClaw agents.

Give your AI agents cognitive diversity by automatically generating perspectives from a secondary LLM (different from the primary model) on every user message. The primary agent reads both viewpoints before responding — like having two brains instead of one.

Why?

Single-model agents have blind spots. Different LLMs have different strengths, training data, and reasoning patterns. By synthesizing perspectives from two models, agents get:

  • Broader coverage - One model catches what the other misses
  • Bias mitigation - Different training = different biases
  • Quality assurance - Second opinion validates reasoning
  • Cognitive diversity - Like pair programming for AI

Features

✅ Provider-agnostic - Supports Ollama (local), Moonshot/Kimi, OpenAI, Groq
✅ Zero agent overhead - Background daemon, <1s latency
✅ Plug-and-play - Works with any OpenClaw agent
✅ Engram integration - Optional semantic memory storage
✅ System service - Install as launchd (macOS) or systemd (Linux)
✅ Plain JavaScript - No TypeScript, no build step

Architecture

┌─────────────┐
│ User Message │
└──────┬──────┘
       │
       ▼
┌───────────────────────┐
│ OpenClaw Session      │
│ (~/.openclaw/agents/  │
│  */sessions/*.jsonl)  │
└──────┬────────────────┘
       │
       │ (daemon polls every 10s)
       │
       ▼
┌────────────────────────┐
│ Dual-Brain Daemon      │
│ - Detects new messages │
│ - Calls secondary LLM  │
└──────┬─────────────────┘
       │
       ▼
┌────────────────────────────┐
│ Secondary LLM Provider     │
│ • Ollama (local, free)     │
│ • Moonshot/Kimi            │
│ • OpenAI (GPT-4o)          │
│ • Groq (fast Llama)        │
└──────┬─────────────────────┘
       │
       ▼ (2-3 sentence perspective)
       │
┌──────────────────────────────┐
│ ~/.dual-brain/perspectives/  │
│   main-latest.md             │
│   strategis...

来源内容

SKILL.md
# Dual-Brain Skill

**What it does:** Provides cognitive diversity by automatically generating perspectives from a secondary LLM (different from your primary model) for every user message.

## For Agents

Before responding to any user message, check for a dual-brain perspective:

```bash
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:
- Angles you might miss
- Alternative approaches
- Important things to verify

**Integration:**
- Perspectives are generated automatically by a background daemon
- No manual action required on your part
- Simply read the file before forming your response
- Synthesize both viewpoints (yours + the secondary LLM's)

**Example workflow:**
1. User sends message
2. Daemon intercepts, sends to secondary LLM (e.g., Kimi, GPT-4, Llama)
3. Secondary LLM generates 2-3 sentence perspective
4. Written to `~/.dual-brain/perspectives/{agent-id}-latest.md`
5. You (primary agent) read it before responding
6. You synthesize both perspectives into your answer

## For Humans

**Setup:**
```bash
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 models

**Commands:**
- `dual-brain setup` - Configure provider, model, API key
- `dual-brain start` - Run daemon (foreground)
- `dual-brain stop` - Stop daemon
- `dual-brain status` - Check running status
- `dual-brain logs` - View recent activity
- `dual-brain install-daemon` - Install as system service

**Config location:** `~/.dual-brain/config.json`

**Perspectives location:** `~/.dual-brain/perspectives/`

## Architecture

```
User Message → OpenClaw Session (JSONL)...
README
# 🧠 openclaw-dual-brain

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

Give your AI agents cognitive diversity by automatically generating perspectives from a secondary LLM (different from the primary model) on every user message. The primary agent reads both viewpoints before responding — like having two brains instead of one.

## Why?

**Single-model agents have blind spots.** Different LLMs have different strengths, training data, and reasoning patterns. By synthesizing perspectives from two models, agents get:

- **Broader coverage** - One model catches what the other misses
- **Bias mitigation** - Different training = different biases
- **Quality assurance** - Second opinion validates reasoning
- **Cognitive diversity** - Like pair programming for AI

## Features

✅ **Provider-agnostic** - Supports Ollama (local), Moonshot/Kimi, OpenAI, Groq  
✅ **Zero agent overhead** - Background daemon, <1s latency  
✅ **Plug-and-play** - Works with any OpenClaw agent  
✅ **Engram integration** - Optional semantic memory storage  
✅ **System service** - Install as launchd (macOS) or systemd (Linux)  
✅ **Plain JavaScript** - No TypeScript, no build step  

## Architecture

```
┌─────────────┐
│ User Message │
└──────┬──────┘
       │
       ▼
┌───────────────────────┐
│ OpenClaw Session      │
│ (~/.openclaw/agents/  │
│  */sessions/*.jsonl)  │
└──────┬────────────────┘
       │
       │ (daemon polls every 10s)
       │
       ▼
┌────────────────────────┐
│ Dual-Brain Daemon      │
│ - Detects new messages │
│ - Calls secondary LLM  │
└──────┬─────────────────┘
       │
       ▼
┌────────────────────────────┐
│ Secondary LLM Provider     │
│ • Ollama (local, free)     │
│ • Moonshot/Kimi            │
│ • OpenAI (GPT-4o)          │
│ • Groq (fast Llama)        │
└──────┬─────────────────────┘
       │
       ▼ (2-3 sentence perspective)
       │
┌──────────────────────────────┐
│ ~/.dual-brain/perspectives/  │
│   main-latest.md             │
│   strategis...

相关技能

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

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.