dual-brain
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
02 资源文件 16
- 参考文档_meta.json274 B
- 脚本bin/dual-brain.js1.3 KB
- 参考文档BUILD-SUMMARY.md8.2 KB
- 参考文档CHANGELOG.md2.6 KB
- 脚本daemon/install.sh2.4 KB
- 参考文档package.json653 B
- 参考文档QUICKSTART.md4.5 KB
- 参考文档README.md9.3 KB
- 脚本src/cli.js8.2 KB
- 脚本src/config.js3.7 KB
- 脚本src/daemon.js6.5 KB
- 脚本src/providers/groq.js2.5 KB
- 脚本src/providers/interface.js808 B
- 脚本src/providers/moonshot.js2.5 KB
- 脚本src/providers/ollama.js2.8 KB
- 脚本src/providers/openai.js2.5 KB
03 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:
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:
- User sends message
- Daemon intercepts, sends to secondary LLM (e.g., Kimi, GPT-4, Llama)
- Secondary LLM generates 2-3 sentence perspective
- Written to
~/.dual-brain/perspectives/{agent-id}-latest.md - You (primary agent) read it before responding
- 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 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 service
Config location: ~/.dual-brain/config.json
Perspectives location: ~/.dual-brain/perspectives/
Architecture
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
Benefits
- Cognitive diversity - Two AI models = broader perspective
- Bias mitigation - Different training data/approaches
- Quality assurance - Second opinion catches issues
- Zero agent overhead - Runs in background, <1s latency
- Provider flexibility - Choose cost vs. quality tradeoff
Optional: Engram Integration
If Engram (semantic memory) is running on localhost:3400, perspectives are also stored as memories for long-term recall.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.