Role-Based Multi-Agent Workflows for Deep Research Writing
Handing a "read public sources thoroughly and turn them into a publishable technical article" task to a single general-purpose chat model usually produces mixed sources, conclusions that run ahead of evidence, and charts that contradict the text. This article explains a more reliable approach: split the work by role, assign collection, analysis, writing, visualization, and coordination to dedicated agents, and connect them with shared state and acceptance criteria. It covers why single agents drift in long research, what each of the five roles does, how to model the workflow as an executable state machine, why evidence chains matter more than prose, how prompts fit into the picture, how to balance quality and cost, common failure modes and fixes, and a minimal viable loop for adoption. Readers will learn a repeatable, contract-driven production path where judgment about publishing stays with humans.
When you hand a “read public sources thoroughly and write a publishable technical piece” task to a single do-everything chat model, the common results are: sources blended together, conclusions running ahead of the evidence, and charts that say something different from the body text. A more reliable approach is to split roles by job function, letting dedicated agents handle collection, analysis, writing, and visualization, then string them together with shared state and acceptance criteria. This isn’t about replacing people with machines; it’s about mapping a division of labor already proven in an editorial team onto a repeatable computational process.
1. Why a single agent drifts in long research
Long-form research does at least five things at once: defining the problem, gathering material, cross-verifying, organizing the argument, and controlling expression. A single-session model has limited context, so later instructions crowd out earlier constraints. It also lacks a hard boundary like “this step may only cite, not conclude,” so retrieval, imagination, and rhetoric all end up mixed into the same round of output.
Once roles are separated, each agent sees only its own input contract and output contract. The collection role cannot rewrite viewpoints; the analysis role cannot invent sources; the writing role cannot add unregistered facts; the visualization role cannot chart numbers that don’t appear in the text. Distortion is confined to a single stage, and the coordination role can bounce problems back with a checklist instead of tearing down and rewriting the whole piece.
2. What each of the five roles does
Five responsibilities can cover the full loop from material to finished draft. The names are just job titles and aren’t tied to any specific product.
- Material collection. Input is the time range, keywords, source types, and exclusion rules; output is structured records: verbatim excerpts, timestamps, source identifiers, capture batch, and whether the full text is available. It forms no opinions and only guarantees “where this material came from and what it said at the time.”
- Independent analysis. At least two analysis passes do not share intermediate conclusions and share only the same evidence pack. Each pass outputs: claims, supporting excerpts, counterexamples, confidence, and open questions. Where the two disagree must be listed explicitly; smoothing over differences with “on balance” is forbidden.
- Draft writing. It consumes only registered claims and excerpts and writes the body in argument order. Each paragraph ends with an internal reference number pointing back to the evidence, and it avoids piling up unverifiable adjectives in the text.
- Visualization. It charts only from the data tables or relationship tables provided by the writing role, with the chart title, units, and sample scope consistent with the body. If there is no table, it does not produce a chart that “looks like data.”
- Coordination. It maintains task state, dependencies, and acceptance. It does not write conclusions itself; it handles scheduling, bouncing work back, and version freezing.
The key to this split isn’t the number of roles but permissions: who can produce new facts, who can only transcribe, and who can veto a release.
3. Expressing the workflow as an executable state machine
Treat a research run as a finite set of states rather than a string of ad-hoc prompts.
- Define the topic: Write a falsifiable question, for example, “Is the main driver of a certain class of agent framework spreading within two months a capability leap, distribution channels, or a lower barrier to use?” Don’t presuppose the answer in the question.
- Collect data: Ingest in batches by source type, each batch with a batch number and a retry record for failures.
- Deduplicate and slice: Keep only one primary record for identical text, and keep excerpts to short, citable fragments to avoid copying whole articles.
- Two-pass analysis: Generate two profiles independently, then compare them.
- Resolve disagreements: Coordination lists the conflicts and, when necessary, returns to the source, rather than letting the writing role “pick the nicer-sounding one.”
- Draft and illustrate: Writing and visualization run in parallel, but both take the frozen evidence table as input.
- Review and publish: Check that references close, the timeline is continuous, and charts match the text, then freeze the version.
A schematic task description can be expressed with ordinary structure and doesn’t depend on any one tool’s proprietary interface:
task:question: "What is the main reason public discussion rose sharply within two months"window: "start_date-end_date"roles:collector: {may_conclude: false}analyst_a: {sees: evidence_pack, sees_other_analyst: false}analyst_b: {sees: evidence_pack, sees_other_analyst: false}writer: {may_add_facts: false}visual: {may_invent_numbers: false}lead: {can_reject: true}exit: all_claims_have_evidence and conflicts_listed
Keeping state in persistent storage is more reliable than keeping it in conversation history. Object storage suits immutable material such as source text and screenshots; a message queue suits pushing events like “collection complete” or “analysis bounced back” to the next role; a logging service records the input version and output hash of each call; and monitoring and alerting handle queue backlog, failure rate, and manual bounce-back rate. These are all general capabilities, so a team can use self-hosted or cloud equivalents without locking into a specific console.
4. The evidence chain matters more than the prose
The most common problem in investigative technical pieces isn’t awkward sentences but a broken evidence chain. Four hard rules can be set.
First, grade claims. Write facts, inferences, and speculation separately. Facts must trace back to an excerpt; inferences must state their premises; speculation must be marked unverified. If what a reader sees as the “reason it went viral” is only an inference, don’t write it as a confirmed causal relationship.
Second, align timelines. Material carries its event time, and conclusions carry their observation window. After-the-fact explanations from outside the window cannot be backfilled as causes within the window unless separately marked as retrospective interpretation.
Third, keep two-pass disagreement visible. When the two passes give different main causes for the same evidence pack, the body should present both sets of support side by side rather than quietly adopting the more dramatic version. The disagreement is itself a result: it shows the public material is insufficient to support a single narrative.
Fourth, forbid decoration with unverifiable numbers. If the evidence pack has no counted item totals, engagement figures, or adoption rates, the body should not show specific magnitudes. When a magnitude is needed, state the measurement basis clearly: before or after deduplication, whether it includes paraphrases, and where the time boundary lies. A number with an unclear basis is better left out.
A collection record can be as simple as a table: number, time, source type, excerpt, tag, batch. An analysis record adds: claim number, list of supporting numbers, counterexample numbers, confidence, and a note on differences from the other pass. Writing may reference only these numbers. The data table behind a chart is likewise tagged with numbers. During review, randomly pick three claims and require tracing back to the source excerpt within five minutes; if you can’t, it fails.
5. Prompts are only a small part of the job description
Each role’s prompt should be short; what’s long is the input/output contract and the fallback conditions on failure. The collection role’s instructions focus on: mark login walls, paywalls, or unverifiable reposts as unusable, and don’t pass off search snippets as the source text. The analysis role’s instructions focus on: list counterexamples before writing the main conclusion, and declare that you haven’t seen the other pass. The writing role’s instructions focus on: order paragraphs as “question—evidence—qualification—open items,” and delete sentences without reference numbers. The coordination role’s instructions focus on the acceptance checklist, not writing style.
Generation parameters like temperature and length are only for stability tuning, not quality assurance. Given the same evidence pack and the same contract, the analysis role should reproduce a similar list of claims; if the claim sets differ greatly across two runs, first check whether the material has drifted or the excerpts are too long, rather than adding more adjectives.
Humans still stay at two points: whether the topic is worth doing, and the pre-publication fact spot-check. Let machines run the rest to completion by contract, with people handling only the bounced-back items. This puts human effort into judgment rather than copy-paste.
6. Looking at quality and cost together
More roles mean more calls. The way to control cost isn’t to merge the five roles back together but to reduce wasted rounds.
- Deduplicate material before analysis so the two passes don’t repeatedly read the same text.
- Limit analysis output to structured fields; don’t ask the passes to write long prose.
- Start writing only after the evidence table is frozen, to avoid rewriting the whole piece from writing while still researching.
- Make visualization wait for the data table; don’t produce a concept chart first for the sake of “having a chart” and then rework it.
- Set a bounce-back cap per round; beyond it, escalate to a human to prevent coordination and writing from editing each other without converging.
Observable process metrics include: evidence closure rate (the proportion of numbered claims among all claims), conflict retention rate (the proportion of discovered disagreements explicitly written into the body), number of bounce-backs, and lines changed from freeze to publish. These metrics need no vendor-proprietary reports; they can be computed from task state in the logs. A low closure rate means writing overstepped; a low conflict retention rate means coordination is hiding uncertainty; an abnormally high bounce-back count means the contract is too loose or the material too dirty.
7. Common failures and fixes
Material is only secondhand paraphrase. Collection should downgrade that source, and analysis must not write a paraphrase as a direct quote. Change the text to “public paraphrase states” and lower the confidence.
Roles bleed into each other. Writing starts adding sentences with no excerpt behind them, like “the industry generally believes.” The fix is a publishing gate: sentences without reference numbers cannot enter the final draft, rather than relying on a manual read-through and luck.
Coordination becomes a second author. If coordination directly changes conclusions, the two-pass independence is void. Coordination may only bounce back, merge the conflict list, and freeze the version.
Charts come first. A chart shows a comparison dimension absent from the text, and readers assume it’s a measurement result. Visualization input must be a table, and the table must trace back to an excerpt or be explicitly marked as illustrative.
The time window slides. Collection widens the date range midway while analysis still uses the old conclusions. The batch number and evidence pack version must be written into every analysis input; when the version changes, re-analyze rather than patch.
8. The minimal viable loop for adoption
A team doesn’t need to adopt many roles at once. The minimal loop is: one immutable evidence pack, two mutually blind analyses, one draft that may only cite, one table consistent with the text, and one manual spot-check against the checklist. The queue drives task progression, object storage handles archiving, and logs handle replay. Once one round runs through, add visualization and finer source classification.
Judge this method not by whether a single piece “reads like a human wrote it” but by whether, three months later, you can answer: which version of the material the conclusion was based on, which two analyses disagreed, and why you still decided to publish. If you can answer, the division of labor has value; if you can’t, more roles just split one improvised generation into five.
The professionalism of deep research writing comes from a falsifiable question, a traceable evidence chain, preserved disagreement, and a freezable release. Agents are suited to the repetitive, contract-able parts; the judgment of whether to publish remains a human responsibility. Orchestrate along this boundary, and the team gets not a fancier draft but a production path that still works next time.
