An llms.txt maintenance workflow: publishing, changes, and spotting drift

Maintain llms.txt like a code asset: a change checklist, spotting drift with monitoring and the timeline, a cadence for handling broken links, and synchronization discipline for versioned documentation.

About 3 min readError codes covered: LINK_HEALTH

The most common way for llms.txt to die is not being written wrong but being left unattended once written: links rot, sections go out of date, and the file loses touch with the new documentation tree. This guide gives a maintenance cadence you can actually follow.

Change checklist (after every documentation release)

  1. Is the structure still compliant: a single H1, the summary present, H2 sections, entries as - [name](url): notes (see the structure quick reference)?
  2. Have added, deleted or renamed pages been synchronized into the entries?
  3. Are all entry links reachable (run a link check)?
  4. Is the size still within budget (compare tokenEstimate with last time; see Optional and budget)?
  5. Do subpath and version files and the root file still reference one another consistently (see scopes)?

Spotting drift with monitoring

Manual checklists miss things. Once a file is under periodic monitoring, the change timeline shows how each check differs from the previous one: sections added or removed, links added or removed, link status transitions. Discipline for reading the timeline:

  • “Sections +N / Links +M” matches what you published that time → normal.
  • A difference that does not match → someone, or some deployment, touched the file without anyone knowing; diff the source file right away.
  • REDIRECTED→NOT_FOUND shows up among the “N link status transitions” → link rot has started; put it in the fix queue.
  • A single timeout or a link that was not sampled does not count as a change: the observations are deliberately conservative and do not raise false alarms.
  • NOT_FOUND/HTTP_ERROR: fix or delete within 7 days (a dead link left in the index hurts trust more than having no index).
  • REDIRECTED: rewrite directly to the final address (one hop fewer, and it avoids the redirect target changing again later).
  • RATE_LIMITED/TIMEOUT: first check whether your own WAF blocked the crawler (see rate limits and reuse), then decide on a retry cadence.
  • For detailed interpretation see fixing link health.

Synchronization discipline for versioned documentation

  • One llms.txt per version directory, listing only the pages of that version.
  • In the entry notes at the top of an old version’s file, mark it as “no longer updated”.
  • End-of-life versions: remove their entries from the higher-level index; the file itself can stay (its scope still exists).

Test environment and results

Environment: Node v24.18.0, the llmstxtdb check engine and timeline (driven by report diffs), tested on 2026-10-05 and 2026-10-07. Two consecutive checks of the same file (the second with one section deleted and two links added) produced a count summary in the timeline of the form “Sections -1; Links +2”. Inserting a check in between in which everything timed out produced no spurious change entry (the observation rule that a timeout is not a deletion).