Skip to content

Docs check

xmsadik edited this page Nov 29, 2026 · 1 revision

Docs check finds documentation that no longer matches the code: paths a doc names that no longer exist, and docs whose code changed after the doc was last updated or reviewed. Agent instruction files (CLAUDE.md, AGENTS.md, …) come first, because a wrong path there misleads every agent.

Open it

Choose Check docs from the workspace's right-click menu, the Docs button in the Files header, or Docs: Check in the command palette. The Docs tab opens in the viewer and checks again by itself when files change.

The Docs tab: a summary, filters and each doc with its missing paths and why it is stale

In the file tree, docs with findings get a dot: red for missing paths, amber for stale. Turn the dots off in Settings → Files.

Red and amber dots on docs in the file tree

What counts as a link

  • a relative Markdown link, for example [api](../hub/Api.cs);
  • a code block with file= in its first line, for example ```ts file=src/api.ts;
  • a path in inline code, for example `src/api.ts` (only checked for existence);
  • the covers list of a doc in .kotilo/docs.toml.

Links to other Markdown files and paths git ignores are not counted.

# .kotilo/docs.toml – commit this file, so your team and CI see the same results
[[doc]]
path = "docs/api.md"
covers = ["src/api/**", "schema/api.json"]   # globs, relative to the repository root
reviewed = "3f2c1ab…"                        # written by "Mark reviewed"

When a doc is stale

A doc is stale when a covered file changed in a commit after the doc's baseline. The baseline is the commit stored by Mark reviewed, or else the last commit that changed the doc. Uncommitted changes do not count. Each stale doc shows why: the commits and the changed files. Click a file for its diff since the baseline.

Acting on a finding

  • Open doc opens it; clicking a missing path opens the doc at that line.
  • Mark reviewed stores the current commit as the doc's reviewed value in .kotilo/docs.toml. The file is created if needed and its comments are kept. Commit that change like any other.
  • Update with agent… writes a prompt for one of the workspace's running agents into its composer, with the missing paths and why the doc is stale. Nothing is sent until you send it; the agent's changes show in the Timeline.

Mark reviewed asks before writing the commit into .kotilo/docs.toml

Update with agent puts a ready prompt into the agent's composer

On the command line and in CI

Kotilo installs kotilo-docs next to the app (Windows: %LOCALAPPDATA%\kotilo\kotilo-docs.exe), and every release has a standalone copy per platform.

kotilo-docs check                 # one line per finding, e.g. docs/api.md:12: missing src/old.ts (link)
kotilo-docs check --json          # the full report
kotilo-docs check --missing-only  # or --stale-only
kotilo-docs reviewed docs/api.md  # same as "Mark reviewed"

check exits with 1 when it finds something, 0 when not and 2 on an error, so it can fail a CI job.

Clone this wiki locally