← All articles
Guide · 2026-11-17

A Multi-Agent Debate Workflow: Let Two Agents Challenge Each Other Before You Finalize

Published 2026-11-17 ·Mentions: Claude Code, Cursor
A Multi-Agent Debate Workflow: Let Two Agents Challenge Each Other Before You Finalize
One main agent writes the draft, two reviewer subagents challenge it independently, and the main agent consolidates the verdict: a reusable debate flow built on Claude Code's subagent mechanism and Cursor's parallel agents, capped at two rounds, with the final call made by a human.

1. The conclusion first: move the review out, keep the decision with a human

Conclusion first: the value of a debate is not winning the argument, but surfacing the hidden premises, flaws, and alternatives in a draft. The main agent writes the draft, two reviewer subagents review it independently, and the main agent only consolidates — it does not decide for you. Cap the debate at two rounds; any disagreement that survives goes to a human with both sides listed. This fits outputs worth deliberating over, such as plans, design documents, and technology choices. It does not fit small, deterministic tasks on a deadline, where debating costs more than it returns.

2. What you need

Claude Code installed, plus a draft to review, such as a technical plan or a refactoring proposal. Define two reviewer subagents the way the official docs describe: Markdown files with YAML frontmatter, stored in .claude/agents/ for a project or ~/.claude/agents/ for personal use, with name, description, tools, and model in the frontmatter. Also prepare a review checklist stating that reviewers only give opinions and never edit the draft directly.

3. Step by step: run one debate round in four steps

Step one: define the two reviewer roles. Following the official docs' example, write two subagent files. The fault-finder only reads code and documents, with tools narrowed to Read, Grep, and Glob, and hunts for factual errors, logical flaws, and missed edge cases. The improver is also read-only and proposes alternative approaches and simpler implementations. Write each description to state its trigger scenario clearly — Claude Code uses the description to decide when to delegate.

Step two: the main agent writes the draft and dispatches the review. Have the main agent write the draft and state its key assumptions, then send it to the subagents for review. The official docs' phrasing is a direct instruction, for example: use a subagent to investigate how our auth system handles token refresh. Each reviewer works in its own context window and returns only a summary to the main session, so they cannot influence each other. When parallel edits are needed, open two isolated sessions with claude --worktree under different names so the changes never collide.

Step three: consolidate, decide, and cap the rounds. The main agent merges both reviews into a disagreement table: agreed points are adopted directly, and open points list each side's reasoning. A second round debates only the open points; after that, stop regardless of whether agreement was reached, and hand the unresolved items to a human with both sides' reasoning. To review a plan before any edits happen, enter plan mode with claude --permission-mode plan and wait for approval before changing anything.

4. Common blockers and fixes

Two reviewers copy each other's answers and converge: they shared one context. Always dispatch through subagents with separate contexts so reviewers never see each other's intermediate conclusions. You can also run the same review task twice, independently, and compare the results.

The debate never ends and drifts further apart: no round cap and no decider were set. Fix this at the start by capping the debate at two rounds, with the second round covering only the open points. Subagent requests count against the same session's usage limits, so more rounds also cost more. Reviewers only give opinions and never edit the draft — editing stays with the main agent and the human.

5. Things to watch

The built-in Explore and Plan subagents are read-only and make a good starting point for reviewers. Tighten a custom subagent's tools to what it needs, and never give reviewers write access. Reserve debate for outputs worth deliberating; for small tasks, let the main agent do the work directly. Quotas and usage follow the official site.

Verification note

The steps in this article were checked against official pages on 2026-11-17. If platform rules change, the official pages apply.

Tools mentioned

Coding & Development · Paid — Anthropic agentic terminal coding tool capable of autonomous multi-file edits, testing, and Git workflows.
Coding & Development · Free tier + paid — AI-first code editor built on VS Code with fast multi-line Tab predictions and codebase-wide Agent.

Sources

  1. Create custom subagents — Claude Code
  2. Common workflows — Claude Code
  3. Cursor Documentation — Agent — Cursor

This article is compiled from the public sources above and does not reproduce the originals in full; see the official sources for details.

Sign in to Lumo

Sign in with a one-time code sent to your email — no password. Your saved tools will sync across your devices.

The code is only used to sign you in. We store just your email and saved list (privacy policy, in Chinese).

—

Signed in. Your saved tools sync across all your devices.

0saved
View saved tools

Send feedback

Found a mistake, missing something, or have a suggestion? Tell us.