Multi-Agent Consensus
3-agent unanimous validation gate for Claude Code — Lead, Alpha, Bravo all vote PASS or the gate stays closed.
Live site: consensus.withagents.dev
Field journal entry: withagents.dev/posts/post-02-multi-agent-consensus

Related Post
Featured in the Agentic Development Blog series — Post #2: A Single AI Agent Said 'Looks Correct.' Three Agents Found the P2 Bug.
3-agent consensus validation with hard gates for Claude Code.
A framework where three specialized agents (Lead, Alpha, Bravo) independently validate work at phase gates. All three must vote PASS unanimously for the gate to open — no exceptions.
Built from catching a P2 streaming bug that a single-agent review explicitly approved.
The Pattern
┌─────────┐ ┌──────────────────────────────┐ ┌──────────┐
│ Phase │───▶│ Gate Checkpoint │───▶│ Phase │
│ N │ │ │ │ N+1 │
│ │ │ ┌──────┐ ┌───────┐ ┌──────┐│ │ │
│ (work) │ │ │ Lead │ │ Alpha │ │Bravo ││ │ (work) │
│ │ │ │ │ │ │ │ ││ │ │
│ │ │ │ PASS │ │ PASS │ │ PASS ││ │ │
│ │ │ └──────┘ └───────┘ └──────┘│ │ │
│ │ │ │ │ │
│ │ │ ALL 3 PASS → Gate Opens │ │ │
│ │ │ ANY FAIL → Fix Cycle │ │ │
└─────────┘ └──────────────────────────────┘ └──────────┘
Key properties:
- Independent verification: Each agent starts fresh — no shared findings until vote
- Hard gates: 2/3 does not pass. Unanimity or nothing.
- Re-validation after fixes: ALL agents re-validate, not just the failing one
Install
Two distribution channels. Pick one — they produce identical evidence on the
same target.
| Channel | Command | Use when |
|---|
| Claude Code plugin (primary) | claude plugin marketplace add krzemienski/multi-agent-consensus then claude plugin install multi-agent-consensus@multi-agent-consensus | You run Claude Code interactively. Native slash commands (/consensus-run, /consensus-validate, /consensus-roles, /consensus-report, /consensus-show-config), inherited auth, Task-tool agents. |
| Python CLI (pipx) | pipx install git+https://github.com/krzemienski/multi-agent-consensus.git | You need non-interactive CI runs, or you don't want to depend on Claude Code. Same model prompts, same evidence schema. |
Both require Claude Code CLI
installed and authenticated. The plugin uses CC's Task tool natively; the
Python CLI shells out to claude --print subprocesses.
Dev-mode (local testing, no install):
git clone https://github.com/krzemienski/multi-agent-consensus.git
claude -p --plugin-dir ./multi-agent-consensus "/consensus-run --target ./my-project --phases audit"
Uninstall
- Plugin:
claude plugin uninstall multi-agent-consensus
- Python CLI:
pipx uninstall multi-agent-consensus
Quick Start
# Run the full consensus pipeline
consensus run --target ./my-project --phases "explore,audit,fix,verify"
# Run a single gate check
consensus validate --target ./my-project --phase audit
# View results from the last run
consensus report --target ./my-project
# Display role definitions
consensus roles
# Show current configuration
consensus show-config
The Three Roles
Lead — Architecture & Consistency Specialist
Validates the whole. Cross-component consistency, pattern compliance, regression detection. Breaks ties when interpretation differs.
Catches: Contract mismatches between layers, pattern violations, fixes that break other components.
Alpha — Code & Logic Specialist
Reads implementation line by line. Incorrect accumulation patterns, off-by-one errors, state machine bugs, API contract violations.
Catches: The += vs = bug, state index resets, type mismatches at boundaries, missing error handlers.
Bravo — Systems & Functional Specialist
Exercises the running system. UI behavior under real conditions, edge cases with actual data, regressions in previously working flows.
Catches: Runtime-only bugs, visual duplication, edge case failures, performance degradation.
The Bug That Proved the Pattern