Skip to content
qinnovatesPublic

About

Quorum: orchestrate a swarm of AI experts on any question. Specialists debate, research, and validate — then a polymath supervisor delivers the verdict. One command, multiple minds, stress-tested answers.

Topics

Resources

Stars

14 stars

Watchers

0 watching

Forks

Latest commit

 

History

67 Commits

Folders and files

Repository files navigation

Quorum

Version License: MIT Claude Code Research-Backed Agents

When you ask AI a question, you get one answer. It sounds confident. It might be completely wrong. You have no way to know.

Ask 5 AI agents the same question and you get 5 answers that sound different but were generated from the same training data, the same priors, the same blind spots. Most multi-agent tools just split work across agents and merge the results. That's parallel labor, not parallel thinking. If all 5 agents hallucinate the same thing, you get a well-formatted wrong answer with extra steps.

Quorum is different. It's built on psychology, philosophy, and math.

The psychology: a group's IQ is not the average of its members' IQs. It's an emergent property of how they communicate. Groups where every participant contributes equally are measurably smarter than groups dominated by one expert, even the smartest person in the room (Woolley et al. 2010, 699 subjects). Quorum enforces equal turns structurally, not by suggestion.

The philosophy: Socrates didn't lecture. He questioned. He found what you believed and asked why until the belief either held or collapsed. Plato documented the method. 2,400 years later, academics still use it because nothing better has replaced it. Quorum's Challengers do the same thing. They don't just disagree. They ask "why does this hold?" and "what breaks it?" until the answer either survives or doesn't.

The math: every synthesis is scored by a convergence formula, checked for 4 cognitive biases, measured for agent independence, and graded by evidence sourcing. Not vibes. Not vote counts. Measured signals with thresholds that determine whether a conclusion is battle-tested or still contested. Full methodology ->

The result: answers that have been questioned, attacked, defended, and validated before you see them. One command. Two minutes.

/quorum "your question here"

Built by qinnovate | Full docs


What's New in 7.9.0: Secure Templates for Your Own Setup

Setting up Codex for real showed how a safe setup can still fail or stay exposed without anyone noticing: a tool reported "logged in" while every call failed, the error named the wrong fix, and login tokens sat in a plaintext file.

Feature What it does Why
Integration templates Picks the best option for your setup, with copy-ready blocks for Vault, Kubernetes, Docker, systemd, cloud secret managers, personal vaults and CLI sign-in Your stack should decide how keys are stored, and the safest path should also be the easiest
api_key_file Reads a key from a file your platform mounts, and refuses a file others can read or write Mounted secrets stay out of environment variables and process lists
More vault commands Adds az, bw, pass and doppler Azure and common password managers needed a route. kubectl stays off the list on purpose
Clearer doctor errors Shows the real error, and separates a stale model from an expired login "Log in" was the wrong advice for a model the account cannot use
Login storage notice Notes a CLI login kept in a plaintext file, and flags loose permissions. It reads only the file's mode Plaintext tokens should not go unnoticed
Test one provider doctor --live --allow-provider codex tests only the providers you name Testing one provider should not require consent for all of them

Limits: the templates are accepted by Quorum's checks, but only Codex sign-in and local Ollama have run live. A mounted file is plaintext to anything running as your user, so it is only as safe as the system that manages it.

What's New in 7.8.0: Evidence You Can Trace

Earlier handoffs could change what a claim meant, and a verdict could look better supported than it was. This release keeps meaning intact, counts sources honestly and records where each claim came from.

Feature What it does Why
Meaning-safe claim IDs IDs keep numbers, signs, comparators and units, so "> 5 ms" and "< 5 ms" stay separate claims Opposite claims were being merged
Marked cuts Claims travel whole up to 600 characters. A longer claim is marked partial, and reviewers are told not to infer what is missing. Reviewers see every claim sent for review, and the brief reports claims and sources over a run limit A cut can remove a condition such as "unless TLS is disabled"
Quote support checks A found quote must also fit the claim's numbers, comparators, direction, negation and topic, at no token cost. Words around each use of the quote count, so a plain "did not show that X" is caught Finding a quote does not show it supports the claim
Document counting Each family and each document counts once. Three models citing one page count as one cited document. So do common URL variants, arXiv and DOI forms, and near-identical quotes that passed their checks on two pages behind one option. A different quote can still keep two copied pages apart Agreement on one source is not corroboration
Checked-source rule With source checking on, a verdict needs at least one source Quorum actually reached, and STRONG needs a located, fitting quote, even on a source you listed as verified An invented URL or a skipped quote should not help carry a verdict
Source snapshots The run record stores a hash of the page as fetched, the retrieval time and the quote position The record shows what was checked. Comparing later needs a new fetch, and dynamic pages will differ
Lineage Each claim and verdict is a hash node that names its parents, a claim with a located quote links to its source snapshot, and each handoff commits to the claims it sent. quorum-run lineage --run <id> lists claims, and --claim <id> traces one. quorum-run verify checks every link "Where did this come from?" should have a checkable answer
Evidence parts in the brief Shows cited documents, how many were checked, families, tiers, disputes and failed checks for each option, with no single percentage One number would be false precision until it is calibrated
Optional cross-family entailment A neutral family, or a rival if none exists, checks whether the quote supports each quoted verdict-flipping claim. With no such family, the claim loses its top tier. Off by default. Set entailment = true under [verification] Semantic checks cost tokens, so they stay opt-in until an eval shows their value
Harder failure handling A crash or interrupt while weighing closes the run as FAILED. If a step is killed outright, the run refuses to continue instead of forking its record. Oversized answers and responses are refused, and every hostile page shape found in review now reads quickly One bad answer should not lose a paid run or corrupt its record

What changes for you: verdicts can be stricter. If two families cite one unchecked document, that now counts once, so the run may end UNRESOLVED where it used to give a verdict. A quote that fails a check loses its top tier, even on a source you verified. If a check or objection changes the outcome, the run withholds its verdict.

Limits:

  • The support checks are heuristics. They can flag a faithful paraphrase, and passing does not prove support. Paraphrase, spelled-out numbers and look-alike letters can get past them.
  • Document counting cannot catch every disguise. With source checking off, an invented URL still counts as a weak cited document, and the brief says citations were not checked. Turn checking on for decisions that matter.
  • Two pages that differ only by query string count as one document.
  • Lineage shows where a claim came from, not that it is true. A reachable source can still be wrong.
  • Entailment has not been run with a live model. Its token cost and catch rate are unmeasured. A hostile checker can force UNRESOLVED, but it cannot create or flip a verdict.

Known issues from the first live run (one question, a local Ollama model plus a Claude host seat, source checking on):

  • All 5 quotes found on their pages failed a support check, and a read-through found no real mismatch, so no claim reached STRONG. A negation anywhere in a claim, or honest paraphrase, can trip the checks. This lowers trust and cannot create a verdict.
  • A quote can be missed where an inline HTML tag touches the next character, as in <em>vacuuming</em>., because the tag becomes a space.
  • "Strongest case against" can list disputed claims that favour the winning option, and it shows the claim instead of the objection.
  • A structured would_change answer prints as raw data.

Gemini, Codex and hosted APIs have not yet been run live.

What's New in 7.7.0: Smaller Handoffs and a Checkable Run Record

Feature What it does Why
ID-based handoffs Reviewers get compact claims with stable IDs and each URL once, and they object by ID Agents should not pay to resend what is already known
Measured savings Each brief reports estimated handoff tokens against resending full answers Savings should be measured, not claimed
Hash-linked run record Stores hashes and IDs for each step, with no question or answer text. Run quorum-run verify --run <id> to check it You can detect later edits to what a run recorded
Local model reuse Keeps Ollama models loaded between calls Reloading a model wastes time

Limits: a hash shows a record was not changed. It does not show that a claim is true, or that a model reported honestly. The savings figure is an estimate against resending answers, not a token bill. Quorum does not transfer model internals between agents, because that cannot be redacted or audited with the tools here.

What's New in 7.6.0: Orchestrator Protocol

Feature What it does Why
Model discovery Finds the models, CLIs and config you actually have, and treats a tool as available only once it answers Quorum should fit your setup, not assume one
Work matching Uses code first, then the cheapest capable model, moving up only on evidence or a real dispute Most steps do not need the strongest model
Research delegation Gives each research question one owner and tracks it in a ledger Agents should not pay to find the same source twice
Safe dedupe Shares facts between panelists but never conclusions Saving tokens must not break independent first opinions
Build report Shows which models were found, how work was routed and what was skipped You can see why the run was built that way
One exit route The skill no longer calls Gemini or Codex directly. External calls go only through quorum-run A model reading untrusted panel text should not hold direct access to tools that can run commands
Consent in code start refuses until you name each remote provider with --allow-provider. start is not pre-approved, so you see it first Your data should leave your machine only with your say-so
quorum-run doctor Checks config, keys, providers and .gitignore and names each fix, without printing secret values Setup problems should surface before a run spends tokens
Signed run state Refuses run files edited outside quorum-run Accidental or casual edits should not change a verdict
Handoff limits Reads question and answer files only from _swarm/tmp/, and deletes them after a successful read The tool should not be usable to read and delete any file
Source checking With fetch_sources and your allowed_hosts, Python fetches cited pages on those hosts and looks for the exact quote. Unchecked citations score low A made-up URL should not count as evidence
Decision criteria --criterion cost:3 and --option set what matters and what is on the table. A "keep things as they are" option is added Wording should not pick the winner
Flip-only review Challengers review only claims that could change the verdict, in one round Review tokens should go where they can change the outcome
Strength routing High stakes prefer your strongest model. Set strength for each provider Cost and capability are different things
Orchestrator model Proposes merging spellings of one option, such as "postgres" and "postgresql". Code applies only true variants, the brief shows each merge, and it never judges Cheap work stays cheap, and a bad merge should not rig the vote
Smaller skill SKILL.md is now a short router, and mode details load on demand Instructions you do not need should not cost tokens
Decision regret eval reports regret, charging UNRESOLVED a fixed cost Success means better decisions, not just matching answers
One-command install scripts/install.sh adds the skill and quorum-run, finds your models and writes a keyless config. quorum-run setup can redo the config A newcomer should not need to hand-edit files before their first answer
Blind first answers Panelists answer before seeing shared facts, then changes are recorded One bad source must not pass for agreement
Safer CLI config Accepts only known-safe CLI arguments and passes your configured model to the CLI Panelists should not act on your machine, and routing should match what runs

The protocol lives in references/orchestrator.md and loads once per run, so SKILL.md stays smaller. Limits: the protocol is guidance to the model, so it is not enforced like quorum-run code. The host model can still read files you let it read, including run files, so blind first answers depend on it following the protocol. Signing is tamper-evidence, not a sandbox: a process running as you can read the signing key. Prompt mode is now single-family. Source checking is off by default, because it contacts the cited hosts. Without it, citations are only checked for format and the brief says so. Claims are not yet classified as for or against an option. Token savings are not yet measured.

What's New in 7.5.0: Judge, Routing and Control Center

Feature What it does Why
Final judge On high stakes or a trigger, a model reviews the verdict with authors hidden, preferring one outside the panel. It can withhold a verdict with a source from your verified_sources, but cannot choose one. If a required review cannot run, no verdict is given A last check should catch errors without letting one model override the evidence
Escalation Disputed strong claims, cited opposition or --ratify send the review to your highest-ranked model Spend strong-model tokens only where the decision needs them
Role routing Questions route as research, architecture or code. Challengers and the judge also route by role Different work suits different models
Control center quorum-run dashboard --run <id> --watch writes a local page showing agents, scores, claims, spend and notes You can see a run without opening a server or sending data anywhere
Notes and stop quorum-run note adds notes as data. quorum-run stop --yes stops a run before its next model call People stay in control, and note text never becomes a command
Eval harness quorum-run eval --cases <file> scores a config, and --baseline rejects any change that loses recall or saves nothing Token controls have to prove themselves

Limits: the eval harness is built, but no results exist yet because it needs real models and your own cases. The dashboard is read-only.

How an orchestrated run works

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph TD
    Q["Your Question"] --> IN{"Intent step<br/><i>clear enough?</i>"}
    IN -->|"Vague"| ASK["Asks you first"]
    IN -->|"Clear"| PLAN["Set stakes, role,<br/>budgets and seats"]
    PLAN --> P1["Independent answers<br/><i>same question, no shared answers</i>"]
    P1 --> GATE{"Family floor<br/><i>enough families?</i>"}
    GATE -->|"No"| FAIL["FAILED_DIVERSITY<br/><i>run stops</i>"]
    GATE -->|"Yes"| SRC["Source and quote checks<br/><i>if you turn them on</i>"]
    SRC --> CH["Challenge round<br/><i>only claims that could flip the verdict</i>"]
    CH --> W["Evidence weighting<br/><i>each family and source counts once</i>"]
    W --> TRIG{"Verdict, with high<br/>stakes or a trigger?"}
    TRIG -->|"Yes"| J["Final judge<br/><i>can withhold, cannot choose</i>"]
    TRIG -->|"No"| B["Decision Brief"]
    J --> B
    B --> OUT["Best-supported path<br/>or UNRESOLVED"]

    style Q fill:#FF3CAC,stroke:#D4006A,color:#fff
    style IN fill:#E040FB,stroke:#AB00D9,color:#fff
    style ASK fill:#784BA0,stroke:#5C3D8F,color:#fff
    style PLAN fill:#784BA0,stroke:#5C3D8F,color:#fff
    style P1 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style GATE fill:#E040FB,stroke:#AB00D9,color:#fff
    style FAIL fill:#FF3CAC,stroke:#D4006A,color:#fff
    style SRC fill:#784BA0,stroke:#5C3D8F,color:#fff
    style CH fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style W fill:#784BA0,stroke:#5C3D8F,color:#fff
    style TRIG fill:#E040FB,stroke:#AB00D9,color:#fff
    style J fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style B fill:#00E5FF,stroke:#0097A7,color:#000
    style OUT fill:#00E5FF,stroke:#0097A7,color:#000
Loading

How evidence is traced

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph LR
    S["Source snapshot<br/><i>page hash, time, quote position</i>"] --> C["Claim<br/><i>ID assigned by Python</i>"]
    C --> K{"Support checks<br/><i>numbers, negation, topic</i>"}
    K -->|"Pass"| T["Keeps its tier"]
    K -->|"Fail"| L["Tier lowered"]
    T --> V["Verdict<br/><i>links to its claims</i>"]
    L --> V
    C --> H["Handoff<br/><i>commits to what was sent</i>"]
    V --> Q["quorum-run verify<br/>quorum-run lineage"]

    style S fill:#784BA0,stroke:#5C3D8F,color:#fff
    style C fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style K fill:#E040FB,stroke:#AB00D9,color:#fff
    style T fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style L fill:#FF3CAC,stroke:#D4006A,color:#fff
    style H fill:#784BA0,stroke:#5C3D8F,color:#fff
    style V fill:#00E5FF,stroke:#0097A7,color:#000
    style Q fill:#00E5FF,stroke:#0097A7,color:#000
Loading

How tokens and models are chosen

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph LR
    ST["Stakes"] --> BUD["Run budget"]
    BUD --> PH["Phase budgets<br/><i>independent, challenge, judge</i>"]
    ROLE["Task role"] --> EV{"Evidence for this role<br/><i>current and verified?</i>"}
    EV -->|"Yes"| PR["Cheapest model<br/>above the bar"]
    EV -->|"No"| UN["Cheapest eligible,<br/>marked unproven"]
    PH & PR & UN --> CALL["Model call<br/><i>capped, then recorded</i>"]
    CALL --> LED["Ledger<br/><i>by phase, role and model</i>"]
    CALL --> STOP{"Could this claim<br/>flip the verdict?"}
    STOP -->|"Yes"| CALL
    STOP -->|"No"| END["Stop spending"]

    style ST fill:#FF3CAC,stroke:#D4006A,color:#fff
    style BUD fill:#E040FB,stroke:#AB00D9,color:#fff
    style PH fill:#784BA0,stroke:#5C3D8F,color:#fff
    style ROLE fill:#FF3CAC,stroke:#D4006A,color:#fff
    style EV fill:#E040FB,stroke:#AB00D9,color:#fff
    style PR fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style UN fill:#784BA0,stroke:#5C3D8F,color:#fff
    style CALL fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style LED fill:#00E5FF,stroke:#0097A7,color:#000
    style STOP fill:#E040FB,stroke:#AB00D9,color:#fff
    style END fill:#00E5FF,stroke:#0097A7,color:#000
Loading

What's New in 7.4.0: Model-Agnostic Orchestration

Quorum now has an optional Python orchestrator, quorum-run. It checks and records the run, but the host model still runs on your machine, so read Limits below. Its job is to give you one best-supported decision while spending as few tokens as it can, across models you choose.

Feature What it does Why
Family diversity floor Stops with FAILED_DIVERSITY if too few model families answer, and needs at least one model that Quorum called directly Five personas on one model are still one model
Decision brief Gives a recommendation, next-best option, case against, what would change it, unknowns and spend People need a decision they can act on, not a debate transcript
Evidence weighting Each family counts once per option, using the evidence tier Quorum assigns. Confidence, length and persona count add nothing Otherwise confident or verbose answers win
UNRESOLVED verdict Reported when the evidence does not separate the options Agreement is not proof, and forcing an answer misleads
Model routing by evidence Picks the cheapest model that clears a role's evidence bar. You supply the evidence. Without it, the model is marked unproven Reputation is not evidence, and rankings go stale
Token budgets Stakes set the total, and phases get separate budgets Early work should not consume what the decision needs
Stop rule Challenge rounds end when nothing new appears or the verdict settles Extra rounds on settled questions waste tokens
Ledger Reports tokens and cost by phase, role and model, and labels estimates You cannot optimize what you cannot see. Prices are never guessed
AI-aware handoff Dedupes claims, keeps the strongest evidence, caps size, redacts and tags provenance Agents should get what they need, not the full pool
Open-source orchestrator A local model through Ollama can write neutral summaries. It never judges Cheap work should not use frontier tokens
Tasktrack Records topics researched and flags exact repeats in the brief You should see when work was already done. Similar questions may differ, so nothing is merged automatically
Intent step Asks when a question is vague, or states its assumptions A precise question saves more tokens than any later control
Event log Writes up to 12 event types, redacted, for any UI to read. Notes are data A control center can come later without trusting note text as commands
Secrets boundary Redaction, reference-only keys, stdin prompts, a clean child environment, HTTPS, and untrusted project config, all in quorum-run In code, these protections do not depend on a model following instructions
Challengers Renames "adversarial" agents They test ideas to improve decisions, and the new name says so plainly

Limits: Claude panelists run as host subagents, so Quorum issues their prompts and records their answers but cannot observe those calls. Their usage is an estimate, and the brief says so. Without fetch_sources, Quorum does not check that cited sources exist. Token savings and decision quality have not yet been measured against a single strong model. The default weights, budget shares and thresholds are starting settings, not validated values. The prompt-only /quorum flow still works as before.

What's New in 7.3.1: Safety Corrections

Change Why
Gemini and Codex prompts go over stdin, not the command line Command-line arguments are visible in process lists, logs and session transcripts
Quorum asks before sending anything to a third party, with a separate yes for artifacts Your data should not leave your machine because of a flag. --max no longer implies consent
If no external model answers, the run stops with FAILED_DIVERSITY A panel that silently becomes one model looks like a multi-model verdict but is not one
The Ralph loop is removed A script should not make the consent decision for you. Run PRDs in a Claude Code permission mode you choose
SAFETY.md now separates instructions from enforced protections Earlier wording described protections as if code enforced them. In 7.3.x, most are instructions to the model
New guidance: never hardcode API keys; keep them in a vault you own A key in a file, prompt or commit should be treated as exposed

If you used earlier versions: --diverse and --max could put your question and artifact text on the command line and send them to Google and OpenAI without asking. If a credential may have been in that content, rotate it. See the changelog.

NEW: Hackathon Mode

Say "build" and Quorum becomes a hackathon team. No flags, no config — just describe what you want built.

/quorum "Build a REST API for user auth with JWT" --max

Quorum auto-detects implementation intent and runs the hackathon pipeline:

  1. Decomposition agent breaks your idea into a PRD with TDD enforcement — exact file paths, bite-sized tasks, machine-verifiable acceptance criteria
  2. Challenger stress-test (--max) — Architect, Breaker, TDD Enforcer, Pragmatist, and Judge attack the PRD until it survives or gets rewritten
  3. Output — a battle-tested _swarm/prd-*.md ready for implementation
  4. You execute it in Claude Code, in the permission mode you choose. Auto mode runs the tasks unattended; read the consent warning first.

From "Build X" to a battle-tested PRD. One command. The decision to run it unattended stays with you.

Full hackathon docs →


Roadmap: Ideas Under Research

These are ideas, not features. None is built, and each needs evidence before it enters a release.

Verifiable KV-cache handoffs. Swarm Telepathy (MIT CSAIL and MIT-IBM, preprint) reports passing a model's internal state between model families, with better scores and speed than text in its tests. Quorum could gain from this between trusted local models. The open question is how to know the inherited context is accurate and has not been compromised.

  • Design rule: the cache is a hint, never evidence. Text stays the record, and every consequential output must trace to readable sources without relying on the cache.
  • Why hashes are not enough: a hash shows a cache did not change. It cannot show what the cache contains, and a cache can carry more than its visible text.
  • Fidelity checks to test: recomputing the cache within a tolerance, sampled audits, and probing what the receiver actually learned. Related work: TAO, DiFR and Seal, Then Sample.
  • Known risks: biased omission that readable checks cannot see, secrets surviving translation, and prompt leakage through shared caches.
  • Limits on use: one trust boundary, per-tenant isolation, text as the fallback, and never for independent first opinions.
  • Before any build: measure bytes against text, decay over repeated handoffs, and whether canary secrets and injected instructions survive. Hosted APIs do not appear to expose KV caches, so this applies to local models first.

Calibrated confidence. Combine source quality, corroboration and contradictions into one score, but only after it is calibrated on labelled runs. Quorum already has a Brier score function to measure this.

Eval for entailment. Measure how many bad citations the cross-family check catches and what that costs. Turn it on by default only if the numbers justify it.

Cross-run knowledge. Reuse verified claims and entailment results across runs to save tokens. Reused claims must keep their origin and be checked again, because lost origin is how poisoned content turns trusted.

Deeper copy detection. Find sources that copy each other beyond exact quotes, following source dependence research, which shows why majority votes fail when sources are not independent.

Lineage search. Add a rebuildable SQLite index if lineage queries outgrow the JSONL record. A graph database is not justified at the size of a run.

Documentation

  • Usage Guide — When to use flat vs max vs reviewers vs swarm. Decision matrix, cost guide, examples
  • Architecture — Full phase-by-phase technical specification, structured reasoning metrics (convergence, bias detection, independence, evidence scorecard)
  • FAQ & Empirical Findings — Scale testing results, context/memory effects, statistical methodology for evaluating multi-agent debate
  • Prompt Templates — All agent templates with variable reference
  • Safety & Privacy — Guardrails, privacy disclosure, tool permissions
  • Integration Templates — Secure setups for Vault, Kubernetes, Docker, cloud secret managers, personal vaults and CLI sign-in
  • Privacy Policy — Full privacy policy for all qinnovate tools
  • Changelog — Version history and what changed
  • Releases — GitHub releases with download links

What You Get

═══════════════════════════════════════════════════
QUORUM VERDICT — 5 agents, 2 challenger, 1 round
═══════════════════════════════════════════════════

EXECUTIVE SUMMARY
Build it yourself. The panel reached strong consensus (4-1) that
using an AI coding assistant to build a custom solution beats
adopting an off-the-shelf SaaS for this use case. The workflow is
specific enough that no existing tool fits without heavy
customization, and AI-assisted development now closes the build
vs. buy gap to under a week. The Challenger (Product
Strategist) argued buy-first to validate demand before investing
engineering time.

DISAGREEMENT REGISTER
  Product Strategist (MINORITY): "Ship with a SaaS integration in
  2 days. If users engage, then invest in a custom build. You're
  optimizing for architecture before proving anyone cares."
  → Rebuttal (Technical Lead): "The SaaS integration requires the
  same data modeling work. Building custom adds 3 days but
  eliminates the migration tax and vendor lock-in."

CONFIDENCE: HIGH (4 of 5 sourced claims verified)
EVIDENCE SCORECARD: 7 claims, 5 STRONG, 1 MODERATE, 1 UNSOURCED
INDEPENDENCE SCORE: 0.81 (HIGH)
BIAS FLAGS: None triggered

PRIORITY ACTIONS
1. Define the data model and API contract first
2. Use AI-assisted development for the core logic (estimated 3-5 days)
3. Ship an MVP to 10 users before adding features
═══════════════════════════════════════════════════

That took 2 minutes. One command.

Example Use Cases

Quorum works on any question worth debating. Here are five:

Question Why Quorum beats a single AI
Product "Should we launch with a free tier or paid-only?" A single agent defaults to "free tier for growth." Quorum's Challengers stress-test unit economics, conversion assumptions, and support cost — so you get the tradeoffs, not just the popular answer
Growth "What's the best channel to acquire our first 1,000 users?" One agent gives you a generic list. Quorum agents argue paid vs. organic vs. community with actual CAC estimates, surface which channels are saturated, and flag the ones where your specific audience actually lives
Content "Is this blog post ready to publish?" One agent says "looks good!" Quorum agents review for factual accuracy, tone consistency, SEO gaps, and audience fit — then disagree about what "ready" means until the weak spots are exposed
Data "Which metrics should we track for our MVP launch?" A single agent gives you the standard vanity metrics. Quorum's panel debates leading vs. lagging indicators, argues about what's actually measurable at your stage, and kills the metrics that sound good but drive no decisions
Design "Should we redesign the onboarding flow or optimize the existing one?" One agent picks whichever sounds more impressive. Quorum agents fight over whether the data justifies a redesign, what "optimize" actually means without A/B infrastructure, and whether onboarding is even the real churn problem
/quorum "Should we launch with a free tier or paid-only?"

Quick Start

New to Claude Code? Start here

You need a Mac or Linux computer. You will type a few commands into the Terminal app.

1. Install Claude Code and sign in. Follow Anthropic's quickstart. Then run claude --version in Terminal. If you see a version number, it worked.

2. Install Quorum. You will need Git. Paste these lines into Terminal:

git clone https://github.com/qinnovates/quorum.git
cd quorum
./scripts/install.sh

The installer adds the skill, checks which models you have, and writes a config with no keys in it. It does not need admin rights, and it never asks for an API key. It finishes by listing your next steps. Do them in order.

3. Ask your first question. Open any project folder in Terminal, start Claude Code, and type /quorum with your question:

cd your-project
claude
/quorum "Should we build this feature ourselves or buy a tool?"

That is all you need. Claude assembles a panel of experts, and you get an answer that has been challenged. If your question is vague, Quorum asks you to clarify first. Claude Code may ask permission before some steps, so read each request before you approve it.

4. Optional: add other AI models for more independent reviews. Different personas on one model share the same blind spots, so a second model family helps.

Add How Good for
Ollama Install Ollama, run ollama pull <model>, and leave it running Free, and prompts stay on your computer
Gemini CLI Install it, then run gemini and sign in A second model family
Codex CLI Install it, then run codex login A second model family

To connect one by hand, open ~/.config/quorum/quorum.toml. The installer leaves a commented placeholder with steps for each model type you have not connected: Gemini, Codex, Ollama and any OpenAI-compatible API. Remove the # marks, replace the <angle brackets>, and run quorum-run doctor.

Or, after installing a CLI or Ollama, let Quorum detect it:

quorum-run setup --force
quorum-run doctor

doctor shows OK or FIX for each item, and each FIX says what to do. setup --force replaces your config and keeps each old one as a numbered quorum.toml.previous backup.

Quorum asks before sending your question to any outside provider. Read your API safety checklist before you connect a paid API.

Troubleshooting

Problem Fix
claude: command not found Repeat step 1, then open a new Terminal window
/quorum is not recognized Run ./scripts/install.sh again, then restart Claude Code
quorum-run: command not found Follow the PATH step the installer printed, then open a new Terminal window
Python is too old Install Python 3.11 or newer. /quorum still works without it, using Claude only
FAILED_DIVERSITY Too few model families answered. Run quorum-run doctor and do what each FIX says
A provider hangs or fails It may need sign-in. Run quorum-run doctor --live --allow-provider <name>

To update, run git pull in your quorum folder, then run ./scripts/install.sh again. To uninstall, delete ~/.claude/skills/quorum, ~/.local/share/quorum, ~/.local/bin/quorum-run and ~/.config/quorum.

The Problem With AI Research Today

You already know single-agent AI hallucinates. So you try multi-agent. You split work across subagents, collect results, merge them. Feels safer. It's not.

The echo chamber problem. All your agents share the same base model, the same training data, the same priors. When Agent 1 and Agent 3 both say "use DynamoDB," that feels like independent confirmation. It isn't. They reached the same conclusion from the same statistical distribution. You didn't get two opinions. You got one opinion twice. Quorum v7.2.0 addresses this directly with --diverse: replace 2 agent slots with Gemini and Codex for genuine prior diversity across different training distributions. How multi-model diversity works ->

The duplicate effort problem. Without structural coordination, agents research the same sources, follow the same search terms, cite the same top Google results. You're burning 5x the tokens for 1.2x the coverage. Quorum gives each agent asymmetric context and different search strategies on purpose.

The missing challenge problem. Splitting work and merging results is collaboration. It is not scrutiny. Nobody asked "what if this is wrong?" Nobody tested whether the conclusion survives attack. Nobody checked if the sources actually say what the agents claim they say. The answer was assembled, not stress-tested.

The groupthink problem. When all agents converge on the same answer, most tools treat that as high confidence. Quorum treats it as the highest-risk scenario. Unanimous consensus triggers MORE scrutiny, not less. Because in groups, agreement without challenge is the most dangerous signal there is (Janis 1972). Quorum's 6 anti-boxing rules structurally prevent echo chambers: domain outsiders are injected from outside your profile, Challengers can never be pruned for "efficiency," and exploratory queries invert the agent roster to spawn perspectives you didn't ask for.

How every other AI tool works

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#555', 'background': '#0d1117'}}}%%
graph LR
    Q["Your Question"] --> A1["One Agent"]
    A1 --> R["One Answer"]
    R --> YOU["You hope<br/>it's right"]

    style Q fill:#333,stroke:#555,color:#aaa
    style A1 fill:#333,stroke:#555,color:#aaa
    style R fill:#333,stroke:#555,color:#aaa
    style YOU fill:#333,stroke:#555,color:#aaa
Loading

One model. One perspective. Sounds confident. Could be completely wrong. No way to know.

How Quorum works

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph LR
    Q["Your Question"] --> S["Supervisor"]
    S --> A1["Strategist"]
    S --> A2["Skeptic"]
    S --> A3["Researcher"]
    S --> A4["Devil's<br/>Advocate"]
    S --> A5["Domain<br/>Outsider"]
    A1 & A2 & A3 & A4 & A5 --> D["Debate &<br/>Cross-Review"]
    D --> V["Validation<br/><i>fact-check claims</i>"]
    V --> R["Decision Brief<br/><i>best-supported path,<br/>case against, or UNRESOLVED</i>"]

    style Q fill:#FF3CAC,stroke:#D4006A,color:#fff
    style S fill:#E040FB,stroke:#AB00D9,color:#fff
    style A1 fill:#784BA0,stroke:#5C3D8F,color:#fff
    style A2 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style A3 fill:#784BA0,stroke:#5C3D8F,color:#fff
    style A4 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style A5 fill:#E040FB,stroke:#AB00D9,color:#fff
    style D fill:#FF3CAC,stroke:#D4006A,color:#fff
    style V fill:#784BA0,stroke:#5C3D8F,color:#fff
    style R fill:#00E5FF,stroke:#0097A7,color:#000
Loading

Five experts. Independent work. Mandatory challenger. The answer that survives pushback is the one worth trusting.


How other multi-agent tools work

Claude Code subagents (built-in Agent tool):

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#555', 'background': '#0d1117'}}}%%
graph LR
    Q["Task"] --> SP["Split"]
    SP --> A1["Subagent 1<br/><i>subtask A</i>"]
    SP --> A2["Subagent 2<br/><i>subtask B</i>"]
    SP --> A3["Subagent 3<br/><i>subtask C</i>"]
    A1 & A2 & A3 --> M["Merge"]
    M --> R["Combined<br/>Answer"]

    style Q fill:#333,stroke:#555,color:#aaa
    style SP fill:#333,stroke:#555,color:#aaa
    style A1 fill:#333,stroke:#555,color:#aaa
    style A2 fill:#333,stroke:#555,color:#aaa
    style A3 fill:#333,stroke:#555,color:#aaa
    style M fill:#333,stroke:#555,color:#aaa
    style R fill:#333,stroke:#555,color:#aaa
Loading

Split task, collect parts, merge. Great for parallelizing work. But no agent challenges another. No challenge review. No fact-checking. If all 3 hallucinate the same thing, you get a confident, well-formatted wrong answer.

Other multi-agent solutions (sequential review pipelines):

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#555', 'background': '#0d1117'}}}%%
graph LR
    P["Plan"] --> R1["Review 1<br/><i>single agent</i>"]
    R1 --> R2["Review 2<br/><i>single agent</i>"]
    R2 --> R3["Review 3<br/><i>single agent</i>"]
    R3 --> R4["Second Opinion<br/><i>different model</i>"]
    R4 --> D["Decision"]

    style P fill:#333,stroke:#555,color:#aaa
    style R1 fill:#333,stroke:#555,color:#aaa
    style R2 fill:#333,stroke:#555,color:#aaa
    style R3 fill:#333,stroke:#555,color:#aaa
    style R4 fill:#333,stroke:#555,color:#aaa
    style D fill:#333,stroke:#555,color:#aaa
Loading

Sequential single-agent reviews. Each reviewer sees the plan in isolation. No debate between reviewers. No convergence math. No bias detection. The "second opinion" may be a different model, but it still just agrees or disagrees — it doesn't have to defend its position against attack.

Quorum:

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph TD
    Q["Your Question"] --> S["Supervisor"]
    S --> A1["Expert 1"]
    S --> A2["Expert 2"]
    S --> A3["Challenger 1<br/><i>must counter-propose</i>"]
    S --> A4["Challenger 2<br/><i>less context on purpose</i>"]
    S --> A5["Domain Outsider<br/><i>outside the box</i>"]
    A1 & A2 & A3 & A4 & A5 --> DB["Debate<br/><i>pairs argue disagreements</i>"]
    DB --> BI["Bias Detection<br/><i>anchoring, confirmation,<br/>survivorship, base-rate</i>"]
    BI --> SC["Evidence Scorecard<br/><i>% sourced vs unsourced</i>"]
    SC --> V["Decision Brief<br/><i>best-supported path + what's disputed +<br/>what would change it + cost, or UNRESOLVED</i>"]

    style Q fill:#FF3CAC,stroke:#D4006A,color:#fff
    style S fill:#E040FB,stroke:#AB00D9,color:#fff
    style A1 fill:#784BA0,stroke:#5C3D8F,color:#fff
    style A2 fill:#784BA0,stroke:#5C3D8F,color:#fff
    style A3 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style A4 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style A5 fill:#E040FB,stroke:#AB00D9,color:#fff
    style DB fill:#FF3CAC,stroke:#D4006A,color:#fff
    style BI fill:#784BA0,stroke:#5C3D8F,color:#fff
    style SC fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style V fill:#00E5FF,stroke:#0097A7,color:#000
Loading

Parallel agents with mandatory challenger. Critics must counter-propose, not just attack. Outsiders break groupthink by design. Every synthesis checked for 4 cognitive biases. Every claim classified as sourced or unsourced. The answer you get has been stress-tested, not just reviewed.

Claude Subagents Other Solutions Quorum
Topology Parallel split-merge Sequential single-agent reviews Parallel debate + challenge-driven convergence
Challenger None Cross-model second opinion, no structured attack 2+ mandatory critics per panel, counter-proposals required
Bias Detection None None 4 cognitive bias checks per synthesis
Evidence Scoring None None Every claim graded STRONG/MODERATE/WEAK/UNSOURCED
Convergence Math None None C* (CDI-adjusted convergence), scored per round
Anti-groupthink None Different model 6 structural anti-boxing rules, domain outsider injection
Multi-model diversity None Some use different model for review --diverse: Gemini + Codex agents in panel, cross-model divergence detection

What makes Quorum different:

  • Cognitive Diversity Profiles — each agent gets a unique cognitive profile (risk tolerance, skepticism, abstraction level) that creates productive tension with their expertise. A security expert forced to see opportunities. A creative forced to pressure-test their own ideas. Same model, genuinely different reasoning. How CDP works ->
  • Agents assigned opposing positions, forced to defend them with evidence
  • Challenge agents get less context on purpose so they can't just agree with everyone
  • Research agents search different sources with different terms based on their cognitive profile
  • The supervisor judges reasoning quality, not vote counts
  • Every synthesis scored by convergence, independence, bias detection, and evidence sourcing — full methodology

Examples

For Decisions

# Quick opinion — 5 agents, done in 2 minutes
/quorum "Should we build this feature custom or buy a SaaS tool?"

# Stress-test a decision — full challenge-driven convergence
/quorum "Should we build or buy our auth system?" --max

# Settling an argument — auto-routes to dialectic
/quorum "Is a hot dog a sandwich?"

# Career crossroads
/quorum "Making $180K in fintech, offered $140K at a climate startup. Worth the pay cut?"

# Buying a house
/quorum "Found a house for $450K, 1960s build, no inspection. What should first-time buyers worry about?"

# Before a job interview
/quorum "Interviewing at Stripe for senior security. What will they ask I'm not preparing for?"

# Evaluating a business idea
/quorum "App that matches dog owners for group walks. Business or feature?" --max

For Building

# Auto-detects hackathon mode, generates battle-tested PRD
/quorum "Build a REST API for user auth with JWT" --max

# Review a document
/quorum "Review this contract for risks I might miss" --artifact contract.pdf

# Sequential review pipeline — assembles domain-appropriate reviewers
/quorum "Review our payment flow for PCI compliance" --reviewers --artifact payment-flow.md

# Research landscape — auto-routes to web research
/quorum "Complete landscape of EEG-based authentication methods"

# Exhaustive red team at scale
/quorum "Red team our auth system — every attack vector" --set 100

# Massive scale prediction — swarm auto-engages at 20+
/quorum "Will BCI startups consolidate or fragment by 2028?" --set 200

# Human-in-the-loop: review verdict before it's final
/quorum "Should we open-source our core engine?" --max --ratify

# Approve a PRD before automated execution
/quorum "Build the obstacle detection pipeline" --max --ratify

# Private, no web searches
/quorum "Evaluate our internal security posture" --artifact audit.md --no-web

# See the plan before spending tokens
/quorum "Microservices or monolith?" --max --dry-run

# Multi-model panel — break the single-model echo chamber
/quorum "Should judges enforce unjust but constitutional laws?" --diverse

# With --max, Quorum offers --diverse when Gemini + Codex CLIs are installed, and asks first
/quorum "Is regulation of AI a net positive or negative?" --max

Options

Four tiers:

Tier Flag Agents What Happens
Default (none) 5 SME panel debates, supervisor synthesizes
Max --max 7-15 (recommended, user can go higher) Full challenge-driven convergence with iterative rounds. Subsumes the old --converse flag. Teams/dialectic/hackathon auto-selected as needed
Reviewers --reviewers 3-5 phases Sequential review cascade, auto-decide mechanical findings, surface taste calls
Custom --set N N At 20+, swarm architecture auto-engages (same as --swarm)

Eight optional flags:

Flag Why It Can't Be Auto-Detected
--artifact PATH Supervisor can't know which file you mean
--ratify User wants human-in-the-loop approval before verdict is final
--reviewers User wants vertical sequential review, not horizontal debate
--no-web Privacy choice only the user can make
--ponder User explicitly wants Q&A before the swarm runs
--dry-run User wants to see the plan without spending tokens
--diverse Use multi-model panel (Gemini + Codex alongside Claude). Offered with --max when CLIs are detected; asks for consent before sending anything
--no-diverse Suppress multi-model auto-detection under --max

Everything else is auto-detected:

What You Say What Fires How It's Detected
"Should we use X or Y?" Dialectic (2 agents, Socratic rounds) Binary question pattern
"Build a REST API for..." Hackathon (PRD + TDD, you choose how it runs) Implementation intent: "build", "implement", "create", "add feature"
"Review this" + --artifact Review mode (agents analyze the file) Artifact present + review/audit/validate language
"What am I missing about..." Explore mode (reframe the question) Meta-question / exploratory language
"EEG auth methods landscape" Research mode (web search + synthesis) Open knowledge question without artifact
Vague prompt (no scope, no constraints) Vagueness gate (2-4 clarifying questions) Auto-detected when 2+ vagueness signals present. No flag needed
Any question at --max Challenge-driven convergence (iterative rounds) --max always uses converse mode internally
Any question at --set 20+ Swarm (MECE taxonomy + environment) Agent count >= 20
3+ domains detected Teams (internal deliberation, cross-challenge) Supervisor detects domain count
Forecasting question at --set Prediction mode (sentiment + coalitions) "Will X happen", "by 2028", future-tense patterns

Ratify Mode (--ratify)

Human-in-the-loop approval gate. After deliberation, --ratify adds a structurally independent audit and pauses for your review before the verdict is final.

What it does

  1. Phases 0-7 run normally — full deliberation, synthesis, validation
  2. Auditor — A fresh agent reviews the verdict cold. It sees ONLY the original question and the final verdict — no phase history, no agent transcripts, no deliberation dynamics. This structural independence (Lorenz et al. 2011) is stronger than the standard Phase 5 validation gate.
  3. You review — Verdict + auditor annotations. Three options:
Option What Happens
Accept Verdict is final
Refine Your constraint is injected, Phases 3-7 re-run once, Auditor re-reviews, you get a final Accept/Reject
Reject Verdict discarded, full restart from Phase 0 with your feedback as anti-patterns

When to use --ratify

  • High-stakes irreversible decisions — architecture choices, business model, security posture
  • Before automated execution — approve a PRD before running it in Auto mode
  • When you have context the panel doesn't — your REFINE injects what the agents missed
  • Accountability — verdict metadata shows what was audited, what was flagged, what you approved

Why one revision, not a loop

Research (Schulz-Hardt et al. 2006) shows the first structured revision captures the quality gain. Subsequent rounds flatten or decrease quality as decision fatigue sets in. Iterative averaging introduces correlated error (Larrick & Soll 2006). One Auditor pass + one human REFINE. Beyond that, REJECT and reframe.

The 2x2

--max controls depth. --ratify controls approval. They compose orthogonally:

Auto-accept Human-ratified
Quick /quorum "q" /quorum "q" --ratify
Deep /quorum "q" --max /quorum "q" --max --ratify
# Quick take with human approval
/quorum "PostgreSQL or DynamoDB?" --ratify

# Full stress-test with human approval
/quorum "Should we build or buy auth?" --max --ratify

# Approve PRD before Auto-mode execution
/quorum "Build user auth with JWT" --max --ratify

How It Works

Default Mode (5 agents)

%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#FF3CAC', 'primaryTextColor': '#fff', 'primaryBorderColor': '#D4006A', 'secondaryColor': '#E040FB', 'secondaryTextColor': '#fff', 'secondaryBorderColor': '#AB00D9', 'tertiaryColor': '#784BA0', 'tertiaryTextColor': '#fff', 'tertiaryBorderColor': '#5C3D8F', 'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph LR
    A["Your Question"] --> B["Supervisor<br/>picks 5 SMEs"]
    B --> C1["Agent 1<br/><i>independent</i>"]
    B --> C2["Agent 2<br/><i>independent</i>"]
    B --> C3["Agent 3<br/><i>challenger</i>"]
    B --> C4["Agent 4<br/><i>challenger</i>"]
    B --> C5["Agent 5<br/><i>independent</i>"]
    C1 & C2 & C3 & C4 & C5 --> D["Triage<br/>key disagreements"]
    D --> E["Cross-Review<br/>debate pairs argue"]
    E --> F["Synthesis<br/>editorial judgment"]
    F --> G["Validation<br/>fact-check"]
    G --> H["Decision Brief"]

    style A fill:#FF3CAC,stroke:#D4006A,color:#fff
    style B fill:#E040FB,stroke:#AB00D9,color:#fff
    style C1 fill:#784BA0,stroke:#5C3D8F,color:#fff
    style C2 fill:#784BA0,stroke:#5C3D8F,color:#fff
    style C3 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style C4 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style C5 fill:#784BA0,stroke:#5C3D8F,color:#fff
    style D fill:#E040FB,stroke:#AB00D9,color:#fff
    style E fill:#FF3CAC,stroke:#D4006A,color:#fff
    style F fill:#E040FB,stroke:#AB00D9,color:#fff
    style G fill:#784BA0,stroke:#5C3D8F,color:#fff
    style H fill:#00E5FF,stroke:#0097A7,color:#000
Loading
  1. Setup — Supervisor analyzes your question, picks experts with diverse perspectives. Minimum 2 challenger. Before spawning, the supervisor checks if the prompt is specific enough. If vague (no scope, no constraints), it asks 2-4 clarifying questions first
  2. Independent work — All agents work in parallel, no one sees anyone else's output
  3. Triage — Supervisor reads all reports, drops low-value agents, identifies key disagreements
  4. Cross-review — Selected agents debate each other directly. Devil's Advocate challenges the majority
  5. Synthesis — Supervisor authors the final report with editorial judgment
  6. Validation — Challenge reviewer challenges the synthesis (web fact-check preferred; same-session agent review as fallback — see Limitations)
  7. Final report — What survived, what's disputed, what to do next

Max Mode (7-15 recommended, scalable, --max)

The supervisor picks 7-15 agents by default. To scale higher, combine with --set:

/quorum "question" --max              # supervisor picks 7-15
/quorum "question" --max --set 25     # you set 25, full convergence rounds
/quorum "question" --max --set 50     # 50 agents, swarm auto-engages at 20+
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#FF3CAC', 'primaryTextColor': '#fff', 'primaryBorderColor': '#D4006A', 'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph TD
    A["Your Question + --max"] --> B["Proposer<br/>puts solution on table"]
    B --> C["Round 1"]
    C --> D["Realist<br/><i>attacks + survival paths</i>"]
    C --> E["Breaker<br/><i>red-teams, self-rates</i>"]
    D & E --> F["Synthesizer<br/>what survived?"]
    F --> G{"Judge<br/>C >= 0.8?"}
    G -->|"No, C < 0.8"| H["Proposer revises"]
    H --> I["Round N"]
    I --> D2["Realist<br/><i>attacks revisions</i>"]
    I --> E2["Breaker<br/><i>new attack vectors</i>"]
    D2 & E2 --> F2["Synthesizer"]
    F2 --> G2{"Judge<br/>C >= 0.8?"}
    G2 -->|"Yes"| J["CONVERGED"]
    G2 -->|"3+ rounds, C < 0.5"| K["TENSION or<br/>EXHAUSTED"]
    G -->|"Yes"| J

    style A fill:#FF3CAC,stroke:#D4006A,color:#fff
    style B fill:#E040FB,stroke:#AB00D9,color:#fff
    style C fill:#784BA0,stroke:#5C3D8F,color:#fff
    style D fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style E fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style F fill:#E040FB,stroke:#AB00D9,color:#fff
    style G fill:#FF3CAC,stroke:#D4006A,color:#fff
    style H fill:#784BA0,stroke:#5C3D8F,color:#fff
    style I fill:#784BA0,stroke:#5C3D8F,color:#fff
    style D2 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style E2 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style F2 fill:#E040FB,stroke:#AB00D9,color:#fff
    style G2 fill:#FF3CAC,stroke:#D4006A,color:#fff
    style J fill:#00E5FF,stroke:#0097A7,color:#000
    style K fill:#FF3CAC,stroke:#D4006A,color:#fff
Loading

The full panel iterates across rounds until a solution survives sustained attack. Five core roles:

Role What They Do
Proposer Goes first. Defends and adapts across rounds.
Realist "This fails because X, and here's what survives X." Every criticism includes a survival path.
Breaker Red-teams the proposal. Self-rates attacks. "I can't break this" = strongest signal.
Synthesizer Reports what survived and what collapsed at checkpoints.
Judge Neutral arbiter. Computes convergence score. Ends when C >= 0.8 (max 6 rounds).

Anti-duplication: No repetition across rounds. "This won't work" is not allowed. Must include what WOULD work. No free nihilism. The 40/60 challenger-to-constructive ratio is calibrated: AI debate performance drops at 4+ Challengers from context overload (Liang et al. 2023), and authentic critics outperform assigned devil's advocates (Nemeth 2001).

Four outcomes: CONVERGED (survived attack) / VOTE (near-consensus tiebreaker) / TENSION (irreducible tradeoff — user decides) / EXHAUSTED (diminishing returns).

Structured Vote: When positions are close but not converged (C* between 0.65 and 0.8), agents cast a weighted vote — position, confidence (1-10), and one-sentence rationale. Votes are weighted by evidence quality and agent independence, not raw headcount. A well-sourced vote from an independent agent counts more than an unsourced echo. The vote result is visible in the verdict and informs the supervisor's synthesis. The supervisor can override the vote with stated reasoning.

The supervisor also auto-selects structure as needed:

  • Teams — if 3+ domains with different incentives. Teams deliberate internally, leads cross-challenge. Socrates questions weakest points, Plato audits evidence
  • Dialectic — if the question is binary or philosophical. 2 agents drill through contradiction across rounds
  • Hackathon — if the query is "build X". Generates PRD with TDD + acceptance criteria, stress-tests it, outputs the PRD for you to execute

Swarm (20-1000+ agents, --set N):

  • Partition Engine — MECE taxonomy, each agent gets a unique territory
  • Environment Server — shared state, agents POST/REACT/HANDOFF/SHIFT (prompt-orchestrated, not a runtime service)
  • Pattern Detection — supervisor reads emerging patterns, not individual reports
  • Prediction mode — auto-detected for forecasting questions ("will X happen by Y?")

Full architecture documentation ->

Hackathon Mode (Auto-Detected)

When you say "build", "implement", "create", "scaffold", "write a", "set up", or "add feature", the supervisor auto-triggers the hackathon pipeline. No flag needed.

/quorum "Build a REST API for user auth with JWT" --max
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#FF3CAC', 'primaryTextColor': '#fff', 'primaryBorderColor': '#D4006A', 'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph LR
    A["'Build X' detected"] --> B["Decomposition<br/>Agent"]
    B --> C["PRD with TDD<br/><i>file paths, tasks,<br/>acceptance criteria</i>"]
    C --> D{"--max?"}
    D -->|"Yes"| E["Challenger<br/>Convergence"]
    E --> F["Architect + Breaker<br/>+ TDD Enforcer<br/>+ Pragmatist + Judge"]
    F --> G{"C >= 0.8?"}
    G -->|"No"| E
    G -->|"Yes"| H["_swarm/prd-*.md"]
    D -->|"No"| H
    H --> I["You execute it<br/><i>Claude Code permission mode of your choice</i>"]

    style A fill:#FF3CAC,stroke:#D4006A,color:#fff
    style B fill:#E040FB,stroke:#AB00D9,color:#fff
    style C fill:#784BA0,stroke:#5C3D8F,color:#fff
    style D fill:#E040FB,stroke:#AB00D9,color:#fff
    style E fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style F fill:#784BA0,stroke:#5C3D8F,color:#fff
    style G fill:#FF3CAC,stroke:#D4006A,color:#fff
    style H fill:#00E5FF,stroke:#0097A7,color:#000
    style I fill:#00E5FF,stroke:#0097A7,color:#000
Loading

What happens:

  1. Supervisor detects implementation intent ("Build") -> triggers hackathon pipeline
  2. Decomposition agent generates a PRD with TDD enforcement:
    • Exact file paths for every file created or modified
    • Bite-sized tasks (one action each, 2-5 minutes)
    • Each task: write failing test -> verify fail -> implement -> verify pass -> commit
    • Machine-verifiable acceptance criteria (not "works correctly" but "returns 200 with valid JWT containing user_id claim")
  3. Challenge-driven convergence stress-tests the PRD (only with --max):
    • Architect: "Are the boundaries right? Missing abstractions?"
    • Breaker: "Which acceptance criteria are ambiguous? Edge cases?"
    • TDD Enforcer: "Is every task actually testable? Assertions specific enough?"
    • Pragmatist: "Is this over-engineered? Can tasks be eliminated?"
    • Judge: Computes convergence score. Declares READY or sends back for revision.
  4. Output: _swarm/prd-{name}.md — ready for implementation

Executing the PRD. Quorum stops at the PRD. It does not run an autonomous build loop of its own. To execute the tasks, open the PRD in Claude Code and choose a permission mode yourself:

  • Default mode: Claude proposes each edit and command and waits for your approval. Safest; slowest.
  • Auto mode: Claude works through the PRD's tasks (test → fail → implement → pass → commit) without asking before each action. Switch with Shift+Tab, or start with claude --permission-mode auto.

Consent warning. Auto mode means you are approving every edit and command in advance, not one at a time. Before you turn it on: read the PRD (--ratify exists for exactly this); work on a fresh branch or worktree with nothing uncommitted that you care about; keep the task list scoped to what you reviewed; and stay close enough to stop it (Esc). Quorum will never switch modes for you. The choice to run unattended is yours to make, every time.

Earlier versions shipped a shell script (the "Ralph loop") that called claude --print in a loop with no approval step. It was removed in v7.3.1: Claude Code's permission modes do the same job, with the consent decision made explicitly by the user instead of by a script.

/quorum "Build X" /quorum "Build X" --max
PRD generation 5 agents (lighter) 7-15 agents (full decomposition)
Stress-test No challenge review Full convergence (5 personas, C >= 0.8)
Output quality Good for small features Production-grade for complex systems

No --hackathon flag exists. Same capability, zero cognitive load.

Reviewers Mode (--reviewers)

Top-down sequential review pipeline. Unlike default Quorum (horizontal debate), --reviewers runs phases in cascade — each phase's output feeds the next. Personas are dynamically assembled based on the prompt topic, not hardcoded.

/quorum "Review this API design for production readiness" --reviewers --artifact api-spec.md
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#FF3CAC', 'primaryTextColor': '#fff', 'primaryBorderColor': '#D4006A', 'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph TD
    A["Prompt + Artifact"] --> B["Supervisor<br/>assembles 3-5 phases"]
    B --> P1["Phase 1: Strategist"]
    P1 -->|"findings + prior context"| P2["Phase 2: Architect"]
    P2 -->|"findings + prior context"| P3["Phase 3: Security"]
    P3 -->|"findings + prior context"| P4["Phase 4: QA"]
    P4 --> CL{"Classify<br/>each finding"}
    CL -->|"Mechanical"| AUTO["Auto-Resolved<br/><i>completeness, DRY,<br/>blast radius</i>"]
    CL -->|"Taste"| HUMAN["Surfaced to User<br/><i>you decide</i>"]
    AUTO & HUMAN --> DONE["Final Report<br/>with cross-phase themes"]

    style A fill:#FF3CAC,stroke:#D4006A,color:#fff
    style B fill:#E040FB,stroke:#AB00D9,color:#fff
    style P1 fill:#784BA0,stroke:#5C3D8F,color:#fff
    style P2 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style P3 fill:#784BA0,stroke:#5C3D8F,color:#fff
    style P4 fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style CL fill:#E040FB,stroke:#AB00D9,color:#fff
    style AUTO fill:#00E5FF,stroke:#0097A7,color:#000
    style HUMAN fill:#FF3CAC,stroke:#D4006A,color:#fff
    style DONE fill:#00E5FF,stroke:#0097A7,color:#000
Loading

How it works:

  1. Intake & Assembly — Supervisor reads the prompt, assembles 3-5 review phases with topic-appropriate personas (e.g., Security: Threat Modeler -> Architect -> Penetration Tester -> Compliance)
  2. Sequential Review — Each phase runs one reviewer who receives the original prompt + artifact + ALL prior phase outputs. Findings are classified as Mechanical (auto-decidable) or Taste (needs human judgment)
  3. Auto-resolution — Mechanical findings are auto-resolved using decision principles (completeness, blast radius, pragmatic, DRY, explicit over clever, bias toward action)
  4. Final Gate — Only taste decisions surface for your approval. Cross-phase themes are highlighted
Default (horizontal) --max (challenger) --reviewers (vertical)
Topology Flat panel Iterative convergence Sequential cascade
Agent relationship Peers debate Attackers vs defenders Each builds on previous
Decision style Emerges from debate Survives sustained attack Auto-decided, taste surfaced
Best for Ambiguous questions Stress-testing decisions Reviewing concrete artifacts

Multi-Model Diversity (--diverse)

Your data leaves your machine. --diverse, and --max when the Gemini and Codex CLIs are available, send your question to Google and OpenAI. Artifacts are sent only if you approve. Quorum asks first, but that check is an instruction to the model, not enforced code. Do not use these modes with material you cannot share with those providers.

All Quorum agents are Claude subagents. Cognitive Diversity Profiles change what Claude says, not what Claude believes. On topics where Claude has strong RLHF-shaped priors, this creates an echo chamber — articulate consensus rather than genuine deliberation.

--diverse breaks the single-model ceiling by replacing 2 agent slots with Gemini and Codex (OpenAI). Different training data, different RLHF, different blind spots.

# Explicit multi-model panel
/quorum "Should judges enforce unjust but constitutional laws?" --diverse

# With --max, Quorum offers --diverse when CLIs are detected, and asks first
/quorum "Should we open-source our core engine?" --max

# Suppress auto-detection
/quorum "Technical architecture question" --max --no-diverse

How it works

  1. Phase 0 — Pre-flight check: verify gemini and codex CLIs are authenticated. If both fail, the run stops with FAILED_DIVERSITY; re-run with --no-diverse to accept a single-model panel
  2. Phase 1 — 3 Claude agents + 1 Gemini agent + 1 Codex agent work in parallel, independently. External models get generalist/outsider slots where different priors add the most value
  3. Phase 2 — Claim pool entries are tagged with model: claude|gemini|codex for cross-model tracking
  4. Phase 3 — Claude agents debate as normal. The supervisor explicitly surfaces external model claims for cross-review
  5. Phase 5 — After synthesis, an external model cold-reviews the verdict (structural independence + genuine prior diversity). High-severity challenges trigger CROSS_MODEL_DIVERGENCE flags
  6. Phase 6 — Model Diversity Report: cross-model agreement %, Claude-only claims (flagged), external-only claims (surfaced)

Why this matters

Signal What It Means
All 3 model families agree HIGH confidence — independent training distributions converged
Claude agrees, external models disagree Potential Claude training bias — evaluate independently
External models raise claims Claude didn't Potential blind spot in Claude's training — evaluate independently
Cold reviewer flags high-severity challenge CROSS_MODEL_DIVERGENCE — the pipeline may have missed something

Agent allocation

Tier Claude Gemini Codex Total
Default + --diverse 3 1 1 5
--max (auto-diverse) 5-11 1 1 7-13
--set 20+ N-3 1-2 1 N (cap external at 3)

Convergence impact

Model diversity adds a D_m term to the Cognitive Diversity Index:

CDI = 0.15 × D_p + 0.3 × D_r + 0.3 × D_o + 0.25 × D_m

D_m = 1 − (agents from most common model / total agents)

Cross-model agreement counts as stronger evidence, but it is not proof.

Rules for Prompts That Don't Produce Garbage

  1. Name the exact pipeline, not the app. "Fix the detection pipeline" not "fix Spot"
  2. State the current broken state. "Currently nothing detects" not "make it work"
  3. Attach the design doc. --artifact gives the AI the spec, not vibes
  4. One pipeline per prompt. Don't combine LiDAR + detection + onboarding + App Store
  5. Include a constraint verb. "Trace before touching code" forces investigation before editing

The single best improvement: always include --artifact pointing to your design doc.

Validation & BS Detection (7 Layers)

Layer What It Does
Source Grading Every finding rated STRONG / MODERATE / WEAK / UNVERIFIED
Contradiction Check Catches when agents disagree AND when they agree without evidence
Hallucination Red Flags Supervisor checklist for fabricated stats, fake citations, too-clean numbers
Research Drift Diff Tracks claims ADDED between Phase 1→4. Unsourced expansions = DRIFT (flagged for user validation). Inverted findings = CRITICAL (blocks delivery). Diff shown in every verdict
Challenger Validation Reviewer challenges the synthesis (web search preferred, subagent with fresh context, or same-session agent review as fallback)
Transparent Output Report shows what's verified, what's unresolved, what couldn't be checked + Drift Diff
Cross-Model Consistency (--diverse only) Agreement across different model families is stronger evidence. Disagreement triggers CROSS_MODEL_DIVERGENCE. Claude-only claims flagged as potential training bias. External-only claims surfaced as blind spots

The rule: If it can't be sourced, it gets flagged. If a claim drifted in without a source, it gets diffed. If a finding's direction inverted from the source, it blocks delivery. You decide — not the AI.

Research Drift Diff

The most dangerous hallucination isn't a fabricated citation — it's a real citation with an inverted finding. The DOI resolves, but the claim says the opposite of what the paper actually found.

The supervisor runs drift detection as part of Phase 4 synthesis — not as a post-hoc check. It auto-corrects what it can before the verdict reaches you:

  • DRIFT (unsourced new claim) → Supervisor web-searches for a source. If found: reclassified. If not: removed or labeled "unverified"
  • INVERTED (finding direction flipped) → Supervisor corrects synthesis to match source. If the agent intentionally disagreed with the source: both positions preserved in the disagreement register
  • EXPANDED (sourced new claim) → Supervisor verifies the source exists. If unverifiable: reclassified as DRIFT

You see a resolved diff: what the supervisor already fixed, plus anything it couldn't resolve that needs your judgment. The supervisor is the first line of defense — you handle the edge cases, not the mechanical verification.

Every synthesis also includes: convergence score, bias detection (4 cognitive bias checks), independence metric, evidence scorecard, and drift diff. Full methodology ->

Anti-Boxing (6 Rules)

When you give an AI a project profile and a classification gate, it starts only pulling from familiar domains. The profile IS the box. Anti-boxing is Quorum's structural guarantee that the system keeps reaching outside its comfort zone.

  1. Domain Outsider never from the profile's default domains. The outsider's value comes from NOT being in the profile
  2. Classification gate scores the question, not the project. A business question in a research repo gets business agents
  3. Condition-based outsider injection. High consensus with low challenge -> inject a lateral thinker
  4. Exploratory queries invert the profile. "What am I missing?" spawns from domains the profile doesn't list
  5. Challengers are immune to pruning. Devil's Advocate and Provocateur can never be killed by efficiency rules
  6. Inverted early termination. When everyone agrees, scrutiny goes UP. Unanimous consensus is the highest-risk scenario

The Science

Group intelligence has nothing to do with individual IQ.

That's the finding. Not an opinion. A measured result from 699 people solving brainstorming, moral reasoning, negotiation, and visual puzzles in groups of 2-5 (Woolley et al. 2010). The smartest individual in the group didn't predict performance. Neither did average IQ, motivation, or satisfaction.

What did predict it: equal conversational turn-taking. Groups where everyone contributed roughly equally were measurably smarter than groups dominated by one person.

That's why Quorum defaults to 5 agents with mandatory equal participation. Not because 5 is a round number. Because it's the research-backed ceiling where every agent can still contribute equally. At 7, conversational inequality becomes unavoidable (Dunbar's synchronous layer). 3-agent AI debate already outperforms single-agent output (Du et al. 2023). Adding a supervisor + Challenger to reach 5 optimizes the diversity-coherence tradeoff.

One dissenter cuts groupthink by 85%. A single person who disagrees drops conformity from 32% to 5% (Asch 1951). That's why Quorum's challenger minimum is 2, not 1.

One dissenter is dismissed as eccentric. Two establish a pattern. A lone critic gets ignored. Two critics with the same position create a credible minority that the majority can't dismiss (Moscovici 1969). That's why 2 is the minimum, not the maximum.

Assigned devil's advocates make people MORE entrenched, not less. If you tell someone "argue the other side," the group digs in harder. Critics must hold authentic positions with genuine counter-proposals to change minds (Nemeth 2001). That's why Quorum agents defend real positions, not assigned ones.

Critics who propose alternatives produce 34% better decisions than critics who only attack. Saying "this won't work" is free nihilism. Saying "this won't work, and here's what would" produces measurably higher decision quality (Schweiger 1986). That's why Quorum requires counter-proposals. No free attacks.

Caveat on the science: Woolley studied humans with genuinely different knowledge and cognitive styles. Quorum uses multiple instances of the same base model. The transfer is theoretical, not proven. Du et al. (2023) validates that multi-agent AI debate improves output. But the specific Woolley mechanism (emergent collective intelligence from conversational equality) has not been independently confirmed in LLM systems. Quorum's architecture is designed as if the mechanism transfers, but we have not yet measured whether it produces better results. We don't claim the cognitive science is settled for AI.

Output Format

Every standard report includes:

  • Executive Summary — 3-5 sentences, degree of consensus, key finding
  • Supervisor's Assessment — The quorum's own judgment (most valuable section)
  • Confidence & Verification — What's backed by evidence vs. supervisor judgment
  • Disagreement Register — Unresolved disputes with both positions preserved
  • Priority Actions — Ranked by impact, not by how many agents mentioned them
  • Blind Spots — What the team collectively could not evaluate

Converse mode adds:

  • Attack Resistance Map — Each surviving component and which attacks it withstood

Swarm reports add:

  • Emergent Consensus — Findings agents in unrelated territories reached independently (strongest signal)
  • Polarizations — Genuine disagreements with evidence on both sides
  • Cascades — Findings that changed the swarm's trajectory
  • Coalition Map — Which territory groups aligned on which recommendations
  • Sentiment Trajectory — How the swarm's collective position evolved across rounds

Bring Your Own Models Securely

Never hardcode an API key. Not in code, config, prompts, URLs, commits or command lines. Keep keys in a vault you own, such as your OS keychain, 1Password, HashiCorp Vault, a cloud secret manager or SOPS/age. Quorum holds a reference and resolves the key only when it needs it. It stores no key on disk.

Trust boundaries

%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#2B86C5', 'background': '#0d1117'}}}%%
graph TD
    V["Your vault"] -->|"reference resolved at call time"| O["quorum-run<br/><i>owns state, budgets, gates, verdict</i>"]
    UC["User config<br/><i>providers, keys, evidence</i>"] --> O
    PC["Project quorum.toml<br/><i>untrusted: can only tighten</i>"] --> O
    O -->|"stdin, clean environment,<br/>empty folder"| CLI["Gemini and Codex CLIs"]
    O -->|"HTTPS, key in header,<br/>no redirects"| API["OpenAI-compatible APIs"]
    O -->|"localhost, no proxy"| LOC["Ollama"]
    O -->|"public HTTPS only, no redirects,<br/>page text stays in Python"| WEB["Cited sources<br/><i>optional</i>"]
    O -->|"issued prompt, recorded answer<br/><i>not observed by Quorum</i>"| HOST["Host model and subagents<br/><i>untrusted client</i>"]
    CLI & API & LOC & HOST -->|"untrusted answers,<br/>redacted on arrival"| O
    O --> FILES["Private run files<br/><i>state, events, dashboard</i>"]

    style V fill:#00E5FF,stroke:#0097A7,color:#000
    style O fill:#E040FB,stroke:#AB00D9,color:#fff
    style UC fill:#784BA0,stroke:#5C3D8F,color:#fff
    style PC fill:#FF3CAC,stroke:#D4006A,color:#fff
    style CLI fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style API fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style LOC fill:#2B86C5,stroke:#1A6B9E,color:#fff
    style WEB fill:#784BA0,stroke:#5C3D8F,color:#fff
    style HOST fill:#FF3CAC,stroke:#D4006A,color:#fff
    style FILES fill:#00E5FF,stroke:#0097A7,color:#000
Loading

Your API safety checklist

You own your keys and your data. Before you connect anything:

  1. Store the key in a vault. Never hardcode it in code, config, a prompt, a URL or a commit.
  2. Create a dedicated key for Quorum. Do not reuse a personal or production key.
  3. Give it the least access that works, and set a spending limit where your provider offers one.
  4. Review a cloned repo's quorum.toml. Quorum limits what it can do, but read it anyway.
  5. Decide what may leave your machine. Every remote provider you allow receives your question under its own terms.
  6. Rotate on any doubt. If a key reached a file, prompt, log or commit, replace it. Deleting it is not enough.
  7. Rotate on a schedule that suits your risk, and remove keys you no longer use.

The Bash guard in hooks/guard_bash.py protects work inside this repository only. It is a blocklist, so it reduces risk without stopping a determined bypass. To use it elsewhere, add it to your own Claude Code settings.

Getting an unbiased panel

Different personas on one model share one set of training data, so they are not independent reviewers. For a more independent panel:

  1. Use different model families. Family means who trained the model. Connect at least two beyond your host model where you can.
  2. Mix hosted and local models. A local model adds a family and keeps prompts on your machine.
  3. Set family honestly to the developer that trained the model. Unlabelled models do not count toward the floor.
  4. Keep the floor on. A run that falls below it stops with FAILED_DIVERSITY.
  5. Name your options with --option, so wording does not split the vote.
  6. Check for single-family claims in the brief. They need more scrutiny.
  7. Add a model only if it adds a family or a skill. Extra seats on the same model add cost, not independence.

Diversity reduces shared blind spots, but it cannot remove them. Models can share training data, so treat agreement as evidence and never as proof.

Set up

  1. Run ./scripts/install.sh, which creates ~/.config/quorum/quorum.toml.
  2. Edit that file. docs/quorum.example.toml shows every option.
  3. Add providers below and set [panel] min_families and [limits].
  4. Run quorum-run doctor to check your setup. Run quorum-run doctor --live --allow-provider <name> to send a test prompt to each provider.

All providers, keys, evidence and prices live in that user-level file, and quorum-run requires it. A quorum.toml in a project is untrusted: it can only raise [panel] min_families or lower [limits]. This stops a cloned repo sending your data or keys to its own endpoint, or forging evidence.

Option A: your own open-source model (Ollama)

Prompts stay on your machine, and loopback calls skip environment proxies. This is the most private option.

[providers.local]
type = "ollama"
model = "<your-ollama-model>"
base_url = "http://localhost:11434"
family = "meta"
rank = 1

Set family to the developer that trained the model. Without it, the model can answer but does not count toward the diversity floor. Keep your model server bound to localhost unless you have secured it.

Option B: a hosted or self-hosted API (OpenAI-compatible)

Fetch the key from your vault at call time:

[providers.byo]
type = "openai_compatible"
model = "<your-model>"
base_url = "https://<your-endpoint>/v1"
family = "other"
api_key_cmd = ["security", "find-generic-password", "-s", "quorum/byo", "-w"]
rank = 3

Allowed vault commands are security, secret-tool, pass, op, bw, vault, doppler, sops, aws, gcloud and az. Use api_key_file = "/var/run/secrets/quorum/api-key" for a secret your platform mounts, or api_key_env = "QUORUM_BYO_API_KEY" if your vault injects environment variables.

Integration templates: copy-ready setups for HashiCorp Vault, Kubernetes, Docker, systemd, AWS, Google Cloud, Azure, 1Password, Bitwarden, the OS keychain, and hardened Codex and Gemini CLI sign-in, with a guide to picking the best option for your setup.

Remote endpoints must use HTTPS. Redirects are refused. Use a dedicated, least-privilege key with a spending limit where your provider offers one.

Name your options

If you already know the choices, pass them: quorum-run start --option postgres --option mysql. An answer outside the list does not count. Without a list, near-identical names such as "postgres" and "postgresql" stay separate, and the run may end UNRESOLVED.

Optional integrations

Every integration is optional. /quorum works without any of them. Add one when you want more model families on the panel. quorum-run needs at least two answering families by default, and at least one must be a model Quorum calls directly.

Integration Connect it Add to ~/.config/quorum/quorum.toml
Gemini CLI Run gemini and finish sign-in type = "gemini_cli", model, command as in docs/quorum.example.toml
Codex CLI Run codex login, with keychain storage type = "codex_cli", model = "default", command = ["codex", "exec", "--skip-git-repo-check", "--sandbox", "read-only", "-"]
Ollama Run ollama serve, then ollama pull <model> Option A above
Any OpenAI-compatible API Store your key in your vault Option B above

To use a local model for neutral summaries, add [pm] with provider = "<provider name>". It never judges, and it does not take a panel seat.

Test status: these integrations are covered by automated tests with simulated providers. Only Codex CLI and a local Ollama model have answered live so far, so try a low-stakes question first. If a CLI is not logged in, the run reports that seat as failed.

Check cited sources

[verification]
fetch_sources = true
allowed_hosts = ["arxiv.org", "<a-site-you-trust>"]

This is off by default. Quorum contacts only the hosts you list, because a model could otherwise hide your question inside a URL. Page text never reaches a model. Private addresses, redirects, long queries and non-HTTPS links are refused.

Add routing evidence

[role_bars]
code = 0.7

[[evidence]]
model_id = "<your-model>"
role = "code"
metric = "pass_rate"
score = 0.8
source = "https://<where-you-measured-it>"
measured_on = "2026-10-01"
is_verified = true

Roles are intent, architecture, code, research, routing, judge and challenger. Evidence older than 180 days counts as unproven.

Safety rules

  • If a key lands in a file, prompt or commit, treat it as exposed and rotate it. Deleting it is not enough.
  • Anything sent to a remote provider leaves your machine under that provider's terms. Use a local model for sensitive material.
  • Redaction is a backstop. It can miss encoded or split secrets, so keep secrets out of questions and artifacts.

Honest Limitations

Quorum is a reasoning quality tool, not a magic truth machine.

  1. The validation gate is not truly independent. Even mild social influence narrows group diversity (Lorenz et al. 2011). The challenge reviewer uses a separate agent in the same Claude session. That's prompt-level independence, not structural independence. Web search fact-checking provides genuinely independent evidence. Agent review provides useful but limited challenger pressure. Neither substitutes for human review.

  2. The environment server is simulated. Swarm mode's Environment Server and Pattern Detection are prompt-orchestrated, not a persistent runtime service. The quality of pattern detection depends on summarization quality, not a dedicated algorithm. True O(patterns) scaling is a design goal, not a current guarantee.

  3. Agent count scaling is heuristic. The research supports specific tiers: 3 (minimal), 5-7 (synchronous optimum per Dunbar/Woolley), then jump to asynchronous/swarm. Intermediate counts (8, 10, 14) are interpolated, not research-derived.

  4. Hallucination is structural. No amount of multi-agent debate eliminates hallucination. Quorum makes it visible and reduces it. It does not and cannot eliminate it. Every report is a starting point for human judgment. Why hallucination can't reach zero ->

On Hallucination

Hallucination is math, not a bug.

No LLM is hallucination-proof. Not GPT-4. Not Claude. Not any model running inside Quorum.

Every transformer output is a probability sample, not a fact lookup (Vaswani et al. 2017). Language modeling and lossless compression are mathematically equivalent (Deletang et al. 2024). But a model with finite parameters cannot losslessly encode a training corpus with greater entropy (Shannon 1948). The weights are lossy compression. Lossy decompression produces artifacts. In images, JPEG blocks. In language models, hallucinations (Chlon et al. 2025). The math does not permit zero error.

Biological brains do the same thing. They reconstruct memories from statistical patterns rather than retrieving stored records (Bartlett 1932, Schacter 1999, Loftus & Palmer 1974). McCulloch & Pitts (1943) modeled artificial neural networks on exactly this mechanism. Both systems fill gaps with plausible guesses. The difference is that we built the LLM, so we can study the mechanism.

Quorum's 5-layer validation pipeline, Challengers, and evidence audits reduce hallucination. They make it visible. They do not eliminate it. Every Quorum report is a starting point for human judgment, not a replacement for it.

Full scientific explanation with citations ->

Version History

v7.3.0 — Design Audit (2026-03-29)

Terminology revert ("dissent" → "challenger"). Scoring Stress-Test Model (5 named agents: Minimalist, Exploiter, Statistician, Retrieval Hacker, Skeptic). Convergence formula simplified to 2-term. Calibration penalties (hedging, overconfidence). Evidence scoring upgraded to continuous with source deduplication. Codex CLI vagueness gate. First Python module (src/quorum_scorer.py + 40 tests). Operational definitions for claim matching, defense success, agreement growth.

v7.2.0 — Multi-Model Diversity (2026-03-28)

--diverse flag: replace 2 agent slots with Gemini and Codex for genuine prior diversity. Phase 1 multi-model agents, Phase 5 cross-model cold-review, Cross-Model Divergence flag, Model Diversity Report. D_m term added to convergence formula. Validation layers 6 → 7. Auto-enabled with --max when CLIs detected.

v7.1.0 — Cognitive Diversity Profiles (2026-03-28)

Each agent gets a 3-axis cognitive profile (risk tolerance, skepticism, abstraction) that creates productive tension with their persona. Anti-stereotypical assignment via fixed lookup table. Parameter-adjusted convergence formula (C*). CDP specification in ARCHITECTURE.md. Devil's advocate stress-test on the math. Validation protocol defined.

v7.0.0 — Structured Reasoning Metrics & Collective Intelligence (2026-03-28)

Convergence formula with weight rationale. Bias detection (anchoring, base-rate neglect, confirmation, survivorship). Independence Score formula. Anti-Hallucination Scorecard with risk thresholds. Auto-detection table for all modes. "The Science" section explaining Woolley et al. collective intelligence foundation. Woolley-to-AI transfer caveat added. Flag documentation reconciled. README restructured for clarity.

v6.0.0 — Reviewers Mode (2026-03-26)

Sequential review pipeline (--reviewers). Dynamic persona assembly per topic. Mechanical/taste finding classification. Auto-resolution with decision principles. Converse mode prompts documented.

v5.2.0 — Converse Mode (2026-03-22)

Research-backed iterative dissent-driven convergence. 5-7 agents, 40/60 dissent ratio, 10 peer-reviewed citations. Dissent minimum raised from 1->2 for all swarm sizes >=5 (Moscovici 1969). Validation gate honesty disclosure. Swarm O(patterns) honesty disclosure.

v5.1.0 — Outcome Predictor (2026-03-22)

Outcome Ledger, Calibrate mode, Monitor mode, Structured Seed Data, Visualization Export, Temporal Simulation.

v5.0.0 — Swarm Mode (2026-03-22)

20-1000+ agents with MECE taxonomy, environment-based coordination, activation scheduling, prediction mode. Inspired by MiroFish/OASIS.

v4.1.0 — Divergence Engine (2026-03-17)

Provocateur archetype, EXPLORE mode, structural protections, security hardening.

v4.0.0 — Adaptive Intelligence (2026-03-17)

Project Profiles, Task Classification Gate, Config Transparency Block, Adaptive Output Templates.

v3.2.0 — Security Hardening (2026-03-17)

Removed shell access from agent manifest, injection defense, credential detection.

v3.1.0 — Epistemic Quality Gate (2026-03-17)

Two-stage research + validation workflow. VALIDATED / FLAGGED / BLOCKED verdicts.

v3.0.0 — Subteams & Dialectic (2026-03-14)

Subteam/Org modes, Socrates + Plato, Dialectic mode, 5-layer validation pipeline.

Full changelog ->

License

MIT

Author

Kevin Qi — qinnovate.com

About

Quorum: orchestrate a swarm of AI experts on any question. Specialists debate, research, and validate — then a polymath supervisor delivers the verdict. One command, multiple minds, stress-tested answers.

Topics

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages