Status: tutorial.
Written for an author who wants a multi-perspective, contradiction- mapped report on a question their library can answer, and who has not used this pipeline before. Assumed: nothing. This page repeats what other documents also say, deliberately. Not covered here: how retrieval ranks (RETRIEVAL.md) and what a run costs in detail (TOKENS.md).
Sister tutorials: a survey, a thesis chapter, a textbook chapter, a tutorial.
Deep research is the heavy option. It runs seven phases, dispatches several subagents in parallel, and does many retrieval calls. Reach for it when disagreement in the corpus is what you want to find:
If you want a topic-clustered map of a field, you want a survey, which is faster, single-pass, and the right default. Tell the difference this way: a survey answers what has been written; deep research answers what is in tension, and what nobody has asked.
It is adapted from Stanford OVAL's STORM method, retooled so every claim cites a real citekey from your own corpus instead of a live web source.
For a report you decide to call deep-research-fidelity:
| Path | What it is |
|---|---|
content/drafts/deep-research-fidelity.md |
the report (the canonical copy) |
content/dossiers/deep-research-fidelity/ |
the reader, scope, kept evidence per perspective, what was rejected, and where the corpus disagreed with itself |
content/rendered/deep-research-fidelity.pdf |
the typeset report |
content/rendered/deep-research-fidelity.evidence.pdf |
the evidence sidecar |
The dossier matters more in this genre than any other: without it, changing one paragraph next month means re-running seven phases and a dozen subagents.
pip install chitragupta-cli
chitragupta init my-research
cd my-research
mkdir -p papers
cp /path/to/your-library.bib papers/bibliography.bib
chitragupta corpus sync
chitragupta corpus ledger
Or clone the repository and cp config.toml.example config.toml.
This genre needs a real corpus. Perspectives that cannot find
sources produce thin interviews, and the contradiction map needs enough
material to have contradictions in it. If ledger shows nothing
parsed, the skill will say so and stop. By design, it will not sync
for you.
Every command here also works as
python -m chitragupta.<layer> ....
The question should be one a corpus can disagree about. "What is a digital twin?" is a survey question. "Does the literature support treating fidelity as a tunable parameter, or as a property fixed by the decision the twin serves?" is a deep-research question.
The reader decides how much framing survives into the report: a research group, a decision you have to make, or the background section of something larger.
The depth is a dial you set when you ask:
| Depth | Perspectives | Interview rounds | Section writers |
|---|---|---|---|
| quick | 3 + basic | 2 | inline, no subagents |
| standard (default) | 5 + basic | 3 | parallel subagents |
| deep | 6-7 + basic | 4 | parallel subagents |
Start at standard. Use quick when you want the shape of the disagreement without the full argument; use deep only when a decision rests on it.
chitragupta draft dossier init \
content/drafts/deep-research-fidelity.md --genre deep-research
That writes eight files. Exactly one is yours to fill in: scope.md.
The rest are written as the phases run, and in this genre the main run
transcribes what its subagents hand back, because each subagent's context
is gone the moment it returns.
scope.md| Field | What goes in it | Why it is asked for |
|---|---|---|
- language: |
a BCP-47 tag: en-GB, en-US, en-IN |
ships unset; an unset one silently gets the model's own |
## Reader |
who this report is for, and the decision it feeds | decides how much framing survives into the report |
## Covers |
the one question, and that the contradiction map is a first-class section | keeps seven phases pointed at one thing |
## Does not cover |
including whether a recommendation is in scope | a deep-research report is the kind of document that drifts into advocacy if nobody writes this line down |
## Glossary |
each contested term with the sense this report uses | when the point is that sources disagree, the report must not itself equivocate |
Set the dialect with the command:
chitragupta draft dossier set-language \
content/drafts/deep-research-fidelity.md en-GB
A filled-in deep-research scope.md (the whole file is at
examples/dossiers/deep-research/scope.md):
# Scope
- genre: deep-research
- language: en-GB
- draft: content/drafts/deep-research-fidelity.md
- created: 2026-09-15
- corpus: 214 citekeys, digest `a31f0c4b77de`
- draft digest: not recorded (run `dossier stamp` once the draft is ready)
## Reader
The research group, at the meeting where we decide whether the next
proposal commits to a fidelity target. They know the field; what they do
not know is where our own corpus contradicts itself.
## Covers
One question: does this corpus support treating fidelity as a tunable
parameter, or as a property fixed by the decision the twin serves?
The report carries the contradiction map as a first-class section.
## Does not cover
A recommendation. The group decides; the report lays out what the corpus
supports and how firmly.
Sources outside the corpus. Nothing is fetched from the web, by design.
Where the corpus is silent the report says so rather than reaching.
## Glossary
- **Fidelity** -- how closely the model reproduces the asset on the
quantities a given decision depends on. The report's central contested
term: at least two cited families use it to mean a global accuracy
score instead, and every use is marked with which sense is meant.
- **Contradiction** -- two sources whose claims cannot both hold under
the same reading of fidelity. A disagreement that dissolves once the
senses are separated is called a terminological clash instead.
- **Blind spot** -- a question no perspective's searches surfaced any
source for. Distinct from a gap, which is a question the corpus raises
and does not answer.
Those last two glossary entries let the report tell a real conflict between sources from two authors using one word differently.
outline.md is optional here, and constrains Phase 4Deep research builds its own outline in Phase 4 from the contradiction map. Writing one first does not skip that phase; it constrains it:
chitragupta draft dossier init \
content/drafts/deep-research-fidelity.md --genre deep-research --outline
The three fields are the same as every genre: brief: (steering, never
printed), claim: (your prose, grounded or reported), queries: (run
verbatim). A complete example is at
examples/dossiers/deep-research/outline.md.
Leave the file out entirely if you would rather see what the corpus
suggests, which is the normal choice for a first run on a question.
Give the skill the draft path when you ask, so its phases write into the dossier you just made instead of creating a second one.
Do a deep-research report into
content/drafts/deep-research-fidelity.mdon whether my corpus supports treating model fidelity as a tunable parameter or as fixed by the decision the twin serves. Standard depth. The dossier is there.
"Deep research", "multi-perspective analysis" or "in-depth report with
contradiction mapping" selects the deep-research skill.
It tells you up front that this is a heavy run. It says that for every question.
The skill states its perspective list and its outline as it goes but does not pause for approval. Interrupt it then if you want to change either.
| Phase | What happens | What you do |
|---|---|---|
| 1. Perspective discovery | Names the perspectives to interview: typically the Practitioner, the Academic, the Skeptic, the Adoption/Incentives analyst, the Historian, plus a basic-fact pass | Read the list, and interrupt to change it. A perspective that does not fit your question wastes a whole interview; one you add can be the report's best section |
| 2. Grounded interviews | One subagent per perspective, in parallel, each searching the corpus and citing only real citekeys | Nothing, but watch for a perspective reporting that it found nothing |
| 3. Contradiction map | Direct contradictions, strongest vs weakest evidence, the resolving question, universal agreement, and the blind spot nobody's searches reached | Read this closely. It is the most useful artefact of the whole run, whatever the report ends up saying |
| 4. Outline | Turns the map into a section plan | Redirect it now if it is wrong, before writing starts. Cheap now, expensive after five sections exist |
| 5. Cited section writing | One writer per section, in parallel, from pre-vetted citekeys | Nothing |
| 6. Polish + synthesis briefing | A synthesis pass over the assembled sections | Nothing |
| 7. Peer review + assembly | A panel (domain accuracy, methodology rigour, clarity, devil's advocate) critiques the draft, then it is saved and gated | Read the critiques, including the ones not acted on |
Throughout, the main run writes the dossier; the subagents never do.
Their kept claims land in evidence.md, their rejects in rejected.md,
and the contradiction map's findings alongside.
The skill runs these. Run them yourself after any hand edit.
chitragupta draft gate content/drafts/deep-research-fidelity.md
chitragupta draft references content/drafts/deep-research-fidelity.md
chitragupta draft render \
content/drafts/deep-research-fidelity.md --format pdf
chitragupta draft evidence \
content/drafts/deep-research-fidelity.md --format pdf
chitragupta draft dossier stamp content/drafts/deep-research-fidelity.md
The evidence sidecar is worth emitting here for the same reason the contradiction map is worth reading: a report that claims the corpus disagrees with itself should show you the spans it is comparing.
All advisory, all exit 0. --write files a report under
content/review/ for the agenda below to read; provenance files its
report on every run and has no --write.
chitragupta draft style content/drafts/deep-research-fidelity.md
chitragupta review verbatim scan content/drafts/deep-research-fidelity.md --write
chitragupta review synthesis content/drafts/deep-research-fidelity.md --write
chitragupta review provenance content/drafts/deep-research-fidelity.md
chitragupta review support content/drafts/deep-research-fidelity.md --write
chitragupta review quotation content/drafts/deep-research-fidelity.md --write
chitragupta review uncited content/drafts/deep-research-fidelity.md --write
| Aid | Reads for | Why it matters in this genre |
|---|---|---|
review synthesis |
paragraphs that summarise sources in sequence instead of synthesising them | a report assembled from parallel section writers is exactly where this creeps in: each writer summarises its own sources honestly, and the seams show |
review provenance |
whether the cited source's text matches the claim, worst matches first | the lexical first pass behind every unsupported-claim item below |
review support |
whether each citation entails its claim | a contradiction map makes strong claims about who said what; this is what checks them |
review quotation |
whether a quoted span matches its source | a report that quotes both sides of a disagreement must quote both correctly |
review verbatim |
wording shared with any parsed source | several writers drawing on one paper can converge on its phrasing |
review uncited |
claims with no source | the synthesis phase is where an unsourced connecting sentence appears |
chitragupta review agenda content/drafts/deep-research-fidelity.md
The agenda merges the reports the aids above filed into one ranked
worklist. It never runs an aid itself, and it names any aid whose report
is absent. AGENDA.md explains every section of the file;
WRITE-A-SURVEY.md's step 7
covers the [unattended]/[surfaced] classes, --baseline and
--accept. What follows is the part specific to a deep-research report.
This genre produces the longest agendas, because it makes the most claims. For the fidelity report (the fixed "How to read this" paragraph is left out):
# Agenda: content/drafts/deep-research-fidelity.md
> **Review aid, not a gate.** This report is evidence for a human
> judgement, never a verdict. A driver may read it back; no draft is
> blocked by what it says. See SOUL.md, and docs/ARCHITECTURE.md's
> "Layer 4: the review layer".
- Draft: `content/drafts/deep-research-fidelity.md`
- Command: `chitragupta review agenda content/drafts/deep-research-fidelity.md`
- chitragupta 6.166.1
## Sources
- Citation provenance: read
- Verbatim scan: read
- Citation coverage: not run
- Multi-source synthesis: read, no item class defined
- TikZ layout check: not run
- Uncited prose: read
- Quotation integrity: read
- Claim support: read
- Prose (style_check): read
- Dossier drift: read
- Recorded-but-uncited citekeys: read
- Accepted items: none recorded for this draft
## Summary
- 9 unsupported-claim
- 6 verbatim-run
- 4 uncited-claim
- 2 misquoted
- 1 recorded-but-uncited
## Findings
### unsupported-claim
- `401e348db58b` [surfaced] (3. Where the corpus contradicts itself):
`[@tao_digital_2019]` scores no support found: Papers treating
fidelity as tunable do not describe their deployment context
- `289df3c9be7c` [surfaced] (5. The question that would settle it):
`[@grieves_origins_2017]` scores weak: no paper in this corpus
reports a case where the decision itself changed
- `3df8a2924fc8` [surfaced] (2. What each perspective found -- the
Skeptic): `[@wright_how_2020]` scores weak: the evidence for runtime
adaptation rests on a single simulation study
### misquoted
- `9f04b1e7c3a2` [surfaced] (3. Where the corpus contradicts itself):
the quoted span differs from the source at 2 words -- "must be fixed"
for "is typically fixed"
### recorded-but-uncited
- `2b8c41f0e7d9` [surfaced]: `kritzinger_dt_2018` is in evidence.md with
a kept claim, and the report cites it nowhere
### verbatim-run
- `3e716e1cee1c` [unattended] (2. What each perspective found -- the
Academic): 17-word verbatim run citing `tao_digital_2019`, 8 matched
### uncited-claim
- `a1971eb28d62` [surfaced] (6. The blind spot): No published work
examines what happens when the twin's decision is itself revised
As the author, look at three items before anything else:
misquoted item changes a source's meaning: "must be fixed"
is a much stronger claim than "is typically fixed", and the report's
central contradiction may rest on it. Fix this first.recorded-but-uncited item means a perspective kept a source
and the report never used it. Either it belongs in the report, or the
contradiction map is thinner than the evidence behind it.unsupported-claim in section 5 is the resolving question,
which is where a deep-research report is most tempted to overreach.Most of this genre's findings are [surfaced]: judgement calls about
the report's argument. The [unattended] verbatim runs can be
handed off: ask to "work the review agenda" and agenda-reviser rewords
them one at a time, re-running the gate and a baseline recheck after
each and logging every attempt in revisions.md.
Never re-run this skill to make a change. It is the most expensive mistake available in this pipeline: seven phases and a dozen subagents to alter a paragraph. Ask for a revision instead:
The Skeptic's section overstates the disagreement. Soften it to what the two cited sources actually support, and keep the rest.
That selects draft-reviser, which reads the dossier (including the
contradiction map and what each perspective rejected) and edits only
what is affected.
If you need the whole corpus re-searched (you added thirty
papers, or you are re-targeting the report at a different reader), say so
explicitly and corpus-reviser handles it. That is still cheaper than
re-running deep research.
Back it up, because content/drafts/ is gitignored:
chitragupta draft dossier export deep-research-fidelity
| What you see | What it means | What to do |
|---|---|---|
| The skill says the ledger is empty and stops | no corpus, and it will not sync for you | chitragupta corpus sync, then ask again |
| A perspective's interview comes back empty | the corpus has nothing for that angle | drop that perspective, or add papers and re-sync before re-running |
| The contradiction map is empty | the corpus agrees, or it is too small | that is a finding; say it in the report instead of manufacturing tension |
| The run feels too heavy for the question | it probably is | ask for a survey instead; see WRITE-A-SURVEY.md |
gate says FAIL after a hand edit |
a citekey is not in the corpus | correct it or drop the claim |
| You want one section changed | -- | ask for a revision; never re-run the skill |