Claude Synod Debate
Claude Synod Debate enables multi-agent deliberation for improved decision-making.
When one AI isn't enough, convene the council.
<br/> <!-- Status Badges --> <p> <a href="#-60-second-setup"><img src="https://img.shields.io/badge/β‘_Quick_Start-60s-F97316?style=flat-square" alt="Quick Start"/></a> <a href="https://arxiv.org/abs/2309.13007"><img src="https://img.shields.io/badge/π_Research-5_Papers-8B5CF6?style=flat-square" alt="Research"/></a> <a href="LICENSE"><img src="https://img.shields.io/badge/π_License-MIT-22C55E?style=flat-square" alt="License"/></a> <a href="https://github.com/quantsquirrel/claude-synod-debate"><img src="https://img.shields.io/github/stars/quantsquirrel/claude-synod-debate?style=flat-square&logo=github" alt="Stars"/></a> </p> <!-- Language Toggle --> </div> <br/> <div align="center">π΅βπ« Single LLMs are overconfident Β βΒ βοΈ Make them debate Β βΒ β Better decisions
</div> <br/><div align="center">
π THE THREE ACTS
Every deliberation follows the same dramatic structure
</div> <br/>%%{init: {'theme': 'dark', 'themeVariables': { 'primaryColor': '#1e3a5f', 'secondaryColor': '#4a1d1d', 'tertiaryColor': '#1a3d1a'}}}%%
flowchart TB
subgraph ACT1["π¬ ACT I Β· SOLVE"]
G1["π΅ Gemini β Solution A"]
O1["π’ OpenAI β Solution B"]
end
subgraph ACT2["βοΈ ACT II Β· CRITIQUE"]
G2["π΅ Gemini attacks B"]
O2["π’ OpenAI attacks A"]
end
subgraph ACT3["βοΈ ACT III Β· VERDICT"]
C["π Claude β Final Answer"]
end
ACT1 --> ACT2 --> ACT3
style ACT1 fill:#1e3a5f,stroke:#3b82f6,stroke-width:2px,color:#fff
style ACT2 fill:#4a1d1d,stroke:#ef4444,stroke-width:2px,color:#fff
style ACT3 fill:#1a3d1a,stroke:#22c55e,stroke-width:2px,color:#fff
<div align="center">
| Act | What Happens | Why It Matters |
|---|---|---|
| I | Independent solutions emerge | No groupthink β maximum diversity |
| II | Cross-examination begins | Weaknesses exposed β biases challenged |
| III | Adversarial refinement | Best ideas survive scrutiny |
<div align="center">
β‘ 60-SECOND SETUP
</div># 1οΈβ£ Clone the repo
git clone https://github.com/quantsquirrel/claude-synod-debate.git
cd claude-synod-debate
# 2οΈβ£ Set your API keys (one-time)
export GEMINI_API_KEY="your-gemini-key"
export OPENAI_API_KEY="your-openai-key"
# 3οΈβ£ Run setup (installs deps, configures CLI tools, tests models)
/synod-setup
# 4οΈβ£ Summon the council
/synod review Is this authentication flow secure?
<div align="center">
That's it. The council convenes automatically.
<br/> <img src="https://capsule-render.vercel.app/api?type=rect&color=gradient&customColorList=12,14,25&height=2" width="50%"/> </div> <br/><div align="center">
π§ INITIAL SETUP TEST
Verify your models work before deliberating
</div> <br/>/synod-setup
<div align="center">
| Check | What It Does |
|---|---|
| CLI | Verifies all 7 provider CLIs exist |
| API Keys | Checks all provider API keys |
| Response Time | Tests each model with 120s timeout |
| Classification | Labels models: β Recommended / β Usable / β Slow / β Failed |
[Synod Setup] μ΄κΈ° μ€μ μ μμν©λλ€...
Step 0/4: Python μμ‘΄μ± νμΈ
β google-genai μ€μΉλ¨
β openai μ€μΉλ¨
β httpx μ€μΉλ¨
Step 1/4: CLI λꡬ νμΈ
β gemini-3.py
β openai-cli.py
Step 2/4: API ν€ νμΈ
β GOOGLE_API_KEY (μ€μ λ¨)
β OPENAI_API_KEY (μ€μ λ¨)
Step 3/4: MCP λΌμ°ν
νΈνμ± νμΈ
β MCP λΌμ°ν
λ―Έκ°μ§
Step 4/4: λͺ¨λΈ μλ΅ μκ° μΈ‘μ (νμμμ: 120μ΄)
Provider Model Latency Status
βββββββββββββββββββββββββββββββββββββββββββββββ
gemini flash 3.2μ΄ β κΆμ₯
gemini pro 12.4μ΄ β μ¬μ© κ°λ₯
openai gpt4o 2.8μ΄ β κΆμ₯
openai o3 45.2μ΄ β λλ¦Ό
[μλ£] 4/4 λͺ¨λΈ μ¬μ© κ°λ₯
Synodλ₯Ό μ¬μ©ν μ€λΉκ° λμμ΅λλ€!
</details>
<br/>
<div align="center">
π€ SUPPORTED PROVIDERS
v3.0: Now supporting 7 AI providers
</div> <br/> <div align="center">| Provider | CLI | Best For | Status |
|---|---|---|---|
| π΅ Gemini | gemini-3 | Default debater, thinking modes | Required |
| π’ OpenAI | openai-cli | Default debater, o3 reasoning | Required |
| π£ DeepSeek | deepseek-cli | Math, reasoning (R1) | Optional |
| β‘ Groq | groq-cli | Ultra-fast inference (LPU) | Optional |
| π OpenRouter | openrouter-cli | Multi-model fallback | Recommended |
| πΆ Grok | grok-cli | 2M context window | Opt-in |
| π Mistral | mistral-cli | Code, European deployment | Opt-in |
# Optional: Add more providers to your council
export DEEPSEEK_API_KEY="your-deepseek-key" # DeepSeek R1
export GROQ_API_KEY="your-groq-key" # Groq LPU
export OPENROUTER_API_KEY="your-openrouter-key" # OpenRouter (Recommended)
# Opt-in Providers (requires explicit activation)
# Grok (2M context window)
export SYNOD_ENABLE_GROK=1
export XAI_API_KEY="your-xai-key"
# Mistral (code specialization)
export SYNOD_ENABLE_MISTRAL=1
export MISTRAL_API_KEY="your-mistral-key"
</details>
<br/>
<div align="center">
π― FIVE MODES OF DELIBERATION
Choose your council configuration
</div> <br/> <div align="center">| Mode | Summon When... | Configuration | |
|---|---|---|---|
| π | review | Analyzing code, security, PRs | Gemini Flash βοΈ GPT-4o |
| ποΈ | design | Architecting systems | Gemini Pro βοΈ GPT-4o |
| π | debug | Hunting elusive bugs | Gemini Flash βοΈ GPT-4o |
| π‘ | idea | Brainstorming solutions | Gemini Pro βοΈ GPT-4o |
| π | general | Everything else | Gemini Flash βοΈ GPT-4o |
# Code review
/synod review "Is this recursive function O(n) or O(nΒ²)?"
# System design
/synod design "Design a rate limiter for 10M requests/day"
# Debugging
/synod debug "Why does this only fail on Tuesdays?"
# Brainstorming
/synod idea "How do we reduce checkout abandonment?"
</details>
<br/>
<div align="center">
π ACADEMIC FOUNDATION
Not just another wrapper β peer-reviewed deliberation protocols
</div> <br/> <div align="center">| Protocol | Source | What Synod Implements |
|---|---|---|
| ReConcile | ACL 2024 | 3-round convergence (>95% quality gains) |
| AgentsCourt | arXiv 2024 | Judge/Defense/Prosecutor structure |
| ConfMAD | arXiv 2025 | Confidence-aware soft defer |
| Free-MAD | Research | Anti-conformity instructions |
| SID | Research | Self-signals driven confidence |
Synod calculates trust using the CortexDebate formula:
Credibility Γ Reliability Γ Intimacy
Trust Score = ββββββββββββββββββββββββββββββββββββββββ
Self-Orientation
| Factor | Measures | Range |
|---|---|---|
| C | Evidence quality | 0β1 |
| R | Logical consistency | 0β1 |
| I | Problem relevance | 0β1 |
| S | Bias level (lower = better) | 0.1β1 |
Interpretation:
T β₯ 1.5β Primary source (high trust)T β₯ 1.0β Reliable inputT β₯ 0.5β Consider with cautionT < 0.5β Excluded from synthesis
<div align="center">
π¦ INSTALLATION
</div> <details> <summary><b>π Quick Installation (Recommended)</b></summary> <br/># Clone the repo
git clone https://github.com/quantsquirrel/claude-synod-debate.git
cd claude-synod-debate
# Set API keys
export GEMINI_API_KEY="your-gemini-key"
export OPENAI_API_KEY="your-openai-key"
# Run setup inside Claude Code (auto-installs Python deps, creates CLI wrappers, tests models)
/synod-setup
Skills auto-load from plugin.json when you open Claude Code inside this directory. /synod-setup handles the rest: Python dependencies (google-genai, openai, httpx), CLI tool wrappers in ~/.synod/bin/, API key validation, and model connectivity testing.
git clone https://github.com/quantsquirrel/claude-synod-debate.git
cd claude-synod-debate
pip install google-genai openai httpx
# Create CLI wrappers and test models
python3 tools/synod-setup.py
</details>
<details>
<summary><b>βοΈ Configuration</b></summary>
<br/>
# Required
export GEMINI_API_KEY="your-gemini-key"
export OPENAI_API_KEY="your-openai-key"
# Optional
export SYNOD_SESSION_DIR="~/.synod/sessions"
export SYNOD_RETENTION_DAYS=30
</details>
<br/>
<div align="center">
π COMPATIBILITY
</div> <br/> <div align="center">| Environment | Status | Notes |
|---|---|---|
| bash | β | Fully supported |
| zsh | β | Fully supported (v3.0.1+) |
| MCP Plugins | β | Guard directives prevent routing interception |
| OMC (oh-my-claudecode) | β | CODEX-ROUTING opt-out built-in |
Synod executes external models (Gemini, OpenAI) exclusively via CLI tools (gemini-3, openai-cli). If your environment includes MCP routing plugins that redirect model calls through ask_codex or ask_gemini, Synod's built-in defense-in-depth guards prevent interception:
allowed-toolsfrontmatter β Schema-level restriction excludes MCP tools- Markdown directives β Explicit prohibition in skill entry point and Phase 0/1
- Automated tests β CI validates guard presence against configuration drift
No additional configuration needed β protection is automatic.
</details> <br/><div align="center">
πΊοΈ ROADMAP
</div>- MCP Server β Native Claude Code integration
- VS Code Extension β GUI for debate visualization
- Knowledge Base β Learning from debate history
- Web Dashboard β Real-time debate monitoring
- More LLMs β
Llama, Mistral, Claude variantsv3.0: 7 providers supported!
<div align="center">
π€ JOIN THE COUNCIL
Issues Β· Discussions Β· Contributing
<br/> <details> <summary><b>π Citation</b></summary>@software{synod2026,
title = {Synod: Multi-Agent Deliberation for Claude Code},
author = {quantsquirrel},
year = {2026},
url = {https://github.com/quantsquirrel/claude-synod-debate}
}
</details>
<br/>
MIT License Β· Copyright Β© 2026 quantsquirrel
Built on the shoulders of<br/> ReConcile Β· AgentsCourt Β· ConfMAD Β· Free-MAD Β· SID
<br/></div>"In the multitude of counselors there is safety." β Proverbs 11:14