How to find docs that no longer match your code

Check each doc against the code it names, not against the calendar. A doc is stale when code it cites changed and the doc did not. Almanac runs that check daily at 6 AM Pacific on the docs you choose, lists the ones that no longer match, and changes nothing until a person approves the fix.

Start free

Why age is the wrong test

A doc untouched for a year can be right, and one edited last week can be wrong. What makes a doc stale is a change in the thing it describes: a renamed setting, a moved file, a command that takes a new flag. So the useful question is not how old a doc is. It is whether the code it points at changed since someone last confirmed the doc.

This page is for an engineer or a docs owner with docs in a GitHub repo, and for anyone who has had an agent follow an out of date doc. We make Almanac, so part of this is how our own check works, from our build notes and cost notes read on December 4, 2026.

The by hand version

For each doc, list the files, settings and commands it names. Look at the history of those files since the doc's last edit, for example with git log on the paths. If any changed, read the doc beside the change and fix or confirm the lines. Then write the date you checked in the doc, so the next person starts from there.

Do this first for the docs agents read, such as AGENTS.md, CLAUDE.md and setup guides, since a wrong line there is repeated every session. It works for a handful of docs and stops working at a few hundred, which is when a daily automatic check pays for itself.

What Almanac's daily check does

Once a day at 6 AM Pacific, for each GitHub repo linked to a workspace, Almanac checks the docs in the folders you chose. It runs as whoever turned the check on. The repo is read only, and docs never go into the sandbox where the code is read.

Rules settle what they can before any model runs. A doc whose status line says it was superseded or replaced is settled that way. A doc checked before is skipped unless it changed, or a change landed within 20 lines of a line it cited. Each doc that does need a look gets its own short session, which returns one verdict.

Findings land in Cleanup as issues, each with a proposed fix. Nothing changes a doc until a person approves it. A daily run spends at most 50 credits, with never checked and oldest checked docs first, so what it does not reach goes first the next morning.

What it cost us, from our own numbers

On Carmen, one of our own docs workspaces, a deep check of one doc averages about 8 requests and 4.6 credits. Before December 2, any change to a file a doc cited sent the doc back to be checked, and Carmen's busy files change daily, so the morning check cost about 600 credits. Checking only when a change lands near a cited line, and capping a day at 50 credits, fixed that. Your numbers will differ with how often your code changes and how many docs cite it.

What it does not catch

It reads the code, not the running product, so a doc that describes how a screen looks is not checked by it. A doc that cites nothing in the repo has nothing to compare. And it can be wrong: a verdict is a proposal, which is why a person approves each one. Treat the list as a place to start reading, not as the answer.

It is also a feature of one tool. If you do not use Almanac, the by hand version above works with git alone, and an agent run on a schedule can do the same comparison, as long as it only proposes changes.

Keep the docs you fix from going stale again

Cite the file in the doc by its path so the check has something to follow. Keep one fact in one doc and link to it from the others. And when an agent makes the fix, have it arrive as a suggestion for a person to accept. The guide to docs for AI agents covers what agents need to read.

Questions people ask

How do I find outdated docs in a GitHub repo?

For each doc, list the files and commands it names, check their git history since the doc's last edit, and read the doc beside any change. Almanac automates this daily.

When does Almanac's daily check run?

At 6 AM Pacific, once a day, on the docs in the folders you chose, for each GitHub repo linked to the workspace.

Does the check change my docs?

No. Findings go to Cleanup with a proposed fix, and nothing changes until a person approves it.

Is Almanac the old Almanac wiki or the Y Combinator company?

No to both. This Almanac, at almanac.io, is shared docs for people and AI agents, built on markdown files in GitHub.

Related

Start free