Contents

Council / Debate

Also known as: multi-agent debate, LLM council, mixture-of-agents

Who decides
Code
Shape
Fan-out

Intent

Ask several different agents the same question, let each answer on its own, then have them read and critique each other’s answers before a vote or a chair decides. The defining step is that members see each other’s work before the decision; if they never do, it is plain voting.

Problem

A team builds an assistant that answers one question about each pull request: “Is this safe to merge?” PR #482 adds a CSV export endpoint to the reporting service, and the new route skips the auth middleware.

One strong model gets most of these reviews right, but its wrong “looks good” reads exactly like its right ones. The obvious fix is to send the same prompt to the same model five times and take the majority. All five runs say merge. Three things go wrong:

The merge question goes to one model five times; all five runs say merge, and the missing auth check goes unnoticed.QuestionIs PR #482 safe to merge?One modelsame prompt, 5 runsmergemergemergemergemerge5 of 5: mergeauth bug missedno sign of doubt
Scroll to see all of it.
The five runs share one model’s blind spot, so the vote looks certain and is wrong.

Solution

Ask members that fail in different ways, keep their first answers independent, then make the answers meet before anyone decides. For the pull request, the members are a security reviewer, a correctness reviewer and a skeptic, each on a different model family of similar strength. Your code fixes the members, the rounds and the decision rule; the models write only the answers, critiques and synthesis.

  1. Answer alone. The question and the diff go to the three members in parallel. None sees another’s answer yet, because independence is what produces different answers. Each ends with a line code can read, such as ANSWER: merge or ANSWER: block.
  2. Anonymize. Your code relabels the answers “Response A”, “Response B” and “Response C”, and shuffles their order for each reader, so no member can favour a model by name or by position.
  3. Review each other. Each member reads the others’ answers, critiques them and ranks them. The security reviewer writes: “Response B approves, but the new /export route is registered outside the auth middleware.” The skeptic, which had said merge, changes its verdict and names that flaw as the reason.
  4. Decide. A majority vote in code picks the verdict, block, and a chair model writes the explanation from the answers and reviews. The chair is told to weigh arguments rather than count heads, and to list what is still disputed.
  5. Report agreement. The result says two of three members blocked after review, with the correctness reviewer still approving. Below your agreement threshold, the PR goes to a person.

The nearest pattern is voting in Parallelization: the same fan-outFan-out Starting several tasks at once from one point, each running in parallel. Fan-in is the step that collects their results., but the samples stay independent and are only counted, while a council adds the step where members read each other.

Structure

The question goes to three members who answer independently; a peer review stage reads their anonymized answers, with an optional loop back for another debate round; a chair produces the final answer and agreement level, and a split council goes to a human.optional debate round: members read peers and reviseQuestionMember Amodel X · securityMember Bmodel Y · correctnessMember Cmodel Z · skepticPeer reviewreads anonymized,shuffled answers,critiques and ranksChairvote, judgeor synthesizeFinal answer+ agreement levelHuman reviewwhen the council splits12345
Scroll to see all of it.

Hover over a number, or tap it, to read what it is.

Solid lines are the main run; accent lines are the interaction that makes it a council. Dashed lines are optional: another debate round, and escalation to a human.
  1. Members. Agents that answer the same question in parallel, with no shared context. They help only if they fail differently: different model families of similar strength first, otherwise different roles or evidence.
  2. Peer review. Your code anonymizes and shuffles the answers, then each member critiques and ranks the others or revises its own answer. An optional loop runs one or two more debate rounds.
  3. Chair. Code that counts votes or ranks, a model that picks the best-argued answer, or a model that writes a new answer from everything it read.
  4. Final answer. The decision, with the share of members who agreed and the minority position, so a reader knows how settled it is.
  5. Human review. When agreement falls below a threshold you set, the case goes to a person instead of being answered.

Use it when / Avoid it when

Use it when

Avoid it when

How it fails

Herding

Members drop correct answers to join the majority, and accuracy falls from the first answers to the last round.

Mitigation: tell members to change only on a named flaw or a checkable fact, keep the first answers, and cap rounds at one or two.

One opinion, paid for three times

Members on the same model with the same prompt agree at once, so the review stage has nothing to work with.

Mitigation: get real diversity in models or evidence, or skip the debate and vote.

A weak member drags the group down

A weaker model’s confident wrong answer persuades the stronger members.

Mitigation: choose members of similar strength, and drop any member that lowers scores on your test set.

The chair flattens or invents

The synthesis turns a real disagreement into a confident answer, or adds claims no member made.

Mitigation: require a list of open disagreements, and keep the vote’s result next to the synthesis so code can flag a mismatch.

Related patterns

Try it

Describe the question, the members and how they review each other. The generator writes a protocol for your code plus one prompt per kind of call: member, review and chair.

Further reading