Skip to main content
Docs go stale one pull request at a time. Someone renames a function, and the README, the architecture page and the AGENTS.md rule that mention it keep the old name. Agents then follow the old rule. Graphify’s Stale docs check lists those sections on the pull request that changed the code, so the fix lands in the same pull request.
Works with: Graphify, on GitHub. Time: about 5 minutes to set up.

What you’ll build

  • Pull request reviews that list doc sections which mention code the pull request changed.
  • An agent rule that updates those sections before the pull request merges.
  • A Wiki that rebuilds from the merged code, so it never needs the same fix.

Before you start

  • A Graphify workspace with the repository indexed and PR reviews on.
  • Docs kept in the same repository as the code.

How the check works

It’s a plain name match, with no model and no graph behind it. When a pull request adds or removes a function or class, the review lists sections of untouched, git tracked .md, .markdown, .mdx and .rst files that mention those names. AGENTS.md and CLAUDE.md are .md files, so they’re included. It’s advisory and never blocks a merge. It doesn’t cover Cursor .mdc rules, doesn’t check whether a path or name in a doc still exists, and doesn’t judge whether a rule is still true.

Set it up

1

Check the switch

On Repositories, open the repository’s … options menu. Stale docs is on unless someone turned it off.
2

Open a pull request that renames or removes something

When the review lands, it can include a section titled Docs that may be stale (advisory). Each line names a doc file, its heading and lines, and the changed names it mentions, for example:
Up to 10 sections are listed. If there are more, the list ends with how many more.
3

Have the agent fix them in the same pull request

Commit this rule:
AGENTS.md
The stale docs list is on the review comment. review_status returns the gate and findings, not this list, so the agent reads the comment.
4

Ask for a fresh review

On GitHub, after the fixes, comment @graphify review. The new review analyzes the full pull request again.

Let the Wiki keep itself current

You don’t fix the Wiki by hand. Graphify rebuilds the graph on every push to the default branch, and the Wiki reflects the latest build. Once the pull request merges, the Wiki catches up. See How Graphify keeps your graph fresh.

Check that it works

Rename a function that a doc mentions, open a pull request, and wait for the review. The doc section shows under Docs that may be stale (advisory). After the agent updates it and you ask for a fresh review, that section is gone.

Troubleshooting

Next steps

Fix review findings

Have the agent fix what the review found.

Pull request reviews

Every review section and repository setting.