Skip to main content

Doc Fact Checker

@twonines/doc-fact-checkerv2026.07.22.2· 5d agoMODELSREPORTS
01README

Fact-check a single documentation file. Its job is to confirm that the FACTS and — especially — the ASSUMPTIONS a document relies on are accurate and current, so that any decisions, recommendations, or guidance built on it rest on confirmed information. Reads one markdown file, then runs the local claude CLI in read-only mode (granted Read/Grep/Glob plus WebFetch/WebSearch — web access is on by default; set allowWeb: false for repo-only, offline verification) to verify the document's data points, references, links, and premises against the actual repository, other docs, and the web.

This does NOT evaluate the decisions, choices, or recommendations themselves: not whether a choice was good, whether alternatives were fair, or whether the reasoning is persuasive. It only answers "are the facts and assumptions this document rests on actually true, and are they still current?" Opinions are left alone; only a verifiable claim or premise attached to one is checked.

Assumptions — explicit and implicit — are a first-class target: the agent surfaces the premises a document leans on, looks for counter-evidence, and flags any that can't be substantiated.

Output is a fact-check resource holding a findings array. Each finding carries the exact quoted claim, its section, a claim type (fact/assumption/data/ref/link/consistency), a verification status (verified/outdated/partially-true/incorrect/unverifiable/questionable-assumption), a severity (critical/high/medium/low), the evidence found, and a recommendation. The first finding is always an FC-0 recon entry, so a clean pass is a positive statement of what ran rather than an empty array.

Use

swamp extension pull @twonines/doc-fact-checker
swamp model create @twonines/doc-fact-checker doc-checker
swamp model method run doc-checker review \
  --input path=path/to/your/document.md

The claude binary must be installed and authenticated on the host. The agent runs read-only by construction: it is granted only Read, Grep, and Glob plus WebFetch/WebSearch (web on by default; set allowWeb: false for offline use), and Edit/Write/Bash are explicitly denied, so it can inspect but cannot edit files or run commands. Set the optional guidance argument to add document-specific focus or out-of-scope rules. A human-readable review is produced automatically by the bundled @twonines/doc-fact-review report, a default of this model type.

02Models1
@twonines/doc-fact-checkerv2026.07.22.2doc_fact_check.ts

Global Arguments

ArgumentTypeDescription
claudePathstringPath or command name for the Claude Code CLI.
modelstringClaude model id passed to --model (e.g. sonnet, opus).
repoRootstringWorking directory the read-only agent runs in; relative doc paths and
wallTimeoutMsnumberHard ceiling for the single Claude invocation (default 10 minutes).
allowWebbooleanGrant WebFetch/WebSearch so the agent can verify external links, URLs,
guidancestringOptional extra instructions for this document/instance — focus areas or
fn review(path: string)
Read one document and confirm the facts and assumptions it relies on
ArgumentTypeDescription
pathstringPath to the markdown document (repo-relative or absolute).

Resources

fact-check(30d)— Fact-check findings for one document: each finding carries the quoted
03Reports1
@twonines/doc-fact-reviewmethod
doc_review_report.ts

Renders the @twonines/doc-fact-checker `fact-check` resource as a

docsfact-checkreview
04Previous Versions1
2026.07.22.1
05Stats
A
100 / 100
Downloads
1
Archive size
22.4 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels