Consensus Coder
A collaborative multi-model workflow that achieves consensus on coding solutions through structured debate and voting.
How It Works
Phase 1: Diagnosis & Proposal (Opus)
- •Opus 4.5 analyzes the problem and proposes 3 distinct approaches
- •Each proposal includes: rationale, trade-offs, estimated complexity
Phase 2: Review & Vote (Gemini 2.5 + Codex)
- •Gemini 2.5 reviews all 3 proposals and casts a vote with reasoning
- •Codex reviews all 3 proposals and casts a vote with reasoning
- •Opus votes on its own proposals or agrees with a reviewer's choice
Phase 3: Consensus or Iteration
- •If unanimous: Opus creates implementation plan → Auggie implements
- •If split: The dissenting model(s) propose alternative solutions → revote
- •Max 5 iterations: If no consensus after 5 rounds, escalate to you for human decision
Phase 4: Implementation (Auggie)
Once consensus achieved:
- •Opus creates detailed implementation plan
- •Auggie executes the plan with your Codebake tasks
Usage
Start a consensus session:
code
problem: "Your coding problem or refactoring challenge" context: "Additional context (framework, constraints, goals)"
The workflow will:
- •Show each model's proposals and reasoning
- •Display vote tallies each round
- •Auto-iterate on disagreement
- •Ask for your decision if stuck after 5 rounds
- •Implement the winning solution
Voting Format
Each model votes using this structure:
code
**Vote:** [Proposal A | Proposal B | Proposal C] **Confidence:** [High | Medium | Low] **Reasoning:** [Why this proposal wins] **Concerns:** [Any reservations or caveats]
Iteration Rules
- •Unanimous (3-0): Move to implementation
- •2-1 split: Dissenting model proposes alternative → revote
- •No consensus after 5 rounds: Escalate to human decision (you decide)
When dissenting, the minority model must articulate:
- •Specific concern with the winning proposal
- •What their alternative addresses that others miss
Implementation
Auggie executes with:
- •Opus's detailed plan as the spec
- •Your Codebake workspace for task tracking
- •Automatic error feedback loops
Token Cost
Expect ~8-12k tokens per consensus cycle (3 proposal reviews + voting + iteration logic). Multiple iterations can be expensive, so this works best for high-impact decisions.
See references/ for voting logic, prompt templates, and consensus rules.