Skip to content

documentation drift detection

Know which docs your last merge made wrong.

Documentation drift is when the code changes and the sentence describing it stays the same. Meldoc finds those sentences in your pull requests. If one gets merged anyway, the document is marked with the pull request number until someone fixes it.

Click a date

a page with a review date

Verified · until Feb 1

Session rotation

Sessions rotate every 24 hours, with a 24-hour grace period. The rotation hook lives in auth/service.go.

last edited Nov 14

the same page in Meldoc

Code changed, doc didn’t · PR #518

Session rotation

Sessions rotate every 24 hours, with a 24-hour grace period. The rotation hook lives in auth/service.go.

Outdated sentence

The pull request changed the rotation interval from 24 to 12 hours.

auth/session.go:15

All correct Fix later

The review is off until you turn it on for a project. It never blocks a merge, and Meldoc never stores your code.

1 in the pull request

The review quotes the sentence and the line of code.

When a pull request changes how the system behaves, Meldoc reads the change and looks for sentences in your docs that it contradicts. For each one it posts a finding: the sentence, and the file and line that disagree with it.

If a finding is wrong, press Mark as wrong and it will not come back until that sentence is edited. The check never fails a merge.

Works with GitHub and GitLab. Checking what a sentence means needs the Pro plan and your own AI key. Without a key the review still reports file paths and names that the change removed.

Meldoc sync: platform Nothing to check
Meldoc review: platform 1 outdated sentence

Outdated sentence docs/auth/sessions.meldoc.md:14

“Sessions rotate every 24 hours, with a 24-hour grace period.”
auth/session.go
- rotateAfter = 24 * time.Hour
+ rotateAfter = 12 * time.Hour

3 documents read · 0 skipped · diff only · ≈ $0.01 on your key

Edit doc Mark as wrong

2 on the document

A finding that was merged stays on the page.

After the merge the finding moves to the document. A mark above the title names the pull request, and the sentence is highlighted. The project’s Code check tab lists every such document with the author and the merge date.

The mark goes away when someone edits the sentence or presses All correct. The age of the page does not matter.

platform · Code check
  • 3 docs say something the code no longer does
  • Session rotation PR #518 · m.kovac · merged Nov 17 Code changed, doc didn’t
  • Webhook retries PR #502 · a.lindt · merged Nov 9 Code changed, doc didn’t
  • Rate limits PR #497 · m.kovac · merged Nov 6 Code changed, doc didn’t
  • Checked in 30 days 41 docs

3 in the docs built on it

Product docs follow the technical docs.

A product guide or a help article repeats facts from the technical docs. In Meldoc the guide can follow the technical docs. When a technical page is edited, Meldoc checks the guide for sentences that no longer match.

platform technical docs, in Git “Sessions rotate every 12 hours”
product-guide follows platform 1 sentence flagged
support follows product-guide not checked yet

Try it: fix the sentence in the technical docs and watch the product guide. The finding shows what the source said before and what it says now. Press Fix and Meldoc suggests an edit that you apply or dismiss.

A project can follow up to ten projects in its workspace. The check runs within a few hours of the edit. A chain moves one step at a time: each project is checked when the one it follows changes.

This feature is called Sources. It is part of the Pro plan.

product-guide / Signing in
Source changed, doc didn’t · Session rotation

The app renews your session every 24 hours, so you rarely have to sign in again.

Session rotation · changed 2 hours ago

Sessions rotate every 24 12 hours

All correct Fix later

4 in the agent’s context

An agent reading the page gets the finding with it.

A coding agent that reads a wrong page will act on it. When an agent reads a document over MCP, Meldoc returns it together with its open findings. The agent sees which sentence is wrong and which change caused it.

docs_audit with kind=outdated lists the open findings of a whole project. No check block means no open findings. It does not mean the page was verified.

What stale docs do to an AI agent

docs_get · platform/auth/sessions
// title, content, links
"check": {
  "state": "missed",
  "findings": [{
    "quote": "Sessions rotate every 24 hours",
    "reason": "The pull request changed the
      rotation interval from 24 to 12 hours.",
    "openSince": "2026-11-17T09:42:00Z",
    "pr": { "number": 518,
      "title": "Shorten session rotation" }
  }]
}

why docs drift

Nothing fails when a sentence stops being true.

A code change needs a review and a green pipeline before it reaches the main branch. The docs that describe that code have no such step. Nobody is told which page a change affected, so the page stays as it was.

The person who finds out is the reader. It may be a new hire following a setup guide or a support agent quoting an old limit. The page looks the same as on the day it was correct.

43%
of engineers name keeping docs in sync with the product as their single biggest challenge. State of Docs 2026
1 in 4
of the most popular projects on GitHub had docs referring to code that was no longer there. Tan, Wagner, Treude, Empirical Software Engineering
4.7 years
is how long those references had been out of date, on average. the same study

other ways to deal with it

How the usual approaches compare.

Approach What triggers itWhat you getWhere it falls short
Review dates and “verified” badges The calendarA badge with an expiry date and a reminder to the ownerA page can be wrong for months before its date comes. A typo fix moves “last edited” and tells the reader nothing.
AI that rewrites the docs A code changeA drafted update, in some tools merged automaticallyA person still has to check the draft against the code.
Link checkers and linters The buildDead links and style errorsThey do not read what a sentence says.
Findings from the change Meldoc A code change, or an edit to a page another project followsThe sentence and the change behind it, on the pull request and on the document. Agents get the same over MCP.It reports what a change contradicts. A sentence that was wrong before stays unreported.

limits

What the review misses.

Sentences that were already wrong
The review starts from the next change. It does not audit the past.
Changes that skip pull requests
A direct push is not reviewed, and neither is a pull request from a fork. A pull request merged before its review finished leaves no finding.
Writing the docs
Meldoc reports the sentence and a person edits it.
Blocking a merge
The check passes or stays neutral, whatever it finds.

questions

Frequently asked.

What is documentation drift?
It is the difference between what the code does and what the docs say it does. It appears when a change ships and the sentences describing the old behaviour are left as they were.
How is this different from a “verified” badge or a review date?
A review date asks a person to re-read a page on a schedule. Meldoc does not go by the age of a page. It shows the open findings on the document, and each one names the change that caused it.
Does it rewrite my docs?
No. On a pull request it reports the sentence and links to the document. For a finding that comes from another project’s docs you can ask for a suggested fix, which you apply or dismiss.
Will it fill pull requests with comments?
No. There is one comment per pull request and it is updated on every push. A finding marked as wrong does not come back until that sentence is edited.
How do AI agents know a document is out of date?
Through the MCP server. Reading a document returns its open findings together with the content, and an agent can list the outdated sentences of a whole project.
How do product and help docs keep up with technical docs?
The product project follows the technical one. When a technical page is edited, Meldoc reports the sentences in the product docs that the edit contradicts and shows what the source said before and after.
Does it read my code?
Only on projects where you turn the review on, and it never stores code. The review reads the changes in a pull or merge request and searches the repository at that commit for names your docs mention. Only your own AI key is asked to judge them. To find related documents, Meldoc also turns the added lines of up to five of the most-changed files, at most 800 characters each, into search queries. Like every Meldoc search, those run on Meldoc’s OpenAI account.
What does it cost?
On Free the review reports removed files and names. Checking what a sentence means, and Sources, are on Pro and use your own AI key. Each review shows what it spent.

Find out the day a doc goes wrong.

Start free. Upgrade to Pro for unlimited team members, with no per-seat pricing.