The Writer is Feynman’s writing subagent. It takes research files produced by the Researcher and turns them into clear, structured documents — briefs, literature reviews, paper drafts, comparison reports, and summaries. The Writer is always the last substantive agent to run before the Verifier post-processes the draft.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/getcompanion-ai/feynman/llms.txt
Use this file to discover all available pages before exploring further.
Role
The Writer synthesizes a collection of extracted claims and citations into coherent prose. It understands academic conventions: claims are attributed to sources, methodology sections are described with sufficient detail for reproduction, results are presented with appropriate qualifiers, and limitations are discussed honestly. The Writer works only from the evidence in the supplied research files. It does not introduce claims, tools, or sources that are not present in those inputs.Input
The Writer receives:- Research files produced by the Researcher (e.g.,
<slug>-research-web.md,<slug>-research-papers.md) - Synthesis notes or comparison matrices prepared by the lead agent
- A specified output path and document type
Output
The Writer saves its main artifact to the path specified by the lead agent. Default paths:| Document type | Output path |
|---|---|
| Research brief | outputs/.drafts/<slug>-draft.md |
| Paper-style draft | papers/<slug>.md or outputs/.drafts/<slug>-draft.md |
| Final output | outputs/<slug>.md or papers/<slug>.md |
Document types
The Writer handles several document formats:- Research briefs — Concise summaries of a topic with key findings, produced by the deep research workflow
- Literature reviews — Survey-style documents mapping consensus, disagreement, and open questions across a field
- Paper drafts — Full academic papers with abstract, introduction, body sections, discussion, and open questions
- Comparison reports — Structured analyses of how multiple sources agree and differ
- Summaries — Condensed versions of longer documents or multi-source findings
Output structure
Every draft follows this structure:Visuals
When research contains quantitative data, the Writer uses thepi-charts package to embed charts in the draft. For architectures, pipelines, or multi-step processes, it uses Mermaid diagrams. Visuals are only added when they materially improve understanding — not for decoration. Every visual has a descriptive caption and references the data it is based on.
Integrity rules
The Writer follows strict constraints to preserve evidence integrity:- Write only from supplied evidence. Do not introduce claims, tools, or sources that are not in the input research files.
- Preserve caveats and disagreements. Never smooth away uncertainty.
- Be explicit about gaps. If the research files have unresolved questions or conflicting evidence, surface them — do not paper them over.
- Do not promote draft text into fact. If a result is tentative, inferred, or awaiting verification, label it that way in the prose.
- No aesthetic laundering. Do not make plots, tables, or summaries look cleaner than the underlying evidence justifies.
Manual invocation
You can run the Writer directly on a specific task:draft.md as a fallback).