# Overview
```diff title="docs/api/invoices.md"
Send an Idempotency-Key header with each request.
-The `Idempotency-Key` header is optional.
+The `Idempotency-Key` header is required.
```
Rimfe is a GitHub app that reviews pull requests against the docs you already have, wherever they live. It can also be the place your docs live: generate them from your code, edit them in a block editor and host them on your own domain, public or private. See the [docs platform](https://docs.rimfe.com/platform).
## Start here
Install the GitHub App and get your first check. [Open the quickstart](https://docs.rimfe.com/quickstart).
Point Rimfe at your docs and choose when it runs. [Open configuration](https://docs.rimfe.com/configuration).
Control reviews from a pull request comment. [Open commands](https://docs.rimfe.com/reference/commands).
## Explore
Follow a review from pull request to result.
Findings, evidence and checks.
Generate, edit and host docs, with Ask the docs.
Monorepos, OpenAPI and your docs framework.
Formats, limits, permissions and the dashboard.
Fix a missing check or an empty review.
Short answers to common questions.
---
# Quickstart
This page takes you from sign-in to your first check on a real pull request. It takes about five minutes. You need a GitHub account, and to install the app on an organization you must be an organization owner.
## Sign in with GitHub
Open the dashboard and select **Continue with GitHub**, or enter your email to get a sign-in link. Rimfe reads repositories only through the GitHub App you install in the next step.
On first sign-in, create a workspace. Enter a **Workspace name**. The slug fills in from the name, and you can change it with **Edit**. Then select **Create**. If someone invited you to a workspace, you can join it from the same screen.
## Install the GitHub App on your repositories
On the **Repositories** page, select **Install GitHub App**. GitHub asks which account and which repositories to grant access to. Choose the code repositories you want reviewed. If your docs live in a different repository, include that one too.
When you return to Rimfe, you see "GitHub App connected" and your repositories are listed. If a repository is missing, select **Sync**. To change access later, open the **More GitHub actions** menu next to **Sync** and select **Manage installation**.
Your plan covers a set number of private repositories: 1 on Hobby, 10 on Startup, any number on Business. If you connect more, Rimfe shows **Choose your private repositories** and locks the rest until you choose or upgrade.
See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions) for what each permission is used for.
## Choose how AI is paid
Reviews run on an AI model. Every plan includes reviews on Rimfe's models: 10 a month on Hobby, 200 on Startup and 750 on Business. You can see your first checks before you set anything up.
To keep reviewing after the included reviews, add your own AI key. Open **Settings**, then **AI**, add a key from your AI provider, such as OpenRouter, Anthropic, OpenAI or Google Gemini, and choose a model. A $10 monthly spend limit applies to your key until you change it. See [Bring your own AI key](https://docs.rimfe.com/guides/ai-provider).
If the included reviews are used and there is no key, reviews pause with a neutral check, so a pull request is never failed for it.
## Choose where the docs live
Open a repository and go to **Settings**, then the **Docs** tab. Under **Docs targets**, a repository reviews its own docs until you link another. If your docs are in another repository, select **Link docs**, pick the repository and its docs folders, then select **Link docs** again. You need write access to both repositories on GitHub.
Skip this if your docs sit in the same repository as the code. For the full setup, see [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository).
## Confirm the docs scope
The docs scope tells Rimfe which files count as documentation. On the same **Docs** tab:
1. Select **Check setup**. Rimfe lists how many docs match, names any documentation layout it recognizes (for example "Docusaurus layout"), and reports setup problems under "Setup needs attention".
2. If it suggests a scope, select **Use detected scope**.
3. Check the **Docs globs** field. For generated or archived pages, open the **Advanced** tab and add them under **Ignore docs paths**.
4. Select **Save changes**.
If you leave **Docs globs** blank, Rimfe uses `**/*.{md,markdown,mdx,rst,adoc,asciidoc}`. That includes every README and note. Use the detected scope or name your docs folder.
Only workspace owners and admins can change settings. See [Docs scope](https://docs.rimfe.com/configuration/docs-scope) for globs, ignore paths and detection.
To keep the scope in the repository instead, run `npx @rimfe/cli init` at its root and commit the `.rimfe.json` it writes. See [the CLI](https://docs.rimfe.com/reference/cli#set-up-a-repository).
## Open a pull request and see the check
Open a PR that changes behavior, such as an API route, a CLI flag or a default value. With the default trigger, **On every push**, Rimfe reviews the PR when it opens and after each push, and shows a check named `Rimfe`.
- **Passing check, no comment.** No docs update is needed. By default Rimfe only comments when docs need changes.
- **Neutral check and a comment.** Rimfe found drift. The comment quotes the code and the docs.
Draft PRs wait until they are ready for review. To check an existing PR from the dashboard, open the repository, go to **Run check**, and pick the PR.
For what each result means, see [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks).
## Push a fix, or comment `@rimfe review`
Push a fix or a docs update and Rimfe reviews the new commit. To re-run without pushing, add this comment on its own line:
```text
@rimfe review
```
Rimfe adds an eyes reaction to your comment. The check updates when the review finishes, and the Rimfe comment is edited in place if the result needs action. You need write access to the repository. If a commit was already reviewed, Rimfe updates the existing result instead of running again.
To review only when a PR opens, change **Review trigger** to **On PR open** in settings. See [Review triggers](https://docs.rimfe.com/configuration/review-triggers) and the full [command list](https://docs.rimfe.com/reference/commands).
## Ask for a docs PR
When a review finds drift and Rimfe can write a safe fix, comment:
```text
@rimfe open docs PR
```
Docs PRs are off by default. If they are off, Rimfe replies that docs PRs are turned off for the repository and links to settings. To turn them on:
1. Open the repository **Settings**.
2. On the **Reviews** tab, under **Commands and docs PRs**, turn on **Docs PRs**.
3. Select **Save changes**.
4. Approve the updated permissions if GitHub asks. Docs PRs need **Contents** and **Pull requests** write access on the installation.
Then comment `@rimfe open docs PR` again. Rimfe opens a PR titled "docs: update docs for pull request NUMBER" that changes only files inside your docs scope. With docs in the same repository, the docs PR targets your PR's branch, so merging it adds the fix to your PR. With a separate docs repository, it opens against that repository's default branch.
You can also select **Open docs PR** on the check page in the dashboard. The button shows **Opening docs PR…** while Rimfe works in the background, then the page shows a link to the PR. If it fails, the page says why and the button becomes **Retry docs PR**. Docs PRs are never created for PRs from forks, even when your docs live in a separate repository.
## Next steps
Learn what drift, findings, evidence and coverage mean.
Generate, edit and host your docs on Rimfe.
Tune triggers, comments and the check.
Fix a missing check or a refused command.
---
# Concepts
Read this once and Rimfe checks, comments and dashboard labels are easy to interpret.
## Documentation drift
Documentation drift is when your docs no longer match what your code does. It happens in two ways:
- **Contradiction.** The docs say something the change makes wrong. For example, a page says a header is optional and the PR makes it required.
- **Missing.** The change adds behavior and no page in your docs scope describes it.
Rimfe checks each pull request for both. The dashboard shows the result as "Needs update" when it finds at least one.
## Behavior change
Rimfe cares about behavior that someone using your product could notice: API routes, CLI flags, configuration keys, defaults, environment variables, schemas and error messages.
It ignores changes that cannot affect documentation:
- Test files and snapshots.
- Lockfiles, build output, generated and vendored paths.
- Images and other assets.
- Repository housekeeping such as `.github/`, `.gitignore` and license files.
- Docs files in any [supported format](https://docs.rimfe.com/reference/formats), which are your docs, not code.
A PR that contains only these is skipped with a reason such as "Only test or internal changes were detected." or "No relevant product-facing change was detected."
## Finding kinds
Each review produces findings, and each finding has one kind.
| Kind | What it means | Comment label | Check page label | Actionable |
| --- | --- | --- | --- | --- |
| `contradiction` | The docs say something the change makes wrong. | Docs conflict | Docs conflict | Yes |
| `missing` | The change adds behavior that no in-scope page describes. | Missing docs | Missing docs | Yes |
| `outdated_sample` | A docs code snippet uses code the change renamed, removed or reshaped. | Outdated code sample | Outdated code sample | Yes |
| `broken_reference` | A docs page names something the code or the docs do not have: an environment variable, option, command, route, config key, code name, or a local link or anchor. | Broken reference | Broken reference | Yes |
| `deprecated_reference` | A docs page uses a name the code deprecates, with no deprecation notice. | Deprecated name in the docs | Deprecated name in the docs | Yes |
| `deprecation_undocumented` | The code deprecates a name that the docs never say is deprecated. | Undocumented deprecation | Undocumented deprecation | Yes |
| `agent_context_reference` | An agent instruction file such as AGENTS.md names a command, path or option the repository does not have. | Wrong agent instruction | Wrong agent instruction | Yes |
| `injection_risk` | A docs page hides text that an AI agent reading it may follow. | Hidden instruction | Hidden instruction | Yes |
| `parse_error` | An MDX page the PR edits does not parse. | Page does not parse | Page does not parse | Yes |
| `covered` | The docs already describe the new behavior. | Covered | Covered | No |
| `internal` | The change has no user-visible effect. | Internal change | Internal change | No |
| `uncertain` | Rimfe could not verify enough to decide. | Needs context | Needs context | No |
**Actionable** findings are the ones that need a docs change. Verified `contradiction`, `missing`, `outdated_sample` and `broken_reference` findings are actionable, and so are the deprecation, agent instruction, hidden instruction and parse findings above. Only actionable findings turn a review into "Drift". Findings listed under "Also consider" are suggestions and are never actionable.
**Shown** is different. The check page in the dashboard lists every finding. The PR comment also lists every finding, with actionable ones first, but Rimfe only posts a comment when your **PR comments** setting says so. By default that is "Needs update only", so a PR whose findings are all covered, internal or uncertain gets a check and no comment.
## Quoted evidence
Every finding quotes its proof:
- **Code** quotes come from the code diff in the PR.
- **Docs** quotes come from the docs Rimfe read.
`contradiction`, `covered` and `outdated_sample` findings must quote the docs too, because they claim something about what a page says.
Rimfe verifies each quote before it counts. A quote must appear in your diff or docs, apart from whitespace such as re-indented lines. A quote that cannot be found is dropped. If a finding has no code quote left, or lacks a docs quote it needs, it becomes `uncertain`, is not actionable, and its explanation ends with "Rimfe could not find the quoted text in the pull request or the docs, so check this by hand."
This is why you can trust a flagged finding: the lines it points to are really in your diff and your docs. In the PR comment, long evidence is shortened to a few files and quotes per finding. The check page has the full list.
## Review coverage
Coverage says how much of the change and the docs Rimfe could read.
| Coverage | Check page badge | Meaning |
| --- | --- | --- |
| Complete | No badge | Rimfe read the whole change and checked all affected docs. |
| Partial | Partial review | Something was left out. The reasons are listed. |
| Unavailable | Not assessed | No docs check was possible, for example when every changed file is an unsupported type. |
Coverage becomes partial for one of these reasons:
- "Some code changes were too large to read in full."
- "Some changed files have no available diff."
- "Some changed file types are not supported: …" followed by the extensions.
- "N docs pages were not checked before the review ran out of time."
- "N docs pages could not be checked."
- "N docs pages that name changed code were not read within the review's limits." The next review reads them first. See [limits](https://docs.rimfe.com/reference/limits#docs-pages-read).
- "Changed API specs could not be compared; only their text diffs were reviewed."
- "N code samples that use changed code did not fit the review's snippet limit." or "Some code samples were not checked because the docs have more than the snippet limit."
- "Some changes could not be confirmed with quotes from the pull request and the docs."
### Why partial coverage blocks "missing"
A `missing` finding claims that no page documents a behavior. You can only prove that with a complete search. If some affected sections were not checked, Rimfe might have missed the page that describes it.
So when the docs search is not complete, a `missing` finding is downgraded to `uncertain`, with the note "Rimfe could not search every docs page in this check, so confirm no other page already covers this." A truncated code diff does not cause this downgrade, because the claim rests on the quoted code change and the docs search. A `contradiction` never has this limit, because a verified quote from the docs proves it on its own.
## Outcomes and check results
A review ends in one of these outcomes.
| Outcome | Dashboard label | When it happens |
| --- | --- | --- |
| Pass | Pass | Coverage is complete and no finding is actionable. |
| Drift | Needs update | At least one finding is actionable. |
| Skipped | Skipped | The check did not apply, for example a docs-only PR, a draft, or a newer commit. |
| Incomplete | Incomplete | A skipped review that could not verify everything. Read the reason before relying on it. |
| Failed | Failed | The review could not finish. |
The GitHub check is named `Rimfe`, and the PR's checks list shows it with the app's name in front. When a repository has docs in more than one docs repository or on a hosted docs site, each gets its own check with the docs repository or site in brackets after the name, such as `Rimfe (acme/docs)`. The title and conclusion follow the outcome.
| Outcome | Check title | Conclusion (non-blocking) | Conclusion (blocking) |
| --- | --- | --- | --- |
| Pass | No docs drift: docs are up to date | Success | Success |
| Drift | Docs drift: 2 pages may be out of date | Neutral | Action required |
| Incomplete | Rimfe could not review everything | Neutral | Action required |
| Skipped | Rimfe skipped this PR, or the hold's own title such as Draft not reviewed | Skipped | Skipped |
| Stopped by a person | Check stopped | Skipped | Cancelled |
| Held back by a fair-use guard | Rimfe paused: daily AI limit reached | Neutral | Neutral |
| Failed | Rimfe could not finish this check | Failure | Failure |
"Blocking" is the **GitHub check** setting "Blocking when docs required". The default is "Non-blocking", so a drift result never fails your PR on its own. To make it block merges, set it to blocking and require the check in your branch protection rules. The setting also has a **Strict blocking** mode. It works like blocking, and a review that was held back by a limit or could not run also fails the check. See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks) for the full picture.
## Docs scope
The docs scope is the set of files Rimfe may read as documentation and may change in a docs PR. It has four parts:
- **Docs globs.** Which files count as docs. The default is `**/*.{md,markdown,mdx,rst,adoc,asciidoc}`, minus changelogs.
- **Ignore docs paths.** Docs pages to exclude, even when a glob matches.
- **Ignore code paths.** Changed code files to leave out of the review.
- **Code-to-doc mappings.** Optional rules such as `src/api/** => docs/api/` that point a code area to its docs.
Only [docs formats](https://docs.rimfe.com/reference/formats) can be in scope, and generated, build and dependency paths never are. Code files are never changed. See [Docs scope](https://docs.rimfe.com/configuration/docs-scope).
## Glossary
| Term | Meaning |
| --- | --- |
| Drift | Docs that no longer match the code. |
| Review (run) | One analysis of one PR commit. Each review has an outcome. |
| Finding | One behavior change with a kind, an explanation and quoted evidence. |
| Contradiction | A finding where the docs are now wrong. |
| Missing | A finding where new behavior has no docs. |
| Covered | A finding where the docs already describe the change. |
| Internal | A finding with no user-visible effect. |
| Uncertain | A finding Rimfe could not verify. Shown as "Needs context". |
| Actionable | A verified finding that needs a docs change, such as a `contradiction`, `missing`, `outdated_sample` or `broken_reference`. |
| Evidence | Quotes from the diff (**Code**) and the docs (**Docs**). |
| Coverage | How much of the change and docs the review read: complete or partial. |
| Check | The `Rimfe` GitHub check on the PR. |
| Docs scope | The globs, ignore docs paths, ignore code paths and mappings that define your docs. |
| Docs PR | A PR Rimfe opens on request with a minimal docs fix. Off by default. |
| Support reference | The ID shown on the check page, and on a failed check's GitHub check and PR comment. Include it when you contact support. |
---
# How a review works
Rimfe reviews one pull request at a time. It uses AI to compare the code change with your docs, checks that every suggestion is backed by your actual diff and docs, and reports the result as a GitHub check and, when your settings allow, a comment.
```mermaid title="A review, from pull request to result"
flowchart LR
PR[Pull request] --> Read[Compare with docs]
Read --> Drift{Still correct?}
Drift -->|Yes| Pass[Check passes]
Drift -->|No| Fix[Findings and a fix]
```
## What you see
### A review starts
Opening, reopening or pushing to a pull request, marking it ready for review, changing its base branch or changing its labels starts a review. So does commenting `@rimfe review` or choosing **Review latest** in the dashboard. Your [review trigger](https://docs.rimfe.com/configuration/review-triggers), draft and label rules, and any pause decide whether an automatic review runs.
### A check appears
Rimfe adds a check named `Rimfe` to the pull request's latest commit. It shows as queued, then in progress.
### Rimfe looks at the change and your docs
Rimfe reads the code changes that affect public behavior and the docs in your [docs scope](https://docs.rimfe.com/configuration/docs-scope). Tests, lockfiles, generated files and docs-only changes are skipped. See [What gets reviewed](https://docs.rimfe.com/how-it-works/what-gets-reviewed).
### The result is posted
The check finishes with a result. If your **PR comments** setting allows it, Rimfe posts a comment with each finding, the code and docs it quotes, and a suggested fix. See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks).
### You act on it
Apply the suggestion by hand, ask for a [docs pull request](https://docs.rimfe.com/how-it-works/docs-prs) with `@rimfe open docs PR`, or dismiss a finding that is wrong.
## Good to know
- Pull requests that change only docs, tests, lockfiles, generated output or assets are skipped and use none of your review allowance.
- A new push replaces a queued automatic review for the older commit.
- Running `@rimfe review` on a commit that was already reviewed refreshes the existing result instead of starting a new one.
## Learn more
Which files count, what is skipped, when reviews run and how large pull requests are handled.
Docs scope, code mappings and separate docs repositories.
Finding kinds, evidence, check results and the PR comment.
Turn a suggested fix into a docs pull request.
What Rimfe reads, what it keeps and for how long.
---
# What gets reviewed
Rimfe reviews changes that can alter what your docs say. Everything else is skipped up front, so a skipped pull request uses none of your review allowance.
```mermaid title="How a changed file is sorted"
flowchart LR
File[Changed file] --> Gen{Generated?}
Gen -->|Yes| Skip[Skipped]
Gen -->|No| Spec{API spec?}
Spec -->|Yes| First[Reviewed, read first]
Spec -->|No| Docs{Docs?}
Docs -->|Yes| Skip
Docs -->|No| Code{Code or config?}
Code -->|Yes| Reviewed[Reviewed]
Code -->|No| Unsupported[Unsupported type]
```
## Files that count as product-facing
A changed file is reviewed when it is code or configuration that can change public behavior.
| Kind | What counts |
| --- | --- |
| Source code | `.c`, `.cc`, `.cpp`, `.cxx`, `.h`, `.hpp`, `.cs`, `.fs`, `.go`, `.java`, `.kt`, `.kts`, `.scala`, `.swift`, `.dart`, `.rb`, `.php`, `.rs`, `.ex`, `.exs`, `.erl`, `.hs`, `.clj`, `.lua`, `.m`, `.mm`, `.py`, `.sh`, `.bash`, `.zsh`, `.ps1` |
| JavaScript and TypeScript | `.js`, `.jsx`, `.cjs`, `.mjs`, `.ts`, `.tsx`, `.cts`, `.mts` |
| Web | `.vue`, `.svelte`, `.astro`, `.html`, `.css`, `.scss`, `.sass`, `.less` |
| Configuration and schemas | `.json`, `.jsonc`, `.toml`, `.yaml`, `.yml`, `.ini`, `.cfg`, `.properties`, `.gradle`, `.tf`, `.env`, `.env.*` (such as `.env.example`), `.graphql`, `.gql`, `.proto`, `.sql`, `.xml`, `Dockerfile`, `Makefile` |
| Dependency manifests | `go.mod`, `Gemfile`, `*.gemspec`, `Pipfile`, `CMakeLists.txt`, `requirements*.txt` |
| Product-facing locations | Any file with `/api/`, `/routes/`, `/migrations/`, `/schema`, `/config` or `/env` in its path |
Any other file type is unsupported unless it sits in one of the locations above.
Rimfe understands code in [the supported languages](https://docs.rimfe.com/reference/formats#code) as functions, types, routes and settings. Other reviewed files, such as SQL, GraphQL, Protobuf, a Dockerfile, a Makefile or CSS, are reviewed from their diff: the names on the changed lines are looked up in your docs.
If a pull request changes only unsupported file types, the check reports "Rimfe could not review everything" instead of passing, and the reason names the extensions, for example "unsupported file types (.xyz)". If it changes supported and unsupported files together, Rimfe reviews the supported files and marks the review partial. Only unknown text files count as unsupported. Everything in the skipped list below never makes a review incomplete.
## API specs
An API spec is your public contract, so Rimfe always reviews a changed spec, reads it first, and never treats it as a docs page, even when it sits inside your docs scope.
A file is a spec when it matches one of these names:
| Kind | Matches |
| --- | --- |
| OpenAPI and Swagger | `openapi.json`, `openapi.yaml`, `openapi.yml`, the same names for `swagger`, and any `*.openapi.json`, `*.openapi.yaml` or `*.openapi.yml` |
| AsyncAPI | `asyncapi.json`, `asyncapi.yaml`, `asyncapi.yml` |
| Spec folders | `.json`, `.yaml` and `.yml` files under an `openapi/`, `api-spec/` or `spec/` folder, at any depth |
| Schemas | `.graphql`, `.gql`, `.proto`, and JSON Schema files named `*.schema.json` |
Specs in test, fixture, generated or vendored paths (such as `tests/`, `__fixtures__/` or `dist/`) are not the contract and are skipped as usual. In spec folders, `fixtures/` and `support/` subfolders, `package.json` and `tsconfig` files are not specs.
Each added, removed or renamed path, operation, parameter, response field, enum value, default or required flag is checked against your API reference pages. The review notes which specs it read, for example "API spec reviewed: openapi.yaml."
OpenAPI 3.x and Swagger 2 files (JSON or YAML) are compared with their previous version. An unreadable spec makes the review Partial. See [OpenAPI and schemas](https://docs.rimfe.com/guides/openapi).
## What is skipped, and why
| Skipped | Why |
| --- | --- |
| Files in your docs scope | Docs are what Rimfe compares against, not what it reviews as code. The doc pages at the pull request's commit, including your edits, are still read. |
| Other docs files | Changelogs, and docs files outside your docs scope, do not change product behavior. A docs file outside the scope that the pull request edits, such as a package `README.md` or `api.md`, is still read as evidence that the change is documented. Rimfe never edits it. |
| Lockfiles | `package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `bun.lock`, `uv.lock`, `poetry.lock`, `Cargo.lock`, `go.sum`, `Gemfile.lock`, `composer.lock` and any other `.lock` file only record resolved versions. |
| Generated, vendored and fixture output | Paths under `dist/`, `build/`, `coverage/`, `vendor/`, `node_modules/`, `.next/`, `.nuxt/`, `.output/`, `.svelte-kit/`, `.turbo/`, `__snapshots__/` or `__fixtures__/`, plus `.snap` files, `.min.js`, `.min.css` and source maps (`.map`). A code file in any folder is also skipped when its leading comment says a tool wrote it: "Generated by", `@generated`, "DO NOT EDIT", or `wrangler types` output. |
| Images, fonts and binaries | `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`, `.avif`, `.bmp`, `.heic`, `.tiff`, `.svg`, `.ico`, `.pdf`, fonts (`.woff`, `.woff2`, `.ttf`, `.otf`, `.eot`), media (`.mp3`, `.mp4`, `.mov`, `.webm`, `.wav`), audio (`.flac`, `.ogg`), archives (`.zip`, `.tar`, `.gz`, `.tgz`, `.bz2`, `.xz`, `.7z`), certificates and data files (`.crt`, `.pem`, `.db`, `.sqlite`, `.parquet`), and compiled files (`.wasm`, `.exe`, `.dll`, `.so`, `.dylib`, `.jar`, `.class`, `.pyc`, `.o`, `.bin`). |
| Repository meta files | `.gitignore`, `.gitattributes`, `.editorconfig`, `.nvmrc`, `.node-version`, `.python-version`, `.tool-versions`, `.mailmap`, `LICENSE`, `CODEOWNERS`, and files under `.github/`, `.vscode/`, `.idea/`, `.husky/` or `.changeset/`. |
| Tests | Files under `test/`, `tests/`, `__tests__/`, `fixtures/` or `testdata/`, `.test` and `.spec` files for TypeScript and JavaScript, `_test.go`, `_test.py`, `_test.rb`, `_test.exs`, `_spec.rb`, `test_*.py`, `conftest.py` and `.golden` files. Tests are internal, so they never require docs. |
| Ignored code paths | Anything matching your ignore code paths, or a `@rimfe ignore path` pattern on that pull request. |
When every changed file falls into these groups, the review ends as skipped:
- Only test changes: "Only test or internal changes were detected."
- Nothing product-facing: "No relevant product-facing change was detected."
In both cases the check conclusion is **skipped**.
## When reviews run
The **Review trigger** setting decides which GitHub events start an automatic review.
| Review trigger | Automatic reviews start when |
| --- | --- |
| On every push (default) | A pull request is opened, reopened, marked ready for review, gets new commits, or a label from your label rules is added or removed. A burst of pushes produces one review of the latest commit. |
| On PR open | The same events, but pushes are reviewed only until a review produces a result; later pushes wait for a request. |
| Only when asked | Never. You request each review. |
| Paused | Never. |
Reviews that were not started automatically are one command away. See [review triggers](https://docs.rimfe.com/configuration/review-triggers) for how to change the mode.
### Ask for a review
| Command | What it does |
| --- | --- |
| `@rimfe review` | Reviews the latest commit. |
| `@rimfe full review` | Reviews the latest commit with the larger budget. It needs **Full review** turned on. |
You can also use **Review latest** or **Full review** on a check page in the dashboard. Commands need write access to the repository and **PR commands** turned on in the repository settings. See the [command reference](https://docs.rimfe.com/reference/commands) for every command.
If the commit was already reviewed, Rimfe replies that it already reviewed this commit and refreshes the existing result.
### Drafts, forks and labels
These review controls apply to automatic reviews only:
- **Wait for drafts to be ready** is on by default. A draft pull request is not reviewed until you mark it ready for review, which starts a review.
- **Forks and first-time contributors** wait for a maintainer to comment `@rimfe review` by default (Hobby skips them). No model runs on their pull requests until then. You can also review them like any other pull request. See [Review triggers](https://docs.rimfe.com/configuration/review-triggers#forks).
- **Require these labels** and **Pause for these labels** let you limit reviews by label. Every required label must be present, and any paused label stops the review. Label names must match exactly.
`@rimfe review` and the dashboard buttons ignore these controls. A pull request you paused with `@rimfe pause` or `@rimfe ignore this PR` gets no automatic reviews until you run `@rimfe resume`.
When a rule holds back an automatic review before it starts, the check completes as skipped with a plain title that says why, such as "Draft not reviewed", "Waiting for approval", "Fork not reviewed", "Paused by a label" or "Waiting for labels", and says how to start the review. This happens in every **GitHub check** mode except off, so a required check does not wait. In non-blocking mode, only a pause holds back quietly, with no check. In blocking modes a pause completes a skipped check too.
## Large pull requests
A pull request is too large to review when it has more than 300 reviewable code files, more than 30,000 changed lines in reviewable code files, or more than 3,000 changed files. Docs, tests, generated files, lockfiles and ignored paths do not count toward the file and line limits. Such a pull request is skipped before anything is downloaded and before any model runs, so it uses none of your review allowance. Its check completes as "Too large to review": skipped, or failed under the blocking strict mode, where nothing merges unreviewed. Rimfe posts one comment that gives the count, the limit passed and what to do, unless comments are set to never.
Rimfe reads every changed code file it understands in full, except that in a very large change the change summary may read only part of some code files. Files it reviews from their diff have limits:
| Limit | Value |
| --- | --- |
| Files reviewed from their diff | 40 per review, API specs first |
| Diff read per file | First 60,000 characters |
The review is marked **partial**, and cannot pass, when:
- More than 40 files need their diff read, a diff is longer than 60,000 characters, or the change summary could not read all of a very large change's code: "Some code changes were too large to read in full."
- GitHub lists a changed product-facing file without its diff, for example because it is too large: "Some changed files have no available diff."
- The pull request also changes [unsupported file types](#files-that-count-as-product-facing).
A partial review still reports findings backed by verified evidence. If GitHub does not return every changed file, the review is incomplete and asks you to split the pull request. See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks).
### Full review
A full review looks deeper: it runs the second check on a larger model, and when your docs live in a separate repository it also doubles the limits. It is worth running on a large or important pull request. It is off by default. See [limits](https://docs.rimfe.com/reference/limits#normal-and-full-reviews) for the numbers.
1. Open the repository settings in the dashboard.
2. Turn on **Full review**.
3. Comment `@rimfe full review`, or use **Full review** on a check page. In the dashboard, only workspace owners and admins can start a full review.
Automatic reviews are always normal reviews. See [limits](https://docs.rimfe.com/reference/limits) for daily limits and what happens when you reach one.
---
# Helping Rimfe find the right docs
Rimfe checks the pages in your docs scope that a change is most likely to affect. When a result points at the wrong page, or misses one, these settings fix it.
## Set your docs scope
Your [docs scope](https://docs.rimfe.com/configuration/docs-scope) says which files count as docs. The default is every Markdown, MDX, reStructuredText and AsciiDoc file in the repository. Narrow it to your docs folder, and add ignore paths for generated or archived pages.
Use **Check setup** in repository settings to see how many pages match and to accept a detected scope. Rimfe reads docs at the pull request's commit, so it sees them as they would be after the merge, including your own docs edits in the pull request.
## Map code to docs
A [code mapping](https://docs.rimfe.com/configuration/code-mappings) points a code area at its docs, for example `src/api/** => docs/api/`. Every page a mapping points at is a candidate whenever matching code changes. Add one when Rimfe keeps missing a page.
## Keep docs in another repository
If your docs live in [a separate repository](https://docs.rimfe.com/configuration/separate-docs-repository), link it under **Docs targets** on the settings **Docs** tab. Rimfe then reads the docs from that repository's default branch, keeps the check and comment on the code pull request, and opens docs pull requests in the docs repository. Docs changes still sitting in an open pull request there are not seen.
## Cover large pull requests
Rimfe finds every docs passage that names something the change renamed, removed or changed, on any page. A quick first pass sorts out the passages the change cannot affect, and the rest are read closely, section by section, on up to 30 pages. Up to 10 more pages that describe the change in other words are read in full.
If more pages need a close read than a review allows, the least likely ones are left, the review is marked **partial** and lists them. When you push again or comment `@rimfe review`, the next review reads the pages earlier reviews left first. See [limits](https://docs.rimfe.com/reference/limits#what-a-limit-does-to-the-result).
## When a result looks wrong
- Add an ignore path for pages that should never be checked.
- Add a code mapping for pages that should always be checked.
- Dismiss a single wrong finding with `@rimfe ignore`. See [Commands](https://docs.rimfe.com/reference/commands).
---
# Findings and checks
A review produces findings. Rimfe verifies each finding's evidence, then turns the findings into a check result and, if your settings allow, a pull request comment.
## Finding kinds
Each finding covers one behavior that changed, such as an endpoint response or a default value. A review can return several findings.
| Kind | Label in the comment | Meaning | Counts as drift |
| --- | --- | --- | --- |
| Contradiction | Docs conflict | Existing docs say something the changed code no longer does. | Yes |
| Missing | Missing docs | The change adds behavior that your docs do not cover. | Yes |
| Outdated code sample | Outdated code sample | A code snippet in your docs uses code the change renamed, removed or reshaped. The finding names the page and line. See [Code samples](https://docs.rimfe.com/how-it-works/code-samples). | Yes |
| Broken reference | Broken reference | A docs page names an environment variable, option, command, route, config key or code name that the code does not have, or a local link or anchor that does not exist. It needs no AI. On a pull request, only references that the pull request caused are reported. To silence a name that is meant to be absent, see [`referenceIgnore`](https://docs.rimfe.com/configuration/rimfe-json#ignore-reference-names). | Yes |
| Deprecated name | Deprecated name in the docs | A docs section uses a name the code deprecates without saying so. No AI. See [Deprecations](https://docs.rimfe.com/how-it-works/deprecations). | Yes |
| Undocumented deprecation | Undocumented deprecation | A pull request deprecates a public name and no docs section mentions the deprecation. No AI. See [Deprecations](https://docs.rimfe.com/how-it-works/deprecations). | Yes |
| Agent instruction | Wrong agent instruction | An `AGENTS.md`, `CLAUDE.md`, rules or skill file names a script, path, env var or import that does not exist. No AI. See [Agent context files](https://docs.rimfe.com/how-it-works/agent-context). | Yes |
| Hidden instruction | Hidden instruction | A docs or agent file has text aimed at an AI agent: invisible characters, HTML comments that give orders, images in agent files, or links whose text names a different host. On a pull request only lines it added count. No AI. See [Agent context files](https://docs.rimfe.com/how-it-works/agent-context#hidden-instructions). | Yes |
| Stale claim | Stale claim | An [audit](https://docs.rimfe.com/how-it-works/audits) found a statement in a page whose linked code no longer exists. The page may still be true; check it. See [the code graph](https://docs.rimfe.com/how-it-works/code-graph#stale-claims-and-broken-references-in-audits). | Yes |
| Parse error | Page does not parse | An MDX page the pull request edited cannot be parsed, so your docs site could not build it. Only reported when the pull request introduced the broken line. It needs no AI. | Yes |
| Covered | Covered | The docs already describe the changed behavior correctly. | No |
| Internal | Internal change | The change does not affect public behavior. | No |
| Uncertain | Needs context | Rimfe cannot support a verdict with verified evidence. | No |
A review reports **drift** when at least one finding marked **Yes** under "Counts as drift" has valid evidence.
A finding caused by one of your [review rules](https://docs.rimfe.com/configuration/review-rules) also shows **Review rule** with the rule's number and text.
## Required evidence
Every finding quotes the text it relies on:
- **Code quotes** are copied exactly from the diff, including the leading `+` or `-`. Every finding needs at least one, except a broken reference, which quotes the docs line instead.
- **Docs quotes** are copied exactly from a doc section. Contradiction, covered and outdated code sample findings need at least one.
Each finding also has a short explanation of how the code and the docs relate. A quote that merely exists does not prove a claim, and a changed docs filename never proves coverage.
## How Rimfe verifies findings
The AI suggests findings, but Rimfe checks each one against your real pull request before it counts.
- **Quotes must exist.** Every code quote must appear in the diff and every docs quote in your docs. A quote that cannot be found is dropped.
- **Unverified findings are downgraded.** A finding left without the quotes its kind needs becomes "Needs context" and cannot count as drift.
- **"Missing" needs a complete docs check.** Rimfe keeps a "missing" finding only when every affected docs section was checked. Otherwise it becomes "Needs context", because the page that covers the change may be one Rimfe did not read.
- **Dismissed findings stay dismissed.** If a maintainer dismisses a finding with `@rimfe ignore`, the result is marked as dismissed.
A review is **complete** only when:
- Every changed product-facing file fit the size limits and has a diff.
- Every affected docs section was checked in time.
- No changed file type was unsupported.
- No finding is "Needs context".
A complete review with no actionable finding passes. If Rimfe saw no changed public behavior, the result is "No documentation update needed".
Some facts are reported as notes without making the review partial, for example an MDX page that was read as plain Markdown. Notes appear in the comment and on the check page.
See [Helping Rimfe find the right docs](https://docs.rimfe.com/how-it-works/finding-the-right-docs) and [What gets reviewed](https://docs.rimfe.com/how-it-works/what-gets-reviewed) for what makes a review partial.
## Confidence
Each finding has a confidence of low, medium or high. The review gets one confidence level:
| Review confidence | When |
| --- | --- |
| High | Every finding has valid evidence and high confidence. |
| Medium | Not high, and at least one finding has medium confidence. |
| Low | Everything else. |
A drift comment with low confidence says the docs **may** be wrong, and its alert adds "Rimfe is not sure about this one. Check the suggestion before applying it." Confidence also matters for the **Needs update and uncertain** comment mode.
## Check results
Rimfe posts one check named `Rimfe` on the pull request's latest commit. GitHub shows the app's name in front of it in the checks list. With docs in more than one docs repository or on a hosted docs site, each gets its own check with its name in brackets, such as `Rimfe (acme/docs)`. See [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository#checks-and-comments). The check starts as queued, moves to in progress, and then completes.
To block merges on it, require `Rimfe` in branch protection or a ruleset. A rule that still requires `docs drift`, the check's earlier name, waits on every new commit until a repository admin changes it to `Rimfe`.
In the image:
1. The check on the pull request.
2. The result.
3. One line per finding.
4. Patch safety.
5. The check in Rimfe.
Each check belongs to the commit it reviewed. A finished review keeps its result when you push again or close the pull request; the new commit gets its own check. Only a review that has not finished yet is skipped as a stale commit or closed pull request.
| Situation | Status or conclusion | Title shown |
| --- | --- | --- |
| Queued | Queued | Docs drift check queued |
| Running | In progress | Checking this PR for docs drift |
| Complete review, no drift | Success | No docs drift: docs are up to date |
| Drift found | Neutral | The page count, such as Docs drift: 2 pages may be out of date |
| Incomplete review | Neutral | Rimfe could not review everything |
| Nothing to review | Skipped | Rimfe skipped this PR |
| Pull request too large to review | Skipped, or failure under Strict blocking | Too large to review |
| An unfinished review overtaken by a push | Skipped | Rimfe skipped: a newer commit exists |
| An unfinished review of a closed pull request | Skipped | Rimfe skipped: the PR is closed |
| No docs found in the docs scope | Skipped | Rimfe skipped: no docs found |
| Finding dismissed with `@rimfe ignore` | Skipped | Docs finding dismissed |
| Automatic review held back by a draft, fork or label rule, in any check mode except Off | Skipped | Draft not reviewed, Waiting for approval, Fork not reviewed, Paused by a label or Waiting for labels, named by the rule |
| Automatic review held back by a pause, in blocking mode | Skipped | Rimfe skipped this PR |
| Daily limit reached before the review ran | Neutral | Rimfe paused: daily AI limit reached |
| Monthly reviews used | Neutral | Rimfe paused: monthly reviews used |
| Private repository not covered by the plan | Neutral | Rimfe paused: plan does not cover this private repository |
| AI reviews paused by Rimfe | Neutral | Rimfe paused: AI reviews are off for now |
| Repository or workspace paused by Rimfe support | Neutral | Rimfe paused: reviews are off for this repository |
| AI paused: included reviews used with no key, a refused key or a spend limit reached | Neutral | Rimfe paused, and the reason, such as Rimfe paused: Included reviews used |
| Review failed | Failure | Rimfe could not finish this check |
| Stopped by a person (in the app, with `@rimfe cancel` or by Rimfe support) | Skipped, or Cancelled in Blocking when docs required and Strict blocking | Check stopped |
| `.rimfe.json` at the PR base is invalid | Failure | Rimfe configuration is invalid |
A daily limit is never the pull request author's doing, so that result stays neutral in Non-blocking and Blocking when docs required. Only Strict blocking fails it. The check summary and the check page in the dashboard explain every result in more detail.
### AI paused
When a review cannot be paid for, Rimfe does not start it. The check finishes neutral (it fails in Strict blocking), and, unless **PR comments** is Never, a comment says what to do. The reasons are:
| Title | Fix |
| --- | --- |
| Included reviews used | This month's included reviews are used and the workspace has no key. Add a [key](https://docs.rimfe.com/guides/ai-provider). |
| Add an AI key | **Use included reviews first** is off and the workspace has no key. Add a [key](https://docs.rimfe.com/guides/ai-provider). |
| AI key needs attention | The provider refused the key. Replace it on the [AI page](https://docs.rimfe.com/guides/ai-provider#test-rotate-and-remove). |
| AI budget reached | The spend limit on your key is used up. [Raise the limit](https://docs.rimfe.com/guides/ai-provider#spend-limit) or wait for the reset. |
| AI provider limit reached | Your provider stopped the key at its own limit. Raise it at the provider. The key stays valid. |
| Included AI paused | Rimfe's included AI is paused for now. Add your own [key](https://docs.rimfe.com/guides/ai-provider) to keep reviewing; included reviews resume on their own. |
Reviews resume once the cause is fixed. Run `@rimfe review` on a paused pull request to review it again.
### Blocking mode
In the repository's **Reviews** settings, open **Advanced** under **Results on GitHub**. The **GitHub check** setting has four options:
| Option | Behavior |
| --- | --- |
| Non-blocking (default) | Drift and incomplete reviews finish as neutral. They never fail your pull request. |
| Blocking when docs required | Drift and incomplete reviews finish as action required. A review stopped by the daily limit stays neutral. You can require the check in your branch protection rules. |
| Strict blocking | Like blocking, and a review that could not run (a limit, an AI key that needs attention, a paused review) fails the check instead of staying neutral. |
| Off | Rimfe creates no check. |
Passing results are the same in every mode except Off. A skipped result is the same too, except a pull request too large to review, which fails under Strict blocking.
In blocking mode every push is reviewed, even with **On PR open**, and a review held back by a draft, fork, label or pause rule completes the check as skipped, which GitHub counts as passing. See [Blocking mode](https://docs.rimfe.com/configuration/review-triggers#blocking-mode).
### Docs coverage
With a [docs coverage](https://docs.rimfe.com/configuration/docs-coverage) floor or drop limit set, the check also applies it to completed reviews.
| Check mode | Limit broken |
| --- | --- |
| Blocking when docs required, Strict blocking | Failure, titled for example "Docs coverage 70% is below the 80% floor" |
| Non-blocking | Neutral, with the same note in the summary |
The summary always names the measured value and the limits, for example `Docs coverage: 70% (base 82%); floor 80%.` When coverage was not measured or could not be read, the limit does not apply and the check never fails for it.
## The pull request comment
Rimfe keeps one comment per pull request. It finds its earlier comment by a hidden marker and updates it in place instead of adding a new one. The closing line shows the commit and the time of the last update.
In the image:
1. The alert: what merging does to your docs, and how many findings.
2. A finding: the page, the line and what is now wrong.
3. The suggested fix, as a diff.
4. Evidence: the quotes behind the finding.
5. A prompt to hand the fix to a coding agent.
6. Patch safety, and how much of the docs it checked.
7. The next step: open a docs PR, commit the fix or check again.
8. The commit it checked, and when.
A comment contains, in order:
1. One GitHub alert with the result for the commit it checked (see [The alert](#the-alert)). A low-confidence drift result adds "Rimfe is not sure about this one. Check the suggestion before applying it." inside the alert.
2. For a result with no drift, a one-line summary.
3. A "Partial review" note when coverage is partial, and a "Note" line for facts that do not make the review partial (such as a page read as plain Markdown).
4. The findings, grouped by docs page. Each page is a heading that links the file at the reviewed commit. Under it, each finding has its severity and kind (such as **High · Docs conflict**), its line linked to the file, and a one-line summary. Findings with the same root cause share one entry, with the other places under "Also here". Then the suggested fix as a diff, collapsed when it is longer than 12 lines, and a collapsed **Evidence** block with the quotes. A finding without a verified edit shows one line in place of the diff: "No suggested edit: it failed verification. Update the page by hand.", "No suggested edit: the page is generated from code. Fix the docstring or source that generates it." or "No suggested edit: the page is over the size limit. Update it by hand." Rimfe never shows or applies an edit it could not verify against the page. When two findings change the same lines, those lines get one diff: the other finding says "This fix is part of the suggested change at" that place, or "No suggested change: another finding's edit" changes the same lines, and that passage is updated by hand. When a fix leaves other lines stating the value it replaced, a line under the diff names them: "Other lines may still state the old value:" the page and its line numbers, to check in the same commit. The first three entries are open; the rest sit under a collapsed "N more findings". Docs conflicts and findings a second check confirmed come first. A **Missing docs** finding the second check did not confirm is a possible addition: those sit together under a collapsed "N possible additions", each with its fix and evidence, and they still count toward the result. When a review finds possible additions only, they are shown open. The full explanation is on the check page.
5. A collapsed **Prompt for AI agents** block for drift (see below).
6. The patch safety line, the review's coverage line and, when measured, **Docs coverage**.
7. Collapsed lists of suggestions ("Also consider", which never count as drift) and of findings that need no action.
8. The next step with its [action boxes](https://docs.rimfe.com/reference/commands#action-boxes), a link to the run and the page owners. On drift, one line lists the commands. Then the closing line: "Checked" and the short commit, the update time and an AI label.
In the **Evidence** block, code quotes are labelled **Code** and docs quotes **Docs**, each with its file. The quotes from one file sit in one code block tagged with the file's language, so GitHub highlights them: `ts` for a TypeScript file, `diff` for quoted diff lines, `md` or `mdx` for a docs page. Nothing inside a quote renders as a link, image or mention.
### The alert
Each comment has exactly one GitHub alert, at the top. With docs in several repositories, only the repository's name comes before it, for example **Docs in `acme/docs`**. The alert's type and first sentence say what merging the commit does to your docs:
| Result | Alert | Opens with |
| --- | --- | --- |
| Drift where at least one finding is a docs conflict or an outdated code sample with verified evidence | Caution | **Docs will be wrong after merge of `abc1234`:** 3 findings (1 high, 2 medium) on 2 docs pages. |
| Any other drift, such as missing docs or a broken reference | Warning | The same sentence. |
| Drift with low confidence | Caution or Warning | **Docs may be wrong after merge of `abc1234`:** and the counts. |
| Drift, but no page in your docs scope can hold a fix | Caution or Warning | The drift sentence, then "No safe docs target found." |
| A complete review passed | Tip | **Docs stay correct after merge of `abc1234`.** Then "No documentation update needed." or "Documentation covers these changes." |
| A review passed without reading everything | Note | **No wrong docs found in `abc1234`, but the review was partial, so this is not a guarantee.** The reason is named: the review did not finish, only part of the pull request was read, the review stopped at the time limit, some docs files were not reviewed, or the review was partial. |
| The review is incomplete | Note | **Review incomplete.** |
| Every finding was dismissed | Note | **Every finding was dismissed.** |
| The review was skipped, including no docs in the docs scope | Note | **Analysis skipped.** |
| An unfinished review overtaken by a push | Note | **Run skipped because a newer commit exists.** |
| An unfinished review of a closed pull request | Note | **Run skipped because the PR is closed.** |
| The pull request is past a size limit | Note | **Too large to review.** Then the count, the limit passed and what to do. No review ran. |
| A limit, the plan or AI funding stopped the review | Note | **Rimfe is paused:** and the reason, such as **Rimfe is paused: monthly reviews used.** Then the step that fixes it. |
| The review failed | Note | **Rimfe could not finish this check.** Then a link to the run, or what to fix when a GitHub permission is missing. |
| A person stopped the check | Note | **Rimfe check stopped.** Then how it was stopped and "Comment `@rimfe review` to start it again." It updates the comment already on the pull request, and no comment is started on a pull request that has none. |
The counts in the drift sentence are per finding, the way the check page counts them. Where alerts do not render, such as in email notifications, the alert shows as a plain quote and its text still reads as a full sentence.
### Severity
Each finding from the page check has a severity: **High** when readers following the page would fail, **Medium** when they would be misled, **Low** for cosmetic drift. It is printed before the kind in the result comment and in inline comments. Findings from checks that need no AI may have no severity; they show the kind alone.
### Prompt for AI agents
For drift, a collapsed **Prompt for AI agents** block holds plain text you can paste into a coding agent such as Cursor or Claude Code. It opens with a guard telling the agent to treat the finding text, paths and quotes as untrusted review data, not instructions, and to fix only findings that are still valid. Then, per finding: the page, the lines, the problem with its code and docs quotes, and the change: the suggested edit when there is one, else what the passage should say. It lists up to ten findings, shortens long quotes and counts the rest. A patch held by [patch safety](https://docs.rimfe.com/how-it-works/docs-prs#patch-safety) is left out until it is approved. Each inline comment has the same block for its own finding.
With docs in several repositories, Rimfe posts one comment per docs repository.
For drift, the next step names `@rimfe open docs PR` and `@rimfe apply patch` only when **Docs PRs** is on for the repository. Otherwise it tells you to apply the diffs yourself and where to turn docs PRs on.
To keep the comment readable, it shows at most three files per evidence type and four quotes per file. Extra quotes are counted and left to the check page.
The comment is capped at 60,000 characters, below GitHub's size limit. A longer one is shortened by leaving out whole blocks, so no code block or collapsed section is cut in half: first the prompt for AI agents, then "N more findings", the notes and suggestions, the suggested patch files, the evidence and the diffs, and last the coverage lines, the summary and the finding lines. The alert and the closing lines always stay. A shortened comment says "This comment was shortened to fit GitHub's size limit. See the full result on the check page."
### Comment modes
The **PR comments** setting decides when Rimfe posts a comment.
| Mode | Comment is posted for |
| --- | --- |
| Needs update only (default) | Reviews that found drift. |
| Needs update and uncertain | Reviews that found drift, plus results Rimfe is not sure about: an incomplete review, a review held back by a fair-use guard, or a pass with low confidence. Plain skips (docs-only PRs, stale commits, held-back automation) get no comment. |
| All results | Every completed review. |
| Never | Nothing. |
In every mode except **Never**, a review that failed, a pull request too large to review, or a review that could not run because the monthly reviews are used, the plan does not cover the private repository or AI is paused, also gets a comment. **Needs update and uncertain** also comments on a pass that has suggestions under "Also consider".
Three rules apply to every mode except **Never**:
- **Update in place.** Once Rimfe has a comment on the pull request, later results update it even if the new result would not have created one. A pass after a fix replaces the earlier drift comment.
- **Latest commit only.** Rimfe skips the comment when the pull request is closed, a newer commit exists, or a newer review has completed.
- **Paused pull requests.** An automatic review on a pull request you paused does not comment.
Use `@rimfe update comment` to refresh the comment from the latest result. With **Never**, Rimfe posts no result comment, but the check still runs. The one exception is a `@rimfe review` that could not run: it gets an answer comment in every mode.
## Inline comments, re-run and after merge
### Inline comments
When a pull request edits a docs page that has a finding, Rimfe adds an inline review comment on the line the evidence is on, next to the result comment. The comment states the finding's severity, kind and summary in one sentence, quotes the evidence, carries a `suggestion` block only when the fix is a single edit to exactly those lines, and ends with a collapsed **Prompt for AI agents** for that finding. Rimfe comments only on lines GitHub can attach a comment to (lines inside the diff); other findings stay in the result comment. It never comments twice on the same finding. A later commit gets new comments only for findings with new evidence.
Turn them off with **Comment on changed docs lines** in the repository's review controls, or `inlineComments` in [`.rimfe.json`](https://docs.rimfe.com/configuration/rimfe-json). Reply in the thread to [decide on a finding](https://docs.rimfe.com/reference/commands#review-threads-and-decisions).
### Re-run
The **Re-run** button on the check, and **Re-run Rimfe** on a finished check, start a new manual review of the commit. Pause and ignore rules, the plan's allowance and the AI budget apply as for `@rimfe review`.
### After merge
When a pull request merges into the default branch, Rimfe can check the merged change again. **Check after merge** (`afterMergeCheck`) has three values:
| Value | Rimfe checks after merge |
| --- | --- |
| **When findings are open** (default) | When the last review left findings open, or never finished. |
| **After every merge** | Always. |
| **Never** | Never. |
The result is a check on the merge commit that is never blocking, and one comment on the merged pull request, only when findings remain: how many, who owns the pages, and the docs PR. A clean result changes nothing beyond the check. It is a normal review and counts against your plan and AI budget.
### Page owners
Findings list the owners of their page in the comment, in code spans so nobody is pinged. Owners come from the `owners` key in [`.rimfe.json`](https://docs.rimfe.com/configuration/rimfe-json#owners), then CODEOWNERS. Docs PRs that Rimfe opens ask the owners of the changed pages for review, and linked Slack users and email recipients who own a page with a finding are told. Team owners (`@org/team`) get review requests; they are notified individually only if the GitHub App can read the organization's team members.
---
# Code samples
Docs are full of snippets: an install command, a client call, a request with a flag. When a pull request renames a function or a flag, the prose can stay correct while the snippet quietly breaks. Rimfe checks snippets as part of every review and reports the ones that use code the pull request changed.
Rimfe never runs your code. It does not build the repository, or execute or type-check a snippet. It reads the diff and your docs.
## What counts as a code sample
A code sample is a fenced code block (` ``` ` or `~~~`) in a Markdown or MDX page inside your [docs scope](https://docs.rimfe.com/configuration/docs-scope). Fences inside lists, quotes and MDX components count. Indented code has no fence or language tag and is not checked. Code in files outside your docs scope is not checked.
## What counts as changed code
A snippet is flagged when it uses a name the pull request changed:
| Kind | Examples |
| --- | --- |
| Functions, methods, classes and types | A removed or renamed export, a function that gains a required parameter, a dropped parameter. |
| CLI flags | `--output-dir` renamed to `--out`. |
| Environment variables | `RIMFE_API_KEY` renamed to `RIMFE_TOKEN`. |
| HTTP routes | `/v1/users/:id` renamed, or a route file removed. |
| Config keys | A key removed from a config file. |
Functions, methods, classes and types are recognized in every [supported language](https://docs.rimfe.com/reference/formats#code). A declaration matches snippets in its own language family, so a TypeScript export matches a JavaScript snippet. Flags, environment variables, routes and config keys are matched in any language, including shell snippets.
Only names and parameters count. A new optional parameter, a changed return value or a type-only change does not make a snippet outdated. Rimfe prefers missing a change to inventing one, so a file moved to a new import path, or a key renamed in an untyped object, may not be flagged.
## How a snippet is matched
A snippet matches when it uses the old name as a whole word, so `createClient` never matches `createClientFactory`. Comment lines are ignored. A very common name, such as `run`, matches only when the snippet calls or imports it. A page with no code fences cannot match, however often the prose mentions the name.
A review checks up to 30 matching snippets. If more match, or a page has more than 60 snippets or the pull request has more than 400, the review is marked **Partial** and says so.
## What you see
Rimfe confirms whether a matching snippet is really outdated. Each confirmed one becomes a finding with the label **Outdated code sample**, like this:
> Outdated code sample: README.md line 12 uses `createClient`, renamed in this pull request.
The finding names the page and the line, quotes the snippet line and the code change, and counts as drift like a docs conflict. If the quoted line cannot be found in a snippet on the page, the finding becomes **Needs context** and does not count as drift. The check, the comment and the check page all show the file and line. See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks).
A snippet that does not use changed code produces no finding.
## The fix
When you [open a docs pull request](https://docs.rimfe.com/how-it-works/docs-prs), the fix rewrites the flagged snippet from the new code in the diff. A fix passes validation only when it:
- Keeps the snippet's opening and closing fence lines exactly as written, so the language tag stays.
- Changes only the lines that use the changed code, plus the rest of the same statement. Comments, other statements and values stay as they are.
- Adds no import of a package or name that neither the snippet nor the code change contains.
A fix that breaks one of these rules gets one corrective attempt, then is marked as not valid.
An example: the pull request renames `createClient(opts)` to `newClient({ apiKey })`, and the README has `const client = createClient("key");`. The docs pull request changes that line to `const client = newClient({ apiKey: "key" });` and leaves the rest of the fence alone.
## Permissions and data
Snippet checks use no new GitHub permissions and send nothing extra: the snippets are part of the docs pages a review reads anyway. See [Privacy and data](https://docs.rimfe.com/how-it-works/privacy-and-data).
---
# The code graph
Rimfe keeps a map of your code and your docs. The map links a change deep in a helper to the feature it belongs to. It is built from your default branch and updated as you merge.
A pull request reviewed while the map is still catching up on a merge uses the last complete map. Rimfe reads the code merged since from the pull request's base, so new names are not reported as missing.
## What the map holds
The graph connects the things your code does:
- **Calls**: which function uses which.
- **Renders**: which screen shows which component.
- **Routes**: which URL runs which code.
- **Jobs and events**: what runs in the background, and what triggers it.
- **Keys**: the names that code and docs share, such as environment variables, config keys and flags.
Your docs are in the map too. A statement in a page, such as "the `timeout` option defaults to 30 seconds", is a **claim**, and it is linked to the code it describes.
## Which pages a change affects
For a changed function, Rimfe walks outward through the map to the things people can see or call: a route, a screen, a command, a public export. Today this walk runs beside the review and is recorded for measurement; it does not add pages to the ones checked. The walk stops at shared helpers that nearly everything uses, so a change to a logger would not point at every page. You can name those helpers with [`graph.hubs`](https://docs.rimfe.com/configuration/rimfe-json#graph-keys).
```mermaid title="From a changed helper to the pages about it"
flowchart LR
Helper[Changed helper] --> Caller[Functions that call it]
Caller --> Surface[Route, screen, command or public export]
Surface --> Claims[Claims in docs pages]
```
You do not need to set anything up for this. When a library has an unusual layout, [`entryPoints`](https://docs.rimfe.com/configuration/rimfe-json#graph-keys) tells Rimfe where its public surface starts.
## Who may see what
Every page has an [audience](https://docs.rimfe.com/configuration/rimfe-json#audiences): public users, your team, API readers, changelog readers, help center readers or coding agents (agent context files). A suggested fix is written for the audience of the page it edits.
Each audience has a list of things it must never read. Before a patch is offered, Rimfe checks it against that list:
| Audience | A patch must not name |
| --- | --- |
| Public and help center | Code names, internal file paths, feature flag keys, unreleased features or ticket ids. |
| API reference | Internal file paths, feature flag keys or unreleased features. |
| Changelog | Feature flag keys or internal file paths. |
| Internal and agent context files | Nothing is blocked. |
```mermaid title="The audience check on a suggested fix"
flowchart LR
Fix[Suggested fix] --> Check{Safe for the page's readers?}
Check -->|Yes| Offer[Offered in the comment]
Check -->|No| Hold[Held back, the finding stays]
```
In short, a public patch never names internal code. A patch that fails the check is held back, and the finding stays so you can write the fix yourself. Set an audience for a folder in `.rimfe.json` when the default is wrong.
## Stale claims and broken references in audits
An [audit](https://docs.rimfe.com/how-it-works/audits) also uses the map, with no code change involved:
- A **broken reference** is a name or link in a page that the code or the docs no longer have.
- A **stale claim** is a statement whose linked code is gone. The page may still be true, so Rimfe asks you to look.
Both show as findings in the audit, like any other. See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks).
## Related
- [`.rimfe.json` reference](https://docs.rimfe.com/configuration/rimfe-json)
- [Privacy and data](https://docs.rimfe.com/how-it-works/privacy-and-data)
---
# Docs pull requests
When Rimfe finds drift, it prepares a suggested fix and shows it in the comment. A docs pull request is the optional next step: Rimfe commits that fix to a new branch and opens a pull request for you to review. It never merges anything.
## Turn on docs pull requests
Docs pull requests are off by default. To enable them:
1. Open the repository's **Settings** in the dashboard, then **Reviews**.
2. Under **Commands and docs PRs**, turn on **Docs PRs**.
3. Make sure the GitHub App has **Contents** and **Pull requests** write access on the installation that covers the repository where the docs PR is opened. This is the code repository, or the docs repository when docs live elsewhere. The same check runs under **Check setup** and when someone asks for a docs PR, with the message "Docs PRs need Contents and Pull requests write permissions on the Rimfe GitHub App installation." See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions).
If you ask for a docs pull request while **Docs PRs** is off, Rimfe does not open anything. A comment command gets a reply that links to the settings page.
## Ask for one
| Where | How | Who can do it |
| --- | --- | --- |
| Pull request comment | Comment `@rimfe open docs PR` | Anyone with write, maintain or admin access to the repository. **PR commands** must be on. |
| Dashboard | Select **Open docs PR** on the check page | Workspace owners and admins. The button appears when a valid fix is ready. |
```mermaid title="Asking for a docs pull request"
sequenceDiagram
participant Dev as Maintainer
participant GH as GitHub
participant R as Rimfe
R-->>GH: Comment with the suggested fix
Dev->>GH: @rimfe open docs PR
GH->>R: Comment event
R->>R: Check nothing moved since the fix
R->>GH: New branch, one commit, docs pull request
R-->>GH: Comment links the docs PR
Dev->>GH: Review and merge
```
To put the fix in your own PR instead of a separate one, comment `@rimfe apply patch`. Rimfe commits it to your PR's branch. See [apply patch](https://docs.rimfe.com/reference/commands#apply-patch).
With docs in several repositories, `@rimfe open docs PR` opens one docs PR per docs repository, and `@rimfe open docs PR owner/repo` opens only that one. For docs on a Rimfe-hosted site there is no docs PR: review and publish the change in Rimfe.
Rimfe uses the fix from the latest completed review of the pull request. If the pull request is paused, resume it first with `@rimfe resume`. A finding that a maintainer dismissed does not produce a docs pull request.
## What the fix contains
Rimfe prepares the fix as part of the review, whenever the result is drift. You see it in the comment even if docs pull requests are off.
- **Small edits.** Rimfe changes as little as possible, keeps your structure and tone, and never describes behavior the diff does not show.
- **Existing pages first.** Fixes go to the pages your code mappings and the findings point to. If no page fits something new, Rimfe can propose a short new page inside your docs scope. It never replaces a page that already exists.
- **API reference pages.** When a spec adds an operation and your reference has one generated page per operation, such as Mintlify's `openapi:` pages, the fix adds that page with the same front matter as the pages beside it. Add it to your site's navigation yourself.
- **Your docs scope applies.** Fixes only touch pages inside your docs scope, in any [supported format](https://docs.rimfe.com/reference/formats).
- **Your review rules apply.** When a finding breaks a [review rule](https://docs.rimfe.com/configuration/review-rules), the fix follows it.
- **At most 24 files** per review. The rest are named on the check page and in the comment to update by hand.
- **Pages up to 120,000 bytes.** For a larger page, Rimfe says it is "too large to patch automatically" and generates no fix for it. Update that page by hand or split it.
## Checks before you see a fix
Rimfe validates every fix against your real docs before showing or publishing it. A fix is rejected when it does not match the lines it claims to change, overlaps another edit, changes executable MDX or raw HTML, breaks the page's format, links to a page or heading that does not exist, or changes a code fence's opening or closing lines. When a fix rewrites an [outdated code sample](https://docs.rimfe.com/how-it-works/code-samples), it edits only the lines that use the changed code.
A fix that adds several new code blocks is marked **Warning**. You can still use it, but check it first.
When two findings change the same lines, the comment shows one fix for those lines. If the two edits fit together, Rimfe combines them, and the other finding says its fix is part of that suggested change. If they don't, Rimfe keeps the fix of the more severe finding, and the other finding says to update that passage by hand. A docs PR never changes the same lines twice.
When a fix changes a value, such as a default, a flag or a name, Rimfe looks for other lines on the page that still state the old value: table rows, lists and code samples. It asks for those lines to be updated in the same fix, which costs one extra AI call only when such lines exist. A fix whose own edits keep the old value in one place while changing it in another is rejected. If some lines still state the old value after that, the fix stays, and the comment and the check page name them: "Other lines may still state the old value: `docs/client.md` lines 9 and 14. Check them with this fix." Lines on other pages the same review patches are named too. Rimfe finds these lines by matching the old value, so check each one before you change it.
If a fix fails validation, Rimfe tries once more. If that also fails, the fix is never shown or offered: not in the comment, the agent prompt, `@rimfe apply patch` or a docs pull request. The finding still shows, with the line "No suggested edit: it failed verification. Update the page by hand." Use **Retry repair** on the check page to try again. After you record a decision on a finding, Rimfe refreshes the fix on its own. A retry may count toward the manual check guard; see [limits](https://docs.rimfe.com/reference/limits).
## Where the pull request goes
| Where the docs live | Branch | Pull request base |
| --- | --- | --- |
| Same repository | A new branch created from the pull request's head commit | The branch of the original pull request |
| [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository) | A new branch created from the docs repository's default branch | The docs repository's default branch |
Each docs pull request has:
- A branch named `rimfe/docs-pr----`.
- One commit, "docs: apply reviewed documentation repairs".
- A title in the form `docs: update docs for pull request `.
- A description that lists the changed files and links the original pull request and the Rimfe run.
Once the docs pull request exists, the Rimfe comment on the original pull request links to it.
## Preview link
If your docs host builds a preview for the docs pull request, Rimfe finds it and adds a **Preview** link next to the docs PR link in the comment. The same link appears on the check page. Rimfe looks for about 10 minutes after the pull request opens, and shows nothing if no preview turns up. See [Docs previews](https://docs.rimfe.com/guides/docs-previews).
Rimfe never opens a docs pull request, branch or commit from a fork's content, whether your docs live in the same repository or in a separate one. The reply is "Docs PRs aren't opened from forks. Apply the suggested change by hand." and the suggested fix stays in the comment for you to apply by hand.
With a separate docs repository, Rimfe reads the docs from the default branch's latest commit at the time the review is created, and opens the docs pull request against that branch. It refuses to publish if the default branch moved after the review. Docs changes that sit in an open pull request in the docs repository are not seen. See [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository#how-a-review-reads-docs).
## Asking again
Asking again does not create duplicates. If a docs pull request already exists for the result, Rimfe replies with its link. If an earlier attempt created the branch but not the pull request, Rimfe reuses the branch and opens the pull request.
## When Rimfe refuses
Rimfe checks that nothing has moved since it prepared the fix. It refuses, and tells you why, when:
- The pull request has new commits, or it was closed. Comment `@rimfe review` to regenerate the fix for the latest commit.
- A newer review result exists.
- The target doc page changed since the fix was generated.
- The separate docs repository's default branch moved, or you changed the docs repository setting. Run a new review first.
- The fix is missing, invalid, or has no safe target page.
- The docs branch already contains other changes. Rimfe does not overwrite it.
## Patch safety
Before a fix is offered, Rimfe checks every line it adds. Each domain, email address and security-relevant setting (such as `verify=False`, `--insecure`, `chmod 777` or `curl | sh`) must already appear in your code or docs. A shell command or package name may also come from the pull request itself. A new code block must repeat code Rimfe can find, and text aimed at an AI agent, such as hidden characters, is never accepted. The comment and the check page show one line, for example:
```text
Patch safety: 0 new domains · 0 new commands · 1 security-sensitive line (approval required)
```
A patch with something Rimfe cannot ground is held: no suggestion, no docs PR, until a maintainer approves it. Approve it with `@rimfe approve patch` (admin or maintain access) or **Approve patch** on the check page. The approval is recorded in the audit log. The approval covers the risk the maintainer saw; a regenerated patch with a new ungrounded line asks again.
Patches to pages whose path or section is about auth, billing, security, compliance, passwords, tokens, secrets or permissions always need approval. So do patches to agent instruction files and to files under `.github/`. Add your own with `securitySensitive` in `.rimfe.json`.
## Commits and provenance
Rimfe writes docs commits through the GitHub API as the app, so GitHub signs them and shows them as **Verified**. Each commit message ends with `Rimfe-Run`, `Rimfe-Engine`, `Rimfe-Model`, `Rimfe-Evidence` (a SHA-256 of the evidence the fix rests on) and `Rimfe-Policy` trailers. If a commit on a docs PR claims those trailers but GitHub does not verify it, the check page and the check show **Unverified commit**.
## Links and mentions in what Rimfe posts
Everything Rimfe writes to GitHub, Slack or email goes through one check first. Images are removed. Links stay live only for your repository, your docs site and Rimfe; any other link shows as text with the address in a code span. Add exact hosts with `linkAllowlist` in `.rimfe.json`. Mentions are neutralised, and anything that looks like a secret is removed, together with a note that says so. A commit id in a link to a file, line or commit of your repository is not treated as a secret; the rest of that link, such as the file path or branch name, is still checked. Text from a private docs repository never appears on a public repository.
## It never merges on its own
Rimfe opens the pull request and stops. It does not approve or push to your default branch. You review the docs pull request like any other and merge it when you are ready. The only merge Rimfe does is one you ask for, such as **Merge docs PR** in a Slack notification.
Rimfe notes when a docs pull request is merged, closed or reopened, and shows it on the check page and in [Analytics](https://docs.rimfe.com/reference/dashboard#analytics).
---
# Audits
A pull request review only looks at what the pull request changed. An audit checks the docs you already have. Rimfe reads each docs page in scope on the default branch and compares it with the code it describes, as both are now.
An audit reports statements the code shows are wrong today, such as a default, an option, a flag, an endpoint, a parameter, a limit or a name. It also lists, without using AI, names and local links in a page that no longer exist, deprecated names used without a notice, wrong agent instructions, hidden instructions and stale claims. It does not report missing docs, style or typos.
## Plans
| Plan | Audits per repository |
| --- | --- |
| Hobby | Not included |
| Startup | 1 per month |
| Business and Enterprise | Unlimited |
A repository whose docs live in separate docs repositories gets one audit for each, plus one for its own docs if it has them, all from one **Start audit** or weekly run. They count as one audit of the repository, and the **History** table names the docs each one checked.
Failed audits do not count. The weekly audit needs Business or Enterprise. See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits#features-by-plan).
## Run an audit
1. Open the repository and choose the **Docs audits** tab.
2. Check the preview: docs pages found and pages this audit checks.
3. Choose **Start audit**.
The result page updates while the audit runs. Owners and admins can start an audit. Members can too, unless the workspace turned off **Members can start checks, audits, questions and docs agents**. Billing managers cannot.
- **One manual audit per repository a day.** The tab shows when the next one can start.
- **One audit at a time** per repository.
- **Nothing changed:** if the same commit was already audited with the same settings, Rimfe opens that result instead.
## What an audit checks
Rimfe compares each page with the code it describes: files the page names in backticks, files your [code mappings](https://docs.rimfe.com/configuration/code-mappings) point to, and files whose names match the page's topic. Tests, ignored paths and docs files are never used as code. With a [separate docs repository](https://docs.rimfe.com/configuration/separate-docs-repository), pages are read from that repository.
A conflict is reported only when it is backed by quotes from both the page and the code. Pages with nothing code can confirm, such as an index or license, are skipped and do not use AI.
## Limits
- Up to 150 pages are listed and up to 30 are checked per audit.
- Audits run on your [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers) while you have one. Otherwise they run on your own AI key.
- Pages over 120,000 bytes are not checked.
When some pages are not checked, the result is **Partial** and lists each page with its reason, such as the daily limit or the page limit. Run another audit to check those pages first. Skipped pages are listed separately and do not make an audit partial.
## Weekly audit
Turn on **Weekly audit** on the **Docs audits** tab to audit the repository once a week on a fixed day. It needs the Business or Enterprise plan. Owners and admins can change it.
- It does not count toward the manual check guard.
- After a move to a plan without it, the weekly audit stops but keeps its setting, and it can still be turned off.
- A repository that has not changed since its last full audit is skipped.
- It never opens a docs PR.
- It notifies you only when it finds something.
- The **Docs audits** tab shows how the last weekly run went: when it ran, whether nothing had changed, why it was skipped (plan, pause or AI budget), or that it could not start. One that could not start is tried again the next day.
The **History** table on the tab lists past audits, marked **Manual** or **Weekly**.
## Open a docs PR from an audit
On a completed audit with findings, choose **Open docs PR**. Rimfe fixes up to 3 pages, those with the most **Docs conflict** findings first, and opens one pull request on the default branch, or on the docs repository when docs live elsewhere. Pages it cannot fix safely are listed in the pull request description to update by hand. Other finding kinds, such as broken references and stale claims, are not fixed by it.
It needs the same setup as any [docs PR](https://docs.rimfe.com/how-it-works/docs-prs): **Docs PRs** turned on in repository settings and an owner or admin to ask. Each audit opens at most one docs PR. If the docs changed after the audit, run a new one first.
## Export and notify
- **Export Markdown** downloads a completed audit with its findings and the pages not checked.
- The `audit_completed` event posts to Slack and webhooks. See [Notifications](https://docs.rimfe.com/reference/notifications#events).
- Audits are deleted when the workspace's findings retention ends, 90 days by default.
---
# Review queue and precision
The **Queue** page lists every finding that still needs a decision, across all repositories of the workspace.
## What the queue holds
- Findings from the latest review of each pull request. A newer review of the same pull request replaces the older one, so a finding the new review no longer raises leaves the queue.
- Findings from the latest finished [audit](https://docs.rimfe.com/how-it-works/audits) of each repository.
- Places where an [Ask Rimfe](https://docs.rimfe.com/how-it-works/ask-rimfe) answer found the docs and the code disagreeing.
A finding stays in the queue while it is open or accepted. Dismissed and resolved findings leave it. Reviews and audits older than 90 days are not listed.
Each row shows the finding, its kind, the docs page, the page owners, the assignee and its age. A row links to the check or audit it came from.
## Filters
Filter by repository, source, assignee, owner and status, or search a page path. **My pages** shows findings on pages you own through `.rimfe.json` `owners` or CODEOWNERS, matched to the GitHub account you signed in with. A shared link keeps the filters.
## Assign, accept and dismiss
Select rows to act on them together:
- **Assign to** sets a workspace member, or clears the assignment. When a page owner is a workspace member, Rimfe suggests them.
- **Accept** marks the findings as real.
- **Dismiss** asks for a category (wrong, too noisy, docs are elsewhere, other) and a reason.
Decisions use the same path as the check page, so the history and the audit log record them. Assigning and deciding need the role that can ignore findings.
## One docs PR for accepted findings
Select accepted findings of one repository and choose **Open docs PR**. Rimfe combines their saved, verified patches into one docs PR against the docs default branch, up to 20 pages.
A page is skipped, with the reason shown, when:
- Another selected patch already changes the same page (the oldest pull request wins).
- The page changed since the review, so the patch no longer applies.
- A newer review replaced the one the finding came from.
- The docs for that review are held for a release.
- A docs PR already exists for the review.
- The review has no patch to apply, or its patch waits for a maintainer to approve it.
- The docs are in another repository than the first selected finding's.
Findings from audits and Ask Rimfe have no patch, so they cannot join a docs PR.
Opening a docs PR needs the role that can open docs PRs.
## Delivery mode
**Pull request delivery** (`delivery` in [.rimfe.json](https://docs.rimfe.com/configuration/rimfe-json)) controls what a review writes to GitHub:
| Value | Check | PR comment and inline comments |
| --- | --- | --- |
| **Check and comment** (default) | yes | yes |
| **Comment only** | no | yes |
| **Notify only** | no | no |
With **Notify only**, Rimfe still reviews and records findings, and they reach Slack, email, page owners and the queue. Commands such as `@rimfe review` still run, and Rimfe answers with a reaction on your comment instead of a reply. The check after merge follows the same mode.
## Precision
The **Precision** section of Analytics shows how often findings were right, computed only from your team's decisions:
> precision = accepted / (accepted + dismissed)
Counts are shown by period: 7 days on Hobby, 30 and 90 days on Startup, and 30 days, 90 days and all time on Business and Enterprise. They are split by finding kind, with a weekly trend over the last 12 weeks. Resolved findings are counted apart. Only the latest decision on a finding counts. Dismissals made before Rimfe recorded the kind appear as earlier decisions.
---
# Ask Rimfe
Ask Rimfe answers a question about one repository from its docs and its code. Every answer lists the docs sections and the code it used, as links to GitHub at the commit Rimfe indexed.
It is not a general support bot. A question that is not about the repository's product or code, or that the docs and code do not answer, gets "The docs do not answer this yet."
## Ask on the web
Open a repository and choose **Ask**. Type the question and choose **Ask**. The answer appears when it is ready, usually within a minute. The question stays in the address, so you can share the link with a teammate in the same workspace.
You need the role that can start a check. If the workspace turned off **Members can start checks, audits, questions and docs agents**, only owners and admins can ask.
## Ask in Slack
```text
/rimfe ask owner/repo how do I set the request timeout?
```
Rimfe replies "Looking…", then posts the answer privately to you. The repository must belong to a workspace connected to your Slack workspace, and your Slack account must be linked. Asking from an @mention is not supported, because the answer is private.
## Sources and disagreements
The answer reads the sections of your docs that match the question, and the code declarations that carry the names in it. Each source is shown with its file and lines. A source that was not part of what Rimfe read is never listed.
When a docs section and the code say different things about the same behavior, the answer says so and adds the disagreement to the [review queue](https://docs.rimfe.com/how-it-works/review-queue) under the source **Ask Rimfe**. Accept it to mark the docs as wrong, or dismiss it.
## Cost and privacy
Each answer is one AI call. Ask Rimfe runs on your own AI key only, never on included reviews. Without a key, the question is refused with "This workspace runs AI on its own key and has none yet. Add an AI key to resume." A key that is over its spend limit gets the matching message. When the provider refuses the key during an answer, Rimfe marks the key as needing attention and emails the workspace owners, as it does for reviews, and questions are refused with "The AI provider refused this workspace's key" until someone replaces it under **Settings**, **AI**.
Questions, answers and sources are stored encrypted and deleted after 90 days, with the workspace's run data. The docs and code excerpts are read from your repository for the answer and are not kept. See [Privacy and data](https://docs.rimfe.com/how-it-works/privacy-and-data).
## Limits
- The answer needs the repository's [docs index](https://docs.rimfe.com/how-it-works/finding-the-right-docs). Without a built index, the question fails with a message.
- Questions are limited to 500 characters.
- There is no API or MCP endpoint yet.
---
# Deprecations
When your code deprecates a public name, your docs should say so and point to what replaces it. Rimfe checks this without an AI model.
## What counts as deprecated
A name is deprecated when its code says so: a JSDoc `@deprecated` tag, Python `warnings.warn(..., DeprecationWarning)` or `.. deprecated::`, a Rust `#[deprecated]` attribute, a Java or Kotlin `@Deprecated` annotation, a Go `// Deprecated:` comment, any other attribute, decorator or annotation named deprecated or obsolete, a deprecated Python CLI option, or `deprecated: true` in an OpenAPI or JSON Schema file. When the marker gives a version or date, Rimfe reads it: `since`, and a removal such as "removed in 3.0", "will be removed on 2027-01-01" or `forRemoval = true`.
Generated files are skipped. A file whose leading comment says a tool wrote it ("Generated by", `@generated`, "DO NOT EDIT", or `wrangler types` output) is the tool's or a vendor's API, not yours, so its deprecations are not listed. The same goes for a `@deprecated` tag inside a `declare module` block for a package, such as `declare module "acme-sdk"`. A block for one of your own relative files, such as `./client`, still lists its deprecations.
## Two findings
| Finding | When |
| --- | --- |
| Deprecated name in the docs | A docs section uses a name the code deprecates and does not say it is deprecated near the mention. The finding quotes the line and gives the code location of the marker. |
| Undocumented deprecation | A pull request deprecates a public name and no docs section that mentions it has a deprecation notice. It points at the pages that mention the name, or at your migration or upgrade page when none does. |
A section counts as marked when "deprecated", "deprecation", "removed in", "will be removed" or similar words appear in its heading, at its top or within a few lines of the mention. On a pull request, a deprecated name in the docs is reported only for lines the pull request added. Audits report every one.
To silence a name, add it to [`referenceIgnore`](https://docs.rimfe.com/configuration/rimfe-json#ignore-reference-names).
## The Deprecations list
The repository **Overview** lists the names the code marks deprecated, one row per name: name, since, removal, and **Docs notice**, which reads **In the docs** when a docs section documents the deprecation and **Missing** when none does. For a missing notice, mark the name deprecated in the sections that mention it and say what replaces it; the next index refresh picks it up. Under the name is every file that declares it, with its line; each links to the declaration on GitHub when the indexed commit is known. A name whose removal date has passed and that is still in the code shows **Overdue**. The list is for reading; nothing acts on it.
---
# Agent context files
Files that instruct coding agents are documentation for a reader that follows them literally. A wrong command or path in one becomes wrong code at scale. Rimfe reads them as their own audience, `agent`, and checks them.
## Which files
`AGENTS.md`, `CLAUDE.md` and `GEMINI.md` at any depth, `.cursor/rules/**/*.mdc`, `.cursorrules`, `.windsurfrules`, `.windsurf/rules/*.md`, `.clinerules`, `.github/copilot-instructions.md`, `.github/instructions/*.instructions.md`, `.github/prompts/*.prompt.md`, and `SKILL.md` files in a `skills//` folder, including under `.claude/skills` and `.agents/skills`. Files under `node_modules`, `vendor`, `dist` and `build` are skipped.
They are read even when your `docsGlobs` do not cover them. Paths in `docsIgnorePaths` are skipped. To turn the group off, set `"agentContext": false` in [`.rimfe.json`](https://docs.rimfe.com/configuration/rimfe-json).
## Hidden instructions
Rimfe also scans docs and agent files for text aimed at an AI agent instead of a reader: invisible characters, HTML comments that give orders or name secrets (`ignore previous`, `curl`, `token`), images in agent files and links whose text names one host while the address points to another. Each page with such text becomes a **Hidden instruction** finding on reviews and audits. On a pull request, Rimfe looks only at lines the pull request added. A hosted docs site is not published while a page has it; a maintainer clears a page with `rimfeAllowHidden: true` in its front matter.
## What is checked
These checks need no AI model:
- **Commands.** Every `pnpm`, `npm`, `yarn` or `bun` script must exist in the `package.json` of the file's folder or the repository root (a filtered command may use any package's script), every `make` target in the Makefile, every `just` recipe in the justfile, and every `cargo` alias in `.cargo/config.toml`.
- **Paths.** A path in backticks must exist in the repository.
- **Env vars.** A variable in backticks must be in an env example file or read by your code.
- **Imports.** A `@path` import such as `@AGENTS.md` must point at a file.
A failed lookup is a "Wrong agent instruction" finding with the quote and what was looked up. On a pull request it is reported when the pull request edited the line, or removed the script, target or path the line names. An env var on an edited line is reported only when its name looks like a misspelling of a name the pull request changed. Audits report all of them.
Claims about behavior, such as "tests run with `pnpm test:unit`", are left to the model review, which reads these files with the rest of your docs. It knows they instruct agents.
---
# Privacy and data
Rimfe reads your pull requests and docs through the GitHub App, uses an AI provider to compare them, and keeps the results so you can see history and evidence. For the formal policies, see the [privacy policy](https://rimfe.com/privacy), the [security page](https://rimfe.com/security) and the [data retention page](https://rimfe.com/data-retention).
## What Rimfe reads
Rimfe reads only what a review needs, through the permissions you granted to the GitHub App.
- Pull request details: number, title, labels, draft state and commits.
- The changed files and their diffs.
- The docs files that match your [docs scope](https://docs.rimfe.com/configuration/docs-scope), and `.rimfe.json` if you use it.
- With a [separate docs repository](https://docs.rimfe.com/configuration/separate-docs-repository), its docs files too.
- The code of your default branch, parsed into an index of names, signatures, routes and settings. Names are stored as keyed hashes, and signatures and paths are encrypted. Your source code is not stored. Names and signatures are turned into search embeddings so a change can be matched to the docs that describe it; function bodies never are.
Rimfe never writes to your code. Write access to contents comes with the install and is used only if you turn on [docs pull requests](https://docs.rimfe.com/how-it-works/docs-prs) or hosted docs edits. See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions).
Rimfe reads the pull request description and the commit message subjects for the AI prompts. It holds them in memory for the review and never stores them. It does not read pull request comments other than the `@rimfe` command line, which is the only part of a comment it keeps. Files you [ignore](https://docs.rimfe.com/configuration/docs-scope) are left out.
## AI processing
For each review, Rimfe sends the relevant code changes, the pull request title, description and commit message subjects, the docs sections they may affect, your code mappings and review rules to a third-party AI provider. The text of your docs sections is also sent to an embedding model to build the search index; only the resulting vectors go to the vector database. Every AI provider Rimfe uses works under zero data retention: prompts and outputs are not stored after the response returns, and neither Rimfe nor the providers train models on your content. The providers are on the [sub-processors page](https://rimfe.com/subprocessors). If you add your own AI key, your browser seals it before it is sent, and only Rimfe's AI broker can open it.
```mermaid title="Where review data goes"
flowchart LR
GH[GitHub App] -->|PR, diff, docs in scope| Review[Rimfe review]
Review -->|Changes, PR text, docs sections| AI[AI provider]
Review -->|Docs sections| Embed[Embedding model]
Embed -->|Vectors only| Vectors[Vector database]
Review --> Record[Review record]
Review --> Out[Check and comment on GitHub]
```
Repository text is treated as data, never as instructions. It cannot change your docs scope, permissions, limits or who may run a command. Every suggestion is checked against your actual diff and docs before it is shown.
## What is stored
Rimfe stores one record per review so the dashboard can show history and evidence:
- Which repository, pull request and commit were reviewed, the settings in effect, and the result.
- The changed file names and their diffs.
- Each finding with its explanation and the quotes from code and docs that back it.
- Suggested fixes, the text of the docs pages they edit, and the docs pull request link.
- Check and comment status.
- [Audit](https://docs.rimfe.com/how-it-works/audits) results.
- Billing plan details. Card numbers never reach Rimfe.
### What is never stored
- Your docs text and source files, beyond short-lived working copies that are deleted when a review ends. The one exception is the text of docs pages behind a suggested fix, which is cleared after 30 days.
- Pull request comments other than the `@rimfe` command line.
- Raw webhook payloads.
- Full copies of your repositories.
- GitHub personal access tokens. Rimfe uses GitHub App installation tokens.
## What left Rimfe
Each check page lists which kind of data (code, docs pages, code changes with the docs pages they may affect, pull request text, questions) went to which provider, in how many requests and how many bytes, never the content. The sizes include Rimfe's own instructions and text sent in more than one request, so they are larger than your content. In **Settings**, then **Data**, owners see **Deletion receipts**, one for each deleted index or docs site and whether the deletion verified.
## Notifications
If you turn on [notifications](https://docs.rimfe.com/reference/notifications), Rimfe sends your Slack channel, webhook or email the pull request title and link, the repository name and link, the check link, the summary, the result and the finding counts. A drift result can add up to three one-line finding summaries. A notification never contains a diff, docs text or the quotes behind a finding. Webhook and Slack destinations are stored encrypted and removed when you delete the workspace. Every email you can turn off has a one-click unsubscribe link.
## Retention and deletion
| Data | Kept for |
| --- | --- |
| Findings, quotes, summaries, suggested fixes and feedback | 90 days after completion |
| Diff text, the text of docs pages a fix edits, and run event details | 30 days after completion |
| Webhook summaries and command records | 30 days |
| Audits, their findings and docs pull request records | 90 days after completion |
| Ask Rimfe questions, answers and sources (encrypted), and their disagreements | 90 days after the question |
| Billing records | 400 days. Plan details stay while the workspace exists |
| Search data about your docs | While the repository is connected and in use. Deleted within 24 hours of disconnecting, or after 90 days without being rebuilt or refreshed |
These are the defaults. On a paid plan, owners can shorten or lengthen the review text, findings and history periods in **Settings**, then **Data**, within the range the plan allows.
A cleanup job runs daily, so deletion can land shortly after a window ends. After 30 days, an older check can no longer open a docs pull request, because the page text it was based on is gone. Run a new check instead. See the [data retention page](https://rimfe.com/data-retention) for every window.
- **Disconnect GitHub.** Uninstalling the app or removing a repository ends Rimfe's access and deletes the data kept about that repository's docs. Existing history stays until its retention period ends or you delete the workspace. Comments, checks, branches and pull requests Rimfe created remain on GitHub.
- **Delete a workspace.** Workspace owners can delete the workspace under **Settings**, **General**. This removes its repositories, reviews and feedback. A workspace on a paid plan must be cancelled in **Billing** first. Deleting does not uninstall the GitHub App, so remove the installation on GitHub too.
- **Request deletion.** Email hello@rimfe.com.
If you find a security issue, email security@rimfe.com.
---
# Docs platform
Rimfe can do more than review pull requests. It can write, store, edit and host your docs, and keep them correct with the same checks that review your code changes.
You can use as much of it as you want. Keep your docs in your repository and use only the [review](https://docs.rimfe.com/how-it-works), or let Rimfe host them.
```mermaid title="How a hosted page stays correct"
flowchart LR
Write[Write or generate] --> Publish[Publish]
Publish --> Check{Matches the code?}
Check -->|Yes| Stamp[Shown as verified]
Check -->|No| Fix[Draft a fix]
```
## What you can do
Start empty, import or generate, and choose who can read it.
An agent proposes pages from your repository.
Blocks, drafts, a diff before you publish.
Publish reviewed changes, watch builds and roll back.
Verify pages, draft changelogs, translate.
Mintlify, GitBook, Docusaurus, Fumadocs, plain Markdown and ZIP.
Serve the site at docs.yourcompany.com.
Invite readers by email and limit pages to groups.
A question box that answers from your pages.
## Plans
Hosted docs come with a Docs tier, which you add to any plan, Hobby included. Enterprise includes Docs in the contract.
| | Docs Lite | Docs Plus | Docs Pro |
| --- | --- | --- | --- |
| Price | $25/mo | $75/mo | $125/mo |
| Hosted sites | 1 | 3 | 10 |
| AI pages a month | 150 | 600 | 1,500 |
| Ask answers a month | 250 | 1,000 | 3,000 |
| Custom domains | Yes | Yes | Yes |
| Private docs | No | Yes | Yes |
| Builds per day | 25 | 50 | 100 |
Builds are fair use. See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers) for the rest.
## How AI is paid
Generation, fixing pages that no longer match the code, changelogs, translation, reader-signal fixes, the agent and Ask the docs run on your [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers), always on Rimfe's models and never on your AI key. Your tier includes AI pages and Ask answers each month, and **Settings**, then **Billing** shows how many are used. When they are used up, that work pauses until the next cycle. Nothing is charged beyond the tier price. Before an agent task starts, the dialog shows what it is expected to use. Without a tier, the editor, hosting, imports, exports, manual edits, page checks and reader signals keep working.
---
# Create a site
A site is one set of docs with its own address, pages, builds and readers. Its pages live in Rimfe: you edit them in [the editor](https://docs.rimfe.com/platform/editor) and every change is reviewed before it goes live. You need a [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers) to host one. It works on any plan, Hobby included.
Docs you keep in your own repository stay there. Rimfe reviews them on each pull request and opens [docs pull requests](https://docs.rimfe.com/how-it-works/docs-prs), but does not host them.
## Create the site
### Open Docs and choose New site
Enter a **Name**. The **Address** fills in from the name and becomes `your-address.rimfe.page`. The form tells you whether the address is free. The address is 3 to 40 characters: letters, numbers and hyphens. A few names, such as `app`, `docs` and `help`, are reserved. A name or address that contains a bank, payment or big consumer brand name is not refused, but the site is paused until Rimfe reviews it. Only owners and admins can create sites.
### Choose a starting point
| Starting point | What happens |
| --- | --- |
| **Start empty** | The site starts with a welcome page you edit. |
| **Import existing docs** | You land on the import, where you bring pages in from a repository folder or a zip. See [Import and export](https://docs.rimfe.com/platform/import-and-export). |
| **Generate from my repo** | Choose the **Code repository**. You land on Automations to [generate pages from your code](https://docs.rimfe.com/platform/generate-from-code). |
### Choose who can read it
Under **More options**, leave **Private site** off for a public site. Turning it on needs Docs Plus or Docs Pro. See [Private docs](https://docs.rimfe.com/platform/private-docs).
### Select Create site
The site is created and you land where the starting point needs you: **Content** for an empty site, **Settings**, then **Advanced** for an import, and **Automations** for generated pages. The site's tabs are **Home**, **Content**, **Verification**, **Publish**, **Automations**, **Analytics** and **Settings**.
## Your sites
**Hosted docs** lists your sites. Each row shows whether the latest build is **Live**, building or failed, the page views of the last 7 days, open drafts and reader signals waiting, so you can see each site's state without opening it.
## The site's Home
**Home** walks a new site to its first result. Each step ticks itself when it's done:
1. **Add pages**: write, import or generate them.
2. **Make it yours**: a logo or an accent color in [Customize](https://docs.rimfe.com/platform/customize).
3. **Link your code**: a code repository, under **Settings**.
4. **Publish**: the first build goes live.
5. **Check against your code**: the first [page check](https://docs.rimfe.com/platform/verification).
After those, it suggests your own domain. Owners and admins can **Dismiss** the list.
As soon as the site has a linked repository and published pages, Rimfe checks the pages against the code. It doesn't wait for the weekly schedule, so an imported site shows which pages are out of date within minutes.
Below the list, Home shows the last 30 days (page views, questions asked and unanswered, searches with no results) and what needs attention. That covers pages that no longer match the code, things readers need, drafts waiting to publish and a failed build, each linking to where you handle it.
## Take a copy with you
Open **Settings**, then **Advanced**, and choose **Download a copy** for a ZIP of every page, image and the site's settings. See [Import and export](https://docs.rimfe.com/platform/import-and-export#export).
## Limits
Docs Lite includes one hosted site, Docs Plus three and Docs Pro ten. When you are at the limit, the form says to move to a bigger tier.
Next, [generate pages from your code](https://docs.rimfe.com/platform/generate-from-code), [import existing docs](https://docs.rimfe.com/platform/import-and-export) or open [the editor](https://docs.rimfe.com/platform/editor).
---
# Generate docs from the code
Generation turns your code into a first set of docs. It happens in two steps, so you decide what gets written: the agent proposes an outline, you edit it, then it drafts the pages.
It needs a [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers), on any plan, and a code repository linked to the site. See [Link code repositories](https://docs.rimfe.com/platform/changes-from-pull-requests#link-code-repositories). When several are linked, generation reads the first one.
## Generate
### Choose Generate
Open the site's **Automations** tab and choose **Generate**. Under **Audience**, choose **Public** for people who use your product, **Internal** for people who work on it, or **Both**.
To add pages to one part of a site that already has folders, choose **One section** instead. Pick the **Section** and how many **New pages** to plan, up to your Docs tier's limit. Pages already in the section stay as they are.
### Check the cost and start
The dialog shows what the task is expected to cost. Choose **Propose an outline**.
### Edit the outline
When the task is done, find it under **Recent tasks** and choose **Edit outline**. Pages are listed under their sidebar groups: **Get started**, **Guides**, any groups for your product's own areas, **Concepts** and **Reference**. Each page has a title, a path, a kind and an audience. Rename pages, move them up or down within their group, choose **Add a page** in a group or remove pages, then choose **Draft these pages**.
### Review the drafts
Choose **Review drafts** on the task. Each page arrives as a draft, with a diff against what is live. The home page is built from the outline: a short introduction and a set of cards for each group, linking every drafted page. If you already edited the home page, it is kept and listed as left out. The sidebar follows the same groups. Nothing is public until you [publish](https://docs.rimfe.com/platform/publishing-and-builds).
## What it uses
The agent reads the facts Rimfe already extracts from your code for reviews, such as exported functions, routes, commands, config keys and environment variables, plus your README, manifests and OpenAPI specs. For the **Public** and **Both** audiences, the outline also lists reference pages for the API, the CLI, environment variables and configuration when your code has them. They are built straight from the code. Build and test scripts from `package.json` are left out of public pages. The outline holds up to 80 pages.
Every drafted page is checked against your code and read once more by an editor model, which can send it back for one more draft. A page that fails the checks is left out, with the reason on the task.
Public pages are written for people who use the product and do not name internal files, symbols, feature flags or tickets. On a public site, pages for the **Internal** audience are visible to workspace members only, not to readers. On a private site they are visible to every reader who can open the site, so limit them to a group in the page settings or leave them out.
## Cost
Generation runs on your [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers), on Rimfe's models. It never uses your AI key or included reviews. Each page it drafts counts as one AI page, except reference pages built from your API spec. Your tier also sets how many pages one generation drafts: 25 on Docs Lite, 50 on Docs Plus and 100 on Docs Pro. When the cycle's AI pages are used, generation pauses until the next cycle. Without a tier, the task shows **Runs on Docs** with an **Add Docs** link.
---
# The editor
The editor is where a hosted site's pages change. Pages stay Markdown and MDX, and text you do not touch is written back exactly as it was.
## Open a page
Open the site's **Content** tab, choose a page or **New page**, and the editor opens. Drafts are saved as you type. If the live page changes while you have a draft open, the editor tells you.
## Write with blocks
Type `/` on an empty line to insert a block:
| Group | Blocks |
| --- | --- |
| Basic | Text, three heading levels, bulleted, numbered and task lists, quote, code block, table, divider |
| Media | Image, video, embed, frame |
| Layout | Card, card group, accordion, accordion group, tabs, columns |
| Docs | Diagram, chart, file tree, code tabs, package install, callout, steps, API operation, footnote, HTML, update |
A diagram, a chart and a file tree are code blocks in the `mermaid` or `tree` language. The site draws them when it builds, and the preview shows the result as you type. [Components](https://docs.rimfe.com/platform/components) lists every block with the text that makes it.
A block that takes an [icon](https://docs.rimfe.com/platform/components#icons), such as a card, step, tab or callout, has a square icon button in its controls. It opens a search over Lucide, Tabler and Font Awesome; pick an icon, or **Remove icon**. The same button in the text toolbar adds an icon inside a line, and clicking that icon sets its size, colour and label.
Code blocks use a code editor, with the language, title, highlighted lines, line numbers, wrap and collapse above it. Choose **Source** in the top bar to edit the page's MDX directly, and the preview beside the page shows how it renders.
## Page settings
Choose **Settings** in the top bar to set a page's title, description, address, canonical address and social image, a sidebar icon and [badge](#badges), and whether to hide it from the navigation. Visibility has four options:
| Visibility | Meaning |
| --- | --- |
| **Everywhere** | Listed, searchable and in the sitemap. |
| **Unlisted** | Reachable by link, kept out of navigation and search. |
| **Hidden** | Not published. |
| **AI only** | Hidden from readers, available to the AI features. |
A page with a different canonical address is not in the sitemap. A page set to `noindex` stays out of search results but its links are still followed. A private site is closed to search engines entirely.
You can also limit a page to [reader groups](https://docs.rimfe.com/platform/private-docs#groups), on a public or a private site.
Turn off **Show Previous and Next** to drop the links to the neighbouring pages from the bottom of a page. In frontmatter it is `pager: false`.
### Search keywords
**Search keywords** are words readers may search for that the page does not use, such as an old product name or a common misspelling. Type one and press Enter; a page takes up to 20, each up to 40 characters. Search ranks a keyword match just below a title match, and keywords never show on the page. In frontmatter it is `keywords`:
```yaml
---
title: Rate limits
keywords: [quota, throttling]
---
```
### Page layout
**Layout** sets how the page uses the width:
| Layout | What the page shows |
| --- | --- |
| **Default** | Sidebar, page and the column of sections. |
| **Wide, no table of contents** | Sidebar and a wider page. The sections move to the bar at the top. |
| **Full width** | The page across the whole width. The sidebar opens from the menu button. |
| **Centered column** | One centered column. The sidebar opens from the menu button. |
**Same as folder** takes the layout of the page's folder. To set one for a whole folder, open the folder's menu in **Navigation** and pick **Page layout**. In a `meta.json` it is `layout`, and a page's own frontmatter wins:
```yaml
---
title: API overview
layout: wide
---
```
### Related pages
A page can list up to four related pages under its text. Name them in the frontmatter by path, as you would link to them:
```yaml
---
title: Webhooks
related:
- /guides/retries
- ../reference/events.mdx
---
```
A path that matches no page, or a page not every reader of this one may open, is left out, and the build shows a warning with its line. To have Rimfe pick them, open **Settings**, then **Site**, and turn on **Suggest related pages**. It picks listed pages that share words in their titles, headings and `keywords`, preferring the same folder, and never suggests hidden, unlisted or group-only pages. A page's own list wins, and `related: false` shows none.
## Annotate images
Choose **Annotate** on an image block: arrows, rectangles, numbered markers, text and highlights. **Blur** and **Pixelate** hide sensitive parts. Readers see a single flattened image. Arrows, rectangles, markers, text and highlights stay editable when you reopen **Annotate**, but the pixels under **Blur** and **Pixelate** are removed for good and no original is kept. It works on images uploaded to the site, not on images from another address.
## History, moving and deleting
Each page has a menu on the **Content** tab and in the editor:
- **History** lists every version of the page, who published it and how (by hand, from a pull request, imported, from an agent). Pick one to see what changed since. **Restore this version** turns it into your draft, which you review and publish like any edit.
- **Move or rename** asks for the new path. The old address redirects to the new one, and the folder's navigation follows.
- **Delete page** takes it off the site with the next build. You can send its readers to another page. Pages you delete stay under **Recently deleted** on the **Content** tab for 30 days; **Restore** brings one back as a draft.
A page someone has a draft of can't be moved or deleted until the draft is published or discarded.
## Preview your drafts
Open **Preview** from the site and turn on **My drafts** to see the site as it would look with your drafts published. From a review, **Preview site** shows the same for the pages you are reviewing, including a change from a pull request.
## Sections
Sections split a site into tabs above the sidebar, such as **Docs**, **API Reference** and **Changelog**. Each tab shows only its own pages in the sidebar, and **Previous** and **Next** stay inside it.
Open **Settings**, then **Navigation**, and choose **Add sections**. Give each section a name and choose where it sits:
| Place | What the section holds |
| --- | --- |
| A top-level folder | Every page in that folder, for example `/api-reference`. |
| An API reference | The pages generated from that OpenAPI spec. |
| **Everything else** | Every page no other section holds. One section must be this. |
The button before a section's name picks an icon for its tab. Arrange the rows in tab order and **Save sections**. A site needs two to eight sections, or none. A section with no pages yet gets no tab until it has some. Sites imported from Mintlify keep their tabs as sections.
## Sidebar
Open **Settings**, then **Navigation**, to arrange the sidebar. Folders, headings and links each take an icon from the button before their name; a page's icon is set in its own settings, or as `icon` in its front matter. Sidebar icons are muted until their page is open, and a heading's icon takes the accent colour.
### Pinned links
**Pinned links** sit at the top of the sidebar, above the first group, in every section and in the phone menu. Use them for pages readers need from anywhere, such as a changelog or a status page. A site can pin up to 6. Each takes an optional icon, a name and an address: `https://`, a path starting with `/`, or `mailto:`. A link to another site shows an arrow.
### Badges
A badge is a short label after a page's name in the sidebar and after its title, such as **New** or **Beta**. Set it under **Icon and badge** in the page's settings, up to 16 characters. In the page's frontmatter it is `tag`, the same key Mintlify uses:
```yaml
---
title: Webhooks
tag: New
---
```
A folder in **Navigation** has a **Badge** field too. A folder's `meta.json` takes the same `tag` key.
### Listing a folder's pages
A folder that opens a page of its own can list its pages under that page's text. In **Navigation**, open the folder's menu and pick **List pages on folder page**: **Cards** shows each page's title and description in a grid, **List** shows them one under another. It is off until you turn it on. In a `meta.json`, set `listChildren` to `cards` or `list`:
```json
{ "title": "SDKs", "listChildren": "cards" }
```
The list follows the sidebar: hidden and unlisted pages stay out, and a page for some readers shows its title with a lock but not its description.
## Redirects
Open **Settings**, then **Navigation**, to see and edit the site's redirects: the old address, where it goes, and whether it is permanent. Moving a page or changing its address adds one for you. A redirect loop or a second redirect from the same address is refused.
## Review and publish
When you are done, open the review page. It lists every changed page with a unified or split diff. Then [publish](https://docs.rimfe.com/platform/publishing-and-builds). To throw a draft away, choose **Discard draft**.
---
# Components
Pages are written in MDX. The [editor](https://docs.rimfe.com/platform/editor) inserts each of these from the `/` menu, and the text below is what it saves. Anything outside this list fails the build with the page and the line.
## Callouts
Six tones. A callout takes an optional title.
Background the reader can skip.
A faster or safer way to do the step above.
Context that explains why something behaves the way it does.
What the reader should see when the step worked.
Something that is easy to get wrong and costs time to undo.
An action that deletes data or cannot be undone.
```mdx
Something that is easy to get wrong and costs time to undo.
```
## Steps
```bash
npm install example-sdk
```
Put the key in `EXAMPLE_API_KEY`. The client reads it on start.
A `200` response means the key works.
```mdx
...
```
Each titled step is listed with its number under **On this page**. Its anchor is the title as a slug, or the `id` you set: [`#install`](#install) scrolls to it. Ids are letters, digits, `-` and `_`, and each is used once per page.
## Code
A code block takes a title, highlighted lines and line numbers. Mintlify's `highlight={3-4}` and `lines` work too.
```ts title="src/client.ts" {3-4} showLineNumbers
import { createClient } from "example-sdk";
const client = createClient({
apiKey: process.env.EXAMPLE_API_KEY,
});
export const invoices = await client.invoices.list({ limit: 10 });
```
````mdx
```ts title="src/client.ts" {3-4} showLineNumbers
const client = createClient();
```
````
Every block has a copy button. When a line runs past the edge, the block fades at the right and shows a wrap button.
### Added and removed lines
End a line with a `[!code ++]` or `[!code --]` comment. The comment is not shown, and copying leaves the removed lines out.
```diff
-const client = createClient({ region: "eu" });
+const client = createClient({ region: "us" });
```
````mdx
```ts
const client = createClient({ region: "eu" }); // [!code --]
const client = createClient({ region: "us" }); // [!code ++]
```
````
`[!code highlight]` highlights a line the same way. Add a count to cover the next lines too: `[!code ++:3]`. A comment that holds only the marker applies to the line below it.
### Focus
Focus dims the other lines until the reader points at the block. Use `focus={2-3}` or a `[!code focus]` comment.
```ts focus={3-5}
import { createClient } from "example-sdk";
const client = createClient({
apiKey: process.env.EXAMPLE_API_KEY,
});
```
````mdx
```ts focus={3-5}
```
````
### Long blocks
`expandable` shows the first ten lines of a long block and a button to show the rest.
```yaml title="example.config.yaml" expandable
name: acme-docs
region: us
build:
command: npm run build
output: dist
cache: true
routes:
- path: /
page: home
- path: /guides
page: guides
- path: /reference
page: reference
- path: /changelog
page: changelog
redirects:
- from: /docs
to: /guides
```
````mdx
```yaml title="example.config.yaml" expandable
```
````
### Wrap
`wrap` wraps long lines instead of scrolling them.
```ts wrap
export const message = "Wrapped lines stay readable on a phone, so the reader never scrolls sideways to read the end of a long string.";
```
````mdx
```ts wrap
```
````
### Terminal
A shell block (`bash`, `sh`, `zsh`, `console`, `powershell`, `cmd`) without a title gets a terminal bar. To show a command running, with its prompts and choices, use a [terminal illustration](#terminal-illustrations).
```bash
example deploy --env production
```
### Package managers
Write the npm command once. `package-install`, or `npm2yarn` on any fence, shows it for npm, pnpm, yarn and bun. Picking a package manager switches every block on the page.
```package-install
npm install -D example-sdk
```
````mdx
```package-install
npm install -D example-sdk
```
````
### Code tabs
The same example in several languages. The reader's choice is remembered across pages.
```ts title="TypeScript"
const invoices = await client.invoices.list();
```
```python title="Python"
invoices = client.invoices.list()
```
```go title="Go"
invoices, err := client.Invoices.List(ctx)
```
With `dropdown`, a menu picks the example instead of a row of tabs.
```ts title="TypeScript"
const invoices = await client.invoices.list();
```
```python title="Python"
invoices = client.invoices.list()
```
````mdx
```ts title="TypeScript"
const invoices = await client.invoices.list();
```
````
## Tabs
Download the `.dmg` and drag the app to **Applications**.
Install with your package manager, then run `example --version`.
Run the installer. It adds `example` to your `PATH`.
Tab sets with the same tabs follow one choice: pick Linux here and every macOS, Linux and Windows set on the page switches, and the choice is remembered. Picking a tab puts it in the address, so a link such as [`#tab-linux`](#tab-linux) opens that tab. `sync={false}` keeps a set on its own.
```mdx
...
```
## Cards
A card takes a title, a link, an [icon](#icons) and a short body.
Install the GitHub App and get a first check.
Point Rimfe at your docs and choose when it runs.
Formats, limits and permissions.
Fix a missing check or an empty review.
```mdx
Install the GitHub App and get a first check.
```
`horizontal` puts the icon beside the text, `cta` adds a line of link text under the body, and `arrow` marks the card as a link.
Write and publish pages without a repository.
```mdx
Write and publish pages without a repository.
```
## Buttons
A link drawn as a button. Buttons on a line of their own sit side by side.
```mdx
```
Links are checked like every other link, and a link to another site opens in a new tab.
## Downloads
A file row with the type, the name and the size. `href` is a file in the site or an `https://` address.
```mdx
```
## FAQ
Questions and answers, shown like accordions. The page also tells search engines about them, once for the whole page.
No. Public sites are open to everyone.
Yes. Every page downloads as MDX.
```mdx
No. Public sites are open to everyone.
```
## Diagrams
A code block in the `mermaid` language is drawn as a diagram when the site is built. It follows the reader's light or dark theme. Flowcharts, sequence, state, class and entity diagrams are supported.
```mermaid title="A review, from pull request to result"
flowchart LR
PR[Pull request] --> Map[Find affected docs]
Map --> Check{Still correct?}
Check -->|Yes| Pass[Check passes]
Check -->|No| Fix[Finding and fix]
```
```mermaid
sequenceDiagram
participant Dev as Developer
participant GH as GitHub
participant R as Rimfe
Dev->>GH: Open pull request
GH->>R: Webhook
R->>R: Compare the change with the docs
R-->>GH: Check result and comment
GH-->>Dev: Review the suggested fix
```
````mdx
```mermaid title="A review, from pull request to result"
flowchart LR
PR[Pull request] --> Map[Find affected docs]
```
````
Readers can zoom and pan a large diagram. The buttons in its corner zoom in, zoom out, reset and open it full screen. Drag to move it. Ctrl or Cmd with the scroll wheel zooms, or a pinch on a phone. A focused diagram also takes `+`, `-`, `0` and the arrow keys.
## Charts
The same block draws bar and line charts from a short list of numbers.
```mermaid title="Pages checked each week"
xychart-beta
x-axis [Week 1, Week 2, Week 3, Week 4, Week 5, Week 6]
y-axis "Pages" 0 --> 120
bar [24, 38, 61, 74, 92, 108]
line [20, 35, 55, 70, 88, 104]
```
## File trees
A code block in the `tree` language is shown as folders and files. Indent to nest, end a folder with `/`, and add a note after `#`.
```tree title="A docs folder"
docs/
index.mdx # the home page
guides/
install.mdx
deploy.mdx
reference/
cli.mdx
meta.json # the order of the sidebar
```
````mdx
```tree title="A docs folder"
docs/
index.mdx # the home page
guides/
install.mdx
```
````
## Math
Write LaTeX between dollar signs. One `$` on each side keeps a formula in the line, such as $e^{i\pi} + 1 = 0$. Two on their own lines make a formula of its own:
$$
\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}
$$
```mdx
The area is $\pi r^2$.
$$
\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}
$$
```
Formulas are typeset when the site is built, so pages load no math script. Prices stay text: "$5 and $10" is not a formula, because a `$` followed by a space or a digit after the closing one does not count. Write `\$` for a dollar sign that would otherwise start one. A formula with a mistake fails with a build warning on its line, and readers see its LaTeX.
## Images
An image can have a version for dark mode. Readers see the one that matches their theme, and only that one loads.
```mdx
```
Mintlify's pair of images with `className="block dark:hidden"` and `className="hidden dark:block"` reads as one image with a dark version. In the editor, choose **Add dark version** on an image.
## Variables
Values you use on many pages, such as a product name or the latest version, live in **Settings**, under **Variables**. Write `{{name}}` in a page to show one. It works in text, links, component attributes and code blocks, and changing the value updates every page on the next build.
```mdx
Install version {{version}} of the [{{product}} CLI](https://{{domain}}/cli).
```
A site holds up to 50 variables. A name starts with a letter or `_` and uses letters, digits and `_`. A value is one line of up to 200 characters, and it always shows as text. A name with no value stays as written, with a build warning on its line. Write `\{{name}}` to show the braces themselves. Page titles and descriptions are not filled in.
## Snippets
Text you repeat on several pages can live in one file and be included where it is needed. Keep snippets in a folder whose name starts with `_`, such as `_snippets`, so they are not pages of their own.
```mdx
/_snippets/plan.mdx
```
Values passed this way fill `{{plan}}` and `{{seats}}` in the snippet, ahead of site variables of the same name. A snippet can include another, up to three levels deep. One page shows at most 200 includes and 1,000,000 characters of included text; the rest are left out with a build warning. Mintlify snippets with props come in this way when you [import](https://docs.rimfe.com/platform/import-and-export) a site.
## Tables
| Setting | Default | What it does |
| --- | --- | --- |
| `visibility` | `public` | Who can open the site. |
| `checkSchedule` | `weekly` | How often pages are checked against the code. |
| `feedback` | `on` | Shows "Was this page helpful?" under each page. |
## Fields
A field documents one parameter, option or response value: the name, its type, where it is sent, whether it is required or deprecated and its default, with the description under it. `location` is `path`, `query`, `body` or `header`. Each field gets its own link from its name.
How many invoices to return, from 1 to 100.
The customer the invoices belong to.
Use `cursor` instead.
The invoice that was created.
The invoice id.
`draft`, `open` or `paid`.
```mdx
How many invoices to return, from 1 to 100.
The invoice that was created.
The invoice id.
```
`` nests fields under their parent and stays closed until a reader opens it; add `defaultOpen` to start it open. Pages imported from Mintlify keep their `` and `` components as they are.
## Checklists
Wrap a task list in `` and readers can tick items off. Ticks stay in the reader's browser, and items written as `- [x]` start ticked. Give the list an `id` so ticks stay with it when lists are added or moved on the page.
- [ ] Connect a repository
- [ ] Pick the docs folder
- [ ] Publish the site
```mdx
- [ ] Connect a repository
- [ ] Pick the docs folder
```
A task list outside a checklist is shown as written, without boxes to tick.
## Prompts
A prompt shows text readers paste into an AI assistant, exactly as written. Long prompts fold after about eight lines with a button to show the rest. `actions` picks the buttons: `copy` (the default) and `cursor`, which opens the prompt in Cursor for the reader to review. Leave `cursor` out of the site's page menu to hide it on every prompt.
Add search to an acme project
```text
Add full-text search to the widgets list in this project.
- Use the existing `listWidgets` query.
- Add one test for an empty result.
```
```mdx
Add full-text search to the widgets list in this project.
```
Text with tags or braces goes in a `text` fence inside the prompt. The page's Markdown version shows each prompt as a `text` block.
## Colors
A palette shows named colors as swatches; clicking one copies its value. Values are hex, `rgb()` or `hsl()` with numbers, or a CSS color name. Give a swatch its own dark value with `value={{ light, dark }}`, and group swatches under a title with ``. `variant="table"` lays each row out beside its title.
**Brand**
| Name | Value |
| --- | --- |
| acme-500 | `#3B82F6` |
| acme-700 | `#1D4ED8` |
**Surfaces**
| Name | Light | Dark |
| --- | --- | --- |
| page | `#FFFFFF` | `#0A0A0A` |
```mdx
```
## Tiles
Tiles are a grid of linked previews: an image, a title and a line of text. `cols` sets two to four across; phones show one. Each tile holds one image, which can have a dark version.
```mdx
```
Mintlify's `` of `` elements reads as tiles, light and dark image pairs included.
## Views
Views give one page a version per language or framework. A menu at the top of the article picks the view; only that view shows, and **On this page** lists only its headings. Text outside the views shows in every view.
````mdx
## Install
```sh
npm install example-sdk
```
## Install
```sh
pip install example-sdk
```
````
Views sit at the top level of the page, each with its own title. A reader's pick is remembered with tabs of the same titles, and links to `#view-python` open that view. Search covers every view, and the page's Markdown lists each view under its title.
## Updates
An update is one entry of a changelog kept on any page. Its label, description and tags sit beside its content on wide screens and above it on phones. Use as many as you need, newest first.
## March 2026
v2.4 · API · Dashboard
Webhooks are signed, and the dashboard shows each delivery.
```mdx
Webhooks are signed, and the dashboard shows each delivery.
```
`label` is required, up to 60 characters, such as a date or a version. `description` is up to 160 characters, and `tags` up to six of 24 characters each. Each label is a heading: it gets an anchor such as `#march-2026` and a line in **On this page**. Search and the page's Markdown list each update under its label. An update cannot hold another update.
## Code walkthroughs
A walkthrough explains one code block step by step. On wide screens the steps sit beside the code, and the step being read marks its lines. Phones show each step with just its lines.
**Import the client** (line 1)
Bring in `Acme` from example-sdk.
**Create it** (lines 3-5)
Pass your API key. Keep it on the server.
**Send an event** (line 7)
Events arrive in the dashboard within a few seconds.
```ts title="send.ts" lineNumbers
import { Acme } from "example-sdk";
const acme = new Acme({
apiKey: process.env.ACME_KEY,
});
await acme.events.send({ name: "signup" });
```
````mdx
Pass your API key.
```ts title="send.ts" lineNumbers
...
```
````
A walkthrough holds one code block and up to 50 steps. `lines` is one line (`4`) or a range (`3-8`) within the code. Line numbers, titles, highlights and diff marks all work as in any code block.
## Repository cards
A repository card links a public GitHub repository with its description, stars and forks.
[acme/widgets](https://github.com/acme/widgets)
```mdx
```
`repo` is `owner/name` or the repository's GitHub URL. `variant="flat"` drops the card's background. The details are read from GitHub when the site builds, for up to 10 repositories per build; a private repository, or one past that limit, shows its name and link only.
## Terminal illustrations
A code block in the `terminal` language shows what a command looks like when it runs. `$` starts a command, `?` a question, `( )` and `(x)` a single choice, `[ ]` and `[x]` a choice of several, and `>` a typed answer. A blank line starts the next step; any other line is output. The copy button copies the commands only.
```text title="Create a project"
$ npx create-example-app
? Which template?
(x) Starter
( ) Blank
? Which features?
[x] Search
[ ] Analytics
? Project name
> acme-docs
Created acme-docs
```
````mdx
```terminal title="Create a project"
$ npx create-example-app
? Which template?
(x) Starter
( ) Blank
```
````
## Accordions
No. Pages build to static HTML from the blocks on this page, so a reader's browser never runs code from a page.
Yes. Pasted Markdown becomes blocks, and Mintlify, Docusaurus, GitBook and Fumadocs syntax is read as the matching block.
Give the accordion an `id`. A link to [`#link-to-an-answer`](#link-to-an-answer) opens it and scrolls to it.
```mdx
...
```
## Columns
**Hosted pages** live in Rimfe and are edited in the editor.
**Repository docs** stay in your repository and are reviewed on pull requests.
## Text
Inline `code`, **bold**, *italic*, ~~struck~~ text, a [link](https://docs.rimfe.com/platform) and keys such as CtrlK.
- A list item
- Another item
- A nested item
1. First
2. Second
- [x] A finished task
- [ ] An open task
> A quote sets apart someone else's words.
### Heading ids
A heading takes its anchor from its text. `{#id}` after the text sets one that stays put when the text changes.
```mdx
## Install the SDK {#install-sdk}
```
### Badges
A small label in a line: BetaStableChangedRemoved. Tones are `neutral`, `info`, `success`, `warning`, `danger` and `accent`; `outline`, `size="sm"` or `"lg"` and `shape="pill"` change the look. Mintlify's `color` and `stroke` work too.
```mdx
Stable
```
### Tooltips
A term with a short explanation: every request carries an API key. It shows on hover and on focus, a tap toggles it on a phone, and Escape hides it.
```mdx
API key
```
## Icons
Icons come from three free sets: [Lucide](https://lucide.dev/icons), [Tabler](https://tabler.io/icons) and [Font Awesome Free](https://fontawesome.com/search?ic=free). Each icon is drawn into the page when the site builds, so readers' browsers never fetch one.
A plain name comes from the site's icon set, Lucide unless you [choose another](https://docs.rimfe.com/platform/customize#brand). A prefix picks a set:
| Name | Set |
| --- | --- |
| `rocket` | The site's set |
| `lucide:rocket` | Lucide |
| `tabler:rocket` | Tabler |
| `fa:rocket` | Font Awesome solid |
| `fa-regular:bell` | Font Awesome regular |
| `fa-brands:github` | Font Awesome brands |
A plain name follows the site's set, so it draws a different icon, or none, if you change the set. Icons you pick in the editor or settings, and icons on generated pages, are written with their prefix and stay the same.
Lucide names also work in PascalCase (`BookOpen`), and Font Awesome names with or without `fa-`. Underscores and spaces read as hyphens, so `book_open` and `book open` draw `book-open`. A name no set has draws nothing, and the build warns once per page with the line.
An icon inside a line of text: fast, on GitHub, done.
```mdx
```
`size` is in pixels, from 8 to 96; without it the icon matches the text. `color` is a CSS colour, the same in light and dark mode; leave it out and the icon follows the text colour in both. `label` is read by screen readers; without it the icon is decorative. `` works too.
These blocks take an `icon`:
| Block | Where it shows |
| --- | --- |
| Card | Above the title, or beside the text with `horizontal` |
| Step | In the marker, in place of the number |
| Callout | In place of the tone's icon |
| Tab, View | Before the tab's or view's name |
| Accordion, Tile, Badge, Prompt | Before the title or text |
Rimfe reads the repository's docs folder.
A callout with its own icon.
```mdx
```
A page's `icon` in its front matter shows before its entry in the sidebar, not beside its title. Folders, headings, links, sections and header and footer links take icons in their settings.
Font Awesome Free icons are licensed under CC BY 4.0. Each one carries its licence note in the page, so no credit is needed elsewhere.
---
# Customize the look
The customize page shows your site the way readers see it, next to the settings that change it. Nothing reaches readers until you save, and each save rebuilds the site.
Open it from **Settings**, **Site**, **Look**, then **Customize**. Workspace owners and admins can save changes. Other members can open the page and view the preview.
The settings sit in four tabs: **Brand**, **Colors**, **Header** and **Footer**.
## The preview
The preview is your home page in the site's real layout: header, sidebar, article, table of contents and footer. It changes as you type.
| Control | What it does |
| --- | --- |
| Sun and moon | Shows light or dark mode. The color mode buttons inside the preview switch it too. |
| Screen and phone | Shows the desktop layout, scaled to fit, or the phone layout at phone width. On a phone, the menu button opens the sidebar. |
Links in the preview don't open. A site with no pages shows a sample page instead. The GitHub button shows a sample star count; the published site shows the real one.
## Brand
| Setting | Notes |
| --- | --- |
| **Light mode** and **Dark mode** logos | PNG, JPG, WebP or SVG, up to 1 MB. Without a dark logo, dark mode uses the light one. |
| **Favicon** | PNG, SVG or ICO, up to 1 MB. The tab above the preview shows it. |
| **Site name** | Turn it off when your logo already contains the name. Readers using a screen reader still hear the name. |
| **Social image** | PNG, JPG or WebP, up to 1 MB; 1200 × 630 works best. Link previews in chats and social posts show it for every page that has no image of its own. Without one, Rimfe draws an image for each page. |
| **Text** font | System, a built-in font (Inter, Geist, Source Sans 3, IBM Plex Sans, DM Sans, Manrope, Figtree), or any Google Fonts family: type its name to find it. |
| **Headings** font | Optional. Leave it on **Same as text** to use one font throughout. |
| **Icons** default set | Lucide, Tabler or Font Awesome. A plain icon name written on a page is drawn from this set. Icons you pick carry their set's prefix, such as `lucide:house`, so changing this set leaves them as they are. See [Icons](https://docs.rimfe.com/platform/components#icons). |
An uploaded image goes live only when you save. If you discard your changes, readers never see it.
Fonts are copied into your site when it builds, so readers' browsers never contact Google. Only the weights and character sets the site needs are included, along with the font's license notice. If a font can't be fetched, the site uses the system font and the build shows a warning.
## Colors
| Setting | Notes |
| --- | --- |
| **Opens in** | System, Light or Dark: the mode a reader sees on a first visit. System follows the reader's device. |
| **Readers can switch** | On by default: readers pick System, Light or Dark in the header, or in the menu on a phone, and the site remembers their choice. Turn it off to keep the site in the mode it opens in. |
| **Accent** | Colors links, buttons and the current page in the sidebar. The dark mode accent is optional. Leave it empty and Rimfe uses a lighter shade of the accent on dark backgrounds. |
| **Background** pattern | Plain, Gradient (a soft wash of the accent at the top of the page) or Grid (faint lines that fade out down the page). |
| **Background** colors | Optional page colors for light and dark mode, as hex. Leave them empty for the theme's own. |
| **Code** | The colors of code blocks in light and dark mode. Each choice keeps code readable on its background. |
If links or text in your colors would be hard to read on the light or dark background, the page warns you. You can still save.
## Header
| Setting | Notes |
| --- | --- |
| **Banner** | One line above the header on every page, up to 200 characters. Links, **bold**, *italic* and `code` work, written as in Markdown. Leave it empty for no banner. |
| Banner **Style** | Neutral, Info or Warning. |
| **Readers can close it** | Adds a close button. A closed banner stays closed on that browser until you change its text. |
| **Links** | Up to five, shown beside the search box on wide screens and at the end of the sidebar on narrower ones. |
| **Button** | One highlighted link at the end of the header, such as **Sign up**. On phones it moves to the end of the sidebar. |
| **Search hint** | The text in the search box and the search dialog, up to 40 characters. |
| **GitHub repository** | `owner/repository`. Adds a GitHub button with the repository's star count, read when the site builds. For a private repository, or one GitHub doesn't answer for, the button shows without a count. |
| **Hide header while scrolling down** | Gives the page more room as readers scroll. The header comes back when they scroll up or move into it with the keyboard, and it stays put while a menu or dialog is open or the reader's device asks for reduced motion. |
## Footer
| Setting | Notes |
| --- | --- |
| **Columns** | Up to four, each a heading over up to eight links. They sit side by side on wide screens and stack on phones. |
| **Links** | Up to twelve, in a row under the columns. "Report this site" is always in the footer. |
Each link needs a name and an address: `https://`, a path on your site starting with `/`, or `mailto:`. The square button before a link, or before the header button, picks an icon to show with it. Use the arrows to reorder links. Empty rows and columns are dropped when you save.
A footer link to a profile on GitHub, X, LinkedIn, YouTube, Discord, Slack and other well-known networks, such as `github.com/acme` or `linkedin.com/company/acme`, shows that network's logo in place of its name, unless you pick an icon for it. Screen readers still hear the name. Other links to those sites, such as a repository, a post or a video, keep their name.
## Save and discard
**Save** stores the look and rebuilds the site. It saves only the settings on this page. Changes someone else saved meanwhile to navigation, AI or access are kept. If someone else saved the look since you opened the page, the save is refused so their change isn't lost; reload to see it. **Discard** goes back to what is saved. If you leave with unsaved changes, the page asks first.
---
# Versions, languages and API references
Versions and languages live on **Settings**, **Versions and languages**. API references live on **Settings**, **API reference**. Workspace owners and admins can save changes. Each save rebuilds the site.
## Versions
A version is a folder of your docs served under its own address, with a switcher in the header. Add one with **Add version**:
| Field | Notes |
| --- | --- |
| **Name** | What the switcher shows, such as `2.x`. |
| **Address** | The part of the address readers see, such as `v2`. Lowercase letters, numbers, dots, dashes or underscores, starting with a letter or number. |
| **Folder** | The folder of the version's pages. Leave it empty for `versions/`. The default version reads the top of your docs when it is empty. |
| **Default** | The version readers land on. It opens at the site's address, with no prefix. Exactly one version is the default. |
Every page of another version opens with a notice that names the version, such as "You are reading the docs for 1.x", and links to the same page in the default version. When the page isn't there, the link goes to the default version's home.
Search engines see only the default version. A page in an older version points to the same page in the default version as its canonical address, so the two count as one. An older page that has no counterpart in the default version is kept out of search results, but its links are still followed. Older versions stay out of the sitemap, and readers can still open them from the switcher.
Two versions can't share an address. **Remove** asks first and says how many pages sit in the version's folder. The pages stay in your docs, but readers can no longer open them once you save.
## Languages
Readers pick a language in the header. Add one with **Add language** and choose its code from the list, or type another code such as `pt-BR`. Searching by English name works too. The name fills in from the code, and you can change it.
| Field | Notes |
| --- | --- |
| **Language** | A code like `en` or `pt-BR`. |
| **Name** | What the switcher shows, in the language itself. |
| **Folder** | The folder of the translated pages. Leave it empty for a folder named after the code. The default language reads the top of your docs when it is empty. |
| **Default** | The language the site opens in. Exactly one language is the default. |
Each page tells search engines about its other languages: every language of the same page lists all of them, itself included, and the default language is the fallback for readers whose language has no version. The sitemap lists the same alternates. A language version that is hidden, `noindex` or has a canonical address elsewhere is left out of the set.
Two languages can't share a code. A site needs a second language before [Translate](https://docs.rimfe.com/platform/ai-automations) can draft pages for it.
## API references
An API reference turns an OpenAPI spec into a page for each operation. Add one with **Add API reference**:
| Field | Notes |
| --- | --- |
| **Spec** | A file in your docs, such as `reference/openapi.json`, or an `https` address. |
| **Route** | Where the pages are served, such as `/api`. Two references can't share a route. |
| **Let readers try requests** | Adds a form to each operation. |
| **Allowed servers** | The servers the form may send requests to, added as tags. Type a host like `api.acme.com` and Rimfe adds `https://`. Requests go only to servers listed here, so add each one the spec names. |
| **Hidden operations** | Operations to leave out, added as tags. Name one by its `operationId`, such as `deleteWidget`, or by method and path, such as `DELETE /widgets/{id}`. End a path with `*` to hide everything under it: `GET /internal/*`. |
| **Renamed operations** | A new title or summary for an operation, named the same way. The page keeps its address. |
A problem with a field shows under it, and **Save** stays off until every row is valid.
### Hiding operations
Hidden operations have no page, no sidebar entry and no search result. They are left out of `llms.txt`, and the spec readers download from your site doesn't include them. Your spec file stays as it is.
Operations marked `x-hidden: true` or `x-internal: true` in the spec are hidden too, whether the mark is on the operation or on its path.
In the [JSON editor](#the-json-editor), both lists sit on the reference:
```json title="Configuration"
"openapi": [
{
"id": "api",
"source": "reference/openapi.json",
"route": "/api",
"hide": ["deleteWidget", "GET /internal/*"],
"rename": {
"listWidgets": { "title": "List widgets" },
"POST /widgets": { "summary": "Creates a widget in your workspace." }
}
}
]
```
When an operation matches a rename by `operationId` and another by method and path, the `operationId` wins.
In the sidebar, each operation's page starts with its method, such as `GET` or `POST`, in its own color.
## Two people editing
Each list remembers how it looked when you started. If someone else saves the same list first, your save is refused with a message to reload, instead of overwriting their change. Saving a list never touches the rest of the settings.
## The JSON editor
**Settings**, **Advanced**, **Configuration** shows the whole configuration as JSON. Only the page rules and the feedback switch have no form. Everything else is better changed on its own tab.
---
# Publishing and builds
Edits stay drafts until you publish them. A publish saves the reviewed pages as a new version of the site, and a **build** turns the pages into the site readers see.
## Publish
Choose **Review & publish** (or **Review changes** in the editor), check the changes page by page, add a note if you like and choose **Publish**. A build starts straight away. **Publish** stays off while a page changed after its draft started, while a page names something readers should not see, and while a change from a code pull request waits for its merge or release.
On a public site, "something readers should not see" is a path to a code or config file, a ticket id such as `ENG-120`, a feature flag key, or the name of a function, class or component that the linked code keeps to itself (not exported). The names come from the code index of the repositories linked to the site, so a repository needs a finished index for that part. The review names the page and the line. Text a page already had does not count.
Pages of a public site are also checked for harmful content (such as hate, harassment, violence or sexual content). A flagged page stops the publish, and the message names the page and what it was flagged for.
## Builds
**Publish**, **Status** lists each build as **Queued**, **Building**, **Ready**, **Failed**, **Replaced** or **Held for review**. A build runs each time you publish, and after an import, a generation, a rollback or a page check that changes which pages show as verified. Builds per site per day are limited by plan, counted per UTC day. See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits). Past the limit, a new build fails with "The builds for today are used up" and the site keeps serving its last build until tomorrow. The serving build is marked **Live**. A build that stays queued or building for 15 minutes is marked **Stuck**, and the newest build has a **Retry** button when it is stuck or failed in a way a second try can fix.
A build with errors or warnings has a **Problems** button on its row. It opens the errors and warnings with the page, the line and what is wrong, such as an MDX error or a broken reference. Fix the page and publish again. The site keeps serving the last good build meanwhile.
## Held for review
Every build is checked for pages that look like phishing: text asking readers for a password, card details or a wallet's recovery phrase, together with another company's name in the title or a sign-in link to another site. Such a build is **Held for review** until Rimfe checks it. The site keeps serving the last build meanwhile. A page with a password input, a card number field or a form that posts to another site fails the build with an error.
## Roll back
Under **Publish**, **Status**, find the build in **Build history** and choose **Roll back to this build**, then **Roll back**. You can roll back to the last three finished builds. The site serves that build again. Pages you wrote since stay in your docs and go live with the next build. Only owners and admins can roll back.
## Hidden instructions
A site is not published while a page has hidden instructions aimed at AI agents. See [Agent context files](https://docs.rimfe.com/how-it-works/agent-context#hidden-instructions).
---
# Changes from pull requests
A hosted site's pages live in Rimfe. When code changes, Rimfe checks the pages against the pull request and suggests the fix as a **change** on the site. You review it like any other draft and publish it once the code ships.
## Link code repositories
Open the site's **Settings**, then **Site**, and choose **Link repository** under **Code repositories**. Only owners and admins can link a repository. Pick a repository and, if only part of it matters to these docs, list its **Code folders**, one per line, such as `packages/api/**`. Leave them empty to check every change.
A site can link up to 20 repositories, and one repository can link to several sites. Linking a site does not change how the repository's own docs are reviewed.
## What happens on a pull request
```mermaid title="From pull request to published page"
flowchart LR
PR[Pull request] --> Review[Review against the site's pages]
Review -->|A page is now wrong| Change[Change on the site]
Change --> State{Pull request}
State -->|Merged| Ready[Ready to publish]
State -->|Closed| Discard[Change discarded]
Ready --> Publish[Publish]
```
1. Rimfe reviews the pull request against the site's pages, next to any other docs the repository has. The check on the pull request is named after the site, for example `Rimfe (Acme Docs)`.
2. When a page is now wrong, Rimfe opens a change on the site and the pull request comment links to it: **Review the docs change in Rimfe**.
3. New commits on the pull request update the change. Pages you edited yourself keep your edits.
4. When the pull request merges, the change is ready to publish and everyone who can publish the site is told. When it closes without merging, the change is discarded.
## Review and publish
Open the site's **Content** tab. **Changes from pull requests** lists each open change with its pull request and status:
| Status | Meaning |
| --- | --- |
| **Waiting for merge** | The pull request is still open. |
| **Held until release** | The pull request merged, but your release settings hold its docs until the release ships. |
| **Ready to publish** | Publish it like any other draft. |
Open a change to see each page as readers will see it, with the reason Rimfe suggested it. Leave out any page you don't want, then [publish](https://docs.rimfe.com/platform/publishing-and-builds).
Docs sometimes need to go out before the code. Site managers can choose **Publish now** on a change that is still waiting.
## Private sites
A private site's text never appears in the pull request comment. The comment links to the change in Rimfe instead.
---
# Verification
Verification checks each page of a hosted site against the code of the repositories [linked to the site](https://docs.rimfe.com/platform/changes-from-pull-requests). It runs without AI. Open it from the site's **Verification** tab.
## What is checked
Each page's code names are looked up in your code: environment variables, CLI commands and flags, API endpoints, config keys, and functions or classes. Each local link and heading anchor is checked against the site's pages.
| Status | Meaning |
| --- | --- |
| **Needs review** | A name the code doesn't have, a broken link, or a name the code marks deprecated. Each problem shows its line. |
| **Up to date** | At least one name was found in the code and nothing is wrong. |
| **Can't verify** | The reason shows, for example: the page names nothing from the code, the code index isn't built yet, or the page doesn't parse. |
| **Not checked** | Never checked, edited since the last check, or last checked more than 30 days ago. |
With several repositories linked, a name counts as found when any of them has it. If one repository's code can't be read, missing names aren't reported, because they might be in that repository. Those pages show as **Can't verify** with the reason.
## Schedule and Check now
The first check runs on its own once a site has a linked repository and published pages. After that, sites are checked every week by default. Owners and admins can change this to every month or turn scheduled checks off. **Check now** runs a check right away. Each site runs one check at a time.
When a scheduled check finds pages to review, everyone who can publish gets a notification and an email. The same result isn't sent twice. To change how you're told, open the notification settings and find **Docs pages that no longer match the code**.
## Fix a page
On a page that needs review, **Draft fix** asks a model to rewrite what no longer matches the code. It runs on your Docs tier and counts as one AI page, and the estimate shows before it starts. The fix arrives as a draft. Open it with **Review fix**, compare it with the live page, and publish it or discard it. You can also edit the page yourself in the editor.
## On your site
Pages that are up to date at the text readers see show "Verified against the code on" and the date under the title. Hover it for the commit they were checked at. The line goes away when the page changes or the check is more than 30 days old. The site rebuilds after a check when the set of verified pages changes.
---
# Reader signals
Reader signals show what readers need from your docs, ranked. They come from four things readers do:
| Signal | Where it comes from |
| --- | --- |
| Searches that found nothing | The search box on your site |
| Questions the docs couldn't answer | [Ask the docs](https://docs.rimfe.com/platform/ask-the-docs) |
| Not-helpful votes and why | "Was this page helpful?" at the end of each page |
| Problem reports | **Report a problem** at the end of each page |
Open them from the site's **Analytics** tab, under **Reader signals**.
## Reader feedback
After a vote, readers can say more. After "No" they pick why: out of date, hard to follow, missing something or something else. After either vote they can add a comment and, if they want a reply, their email address.
- **Reader feedback**, under the signals, lists what readers sent, newest first, with the page and the reason. Filter it by reason.
- The bars above the list show why readers voted "No".
- A "No" with a reason counts toward the page's signal, even on its own, and the reason and comment show up with the reports.
- Comments and emails are encrypted and kept for 90 days.
### Reader emails
Only owners and admins see a reader's email, with a link to reply. Other members see the comment without it. A reader gives an email only to get a reply, so use it for that.
Reader emails are personal data, and you are responsible for them as the site's owner. Rimfe stores them for you, never uses them for anything else, and includes them only in your workspace's data export. They are deleted after 90 days, or sooner with the site or the workspace.
## Problem reports
Under "Was this page helpful?", readers can select **Report a problem**. They pick what is wrong (something is wrong, out of date, hard to understand, a broken example or link, missing information) and can add details. Text they selected on the page is sent with it.
- A report shows up in Reader signals within minutes: it starts an audit right away, at most one an hour per site, and everyone who can publish gets a notification.
- A page with a report always becomes a signal. Reports weigh more than not-helpful votes.
- Each reader can send a few reports a minute, and a site takes up to 20 an hour.
- The quote and the details are encrypted and shown only in Reader signals and to the agent that drafts the fix.
## How signals are grouped
Searches and questions about the same thing become one signal. For example, "rate limits", "rate limit api" and "What is the rate limit?" become one signal labeled with the wording readers used most. Not-helpful votes and reports become one signal per page.
Signals are ranked by how many readers are behind them. Questions count double, since a reader who asks shows more intent than one who searches. A single search or one stray vote doesn't make a signal.
Each signal shows its counts, such as "18 searches, 4 questions" or "7 of 9 votes not helpful", and the words readers used.
## Audits
Signals are audited every two weeks by default, over the last 30 days. Owners and admins can change this to monthly or turn scheduled audits off. **Audit now** runs one right away. Audits use no AI.
When a scheduled audit, or one a report started, finds something new, everyone who can publish gets a notification and an email.
## Act on a signal
| Action | What happens |
| --- | --- |
| **Draft fix** | An agent drafts the change on your Docs tier: a new section or page for something missing, or a better version of a page readers had trouble with. Open it with **Review fix**, then publish or discard it. |
| **Dismiss** | Hides the signal. It comes back, marked **Back**, if twice as many readers are behind it later. |
| **Move to open** | Brings a dismissed or done signal back. |
A signal moves to **Done** when its fix is published. If readers keep hitting the same thing more than 30 days later, it opens again.
## Traffic
**Analytics**, then **Traffic**, shows the last 7, 30 or 90 days. **Who reads** splits the visits into three groups:
| Group | What counts |
| --- | --- |
| **People** | Page views from readers' browsers |
| **AI agents** | Reads by assistants and AI crawlers, such as ChatGPT, Claude and Perplexity, and every read through the site's MCP server |
| **Search engines and bots** | Search engine crawlers, link checkers, monitors and other automated visits |
Page views, top pages, referrers and countries count people only. **Pages AI agents read** lists the pages agents read most, with how many of those reads were Markdown copies. **AI agents** lists the agents by name.
The group comes from the name a visitor's browser or agent sends with each request, matched against a list of known AI agents and a maintained list of bots. Nothing else about a visitor is read or stored, and every visitor gets the same pages. An agent that hides its name counts under people or bots.
A read is a page, its Markdown copy, `llms.txt`, `llms-full.txt`, the site's skill or a page read through MCP.
### Biggest changes
**Biggest changes** lists the pages whose views by people rose or fell most against the period of the same length before, with both numbers. A page with no views in the earlier period is marked **New**. A page that is no longer on the live site is marked **Removed**. Comparing works for 7 and 30 days. Data is kept for three months, so 90 days has no earlier period to compare with.
### Searches
**Searches** lists what people searched for, with how many results each search found and how often a reader opened one:
| Column | What it shows |
| --- | --- |
| **Searches** | How many times the query was searched |
| **Clicks** | How many times a reader opened a result for it |
| **Click rate** | Clicks per search. A low rate means readers saw results but none looked right. |
| **Opened most** | The page readers opened most for the query |
Only searches of three or more characters are counted. A click records the query, the page that was opened and its place in the list. Clicks from bots are not counted. **Searches with no results** lists queries that found nothing.
### Download as CSV
Each table has **Download CSV**, which downloads it for the selected period, up to 5,000 rows: top pages, biggest changes, searches, searches with no results, feedback, reports, pages AI agents read and AI agents. Anyone who can open Analytics can download, on every Docs tier. A cell that starts with `=`, `+`, `-` or `@` gets a leading `'` so spreadsheet apps don't run it as a formula.
## AI readiness
**Analytics**, then **AI readiness**, checks how ready the live site is for AI agents and gives it a score out of 100. Each check that fails links to the setting or page that fixes it.
| Check | Passes when |
| --- | --- |
| llms.txt is served | The site lists at least one page |
| Every page has a Markdown copy | The site is public |
| MCP server is on | The site is public |
| Sitemap is served | The site is public |
| Pages carry structured data | The site is public |
| AI crawlers are allowed in robots.txt | No known AI agent is blocked from the site |
| Every page has a description | Each public page has its own description or opening sentence, not only the site's |
| No public page is hidden from AI | No listed page of the current version is set to `noindex` |
| API reference is built from your spec | Each OpenAPI spec in **Settings**, **API reference** built its pages. Skipped without a spec. |
Private sites are closed to AI agents, so they have no checklist.
---
# Analytics and chat
Your hosted site can send page views to your own analytics and show your Intercom chat. You enter an ID, and Rimfe adds the provider's standard code. Open **Settings**, then **Analytics and chat**. Owners and admins can change these settings. Saving rebuilds the site.
## Providers
| Provider | What to enter | Waits for consent |
| --- | --- | --- |
| Google Analytics | Measurement ID, like `G-ABC123XYZ` | Yes |
| Google Tag Manager | Container ID, like `GTM-ABC1234` | Yes |
| PostHog | Project API key (`phc_...`) and the US or EU cloud | Yes |
| Plausible | The site's domain in Plausible, and the address of a self-hosted Plausible if you run one | No |
| Fathom | Site ID | No |
| Intercom | App ID and the region of your workspace | Yes |
Only these providers are supported, and only by ID. Sites can't add their own scripts, styles or HTML.
Providers load on every page and count each page a reader opens, including pages opened from the sidebar without a full reload:
- Google Analytics counts them through enhanced measurement's page changes based on browser history events, which are on by default.
- Google Tag Manager gets a `rimfe.page_view` event in the data layer, with `page_path`, on each page change.
- PostHog, Plausible and Fathom count page changes on their own.
Tag Manager's container can load only what the site allows: tags from Google Analytics and Tag Manager. Custom HTML tags and other vendors' tags are blocked.
## Consent
**Ask readers first** is on by default. Google Analytics, Tag Manager, PostHog and Intercom then wait until the reader chooses **Accept** on a bar at the bottom of the page. **Decline** keeps them off. Plausible and Fathom set no cookies, so they load without asking.
The choice is kept on that browser. **Cookie settings** in the footer opens the bar again. A reader who declines after accepting has the providers' cookies cleared.
You can change the bar's sentence under **Consent message**. It is one line of plain text, up to 160 characters.
Nothing loads, and no bar shows, for readers whose browser sends Do Not Track or Global Privacy Control. Nothing loads in the Customize preview either.
## Private sites
Private sites load no analytics or chat. Your settings are kept and apply again if the site becomes public.
## Privacy
You are responsible for meeting each provider's privacy obligations, such as your privacy policy, a data processing agreement and the consent your readers' countries require. Rimfe's own [reader analytics](https://docs.rimfe.com/platform/reader-signals#traffic) keep working either way and use no cookies.
---
# Changelog page
The changelog lists what changed in your product, newest first. Each entry has its own page, a date and tags. The list has filters for each tag, and readers can follow it in an RSS reader.
## Turn it on
Open **Settings**, then **Navigation**. Under **Changelog**, turn the switch on, give the page a title and choose **Save changelog**.
The changelog lives at `/changelog`, and its feed at `/changelog/rss.xml`. The changelog page and each entry show an RSS button beside **Copy page**. Rimfe adds the changelog page if the folder doesn't have one, and the site rebuilds.
To show it as its own tab, add a section for `/changelog` under **Sections**. See [Sections](https://docs.rimfe.com/platform/editor#sections).
## Write an entry
On the **Content** tab, choose **New changelog entry**:
| Field | Notes |
| --- | --- |
| **Title** | A short headline, such as "Faster builds". |
| **Date** | Today, unless you change it. Entries are listed by this date. |
| **Tags** | Any of **New**, **Improved**, **Fixed** and **Breaking**. |
| **What changed** | Markdown, such as a short list. |
Choose **Publish** to put it live after the next build. It goes through the same checks as any publish. Choose **Edit first** to open it in the editor as your draft.
## Draft entries from pull requests
On **Automations**, **Draft the changelog** writes a new entry from the pull requests merged since the newest entry. Set **Since** to start from a date of your own. Without an entry or a date, it looks back 30 days and covers up to 100 pull requests. Pull requests already listed in an entry are skipped, and so are pull requests behind a feature flag that isn't released. The draft comes with a title and tags. Review it and publish it like any draft. It runs on the Docs add-on and needs the changelog turned on and a linked code repository.
## How entries are stored
Each entry is a page in the `changelog` folder with `date` and `tags` in its frontmatter:
```mdx
---
title: "Faster builds"
date: 2026-11-14
tags: [improved, fixed]
description: "Builds take half the time."
---
- Builds take half the time.
- Fixed a crash when a page had no title.
```
A page in the folder without a date (in the frontmatter, or at the start of the file name, such as `2026-11-14-faster-builds.mdx`) stays a plain page and the build warns about it. Hidden and unlisted entries are left out of the list and the feed. The feed carries the 50 newest entries, and the sidebar shows the 25 newest.
Turning the changelog off keeps the pages. They become plain pages again.
To keep a short changelog on one page instead, such as release notes for an SDK, use [updates](https://docs.rimfe.com/platform/components#updates).
---
# AI automations
Agent tasks do the chores of keeping docs current. They are on the site's **Automations** tab and run on your [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers). **Recent tasks** lists each one with its status.
Every task produces drafts. Nothing goes live until you review and [publish](https://docs.rimfe.com/platform/publishing-and-builds).
People who can publish the site can start tasks. A member can start one only when the workspace lets members start AI work. A site runs one task of each kind at a time.
## Tasks
| Task | What it does |
| --- | --- |
| **Ask the agent** | Describe a change. The agent drafts it for you to review. |
| **Verify a page** | Checks a page against your code and drafts a fix. To see every page's status, use [Verification](https://docs.rimfe.com/platform/verification). |
| **Draft the changelog** | Writes a new [changelog](https://docs.rimfe.com/platform/changelog) entry from the pull requests merged since the last one. |
| **Translate** | Drafts translations of the pages you choose. The site needs a second language first. |
| **Generate docs from the code** | Proposes an outline, then drafts the pages. See [Generate docs from the code](https://docs.rimfe.com/platform/generate-from-code). |
| **Style** | Checks published pages against your writing rules and lists the pages that break them. See [Style check](#style-check). |
Verify, changelog and generation need a code repository [linked to the site](https://docs.rimfe.com/platform/changes-from-pull-requests#link-code-repositories). Verify checks names against every linked repository. Changelog and generation read the first one linked. **Ask the agent** reads the code index of up to three linked repositories: the code your request names and those repositories' own docs, at the commit they were indexed. A repository whose index is not ready is skipped, and the task says so.
## Style check
**Style** reads the site's published pages against **How to write** in [Agent instructions](https://docs.rimfe.com/platform/agent-instructions). It needs those rules first. A page unchanged since its last check under the same rules is skipped and counts nothing. Each run checks up to your tier's pages per task, and the next run picks up the rest.
**Style report** lists the pages with findings, the most first. Open one to see its findings in the editor's **Check style** and apply the suggestions to your draft.
## Translate with a glossary
Add terms to the **Glossary** on the Automations tab, and the agent translates them the same way every time. Translated pages are drafts like any other.
## Cost and limits
Tasks that call a model run on your Docs tier, on Rimfe's models, and never use your AI key or included reviews. Each page a task writes, rewrites, translates or checks for style counts as one AI page, and **Settings**, then **Billing** shows how many the cycle has used. When they are used up, tasks pause until the next cycle. Nothing is charged beyond the tier price. A task works on up to 10 pages on Docs Lite, 20 on Docs Plus and 40 on Docs Pro.
Without a tier, AI automations show **Runs on Docs** with an **Add Docs** link. Owners and billing managers choose a tier under **Settings**, then **Billing**, on any plan. See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers).
---
# Agent instructions
Agent instructions shape everything Rimfe's agents write for a hosted site: agent tasks, generated pages, changelog entries and fixes from [Verification](https://docs.rimfe.com/platform/verification) and [Reader signals](https://docs.rimfe.com/platform/reader-signals). Open **Settings**, then **AI**, then **Agent instructions**.
| Setting | What to put there |
| --- | --- |
| **About the product** | What the product does, who reads the docs and the ideas they need. Up to 2,000 characters. |
| **How to write** | Tone and format, such as "Address the reader as you" or "Sentence-case headings". Up to 2,000 characters. |
| **Terms** | Up to 100 words to use. Each takes up to 10 words to avoid, separated by commas, such as **sign in** instead of "log in, login". A word can be avoided under only one term. |
Only owners and admins can save the instructions. Everyone else can read them.
## How terms are applied
- **Agent drafts** use the term instead of the avoided words. Anything that slips through is replaced before the draft reaches you. Code, inline code, link addresses and URLs are never changed. A word is only matched whole, so `loginButton` is left alone when "login" is avoided.
- **Reviews** list the avoided words on each page, with the line and the word to use. On your own drafts, **Fix terms** replaces them in one go. Someone else's draft is theirs to change: open the page in the editor to change it in your own draft.
- Avoided words never block publishing.
Translations keep their source wording and use the translation glossary instead. See [AI automations](https://docs.rimfe.com/platform/ai-automations).
## Style check
**Check style** reads a page against **How to write** and lists each place that breaks a rule: the line, the exact words, the rule they break, why, and a suggested rewrite. In the editor it is in the top bar. In a review it sits under the page's terms.
- **Apply** puts one suggestion into your draft. **Apply all** puts in every one. A page without a draft of yours gets one started from the published page. Nothing publishes by itself.
- A suggestion applies only where its words are still on the page unchanged. Edit the page after a check and the findings that still stand stay listed. Check again to read the new text.
- Code, inline code, link addresses, front matter and component settings are never findings. A suggestion is plain text: it never adds a link, a component or code.
- Someone else's draft is theirs to change. Its findings are listed without **Apply**.
- Each check counts one AI page. A page whose text and rules have not changed since its last check answers at once and counts nothing.
- Without **How to write** there is nothing to check, and nothing is counted.
To check every published page at once, use **Style** on the Automations tab. See [AI automations](https://docs.rimfe.com/platform/ai-automations#style-check).
---
# Import and export
Moving in and out is part of the product. Imports arrive as a draft for review, and exports are plain Markdown and MDX.
## Import
Open the site's **Settings**, then **Advanced**, and choose **Import**. A new site with no pages also shows **Import** on its **Content** tab. Under **Docs tool**, choose the product or leave **Detect it**. Then choose **From**:
- **A repository.** Pick a repository in your workspace. Rimfe finds the docs folder and fills it in; change it if it guessed wrong. The pages are copied once and the repository is not linked to the site.
- **A zip.** Upload a ZIP of up to 50 MB.
- **A website.** Paste the address of a public docs site, such as `https://docs.example.com/guides`. See [Import from a website](#import-from-a-website).
Pages and images come in for review before anything goes live. Choose **Review drafts** on the task, check them, then [publish](https://docs.rimfe.com/platform/publishing-and-builds).
Importing and exporting need a Docs tier, like any hosted site, and are for workspace owners and admins. They use no AI pages.
## What each tool carries over
| Tool | Recognised by | Carried over |
| --- | --- | --- |
| **Mintlify** | `docs.json` or `mint.json` | Navigation with group tags and hidden pages, versions, languages, branding (colours, logo, fonts, code theme, social image), light and dark mode, background, banner, header links and GitHub button, footer columns, anchors as sidebar links, the page menu, variables, analytics, redirects, OpenAPI specs, page settings from front matter, file trees and the components Rimfe can render. Icons come along: the icon library, page, group, tab and anchor icons, icons on components and ``, with `iconType` picking the Font Awesome style on a Font Awesome site. An icon from a library other than the site's keeps that library's prefix. Files in `.mintignore` and Mintlify's default ignore list are skipped. Custom CSS and scripts are dropped. |
| **GitBook** | `SUMMARY.md` or `.gitbook.yaml` | Navigation from the summary, page icons as Font Awesome icons, and hints, tabs, steppers, columns, embeds, includes and card tables as blocks. Covers and layout settings are dropped. |
| **Docusaurus** | `docusaurus.config` or `sidebars` | Sidebars and categories, versions, locales, front matter, admonitions, tabs and code highlights. |
| **Fumadocs** | `source.config.ts`, or `meta.json` beside `.mdx` pages | Pages and the navigation from `meta.json`, with page and folder icons. A card's `icon={}` becomes the Lucide icon of that name. |
| **Plain Markdown** | Anything else | The files, with the folders as navigation. |
## What to check afterwards
Anything that could not be carried over shows as a note under the page in **Review drafts**, with what went wrong. A cause shared by many pages is one note with a page count. Common cases:
- A component with no matching block stays as written.
- A Mintlify setting with no match is named once: a custom theme, a font file, a code theme Rimfe does not offer, an analytics tool it does not support, custom meta tags, CSS and scripts.
- An icon given as an image or SVG file is left out, since icons are picked by name. So is an icon whose name has characters other than letters, digits and hyphens once underscores and spaces become hyphens; the link, group or tab keeps everything else. Icons on code blocks are removed. An icon name none of the sets has draws nothing, and the build warns about it.
- Mintlify pages that are hidden or missing from the navigation come in unlisted: reachable by link, out of search.
- A Mintlify file tree that cannot be converted whole stays as written.
- A page missing from the GitBook summary is listed.
- A link that cannot be resolved is a warning.
- MDX that does not parse is listed with its location.
## Import from a website
Use this when the docs are only online, with no source files to hand. Rimfe reads the published pages and turns them back into Markdown.
Confirm that you own the content or have the right to copy it. You are responsible for what you import, as the [terms](https://rimfe.com/terms#imported-content) say.
Rimfe reads only pages on the same site, under the address you give. `https://docs.example.com/guides` brings in the guides and nothing else. The address must be public, use `https://`, and need no sign-in.
| Docs tier | Pages per import |
| --- | --- |
| Lite | 100 |
| Plus | 300 |
| Pro | 1,000 |
| Enterprise | 2,000 |
Rimfe first lists the pages under the address, and the task shows how many it found. If there are more than your plan imports, the import stops before any page is read and says how many it found, for example: *Found 1,240 pages on docs.example.com; your plan imports up to 300 pages. Import one section at a time.* Give a deeper address, such as `/guides`, then import the next section.
Otherwise the task shows the pages converted while it runs. A workspace can start 5 website imports a day and one at a time per site, and only one import can read the same website at a time. Website imports also share a daily page limit; once it is reached, try again the next day. A page whose address cannot become a file path, or whose text is longer than 500,000 characters, is left out with a warning.
What comes over:
- Each page's text, with its title from the first heading and its description from the page.
- Navigation folders from the address paths, in the order the site links to them.
- Links between imported pages, rewritten to point inside the site. Other links stay as they were.
- Images on the pages, copied into the site. An image that cannot be copied keeps its old address and gets a note.
- Redirects from each old path whose new path differs.
Before you publish, check:
- **Navigation.** Folder names and order come from addresses, so rename or reorder them where needed.
- **Leftover page parts.** Rimfe drops common menus, footers and "Was this helpful?" blocks. Anything else it missed stays in the page.
- **Missing pages.** A page no link or sitemap points to is not found. If the summary says the import ran out of time, import a smaller section, such as `/guides`, then the next one.
- **Interactive parts.** Tabs, code groups and widgets usually arrive as plain text and code blocks. Rebuild them with [components](https://docs.rimfe.com/platform/components) where it helps.
## Export
Open **Settings**, then **Advanced**, and choose **Download a copy**. Rimfe prepares a ZIP of every page, image and the site's settings, and the **Automations** tab shows **Download zip** when it is ready. The ZIP imports back into a Rimfe site as it is.
Starting from Mintlify, GitBook or Docusaurus without moving anything? Rimfe reviews those docs in your repository too. See [Docusaurus](https://docs.rimfe.com/guides/docusaurus).
---
# Custom domains
Every site has a Rimfe address, `your-address.rimfe.page`. With any Docs tier you can serve it from your own domain instead. A site has one active address: once your domain is live, the Rimfe address redirects to it.
## Add a domain
### Add the domain
Open the site's **Publish** tab, then **Domains**, and choose **Add domain**. Enter a subdomain such as `docs.example.com`. An apex domain such as `example.com`, an IP address and a Rimfe address are refused. A domain that contains a bank, payment or big consumer brand name, or a non-ASCII (`xn--`) label, is added but waits for Rimfe to review it before any records show.
### Add the CNAME record
The new domain shows one record to add at your DNS provider:
| Record | Name | Value |
| --- | --- | --- |
| **CNAME** | Your domain | The target shown on the page |
Use the copy buttons so the values are exact. That record routes the domain to Rimfe and gets its certificate issued.
### Wait for the certificate
Choose **Check now** once the record is in place. DNS changes can take a while to spread, and Rimfe also checks every week. The domain moves from **Waiting for DNS** to **Issuing certificate** to **Live**. If Cloudflare reports a problem, such as a CAA record that blocks the certificate authority, the page shows it.
## Move a live domain without downtime
If the domain already serves another site, open **Move without downtime** under the domain. Add what it lists first: a TXT record that proves the domain is yours, and the certificate's TXT record or file on the site that serves the domain today. Change the CNAME once the domain shows **Issuing certificate** or **Live**, so the certificate is ready before traffic arrives.
## Statuses
| Status | Meaning |
| --- | --- |
| **Pending** | Waiting for the CNAME or for the certificate. |
| **Live** | The domain serves the site over HTTPS. |
| **Suspended** | The plan no longer includes custom domains. The domain stops serving 14 days after a downgrade and comes back after an upgrade. |
| **Failed** | The record was not found within 7 days. Check it, then remove the domain and add it again. |
A domain whose CNAME stops pointing at Rimfe is released, so whoever controls it can connect it again.
## When Rimfe asks for a TXT record
Adding a domain shows a TXT record to prove it is yours when:
- another workspace added the domain but never connected it,
- another workspace used the domain before, or
- the domain already points at Rimfe, for example because a CNAME was left in place after the domain was removed.
Add that record, then add the domain again. Removing a domain from Rimfe does not remove its CNAME, so delete the record at your DNS provider too.
## Limits
A site has one custom domain. Once it is live it is the site's only address:
- The Rimfe address answers every path with a permanent redirect to the same path on your domain, so old links keep working.
- Canonical links, social tags, the sitemap, `robots.txt`, `llms.txt` and feeds use your domain. They change the moment the domain goes live, with no rebuild.
- A domain that is still waiting for DNS changes nothing: the Rimfe address keeps serving until it is live.
Remove the domain with **Remove** and the Rimfe address serves the site again. To use another domain, remove this one first. Each site has its own domain.
Custom domains come with every Docs tier. Without one, **Publish**, **Domains** links to **Billing**.
## Serve under a path
You can put a public site in a folder of your own website, like `https://example.com/docs`, instead of on its own domain. Your website forwards the folder to Rimfe with a rewrite, and readers never leave your domain.
1. Open **Domains** and, under **Serve under a path**, enter the public address, such as `https://example.com/docs`: https, with one to three lowercase folders and no query or port. Choose **Save**. To go back, clear the field and choose **Serve at its own address**. The site rebuilds so every page, image and link starts with `/docs`.
2. Add the rule Rimfe shows for your host. The rules forward `/docs` and everything under it to the same path on your Rimfe address:
Add a Worker on the route `example.com/docs*`:
```js
export default {
async fetch(request) {
const url = new URL(request.url);
url.hostname = "your-site.rimfe.page";
return fetch(new Request(url, request));
},
};
```
In `vercel.json`:
```json
{
"rewrites": [
{ "source": "/docs", "destination": "https://your-site.rimfe.page/docs" },
{ "source": "/docs/:path*", "destination": "https://your-site.rimfe.page/docs/:path*" }
]
}
```
In `next.config.ts`:
```ts
import type { NextConfig } from "next";
const config: NextConfig = {
async rewrites() {
return [
{ source: "/docs", destination: "https://your-site.rimfe.page/docs" },
{ source: "/docs/:path*", destination: "https://your-site.rimfe.page/docs/:path*" },
];
},
};
export default config;
```
3. Choose **Check**. Rimfe asks your folder which site answers, and says whether it works or what to fix.
Links you write as `/guides/install`, in pages or in settings, start from the docs folder, so they keep working. Your Rimfe address answers at `/docs` too, and its root forwards there. Canonical links, the sitemap and `llms.txt` use your public address.
Only public sites can be served under a path. Readers of a private site sign in on its own address. To make the site private, clear the public address first. A site is served under a path or on a custom domain, not both: remove the domain before you set a path.
### If it doesn't work
| What you see | What to fix |
| --- | --- |
| A 404 at `/docs` itself | Add a rule for the folder alone, not only for what's under it. |
| Pages without styles, search or images | The proxy must forward everything under the folder, including the `/docs/_rimfe/` paths. |
| A redirect loop | Use a rewrite, which keeps the address, not a redirect. |
| Old pages after a change | Purge your proxy's cache for the folder. |
Visitor analytics and per-visitor limits see your proxy's network rather than each reader.
---
# Private docs
A private site can be opened only by your workspace's members and the readers you invite. It needs Docs Plus or Docs Pro.
## Make a site private
Turn on **Private site** when you [create the site](https://docs.rimfe.com/platform/create-a-site), or open **Settings**, then **Access**.
## Choose how readers get in
Under **Settings**, **Access**, **How readers get in** has three choices:
| Choice | How it works |
| --- | --- |
| **Invited readers** | Readers you invite sign in with a link sent to their email. See [Invite readers](#invite-readers). |
| **Shared password** | Anyone with the password can read. The site asks for it on its own page, and a reader enters it once per device every 12 hours. |
| **Your app** | Your own backend signs readers in with a short-lived token, so the people who use your product read the docs without a second account. See [Sign readers in from your app](#sign-readers-in-from-your-app). |
Your team can always sign in, whichever you choose.
Passwords are 8 to 200 characters. To set the first one, choose **Set password**. To change it, enter a new one and choose **Change password**. Everyone who used the old password is signed out at once. The password is stored hashed, and Rimfe can't show it to you again.
A visitor gets 10 tries a minute. Readers who got in with the password have no groups, so pages limited to groups stay locked for them.
## Sign readers in from your app
With **Your app**, a visitor who isn't signed in goes to your login page. After your app signs them in, your backend signs a token and sends them back to the docs, which open for 12 hours.
### Create a signing key
Under **Settings**, **Access**, choose **Your app**, then **Create key**. Your browser makes the key pair and shows the private key once. Store it as a secret in your backend, with its key id (`kid`). Rimfe keeps only the public key, so nothing on Rimfe's side can sign a reader in.
### Set your sign-in page
Enter your login page under **Sign-in page**, such as `https://app.acme.com/docs-login`. It must use `https`. Rimfe sends visitors there with the page they wanted as `redirect`, such as `?redirect=/guides/billing`. Without a sign-in page, visitors get the Rimfe sign-in, which only your team can use.
### Sign a token and redirect
When the reader is signed in to your app, sign a token with the private key and redirect to `/_rimfe/auth/token` on your docs site, with the token after `#`. This example uses [`jose`](https://github.com/panva/jose) in Node.js:
```ts title="docs-login.ts"
import { importPKCS8, SignJWT } from "jose";
const key = await importPKCS8(process.env.DOCS_READER_KEY, "ES256");
app.get("/docs-login", requireUser, async (req, res) => {
const token = await new SignJWT({ groups: ["customers"] })
.setProtectedHeader({ alg: "ES256", kid: process.env.DOCS_READER_KID })
.setSubject(req.user.id)
.setAudience(process.env.DOCS_SITE_ID)
.setIssuedAt()
.setExpirationTime("60s")
.setJti(crypto.randomUUID())
.sign(key);
const callback = new URL("/_rimfe/auth/token", "https://docs.acme.com");
callback.searchParams.set("redirect", String(req.query.redirect ?? "/"));
callback.hash = token;
res.redirect(callback.toString());
});
```
The settings show the same code with your site id and key id filled in. Then choose **Save** to switch the site to **Your app**.
The token's claims:
| Claim | Required | What it does |
| --- | --- | --- |
| `sub` | Yes | The reader's id in your app, up to 200 characters. |
| `aud` | Yes | Your site id, shown in the code sample in the settings. A token for another site is refused. |
| `iat`, `exp` | Yes | When the token was signed and when it expires. A token can be valid for at most 5 minutes; 60 seconds is plenty. |
| `jti` | Yes | A unique id. Each token works once. |
| `groups` | No | Names of your [reader groups](#groups), such as `["customers"]`. Names that don't match a group are ignored. Tokens can't grant your team's access. |
| `expiresAt` | No | A time, in seconds since 1970, to end the session sooner than 12 hours. |
The header must use `ES256` with the `kid` of one of the site's keys. Any check that fails shows the same "Sign-in didn't work" page, with a link back to your sign-in page. A visitor gets 10 sign-ins a minute.
To rotate a key, create a second one, deploy it to your backend, then revoke the old one. A site keeps two keys at most. Revoking a key, or switching away from **Your app**, signs out the readers who used it within about a minute. Token sign-in works on private sites only.
## Invite readers
Open **Analytics**, then **Audience** (or choose **Manage readers** under **Settings**, **Access**), and choose **Invite a reader**. Owners and admins manage readers. Enter an email address, and pick groups if you have any. Your team always has access and does not need an invite.
The reader gets an email with a link that is valid for seven days. After that, a reader signs in by entering their email on the site and choosing **Email me a link**. Rimfe sends a sign-in link that works for 15 minutes, and only to addresses that were invited. Readers do not use a seat or a Rimfe account.
From the row menu in the table you can **Resend invite** to a reader who has not signed in yet, **Change groups**, or **Remove access**, which signs the reader out.
## Groups
Create groups on the same page, such as `customers` or `partners`. A page limited to groups can be read only by readers in one of them.
To limit a page, open its settings in [the editor](https://docs.rimfe.com/platform/editor#page-settings) and choose the groups under **Reader groups**. A page with no group limit is visible to every reader. With no groups at all, readers see every page that is not limited.
Once you pick a group, **Others see** decides what happens for readers outside them:
| Option | What they see |
| --- | --- |
| **That it's for some readers, with a sign-in** (default) | The page is in the sidebar with a lock. Opening it says it's for some readers only, with **Sign in**. Its text is never shown. |
| **Nothing: it's left out of the sidebar and search** | The page is left out of the sidebar and search, and its address shows "not found". |
### Limited pages on a public site
A public site can have limited pages too, so you can publish open docs with a few pages for signed-in customers. Invite those readers under **Analytics**, **Audience**: the readers you invite and their groups work the same way on a public site. A visitor who opens a limited page gets **Sign in**, and after signing in returns to the page. Everything else on the site stays open to everyone. Inviting readers needs Docs Plus or Docs Pro.
Your team signs in the same way to read pages limited to workspace members, such as the pages Rimfe writes for the **Internal** audience.
## Page visibility
Page visibility works on private sites too. **Hidden** pages are not published, unless they are limited to groups, and then only those groups can open them. **AI only** pages have no page of their own for readers, but a signed-in reader can still open their `.md` address, and Ask the docs uses them. See [the editor](https://docs.rimfe.com/platform/editor#page-settings).
## Ask the docs on a private site
[Ask the docs](https://docs.rimfe.com/platform/ask-the-docs) answers a reader only from pages that reader may see, plus pages marked **AI only**.
---
# For your readers
Every page of a hosted site comes with these. There's nothing to turn on.
In the image:
1. Groups for the top folders.
2. Search with Cmd K, Ctrl K or /.
3. Copy page as Markdown.
4. Verified against the code.
5. The page's sections.
## Finding a page
The sidebar shows the top folders of your docs as groups that are always open, so a reader sees the shape of the docs on arrival. Folders inside a group fold, and their pages hang on a thin line that marks the page being read. Above each page's title is the group it belongs to, and on the right the page's sections, with the one being read marked.
The button at the left of the header hides the sidebar, so the page gets the full width, and brings it back. The site remembers the choice on that browser.
On a phone, a bar under the header shows where the reader is and opens the menu. On a site with [sections](https://docs.rimfe.com/platform/editor#sections), the menu starts with a list to switch section.
## Search
CtrlK (⌘K on a Mac) or / opens search. The arrow keys move through the results and Enter opens one.
- Results are grouped by page. Under each page's title is where it sits in the docs and a line of its text, with the sections that matched below it.
- API operations show their method, and changelog entries say **Changelog**.
- When the search is a page's exact title, **Jump to** that page comes first.
- On a site with [sections](https://docs.rimfe.com/platform/editor#sections), the buttons above the results search one section or all of them.
- With an empty search box, the last five searches on that browser come first. **Clear** forgets them.
- **See all results** opens the results page at `/search?q=`, which lists every result ten at a time and works without JavaScript. Search engines don't index it.
- Pages can carry [search keywords](https://docs.rimfe.com/platform/editor#search-keywords) that match without showing on the page.
Results only list pages the reader may open, in the language and version being read.
## Moving around
Under each page is the day it last changed.
Where the sections column doesn't fit, on narrow screens and on pages with a [wide, full or centered layout](https://docs.rimfe.com/platform/editor#page-layout), a bar at the top of the page shows the section being read and how far down the page the reader is. Tap it for the list of sections.
Hover a heading and choose the link button beside it, or tab to it, to copy the section's full address. Scroll back up after going a couple of screens down and a button at the bottom right takes you to the top.
A site can list up to four [related pages](https://docs.rimfe.com/platform/editor#related-pages) under each page, before **Previous** and **Next**.
An address with no page shows "Page not found" inside the site, with its sidebar and search, and up to five pages whose address or title look like the one asked for. Only pages the reader may open are suggested. When another page of the site led there, **Report a broken link** tells your team which page has the broken link. A missing Markdown address, such as `/guides/instal.md`, answers in Markdown with links to the Markdown copies of the pages it may have meant, so agents can follow them.
## Light and dark
The buttons in the header choose System, Light or Dark; on a phone they're in the menu. The site remembers the choice on that browser. A site its team keeps in one mode has no buttons. See [color mode](https://docs.rimfe.com/platform/customize#colors).
A site can show a banner above the header. When it has a close button, a closed banner stays closed on that browser until its text changes. A site can also tuck its header away while the reader scrolls down. It comes back when the reader scrolls up or tabs into it.
## Copy page and open in a chat
Next to each page's title, **Copy page** puts the page on the clipboard as Markdown, ready to paste into an AI chat or an issue. CtrlC (⌘C on a Mac) does the same when no text is selected. Its menu has:
| Item | What it does |
| --- | --- |
| **View as Markdown** | Opens the page as Markdown. Every page also answers at its address plus `.md`. |
| **Open in ChatGPT** | Starts a ChatGPT conversation that reads the page. |
| **Open in Claude** | Starts a Claude conversation that reads the page. |
| **Open in Perplexity** | Starts a Perplexity search that reads the page. |
| **Connect to Cursor** | Adds the site's [MCP server](#for-ai-agents) to Cursor. |
| **Connect to VS Code** | Adds the site's MCP server to VS Code. |
| **Copy MCP address** | Copies the MCP server's address. |
| **Download API spec** | On an API reference page, saves its OpenAPI file. |
The arrow keys move through the menu and Escape closes it. On a [private site](https://docs.rimfe.com/platform/private-docs) the chat links and the MCP items are left out, since chats and editors can't sign in to read the page. Copy page still works. You choose which items show in **Settings**, under **Page menu**.
On the [changelog](https://docs.rimfe.com/platform/changelog) and its entries, an RSS button sits beside **Copy page**.
## Ask the docs
On a site with a [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers), a bar at the bottom of each page reads "Ask about" and the page's title. A question opens the Ask panel beside the page, or full screen on a phone, with an answer from the site's pages and a link to each source. Readers can ask a follow-up, stop an answer, copy it or ask again.
Readers can also ask from search, from selected text with **Ask about this**, from the Ask button on a code block, or with CtrlI (⌘I on a Mac). The conversation stays while they move between pages. See [Ask the docs](https://docs.rimfe.com/platform/ask-the-docs).
## Verified against the code
A page that matched the code at its last [page check](https://docs.rimfe.com/platform/verification) shows "Verified against the code on" the date under its title. Hover it for the commit. The line goes away when the page changes or the check is more than 30 days old.
## Images and links
Readers can click an image, or press Enter on it, to see it full size, then download it or copy it. Escape, **Close** or a click outside closes it. Images that are links open the link instead.
Links to other sites open in a new tab, marked with a small arrow. Links to pages of your own site stay in the tab.
## Page feedback
"Was this page helpful?" sits at the end of each page. After a vote, readers can say more, or select **Skip** to keep just the vote:
- After **No**, they pick why: out of date, hard to follow, missing something or something else.
- After either vote, they can add a comment.
- If they want a reply, they can leave their email address. The form says the site's owner will see it.
**Report a problem** stays under the vote for a specific mistake. What readers send shows up in [Reader signals](https://docs.rimfe.com/platform/reader-signals#reader-feedback).
## Pages written with AI
A page whose text Rimfe's agents drafted carries a machine-readable marker, ``, once the draft is published. Readers don't see it.
## Fair use
Each reader can search, ask, vote and report up to a limit per minute. Over it, the site asks them to try again in a minute.
## For AI agents
Public sites serve an MCP server at `/mcp`, for example `https://your-site.rimfe.page/mcp`. Agents and AI editors can search the docs and read pages through it, seeing only what readers see. `llms.txt` and `/.well-known/ai-catalog.json` point to it. Private sites have no MCP server.
Agents find the rest from any page of a public site:
| What | Where |
| --- | --- |
| `Link` header | Every page answers with links to its Markdown copy, `llms.txt`, `llms-full.txt`, the skill index and the MCP server. The page's `` has the same links. |
| `X-Llms-Txt` header | The address of `llms.txt`. |
| `/skill.md` | An [Agent Skill](https://agentskills.io) for the site: how to read the docs, search them and reach the MCP server, with the main pages. |
| `/.well-known/agent-skills/index.json` | The skill index from the [Agent Skills discovery proposal](https://github.com/cloudflare/agent-skills-discovery-rfc), pointing to the skill with its digest. |
If your docs have a page at `/skill`, `/skill.md` is that page's Markdown copy instead.
Every visitor gets the same pages, people and agents alike. Private sites serve none of these. See which agents read your docs under [Traffic](https://docs.rimfe.com/platform/reader-signals#traffic) and how ready the site is under [AI readiness](https://docs.rimfe.com/platform/reader-signals#ai-readiness).
---
# Ask the docs
Ask the docs lets readers type a question on your hosted site and get a short answer written only from your published pages, with links to the pages it used. It is on for every site with a [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers). There's nothing to switch on.
To ask about a repository's docs and code from Slack or the dashboard instead, see [Ask Rimfe](https://docs.rimfe.com/how-it-works/ask-rimfe).
## Settings
Open the site's **Settings**, then **AI**, find **Ask the docs** and set:
- **Questions per day.** The most questions the site answers in a day, from 1 to 100000. Leave it empty to use the default of 200. Each visitor can also ask up to 20 questions an hour.
- **Starter questions.** Up to four questions, one per line and up to 80 characters each. Readers see them under **Summarize this page** when the panel opens.
- **Support label** and **Support link.** Where readers go when Ask can't help, such as `https://acme.com/support` or `help@acme.com`. The link shows under an answer the docs don't cover and when the site's questions run out.
- **Embedding sites.** One site per line that may embed the question box, such as `https://example.com`. Use the https address with no path.
Choose **Save changes** when you're done.
## What readers get
At the bottom of every page, a bar reads "Ask about" and the page's title. A question opens the Ask panel at the right of the page. On a phone, the panel fills the screen.
- An answer built from the closest passages of your published pages, with a link to each page it used. Passages from the page the reader is on come first when they fit the question.
- "The docs do not answer this yet" when the pages do not answer, and for questions that are not about your product.
- Where two pages disagree, an answer that says so.
- **Ask a follow-up** under each answer. The last two questions and answers go with it, so "and on Windows?" works.
- **Copy** and **Regenerate** for each answer, and **Was this helpful?** with **Yes** and **No**.
- **Stop** while an answer is being written, and **Retry** when one fails.
Under the question box, readers see that answers are AI-generated and can be wrong.
The panel's header starts a new conversation, copies the conversation as Markdown, widens the panel to the full window and closes it. The conversation stays while the reader moves between pages and ends when they close the tab.
Questions are limited to 500 characters. On a [private site](https://docs.rimfe.com/platform/private-docs), a reader is answered only from pages they may see, plus pages marked **AI only**.
## Other ways to ask
| Where | What it does |
| --- | --- |
| Search | Type three or more characters and the first row is **Ask** with the query. |
| Selected text | **Ask about this** appears beside the selection and quotes it in the question. |
| Code blocks | The Ask button beside **Copy** quotes the code in the question. |
| CtrlI (⌘I on a Mac) | Opens the panel, quoting the selection if there is one. |
| A link with `?ask=` | Opens the panel with the question filled in, for the reader to send. For example `https://your-address.rimfe.page/quickstart?ask=How%20do%20I%20log%20in%3F`. |
## Embed it on your own site
List the origin of your own site under **Embedding sites**, then add the script to its pages:
```html
```
Use your site's address, or its custom domain. The launcher opens a panel for search and questions, and answers still come from this site's pages. The script works only on the sites you listed.
The embedded panel searches and answers for public sites only. On a [private site](https://docs.rimfe.com/platform/private-docs) it can't use the reader's sign-in, so it says the docs are private and links to the site, where signed-in readers search and ask as usual. It never shows private pages to a visitor who isn't signed in.
## Cost
Answers run on your [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers), on Rimfe's models, and never on your AI key. Each answer counts as one of the tier's Ask answers: 250 a month on Docs Lite, 1,000 on Docs Plus and 3,000 on Docs Pro. A follow-up is one answer, and a stopped answer doesn't count. When the answers are used up, or at the workspace's daily limit on AI calls, the panel says Ask is not available on this site. Without a Docs tier, the site has no Ask.
## Limits
- Answers use the latest build, so publish a page before expecting it in answers.
- It is a documentation question box, not a support chat, and there is no human handoff. Use the support link to send readers to your team.
---
# Configuration
You configure Rimfe per repository. Most settings live in the dashboard. Your docs scope (which files are docs, which paths to ignore, which code maps to which pages, and your review rules) can also live in a `.rimfe.json` file in the repository.
With no configuration at all, Rimfe treats every docs file (`**/*.{md,markdown,mdx,rst,adoc,asciidoc}`, minus changelogs) as documentation and reviews pull requests when they open and on every new commit.
## Two places to configure
Every setting. Open a repository, then choose Settings. Only workspace owners and admins can change settings.
Docs scope, review rules, translations and docs coverage limits, versioned with your code.
### Dashboard settings
Open **Repositories**, pick a repository, then open the **Settings** tab. It has four tabs, each with its own **Save changes**:
- **Docs**: docs targets, **Check setup**, docs globs, code-to-doc mappings and **Test the scope**. See [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository).
- **Reviews**: when checks run, how results appear on GitHub, and commands and docs PRs. See [Review triggers](https://docs.rimfe.com/configuration/review-triggers).
- **Quality**: docs coverage limits and audits.
- **Advanced**: where the docs scope comes from (**.rimfe.json**), ignore paths and review rules.
Changes apply to the next review. They do not change reviews that already ran.
### The `.rimfe.json` file
Add a file named `.rimfe.json` at the root of the repository that the pull requests are opened in. `npx @rimfe/cli init` writes a starter file from the docs it finds (see [the CLI](https://docs.rimfe.com/reference/cli#set-up-a-repository)). It holds your docs scope (`docsGlobs`, `docsIgnorePaths`, `ignorePaths`, `codeMappings`), `rules`, `translations`, `referenceIgnore`, the [docs coverage](https://docs.rimfe.com/configuration/docs-coverage) settings (`surface`, `coverageFloor`, `coverageMaxDrop`), page `owners`, some review settings (`inlineComments`, `afterMergeCheck`, `delivery`, `forkPolicy`, `publicAuthorRunsPerDay`), `linkAllowlist`, `securitySensitive`, `agentContext` and the code graph and product keys (`audiences`, `entryPoints`, `graph`, `product`). It is not read until you switch the repository to use it.
To switch, open **Settings**, then **Advanced**, set **Documentation scope** to **.rimfe.json at the PR base**, then select **Save changes**. Rimfe checks the file on your default branch when you save, so a missing or invalid file is rejected.
See the [full file reference](https://docs.rimfe.com/configuration/rimfe-json). In a monorepo, packages can add their own `.rimfe.json`. See [Monorepos](https://docs.rimfe.com/guides/monorepos#package-files).
## Which one wins
The **Documentation scope** option picks exactly one source for the docs scope:
| Option | Where docs globs, ignore paths, mappings and review rules come from |
| --- | --- |
| **Dashboard settings** (default) | The dashboard fields. Every `.rimfe.json` file, root or package, is ignored. |
| **.rimfe.json at the PR base** | The root file, plus the package files of the packages the PR touches. The dashboard fields for those five settings are ignored. |
The sources are never merged. The file replaces the dashboard values for the five scope settings.
Everything else is always set in the dashboard: review trigger, PR comments, GitHub check, PR commands, Docs PRs, Full review, drafts, labels and the docs repository. The file can set only `forkPolicy`, `publicAuthorRunsPerDay`, `inlineComments`, `afterMergeCheck` and `delivery` from the review settings, and it rejects any key it does not know.
Per-PR commands add to the scope without replacing it. For example, `@rimfe ignore path ` adds an ignore code path for one pull request on top of whichever scope applies. See [Commands](https://docs.rimfe.com/reference/commands).
## Trust rules for the file
Rimfe reads `.rimfe.json` from the commit your pull request targets (its base), never from the pull request's own branch.
- A pull request cannot change the configuration that reviews it. If a PR edits `.rimfe.json`, the edit takes effect only after it merges into the base branch.
- Every review records which base commit the file came from. The check page shows it as **Scope** with the base commit, and **Package configs** when package files applied.
- If the file is missing, too large, or invalid at the base commit, the review does not start. Fix the file on the base branch, or switch back to **Dashboard settings**.
- The file is read from the repository that the PR belongs to, even when your docs live in a [separate repository](https://docs.rimfe.com/configuration/separate-docs-repository).
Reading the file from the base means a contributor cannot widen or narrow the review scope in the same PR that is being reviewed.
## All settings
| Setting | Dashboard label | In `.rimfe.json` | Default | Details |
| --- | --- | --- | --- | --- |
| Docs globs | **Docs globs** | `docsGlobs` | `**/*.{md,markdown,mdx,rst,adoc,asciidoc}` | [Docs scope](https://docs.rimfe.com/configuration/docs-scope) |
| Ignore docs paths | **Ignore docs paths** | `docsIgnorePaths` | none | [Docs scope](https://docs.rimfe.com/configuration/docs-scope) |
| Ignore code paths | **Ignore code paths** | `ignorePaths` | none | [Docs scope](https://docs.rimfe.com/configuration/docs-scope) |
| Code mappings | **Code-to-doc mappings** | `codeMappings` | none | [Code mappings](https://docs.rimfe.com/configuration/code-mappings) |
| Review rules | **Review rules** | `rules` | none | [Review rules](https://docs.rimfe.com/configuration/review-rules) |
| Docs targets | **Docs targets** > **Link docs** | not available | this repository | [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository) |
| Scope source | **Documentation scope** | not available | **Dashboard settings** | This page |
| Review trigger | **Review trigger** | not available | **On every push** | [Review triggers](https://docs.rimfe.com/configuration/review-triggers) |
| Drafts | **Wait for drafts to be ready** | not available | on | [Review triggers](https://docs.rimfe.com/configuration/review-triggers) |
| Forks | **Forks and first-time contributors** | `forkPolicy` | wait for `@rimfe review` (Hobby: skip) | [Review triggers](https://docs.rimfe.com/configuration/review-triggers#forks) |
| Author limit | **Daily reviews per author** | `publicAuthorRunsPerDay` | 10 | [Review triggers](https://docs.rimfe.com/configuration/review-triggers#reviews-per-author) |
| Repository limit | **Automatic reviews per hour** | not available | 120 | [Review triggers](https://docs.rimfe.com/configuration/review-triggers#reviews-per-repository) |
| Reply limit | **Rimfe replies per PR a day** | not available | 60 | [Review triggers](https://docs.rimfe.com/configuration/review-triggers#replies-per-pull-request) |
| Required labels | **Require these labels** | not available | none | [Review triggers](https://docs.rimfe.com/configuration/review-triggers) |
| Excluded labels | **Pause for these labels** | not available | none | [Review triggers](https://docs.rimfe.com/configuration/review-triggers) |
| PR comments | **PR comments** | not available | **Needs update only** | [Review triggers](https://docs.rimfe.com/configuration/review-triggers) |
| GitHub check | **GitHub check** | not available | **Non-blocking** | [Review triggers](https://docs.rimfe.com/configuration/review-triggers) |
| PR commands | **PR commands** | not available | on | [Commands](https://docs.rimfe.com/reference/commands) |
| Inline comments | **Comment on changed docs lines** | `inlineComments` | on | [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks#inline-comments) |
| Check after merge | **Check after merge** | `afterMergeCheck` | **When findings are open** | [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks#after-merge) |
| Pull request delivery | **Pull request delivery** | `delivery` | **Check and comment** | [Review queue](https://docs.rimfe.com/how-it-works/review-queue#delivery-mode) |
| Page owners | not available | `owners`, CODEOWNERS | none | [.rimfe.json](https://docs.rimfe.com/configuration/rimfe-json#owners) |
| Docs PRs | **Docs PRs** | not available | off | [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs) |
| Full review | **Full review** | not available | off | [Commands](https://docs.rimfe.com/reference/commands) |
`@rimfe open docs PR` does nothing until you turn on **Docs PRs** on the repository's **Reviews** settings tab. The GitHub App also needs write access to the repository that receives the PR. See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions).
## Check your configuration
- Select **Check setup** to see how many docs match, which docs framework Rimfe detected, and any permission gaps.
- Use the **Test the scope** box to enter a changed file path and see which doc pages it can reach through your settings.
- Comment `@rimfe config` on a pull request to print the settings Rimfe is using. You need write access to the repository, and **PR commands** must be on.
## Next steps
Choose which files count as documentation.
Review code in one repository against docs in another.
Point code paths at the pages that describe them.
Add documentation requirements every review checks.
Control when reviews run and how results are reported.
---
# Docs scope
Your docs scope tells Rimfe which files in a repository are documentation. Rimfe reads those files, quotes them as evidence, and only proposes fixes inside them.
The scope is made of three lists:
- **Docs globs** say what is documentation.
- **Ignore docs paths** carve exceptions out of the documentation.
- **Ignore code paths** keep changed code files out of the review.
## Docs globs
Docs globs are patterns, one per line in the dashboard. A file is in scope when it matches at least one glob.
| | |
| --- | --- |
| Dashboard label | **Docs globs** |
| File key | `docsGlobs` |
| Default | `**/*.{md,markdown,mdx,rst,adoc,asciidoc}` (every docs file in the repository) |
Leave the dashboard field blank to use the default. In `.rimfe.json`, `docsGlobs` is required and must have at least one pattern.
The default is wide. It includes every README and internal note, so a narrow glob for your docs folder gives better results.
The dashboard offers three presets under the field:
| Preset | Glob it fills in |
| --- | --- |
| **README** | `README.md` |
| **Docs folder** | `docs/**/*.{md,markdown,mdx,rst,adoc,asciidoc}` |
| **Markdown + MDX** | `**/*.{md,mdx}` |
Globs match paths relative to the repository root, use forward slashes, and also match dot-folders such as `.github`.
### Which file types count
Markdown (`.md`, `.markdown`), MDX (`.mdx`), reStructuredText (`.rst`) and AsciiDoc (`.adoc`, `.asciidoc`) count as documentation. See [Formats](https://docs.rimfe.com/reference/formats). Other files are not read as docs even if a glob matches them.
Some folders never count as docs, even if your globs match them. Any path with a folder named `.next`, `build`, `coverage`, `dist`, `node_modules` or `vendor` is excluded.
### Changelogs are excluded
Release notes record history rather than current behavior, so Rimfe never reads or edits them as docs. Files named `CHANGELOG`, `CHANGES`, `HISTORY`, `RELEASES`, `RELEASE_NOTES` or `WHATS_NEW` (any case, any suffix after `CHANGELOG`), and anything inside a folder named `changelog`, `changelogs`, `release-notes` or `releases`, are skipped even when a glob matches them. To include one, add a docs glob that names the file exactly, with no wildcards, such as `CHANGELOG.md`.
## Ignore docs paths
Ignore docs paths remove documentation pages from the scope. They are glob patterns, one per line.
| | |
| --- | --- |
| Dashboard label | **Ignore docs paths** |
| File key | `docsIgnorePaths` |
| Default | none |
A page that matches an ignore docs path is never read or edited, even if a docs glob matches it. Use it for archived, versioned or generated pages.
Keep translated copies in scope. Rimfe reviews the source page once and lists the affected copies under each finding. See [Translated pages](https://docs.rimfe.com/configuration/rimfe-json#translated-pages).
Patterns match whole paths, so a bare folder name matches nothing inside it. Use `docs/internal/**`, not `docs/internal`.
## Ignore code paths
Ignore code paths remove changed code files from the review. They are glob patterns, one per line.
| | |
| --- | --- |
| Dashboard label | **Ignore code paths** |
| File key | `ignorePaths` |
| Default | none |
A changed file in the pull request that matches an ignore code path is left out of the review. This is how you stop generated code, fixtures or vendored files from triggering findings. Ignore code paths never hide a docs page. To exclude a page, use **Ignore docs paths**.
With docs in other repositories, ignore code paths apply to the code repository and ignore docs paths apply to every docs repository. The docs globs here are for the docs inside this repository; each linked repository uses its target's docs folders. See [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository).
For a single pull request, a maintainer can comment `@rimfe ignore path `. It adds an ignore code path for that pull request only. Repository-wide ignores must be changed in settings. See [Commands](https://docs.rimfe.com/reference/commands).
## Framework detection
Rimfe can suggest a scope for you. When you select **Check setup**, it scans the repository's file tree and looks for known docs layouts.
| Framework | What Rimfe looks for | Suggested root |
| --- | --- | --- |
| Docusaurus | `docusaurus.config.js`, `.ts`, `.mjs` or `.cjs` | `docs/` next to the config file |
| MkDocs | `mkdocs.yml` or `mkdocs.yaml` | the `docs_dir` folder from the file, or `docs/` next to it |
| Starlight | files under `src/content/docs/` | `src/content/docs/` |
| Fumadocs | a `source.config.ts` (or `.js`, `.mjs`) file, or a `meta.json` under `content/docs/` | the `dir` from `defineDocs`, or `content/docs/` next to the config file |
| Nextra | a `_meta` file inside `pages`, `content` or `app`, or a `theme.config` file | the folder that holds the `_meta` file |
| Fern | `fern/fern.config.json` or `fern/docs.yml` | the `fern/` folder |
| GitBook | `.gitbook.yaml` or `.gitbook.yml` | the `root` folder from the file, or the folder that holds it |
| Mintlify | `mint.json`, or a `docs.json` with a `navigation`, `theme` or `name` key | the folder that holds the file |
| VitePress | `.vitepress/config.*` | the folder that holds `.vitepress`, which is the whole repository when it sits at the root |
| Sphinx | `conf.py` next to an `index.rst` | the folder that holds `conf.py` |
| Antora | `antora.yml` | the folder that holds `antora.yml` |
If no framework matches, Rimfe falls back to any folder named `docs`, `documentation` or `content` that contains docs files. If the repository has a root `README.md`, `README.rst` or `README.adoc`, it adds that file to the suggestion.
The suggestion is a list of globs, each naming the formats found under its folder, such as `docs/**/*.{md,mdx,rst}`. When you are using dashboard settings, select **Use detected scope** to copy it into **Docs globs**, then save. The button is hidden when your repository uses `.rimfe.json`.
Detection reads the file tree and, for four files, their contents: `docs.json` (to tell Mintlify from other tools that use that name), `mkdocs.yml` (for `docs_dir`), `.gitbook.yaml` (for `root`) and `source.config.ts` (for the Fumadocs `dir`). It reads no other framework config. For Docusaurus, a custom docs `path` is not seen, so edit the suggested glob to match.
## Preview your scope
You can check your scope before and after saving.
### Open the preview
In the repository's **Settings**, choose **Check setup**.
### Read the result
Rimfe shows how many docs match, in which repository and on which branch and commit, and lists the matched files under **Matched files**. The list shows the first 100 files.
Any problem appears under **Setup needs attention**. Examples: no docs files match the scope, GitHub returned a partial file tree, or the GitHub App is missing a permission.
### Test a specific change
Under **Test the scope**, enter the path of a changed code file, such as `src/api/users.ts`. Rimfe lists the doc pages that path can reach through your settings, and why. This test uses the values currently in the form, so you can try changes before saving.
The preview reads the default branch of the repository that holds your docs. If you use a [separate docs repository](https://docs.rimfe.com/configuration/separate-docs-repository), it reads that repository.
When the scope comes from `.rimfe.json`, the preview reads the file on the default branch and tells you if it is invalid.
When the scope comes from `.rimfe.json`, **Test the scope** uses the file's globs, ignore paths, docs ignore paths and mappings as read from the default branch, and the dashboard scope fields are hidden.
## Examples
### Docs in a docs folder
```text title="Docs globs"
docs/**/*.{md,mdx}
```
### README only
```text title="Docs globs"
README.md
```
### Docs folder plus the README
```text title="Docs globs"
README.md
docs/**/*.{md,mdx}
```
### Starlight
```text title="Docs globs"
src/content/docs/**/*.{md,mdx}
```
### MkDocs
```text title="Docs globs"
docs/**/*.md
```
### Monorepo with docs in each package
```text title="Docs globs"
README.md
packages/*/README.md
packages/*/docs/**/*.{md,mdx}
```
### Skip internal pages and test fixtures
```text title="Docs globs"
docs/**/*.{md,mdx}
```
```text title="Ignore docs paths"
docs/internal/**
```
```text title="Ignore code paths"
**/*.test.ts
```
Changelogs need no ignore docs path; they are excluded by default.
### The same scope in `.rimfe.json`
`npx @rimfe/cli init` detects your docs the same way and writes this file for you. See [the CLI](https://docs.rimfe.com/reference/cli#set-up-a-repository).
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"docsIgnorePaths": ["docs/internal/**"],
"ignorePaths": ["**/*.test.ts"]
}
```
## Rules and limits
- Each pattern must be valid glob syntax, for example brackets must be closed. An invalid pattern is reported as `Invalid docs globs pattern`, `Invalid docs ignore paths pattern` or `Invalid ignore paths pattern`.
- Duplicate patterns in a list are rejected.
- In `.rimfe.json`, each pattern is 1 to 500 characters, with up to 50 docs globs, 100 docs ignore paths and 100 ignore paths.
- If your docs are in a separate repository, docs globs, ignore docs paths and mapping targets refer to paths in that repository. Ignore code paths refer to paths in the code repository.
## Related
- [Code mappings](https://docs.rimfe.com/configuration/code-mappings): point code paths at specific pages.
- [Helping Rimfe find the right docs](https://docs.rimfe.com/how-it-works/finding-the-right-docs): how Rimfe picks relevant pages inside your scope.
- [`.rimfe.json` reference](https://docs.rimfe.com/configuration/rimfe-json)
---
# Docs in other repositories
If your docs live in a different repository from your code, link it as a **docs target**. Pull requests are still reviewed in the code repository. Rimfe reads the docs from each docs target and opens docs PRs there.
A code repository can have several docs targets, and one docs repository can serve several code repositories:
- Internal docs in the code repository and public docs in `acme/docs`.
- Two services with a public docs repository each, plus one internal handbook for both.
- A monorepo whose services keep their docs in different repositories.
If your docs sit in the same repository as the code, you do not need to do anything. A repository without docs targets reviews its own docs.
## Requirements
- The Rimfe GitHub App is installed on **both** repositories, and both appear in the same Rimfe workspace. The installations can be different, for example two GitHub organizations.
- You are an owner or admin of the workspace.
- **You can push to both repositories on GitHub**: write, maintain or admin access. Rimfe checks this when you link or edit a target, so it never writes to a repository you could not write to yourself. If you signed in with email, connect GitHub first.
- A private docs repository needs Startup or above. On Hobby, the docs repository must be public. See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits#features-by-plan).
- To open docs PRs there, the installation that covers the docs repository needs write access to **Contents** and **Pull requests**, and **Docs PRs** must be on for the code repository. See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions).
## Link a docs repository
### Add the docs repository to the GitHub App
On GitHub, open the Rimfe app installation and give it access to the docs repository. Then open **Repositories** in Rimfe and select **Sync** so the docs repository appears.
### Open the code repository's docs settings
Open the **code** repository in Rimfe, then **Settings** and the **Docs** tab. Under **Docs targets**, select **Link docs**.
### Choose the repository, folders and readers
- **Docs repository**: the repository that holds the docs.
- **Docs folders**: one glob per line, as paths inside the docs repository, for example `docs/**`. Reviews read only these pages, and docs PRs only edit them.
- **Readers**: one audience for every page in the folders, or **By page** to keep the [audience rules](https://docs.rimfe.com/configuration/rimfe-json).
- **Code folders** (optional): review these docs only when a PR changes code under these globs. Use this in a monorepo, for example `services/billing/**`.
- **Also review the docs in this repository**: shown on a repository's first link. It is on by default, so the docs inside the code repository keep being reviewed too.
### Link
Select **Link docs**. Rimfe checks your GitHub access and that it can read the docs repository, then indexes the folders in the docs repository. You see "Docs target linked." when it works.
To change a target, select **Edit**. To stop reviewing it, select **Remove**. Removing a target needs only your Rimfe role.
### What crosses between the repositories
The link dialog says what each repository will see of the other before you save:
- **A private docs repository and a public code repository.** PR comments on the code repository only count the docs issues and link to Rimfe. The docs text stays in Rimfe.
- **Both private.** Review comments on the code repository quote the affected pages of the docs repository, so anyone who can read the code repository sees those quotes.
- **A public docs repository and a private code repository.** Docs PRs in the docs repository describe changes from the code repository. Rimfe leaves out text that only appears in the code repository.
## How a review reads docs
```mermaid title="A review with docs in another repository"
flowchart LR
PR[Pull request in acme/api] --> Run[Review run for acme/docs]
Docs[acme/docs default branch, commit recorded] --> Run
Run --> Check[Check and comment on acme/api]
Run -.->|@rimfe open docs PR| DocsPR[Docs PR in acme/docs]
```
Each docs repository of a pull request gets its own review run. For each one, Rimfe:
1. Reads the pull request's changes from the code repository.
2. Looks up the docs repository's **default branch** and records its latest commit when the review is created.
3. Reads the pages in the target's folders at that recorded commit, for the whole review, including the fix.
4. Finds the pages to check the same way as for docs in the code repository. See [Helping Rimfe find the right docs](https://docs.rimfe.com/how-it-works/finding-the-right-docs).
This has a few consequences:
- Docs are read at the default branch, not at a branch that matches the pull request. A docs change that is still in an open PR in the docs repository is not seen. To review against newer docs, comment `@rimfe review`.
- The docs commit stays fixed for the whole review, so results are stable even if someone merges to the docs repository while the review runs.
- The check page shows which docs commit was used under **Docs repository**, as `owner/repo@commit`.
- A target with **Code folders** is skipped when the pull request changes nothing under them.
- The runs of one pull request count as one review for the [review caps](https://docs.rimfe.com/configuration/review-triggers). Each docs repository reviewed counts toward your plan's reviews.
[Audits](https://docs.rimfe.com/how-it-works/audits) read the repository's first docs target: its own docs when it reviews them, otherwise the first linked repository.
## Checks and comments
With one docs repository, nothing changes: one **Rimfe** check and one comment. GitHub lists Rimfe's checks with the app name in front.
With docs in several repositories, each separate docs repository gets its own check and comment:
- The check for the code repository's own docs keeps the name **Rimfe**. Each other one is named after its repository, for example **Rimfe (acme/docs)**. If you require Rimfe's check in branch protection or a ruleset, require each name you want to block on, without the app name GitHub adds in front in the checks list.
- Each comment opens with the repository it is about, for example **Docs in `acme/docs`**.
- A docs repository Rimfe cannot read gets a skipped check that says why, for example "Rimfe skipped acme/docs. This repository was removed from the Rimfe GitHub App or deleted." The other docs repositories are still reviewed.
## Where docs PRs go
`@rimfe open docs PR` opens one docs PR in each docs repository whose review found a fix, against its default branch. To open only one, name it: `@rimfe open docs PR acme/docs`. The PR title is `docs: update docs for pull request ` and its description links back to the original pull request.
`@rimfe apply patch` commits only the fix for the docs inside the code repository. When the other docs repositories have fixes too, the reply names the `@rimfe open docs PR ` command for each.
In the docs repository, Rimfe's docs PR carries a **Rimfe: docs PR source** check that links back to the code PR and the review.
Merging a docs PR in a separate docs repository from the check page or Slack needs your write access to that repository on GitHub, as well as your Rimfe role.
Docs PRs are off by default. Turn on **Docs PRs** in the code repository's settings first. See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs).
### Pull requests from forks
Rimfe does not open a docs PR for a pull request that comes from a fork, in any docs repository. The review of the fork PR still runs once a maintainer asks for it, and the suggested fix stays in the comment.
## Writers' pull requests in the docs repository
A pull request in a docs repository that serves code repositories gets a **Rimfe: docs vs code** check. Rimfe checks the changed pages in each code repository's folders against that code, as its index last saw the default branch: names the pages use that the code does not have, and broken local links. The check is neutral when it finds something and never blocks. It follows the docs repository's own review settings.
## Path mapping between the repositories
| Setting | Refers to |
| --- | --- |
| **Docs folders** of a target | Paths in that **docs** repository |
| **Docs globs** in **Docs scope** | The docs inside the **code** repository |
| **Ignore docs paths** (`docsIgnorePaths`) | Docs pages in every docs repository |
| **Ignore code paths** (`ignorePaths`) and **Code folders** | Changed files in the **code** repository |
| Mapping **source** | Changed files in the **code** repository |
| Mapping **target** | A page in the code repository, or in a docs repository when it starts with `owner/repo:` |
| `.rimfe.json` | Lives in the **code** repository, at the PR base. It cannot link docs repositories. |
For example, with code in `acme/api` and docs in `acme/docs`:
```text title="Code-to-doc mappings (set in acme/api)"
src/auth/** => acme/docs:content/guides/authentication.mdx
src/api/** => acme/docs:content/api/
```
A mapping target without `owner/repo:` points at the code repository's own docs. When the code repository reviews only other repositories' docs, an unprefixed target applies to each of them. See [Code mappings](https://docs.rimfe.com/configuration/code-mappings).
## The Docs map
**Docs map**, under **Repositories** in the sidebar, shows every docs target in the workspace, grouped by code repository or by docs repository. Each row shows the folders, readers, code folders, hosted docs sites built from those folders, and any problem: **Broken**, **Read only** (an archived repository: reviewed, but no docs PRs), **Shared with** another code repository, or **Overlaps another target**. It also suggests links for repositories that hold docs, either by name (`acme-docs`) or because their index found many docs pages and next to no code (an `acme-manual`). Each is offered to code repositories of the same owner whose names share a word with it, such as `acme-api`, or to the owner's only code repository.
## Limits
- 10 docs targets per code repository, across up to 5 other repositories.
- 50 code repositories per docs repository.
- 50 folder globs and 50 code folder globs per target.
## Common errors
Rimfe checks your own GitHub access to both repositories when you link or edit a target. Ask a repository admin on GitHub for write access, or ask someone who has it to link the target.
You signed in with email, so Rimfe cannot tell who you are on GitHub. Select **Connect GitHub** in the dialog. It asks GitHub only who you are.
Rimfe cannot reach the repository. Check that the GitHub App is installed on it with an active installation, that it is in the same Rimfe workspace, and that it is active in Rimfe. Select **Sync** on the **Repositories** page if it is missing.
Two targets of one code repository cannot reach the same pages in a docs repository, since a page would get two audiences. Split the folders, or merge the targets.
Docs PRs need write access to **Contents** and **Pull requests** on the docs repository's installation. Update the app's permissions and accept the change on GitHub.
Rimfe only opens a docs PR if the docs repository's default branch is still on the commit the review used. Run `@rimfe review` and then `@rimfe open docs PR` again.
The docs target was removed or changed after the review ran. Run `@rimfe review` to start a review with the current targets.
An archived repository is still reviewed, but GitHub does not accept changes to it. Unarchive it on GitHub, or link another repository.
## Related
- [Docs scope](https://docs.rimfe.com/configuration/docs-scope)
- [Code mappings](https://docs.rimfe.com/configuration/code-mappings)
- [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs)
- [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions)
---
# Code mappings
A code mapping links a set of source files to the doc pages that describe them. When a pull request changes a matching file, Rimfe reads the mapped pages first.
Mappings are optional. Rimfe finds relevant pages on its own. Add mappings when the link is not obvious from names and wording, for example when `src/billing/**` is documented on a page called "Invoices".
## How a mapping works
A mapping has two parts:
- **Source** is a glob that matches changed files in the code repository, for example `src/api/**`.
- **Target** is a doc page, or a docs folder, in your docs scope.
When a changed file matches a source, Rimfe checks the target page first. Pages from mappings earlier in your list come before those later in the list.
A mapping does not limit the review to the target page. Rimfe still looks at other relevant pages, and a mapping never forces a finding. It only makes sure the right page is checked.
### File targets and folder targets
| Target | Example | Effect |
| --- | --- | --- |
| A page | `docs/guides/authentication.md` | That page is checked first. |
| A folder (ends with `/`) | `docs/api/` | Every in-scope page under the folder is checked first. |
If a target page does not exist yet, it has no effect on the check. It can still be used as the location for a new page when Rimfe generates a docs fix. For a folder target, a new page named `README.md` or `README.mdx` can be proposed in that folder, depending on what your docs globs allow. See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs).
## Set mappings in the dashboard
Open the repository's **Settings**, then **Docs**, and find **Code-to-doc mappings**. Enter one mapping per line, with the source and target separated by `=>`:
```text title="Code-to-doc mappings"
src/api/** => docs/api/
src/auth/** => docs/guides/authentication.md
```
Select **Save changes**. Use **Test the scope** to check a changed file path against your mappings before you save.
## Set mappings in `.rimfe.json`
Use the `codeMappings` array, with up to 100 entries. Each entry has a `source` and a `target`. This only takes effect when **Documentation scope** is set to **.rimfe.json at the PR base**. See [Configuration](https://docs.rimfe.com/configuration).
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"codeMappings": [
{ "source": "src/api/**", "target": "docs/api/" },
{ "source": "src/auth/**", "target": "docs/guides/authentication.md" }
]
}
```
## Examples
| Source | Target | Meaning |
| --- | --- | --- |
| `src/api/**` | `docs/api/` | Anything under `src/api` points at the API docs folder. |
| `src/auth/**` | `docs/guides/authentication.md` | Auth code points at one page. |
| `src/config/env.ts` | `docs/reference/environment-variables.md` | One file points at one page. |
| `packages/cli/**` | `docs/cli/` | A package maps to its docs folder. |
| `**/*.proto` | `docs/api/grpc.md` | A file type points at one page. |
Several sources can point at the same target, and one source can appear in more than one mapping.
For a [separate docs repository](https://docs.rimfe.com/configuration/separate-docs-repository), write the source as a path in the code repository and the target as a path in the docs repository.
## Targets in other repositories
When docs live in [other repositories](https://docs.rimfe.com/configuration/separate-docs-repository), start the target with the docs repository and a colon:
```text
src/billing/** => acme/docs:billing/
```
An unprefixed target points at the docs inside this repository. When this repository reviews only other repositories' docs, an unprefixed target applies to each of them, which keeps a setup with one docs repository working without prefixes. A prefixed target is checked against that target's docs folders when a review runs, not against this repository's docs scope.
## Validation rules
Rimfe checks mappings when you save in the dashboard, and when it reads `.rimfe.json`.
- **Format.** In the dashboard, each non-empty line must contain `=>` with text on both sides. Otherwise: `Invalid code mapping on line N: use "source => target".`
- **Source.** It must be a valid glob. Otherwise: `Invalid code mapping source pattern: `.
- **Target.** It must be a relative path inside the docs repository: not absolute, with no `..`. A file target must be a [docs format](https://docs.rimfe.com/reference/formats), match your docs globs, and not match an ignore docs path. Otherwise: `Code mapping target is invalid: `.
- **Folder target.** It must end with `/`, and a `README` page in that folder, in any docs format, must be allowed by your docs scope. Otherwise: `Code mapping target is outside docs scope: `.
- **No duplicates.** The same source and target pair twice is rejected as `Duplicate code mapping`.
- **Generated folders.** Targets inside `node_modules`, `build`, `dist`, `coverage`, `vendor` or `.next` are never valid.
In the file, every `source` and `target` is also limited to 1 to 500 characters.
A mapping target is checked against your docs globs and ignore docs paths. If you change your scope later and a target falls outside it, saving fails until you fix the mapping. See [Docs scope](https://docs.rimfe.com/configuration/docs-scope).
### Mapping a spec to its reference
When a mapped source is a changed OpenAPI or Swagger file, the mapped pages are also compared with the spec. An operation the PR adds that none of them mentions is reported as missing, and one it removes that a page still describes is reported as a contradiction. See [OpenAPI and schemas](https://docs.rimfe.com/guides/openapi#reference-pages-in-your-repository).
## Tips
- Keep the most specific mappings first. Earlier mappings come first.
- Wildcards such as `*` and `**` in a source also match files and folders that start with a dot, like `.github`, as [docs globs](https://docs.rimfe.com/configuration/docs-scope) do.
- Mappings point at pages; they do not limit which files are reviewed. To exclude changed code files, use [ignore code paths](https://docs.rimfe.com/configuration/docs-scope#ignore-code-paths). To exclude pages, use [ignore docs paths](https://docs.rimfe.com/configuration/docs-scope#ignore-docs-paths).
- Use **Test the scope** with a real changed path to see which pages a mapping reaches.
---
# Review rules
Review rules are documentation requirements written in plain language. Rimfe checks every reviewed pull request against them, on top of its usual drift review.
Use them for the conventions your team already enforces by hand in code review: where new settings must be listed, what every public method needs, which page records breaking changes.
## Examples
```text
Every new environment variable must be listed in docs/configuration.md
Public SDK methods need an example in the reference pages
Breaking changes must be mentioned in docs/migration.md
```
Good rules name the change that triggers them and the page or kind of content it needs. A rule that only says "keep docs up to date" adds nothing to the normal review.
## Set rules
- **Dashboard**: open the repository's **Settings**, then **Advanced**, enter one rule per line under **Review rules** and select **Save changes**.
- **`.rimfe.json`**: add a `rules` array. See [.rimfe.json](https://docs.rimfe.com/configuration/rimfe-json).
The two sources are never merged. With **Documentation scope** set to **.rimfe.json at the PR base**, the rules come from the file and the dashboard rules are ignored, like the rest of the docs scope.
In a monorepo, a [package file](https://docs.rimfe.com/guides/monorepos#package-files) can add its own `rules`. They apply when a pull request touches that package, listed before the root rules.
### Limits
- Up to 10 rules.
- Each rule is 1 to 300 characters after leading and trailing spaces are trimmed.
- No control characters such as tabs or line breaks inside a rule.
- No duplicates.
## How rules are applied
- A change that breaks a rule is reported as a normal finding: **Missing docs** when the required documentation is absent, or **Docs conflict** when a documented statement is now wrong. The finding shows **Review rule** with the rule's number and text, on the check page and in the PR comment.
- The suggested fix follows the rules its findings break, for example by editing `docs/migration.md` when a rule asks for it. A rule never adds anything the code change does not support.
- A finding keeps the rules in effect when it was reviewed. Editing a rule later does not change older results.
- Rules are checked only against the changed code in the pull request. They do not audit the whole docs site.
- Rules never change how Rimfe reviews or what it may do. A rule that asks for anything other than a documentation requirement is ignored.
- After you change a rule, the next review checks again. Results from before the change are not reused.
`@rimfe config` lists the rules in effect for a pull request. See [Commands](https://docs.rimfe.com/reference/commands#config).
## Related
- [Configuration overview](https://docs.rimfe.com/configuration)
- [Docs scope](https://docs.rimfe.com/configuration/docs-scope)
- [Code mappings](https://docs.rimfe.com/configuration/code-mappings)
---
# Review triggers
Review triggers decide when Rimfe starts a review on a pull request, and how it reports the result. They are dashboard settings. Open the repository, then open **Settings**. A `.rimfe.json` can set only `forkPolicy` and `publicAuthorRunsPerDay` from this page (see [Forks](#forks)); the trigger, comment and check modes cannot be set in the file.
Only workspace owners and admins can change these settings.
## Review trigger
The **Review trigger** setting is on the **Reviews** tab, under **When checks run**.
| Dashboard label | What starts a review automatically | Default |
| --- | --- | --- |
| **On every push** | A pull request opens, reopens, becomes ready for review, gets new commits, or a label from your label rules is added or removed. | Yes |
| **On PR open** | The same, except a push starts a review only while the first one has not finished; after that, comment `@rimfe review`. | |
| **Only when asked** | Nothing. Reviews start only from a command or from the dashboard. | |
| **Paused** | Nothing. Automatic reviews are off. | |
`@rimfe config` uses the same names.
### What starts a review
```mermaid title="Does an event start an automatic review?"
flowchart LR
Event[Pull request event] --> Trigger{Trigger}
Trigger -->|Paused, Only when asked| None[No automatic review]
Trigger -->|Every push, PR open| Draft{Draft?}
Draft -->|Yes| Wait[Waits until ready]
Draft -->|No| Labels{Labels pass?}
Labels -->|No| Held[Waits for the labels]
Labels -->|Yes| Fork{From a fork?}
Fork -->|Yes, by default| Ask[Waits for @rimfe review]
Fork -->|No| Run[Review runs]
```
| Event | Reviews automatically when |
| --- | --- |
| Pull request opened | **On every push**, **On PR open** |
| Pull request reopened | The same two modes |
| Draft marked ready for review | The same two modes |
| Required label added, or paused label removed | The same two modes. Other label changes are ignored. |
| New commits pushed | **On every push**, and **On PR open** until a review produces a result |
| Base branch changed | **On every push**, **On PR open**. The comparison changes, so the PR is reviewed again. |
| Comment `@rimfe review` | Always, if **PR commands** is on, except a pull request too large to review |
| **Manual check** in the dashboard | Always, except a pull request too large to review |
Automatic reviews need the GitHub App to receive pull request events. **Check setup** warns you if the app is not subscribed to them.
### Pushes
With **On every push**, each push queues a new review of the latest commit. If a review is still queued when you push again, the older one is dropped and only the newest commit is reviewed. A review that finishes after a newer push does not post its comment.
In **On PR open**, a push during the first review replaces it with a review of the new commit, so every pull request gets one result. Once a review has produced a result, pushes do not start another. A review that failed, was stopped by a plan limit or a locked repository, or was skipped because the pull request is too large to review, is not a result, so the next push is reviewed. The existing comment stays on the older commit until you comment `@rimfe review`. If Rimfe already reviewed that exact commit, the command updates the existing result instead of running again. With a [separate docs repository](https://docs.rimfe.com/configuration/separate-docs-repository#how-a-review-reads-docs), a new commit on the docs repository's default branch counts as a change, so the command reviews again against the latest docs.
### Comment commands
Anyone with write access to the repository can comment commands on a pull request, while **PR commands** is on (it is by default). While the check is blocking, `@rimfe ignore`, `@rimfe ignore this PR`, `@rimfe pause` and `@rimfe ignore path` need Admin or Maintain permission. The ones that start work:
- `@rimfe review` checks the latest commit.
- `@rimfe full review` runs a [full review](https://docs.rimfe.com/reference/limits#normal-and-full-reviews). It needs **Full review** turned on first.
Commands work in every trigger mode, including **Paused**. See [Commands](https://docs.rimfe.com/reference/commands) for the full list.
### Pause one pull request
To stop automatic reviews on a single PR, someone with write access can comment `@rimfe pause` or `@rimfe ignore this PR` (Admin or Maintain while the check is blocking). Comment `@rimfe resume` to turn them back on. This works in addition to the repository setting.
## Drafts
**Wait for drafts to be ready** is under **When checks run**. It is on by default.
- **On:** Rimfe does not review a draft pull request automatically. When you mark it ready for review, the review starts. In every check mode except **Off**, a draft also completes the check as skipped, titled **Draft not reviewed**, with how to start a review.
- **Off:** drafts are reviewed like any other pull request.
This only applies to automatic reviews. `@rimfe review` and dashboard checks work on drafts.
## Forks
**Forks and first-time contributors** is under **When checks run**. It decides what happens to a pull request from a fork, or from someone whose GitHub association is first-time contributor, first timer or none.
- **Wait for @rimfe review** (default on paid plans): no model runs on the pull request until a maintainer comments `@rimfe review`.
- **Review them:** these pull requests are reviewed like any other.
- **Skip them** (default on Hobby): Rimfe never reviews them automatically. A maintainer can still comment `@rimfe review`.
Dependency bots that push branches in your repository are not held. In `.rimfe.json`, the key is `forkPolicy` with the values `require_approval`, `allow` and `skip`.
### Reviews per author
On public repositories, each author can start a limited number of automatic reviews in 24 hours. The default is 10. An author over the limit is held back with a message; a maintainer can still comment `@rimfe review`. Change it with **Daily reviews per author** or `publicAuthorRunsPerDay` in `.rimfe.json`.
### Reviews per repository
Every repository can start up to 120 automatic reviews in an hour. Reviews that were skipped or replaced by a newer push don't count. Past the limit, a new review is held back with a skipped check that says when reviews start again. `@rimfe review` still runs. Change it with **Automatic reviews per hour**, up to 500.
### Replies per pull request
Rimfe replies to commands and finding threads up to 60 times a day on one pull request. Its result comment is edited in place and doesn't count. Past the limit, a command still runs, and Rimfe reacts to it instead of replying: eyes when it ran, confused when it did not. Change it with **Rimfe replies per PR a day**, up to 200.
## Labels
Two label lists are available under **When checks run**. Enter one label per line, up to 20 labels per list. Labels are matched exactly, including case.
| Dashboard label | Behaviour |
| --- | --- |
| **Require these labels** | Automatic review waits until the pull request has **all** of these labels. |
| **Pause for these labels** | Automatic review is paused while the pull request has **any** of these labels. |
Only labels in these lists matter. Adding a required label or removing a paused label starts a review if the pull request now passes both rules. Removing a required label or adding a paused label never starts one, and any other label is ignored. For example, with **Require these labels** set to `docs-check`, adding that label starts the review. If both lists apply, a paused label wins.
Like drafts, label rules apply only to automatic reviews. Commands and dashboard checks ignore them.
Select **Save changes** to save the draft, fork, author limit and label settings.
## PR comments
**PR comments** is on the **Reviews** tab, under **Results on GitHub**, in **Advanced**. The **Mode** choice above it (**Check and comment**, **Check only** or **Notify only**) sets PR comments, GitHub check and **Pull request delivery** together. **PR comments** decides when Rimfe posts or updates its comment on a pull request.
| Dashboard label | Rimfe comments when | Default |
| --- | --- | --- |
| **Needs update only** | A result needs docs changes. | Yes |
| **Needs update and uncertain** | A result needs docs changes, or Rimfe is not sure: the review is incomplete, was stopped by the daily limit, or passed with low confidence. | |
| **All results** | Every result, including passes and skipped reviews. | |
| **Never** | Never. | |
Once Rimfe has commented on a pull request, later results update that same comment, even if they would not normally post one. For example, when you fix the docs, the comment changes to show a passing result. The exception is **Never**, which stops all comments. A `@rimfe review` stopped by a plan limit, a locked repository or the daily limit always gets a reply comment, in every mode. A pull request too large to review also gets one comment in every mode except **Never**.
Comments are written with quoted evidence. See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks).
## GitHub check
**GitHub check** is on the **Reviews** tab, under **Results on GitHub**, in **Advanced**. It controls the check run named `Rimfe`.
| Dashboard label | Behaviour | Default |
| --- | --- | --- |
| **Non-blocking** | Results appear on the check. Drift is reported as neutral, so it never turns the check red. | Yes |
| **Blocking when docs required** | A review that finds drift or is incomplete reports "action required". A review stopped by the daily limit stays neutral. | |
| **Strict blocking** | Like **Blocking when docs required**, and a review that could not run (daily or monthly limit, AI key needs attention, AI budget reached, paused by Rimfe) fails the check, so nothing merges unreviewed. | |
| **Off** | Rimfe does not create a check. | |
A review that fails to run reports a failure in every mode except **Off**. A pull request too large to review is not a failed review: it reports skipped, and a failure only under **Strict blocking**.
To stop merges on drift, choose **Blocking when docs required** and add `Rimfe` as a required status check in your GitHub branch protection rules or rulesets. With docs in several repositories, also require `Rimfe (acme/docs)` for each other docs repository you want to block on. The settings page shows the check name next to the option.
A rule that still requires `docs drift`, the check's earlier name, waits on every new commit, because Rimfe no longer posts a check with that name. A repository admin must change it to `Rimfe`.
### Blocking mode
Everything in this section applies to **Strict blocking** too.
A required check has to report on every commit, so blocking mode changes how reviews start:
- **On PR open** reviews every push, like **On every push**. The settings page says "Every push is reviewed while the check is blocking."
- **Only when asked** and **Paused** stay as they are. A required check then waits until someone comments `@rimfe review`; the settings page warns you.
- A review held back by a draft, fork, label or pause rule completes the check as **skipped**. GitHub counts a skipped check as passing, so held-back pull requests can still merge.
- Only repository admins and maintainers can use `@rimfe ignore`, `@rimfe ignore this PR`, `@rimfe pause` and `@rimfe ignore path`.
## Fair-use guards
Reviews are limited per workspace, not per repository. Reviews started by pull request events and by comment commands do not count toward the manual check guard. A review held back by a guard finishes as skipped with a neutral check. Rimfe retries automatic ones after the reset. See [Limits](https://docs.rimfe.com/reference/limits#fair-use-guards) and [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits).
## Recommended setups
Keep the defaults: **On every push**, **Needs update only**, **Non-blocking**, and drafts skipped. Every commit gets a check, and a comment appears only when there is something to fix.
Set **GitHub check** to **Blocking when docs required** and require `Rimfe` in branch protection. Every push is reviewed in this mode, so expect more reviews.
Set **Review trigger** to **Only when asked**. Reviewers comment `@rimfe review` when they want a check. This is the lightest way to try Rimfe on a busy repository. See [Rolling out to a team](https://docs.rimfe.com/guides/rolling-out-to-a-team).
## Related
- [What gets reviewed](https://docs.rimfe.com/how-it-works/what-gets-reviewed)
- [Commands](https://docs.rimfe.com/reference/commands)
- [Dashboard settings overview](https://docs.rimfe.com/configuration)
---
# Docs coverage
Docs coverage is the share of your public surface that your docs mention. Rimfe measures it on every reviewed pull request, at the base and at the head.
## What is counted
- **API operations** from OpenAPI 3.x and Swagger 2 files in the code repository, such as `GET /users/{id}`.
- **Tracked names** you list under `surface` in `.rimfe.json`: config keys, CLI flags and environment variables.
Docs are the pages in your [docs scope](https://docs.rimfe.com/configuration/docs-scope). Spec files under `ignorePaths` or in test folders are left out.
With no API spec and no `surface`, coverage is **not measured**. It is never shown as 0%.
## How an item is matched
| Item | Documented | Uncertain |
| --- | --- | --- |
| Operation | A page names its path with the method nearby, or names its `operationId`. `{id}`, `:id` and `` are the same. | A page names the path with no method nearby, or the `operationId` in other letter case. |
| Tracked name | A page contains the exact name, as a whole word. | A page contains the name in other letter case only. |
`/users` and `/users/{id}` are different operations. `--out-dir` does not match inside `--out-dir-root`.
Uncertain items count as undocumented in the percentage. They are listed separately so you can check them.
## Track names
Add a `surface` list to `.rimfe.json`. An entry is a name, or a name with its kind.
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"surface": [
"DATABASE_URL",
"--out-dir",
{ "name": "server.port", "kind": "config" }
],
"coverageFloor": 80,
"coverageMaxDrop": 2
}
```
Without a `kind`, names starting with `-` are flags, upper-case names such as `DATABASE_URL` are environment variables, and everything else is a config key.
`surface` is read only with **Documentation scope** set to **.rimfe.json at the PR base**. Package files can add their own names; they count when the pull request touches that package.
## Set limits
| Setting | `.rimfe.json` key | Fails when |
| --- | --- | --- |
| Floor | `coverageFloor` | Coverage ends below this percentage and lower than at the base, or the base had nothing to measure. |
| Largest drop | `coverageMaxDrop` | Coverage drops more than this many points from the base. |
Both take a number from 0 to 100. Blank or `null` turns a limit off. Both are off by default.
Limits need the Business or Enterprise plan. On other plans, coverage is still measured, but limits from the dashboard or `.rimfe.json` are not applied. See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits#features-by-plan).
Set **Floor** and **Largest drop** in the repository's **Settings**, on the **Quality** tab, or in the root `.rimfe.json`. With **.rimfe.json at the PR base**, a key in the file wins over the dashboard. Package files cannot set limits.
A pull request that does not lower coverage never fails the floor, so you can set a floor above today's value and raise coverage over time.
## Where it shows
- **Check.** The `Rimfe` check summary names the measured value and your limits. See [Check results](https://docs.rimfe.com/how-it-works/findings-and-checks#docs-coverage).
- **Pull request comment.** One line with the percentage, the base value and the counts, when coverage was measured.
- **Check page.** The percentage, the counts and the gaps: undocumented items, and uncertain items with the page that names them.
- **Analytics.** Weekly coverage across your repositories.
## Limits
- Up to 10 spec files, in path order, and 2,000 operations per commit.
- Up to 500 `surface` names.
- Up to 400 docs pages and 12 MB of docs text.
Past a limit, the rest is left out and the count is marked partial. Specs that are not valid JSON or YAML are skipped with a note.
## Related
- [.rimfe.json](https://docs.rimfe.com/configuration/rimfe-json)
- [OpenAPI and schemas](https://docs.rimfe.com/guides/openapi)
- [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks)
---
# .rimfe.json
`.rimfe.json` is an optional file that keeps your docs scope in the repository, next to the code it describes. It sets which files are docs, which docs pages and which changed code files to ignore, which code maps to which pages, and the review rules every pull request is checked against.
It holds the docs scope (`docsGlobs`, `docsIgnorePaths`, `ignorePaths`, `codeMappings`, `rules`, `translations`, `referenceIgnore`) [docs coverage](https://docs.rimfe.com/configuration/docs-coverage) (`surface`, `coverageFloor`, `coverageMaxDrop`), and the keys that tune the [code graph](https://docs.rimfe.com/how-it-works/code-graph) and the product layer (`audiences`, `entryPoints`, `graph`, `product`). Everything else, such as triggers, comments and permissions, stays in the dashboard. For how the file and the dashboard fit together, see [Configuration](https://docs.rimfe.com/configuration).
## Where the file lives
- Name it exactly `.rimfe.json` and put it at the repository root. No other name is read. Files with the same name in subfolders are [package files](#package-files) and add to the root file.
- It must be valid JSON in UTF-8, with no comments and no trailing commas.
- It must be 32,000 bytes (32 KB) or smaller.
- Rimfe reads it from the commit a pull request targets, not from the PR branch. Commit it to your default branch (or whichever branch your PRs target) before you rely on it.
- It is used only when **Documentation scope** is set to **.rimfe.json at the PR base** on the repository's **Advanced** settings tab.
## Create the file
Run `npx @rimfe/cli init` in the repository. It finds your docs and writes a starter file with the editor schema line. See [CLI](https://docs.rimfe.com/reference/cli).
## Editor support
Start the file with `"$schema": "https://rimfe.com/schema/rimfe.json"`. Editors that read JSON Schema, such as VS Code, then complete every key, show what it does on hover, and underline unknown keys and wrong values as you type. The schema is generated from the same rules Rimfe checks the file with. Glob syntax and path rules are still checked by Rimfe when a review reads the file.
## Fields
The file is a single object. Unknown keys are rejected, so a typo is an error rather than being ignored. Only `docsGlobs` is required.
| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `$schema` | `string` | None | Optional. The JSON Schema editors use for completion and checks: `https://rimfe.com/schema/rimfe.json`. Rimfe ignores it. |
| `docsGlobs` | `string[]` | None | Required. Glob patterns for files that count as documentation. 1 to 50 patterns, each 1 to 500 characters. Only docs formats can match: .md, .markdown, .mdx, .rst, .adoc and .asciidoc. |
| `ignorePaths` | `string[]` | `[]` | Glob patterns for changed code files to leave out of the review. Applies to the code repository. Up to 100 patterns, each 1 to 500 characters. |
| `docsIgnorePaths` | `string[]` | `[]` | Glob patterns for docs pages to exclude from the docs scope. Applies to the docs repository. Up to 100 patterns, each 1 to 500 characters. |
| `codeMappings` | `{ source: string; target: string }[]` | `[]` | Links from changed code to doc pages. Up to 100 entries. |
| `codeMappings[].source` | `string` | None | Required in each entry. Glob matched against changed file paths in the code repository. 1 to 500 characters. |
| `codeMappings[].target` | `string` | None | Required in each entry. A doc page or a folder ending in a slash, inside your docs scope. 1 to 500 characters. |
| `rules` | `string[]` | `[]` | Documentation requirements in plain language, checked on every review. Up to 10 rules, each 1 to 300 characters after trimming, with no control characters. See Review rules. |
| `owners` | `{ paths: string[]; owners: string[] }[]` | `[]` | Who owns which docs pages. Up to 100 rules, each with 1 to 50 `paths` and 1 to 20 `owners`. Root file only. See Owners. |
| `inlineComments` | `boolean` | `dashboard value` | Inline comments on changed docs lines. Root file only. |
| `afterMergeCheck` | `"off" \| "open_findings" \| "always"` | `dashboard value` | When a merged pull request is checked again. Root file only. |
| `delivery` | `"check_and_comment" \| "comment_only" \| "notify_only"` | `dashboard value` | What a review writes to the pull request. `notify_only` writes no check and no comment. Root file only. See Review queue and precision. |
| `forkPolicy` | `"require_approval" \| "allow" \| "skip"` | `dashboard value` | What fork pull requests and first-time contributors get. `require_approval` waits for a maintainer's `@rimfe review`. Root file only. See [Review triggers](https://docs.rimfe.com/configuration/review-triggers#forks). |
| `publicAuthorRunsPerDay` | `number` | `10` | Automatic reviews one author can start per 24 hours on a public repository, 1 to 1000. Root file only. |
| `linkAllowlist` | `string[]` | `[]` | Exact hostnames Rimfe may link to in what it posts, besides your repository, your docs site and Rimfe. No wildcards, schemes or paths. Up to 50. Root file only. See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs#links-and-mentions-in-what-rimfe-posts). |
| `securitySensitive` | `string[]` | `[]` | Glob patterns for pages whose patches always need a maintainer's approval, on top of auth, billing, security and compliance pages. Up to 100. Root file only. See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs#patch-safety). |
| `translations` | `"list" \| "review" \| "off"` | `"list"` | How translated copies of your docs pages are handled. Root file only. See Translated pages. |
| `referenceIgnore` | `string[]` | `[]` | Names the broken reference check never reports, as glob patterns matched against the name written in the docs. Up to 100 patterns, each 1 to 500 characters. See Ignore reference names. |
| `agentContext` | `boolean` | `true` | `false` stops Rimfe reading agent context files (`AGENTS.md`, `CLAUDE.md`, rules, skills) outside your docs globs. See [Agent context files](https://docs.rimfe.com/how-it-works/agent-context). |
| `audiences` | `{ [glob: string]: "public_user" \| "internal" \| "api_reference" \| "changelog" \| "help_center" \| "agent" }` | `built-in rules` | Which audience reads the pages that match a glob. The first matching glob wins and overrides the built-in rules. Up to 100 globs. Root file only. See Audiences. |
| `entryPoints` | `string[]` | `[]` | Extra starting points for the code graph: globs over file paths, or path#symbol names. Up to 200 entries. See Graph keys. |
| `graph` | `{ hubs: string[] }` | None | Tunes the code graph. hubs are symbol names the impact walk never expands, up to 200. Root file only. See Graph keys. |
| `product` | `{ screens?, i18n?, flags?, frameworks? }` | None | Tells the product layer about screens, translation files, feature flags and frameworks. Root file only. See Product declarations. |
| `surface` | `(string \| { name: string; kind?: "config" \| "flag" \| "env" })[]` | `[]` | Config keys, CLI flags and environment variables to count in docs coverage. Up to 500 names, each 1 to 200 characters. See Docs coverage. |
| `coverageFloor` | `number \| null` | `dashboard value` | Lowest docs coverage a pull request may leave, 0 to 100. null turns it off. Root file only. |
| `coverageMaxDrop` | `number \| null` | `dashboard value` | Largest docs coverage drop in percentage points, 0 to 100. null turns it off. Root file only. |
Patterns are trimmed of leading and trailing whitespace, and an empty pattern is invalid.
Unlike the dashboard, the file has no fallback for an empty `docsGlobs`. Always give it at least one pattern. The dashboard default is `**/*.{md,markdown,mdx,rst,adoc,asciidoc}`.
### Keys the file rejects
The file cannot change how Rimfe behaves or what it may write. Keys such as `allowPatchPrs`, `reviewTriggerMode` or `checkMode` fail validation. Set these in the dashboard. See [Review triggers](https://docs.rimfe.com/configuration/review-triggers).
## Full example
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": [
"README.md",
"docs/**/*.{md,mdx}"
],
"docsIgnorePaths": [
"docs/internal/**",
"docs/archive/**"
],
"ignorePaths": [
"**/*.test.ts"
],
"codeMappings": [
{ "source": "src/api/**", "target": "docs/api/" },
{ "source": "src/auth/**", "target": "docs/guides/authentication.md" },
{ "source": "src/config/env.ts", "target": "docs/reference/environment-variables.md" }
],
"rules": [
"Every new environment variable must be listed in docs/reference/environment-variables.md",
"Breaking changes must be mentioned in docs/migration.md"
]
}
```
What each part does:
- `$schema` turns on completion and checks in your editor.
- `docsGlobs` makes the root `README.md` and every Markdown and MDX file under `docs/` count as documentation.
- `docsIgnorePaths` removes internal and archived pages from the docs. Changelogs are excluded without an entry.
- `ignorePaths` removes test files from the changes under review. It never hides a docs page.
- The first mapping sends API code to every page in `docs/api/`. The second and third send one code path to one page each.
- `rules` asks every review to check that new environment variables and breaking changes reach the named pages. See [Review rules](https://docs.rimfe.com/configuration/review-rules).
JSON has no comments, so the file cannot hold annotations itself.
## Minimal example
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"]
}
```
`ignorePaths`, `docsIgnorePaths`, `codeMappings` and `rules` default to empty. `translations` defaults to `"list"`.
## Translated pages
Rimfe reviews each page once, in its source language, and tells you which translated copies are affected. Copies are found by path:
| Layout | Copy | Source page |
| --- | --- | --- |
| Docusaurus i18n | `i18n/fr/docusaurus-plugin-content-docs/current/intro.md` | `docs/intro.md` |
| Locale folder (Starlight, Mintlify) | `docs/fr/intro.md` | `docs/intro.md` |
| Folder next to the source language (MkDocs) | `docs/fr/docs/intro.md` | `docs/en/docs/intro.md` |
| Locale suffix | `intro.fr.mdx` | `intro.mdx` |
A file counts as a copy only when its source page exists, so a folder such as `go/` that looks like a language code stays a normal page. Copies must match `docsGlobs` and not `docsIgnorePaths`, so keep your translation folders in scope.
| Value | What happens |
| --- | --- |
| `"list"` | Copies are left out of the review. Each finding names the copies that still show the outdated text ("Also out of date in"), lack the missing content ("Also missing in"), or could not be matched ("Check"). A note lists source pages the PR edited without their copies. |
| `"review"` | Copies are reviewed and repaired like any other page. The note still lists copies the PR left behind. |
| `"off"` | Copies are left out of the review, with no lists and no note. |
The note appears on every review with `"list"` or `"review"`, also when the PR changes only docs. With docs in a [separate repository](https://docs.rimfe.com/configuration/separate-docs-repository) there is no note, because the PR's files are not your docs pages.
Translation notes never fail or block the check. Docs PRs edit the source page only, unless `translations` is `"review"`.
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"translations": "off"
}
```
## Owners
`owners` maps docs pages to the people and teams who own them:
```json
{
"owners": [
{ "paths": ["docs/api/**"], "owners": ["@octocat", "@acme/docs-team"] }
]
}
```
Each owner is `@user` or `@org/team`. The last matching rule wins. When no rule matches a page, Rimfe falls back to your CODEOWNERS file (`.github/CODEOWNERS`, `CODEOWNERS` or `docs/CODEOWNERS`, last matching line wins). Rimfe reads CODEOWNERS at the pull request's base, or at the docs repository's commit when docs live elsewhere.
Owners are asked to review the docs PRs Rimfe opens (the pull request author is skipped), listed on findings, and notified through linked Slack accounts and email. A team is expanded to people only when the GitHub App can read the organization's teams; otherwise it is used for review requests only.
## Ignore reference names
Rimfe reports a [broken reference](https://docs.rimfe.com/how-it-works/findings-and-checks) when a docs page names an environment variable, option, command, route, config key or code name that your code does not have. If a name is meant to be absent, such as a variable from a third-party tool, list it in `referenceIgnore`. Each entry is a glob matched against the name as the docs write it.
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"referenceIgnore": ["LEGACY_*", "--experimental-*", "GET /internal/**"]
}
```
A pattern that is not a valid glob is an error. Package files can set `referenceIgnore` too, and their names are added to the root list. The setting is not in the dashboard.
## Audiences
Every docs page has an audience. The audience decides how a suggested fix is worded and which names it may use: a patch to a public page never names internal code. See [the code graph](https://docs.rimfe.com/how-it-works/code-graph#who-may-see-what).
| Audience | Reads |
| --- | --- |
| `public_user` | Customers using the product. |
| `internal` | Your team. |
| `api_reference` | Developers calling the API. |
| `changelog` | Release notes. |
| `help_center` | Support articles. |
| `agent` | Coding agents, through files such as `AGENTS.md`. |
Without an `audiences` key, Rimfe picks by path:
| Pages | Audience |
| --- | --- |
| `engineering/**`, `CONTRIBUTING.md`, `docs/internal/**`, `docs/contributing/**`, `ADR*/**`, `rfcs/**` | `internal` |
| `CHANGELOG*`, `docs/changelog/**`, `docs/releases/**` | `changelog` |
| `help/**`, `support/**`, `docs/help/**` | `help_center` |
| Reference and generated sections, such as an API reference built from a spec | `api_reference` |
| Everything else, including `docs/**` | `public_user` |
Set `audiences` to override those rules. Globs are checked in the order you list them, and the first match wins.
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"audiences": {
"docs/partners/**": "internal",
"docs/sdk/**": "api_reference"
}
}
```
## Graph keys
Rimfe builds a [graph of your code](https://docs.rimfe.com/how-it-works/code-graph) to find which pages a change affects. Two keys tune it, for repositories where the defaults miss something.
- `entryPoints` adds starting points the graph cannot see on its own, such as the exports of a library with an unusual layout. Each entry is a glob over file paths or a `path#symbol` name.
- `graph.hubs` lists shared helpers: symbols that nearly everything calls, such as a logger. The impact walk stops at a shared helper, so one change to it does not make every page look affected. The **Graph and product** section of the **Advanced** settings tab lists them under **Shared helpers**.
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"entryPoints": ["src/index.ts", "src/plugins/**", "src/client.ts#createClient"],
"graph": { "hubs": ["logger", "db"] }
}
```
## Product declarations
The `product` key tells Rimfe about the screens, text, flags and frameworks of your product, so a change to what people see can be matched to the docs that describe it. Rimfe reads most of this from your code; declare only what it cannot.
| Key | What it holds |
| --- | --- |
| `screens` | A map of route paths to screen names, for frameworks Rimfe does not read. Up to 500. |
| `i18n` | Where your translation files are: `files` (a glob), `format` and `sourceLocale`. |
| `flags` | The feature flag provider, `keys` (a path) when the flag keys live in a file, `calls` for your own flag functions and `env` for env var flag prefixes. |
| `frameworks` | Limits which screen rules and translation libraries run. Leave it out to run them all. |
`i18n.format` is one of `flat-json`, `nested-json`, `po`, `yaml`, `xcstrings` or `android-xml`.
`flags.provider` is one of `launchdarkly`, `posthog`, `unleash`, `growthbook`, `statsig`, `flagsmith`, `vercel`, `openfeature`, `optimizely`, `split`, `configcat`, `devcycle` or `generic`. Leave it out to read every provider.
`flags.calls` lists up to 30 function or method names your code uses to read a flag, with the key as the first argument, or the second after a user or request: `isOn("new-billing")`, `Features.enabled?(:new_billing)`. `flags.env` lists up to 10 upper-case prefixes of env vars that are flags, such as `FEATURE_`. Public docs for a change that reads one of these wait for the flag's rollout. See [Feature flags](https://docs.rimfe.com/guides/history-and-reports#feature-flags).
`frameworks` takes screen rules (`nextjs`, `nextjs-pages`, `react-router`, `tanstack-router`, `remix`, `sveltekit`, `nuxt`, `rails`, `django`, `expo-router`, `swiftui`, `compose`) and translation libraries (`react-i18next`, `next-intl`, `formatjs`, `lingui`, `vue-i18n`, `gettext`, `rails-i18n`, `android`, `ios`).
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"product": {
"screens": { "/settings/billing": "Billing settings" },
"i18n": { "files": "locales/*.json", "format": "nested-json", "sourceLocale": "en" },
"flags": { "provider": "posthog", "calls": ["isOn"], "env": ["FEATURE_"] },
"frameworks": ["nextjs", "next-intl"]
}
}
```
The dashboard lists what the file sets under **Graph and product** in the repository's settings. `audiences`, `graph` and `product` belong to the root file only; a package file that sets one is an error.
## Package files
In a monorepo, a package can have its own `.rimfe.json`, such as `packages/sdk/.rimfe.json`. A PR that changes files in that package is reviewed with the root scope plus the package's scope.
```json title="packages/sdk/.rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"codeMappings": [{ "source": "src/**", "target": "docs/" }]
}
```
- Paths are relative to the package folder: `docs/**/*.{md,mdx}` becomes `packages/sdk/docs/**/*.{md,mdx}`. A leading `/` means the repository root.
- Every key is optional in a package file. It can set `docsGlobs`, `docsIgnorePaths`, `ignorePaths`, `codeMappings`, `surface`, `referenceIgnore`, `rules`, `entryPoints` and `agentContext`.
- Automation keys such as `checkMode` or `allowPatchPrs`, and `coverageFloor`, `coverageMaxDrop`, `translations`, `audiences`, `graph`, `product`, `owners`, `inlineComments`, `afterMergeCheck` and `delivery`, are an error in a package file.
- Up to 50 package files are read, each up to 32,000 bytes. The root file is still required.
- Package files are read only with **.rimfe.json at the PR base**.
Validation messages start with the package file's path, for example `packages/sdk/.rimfe.json has an invalid shape: …`.
See the [Monorepos guide](https://docs.rimfe.com/guides/monorepos#package-files) for path rules, which package a changed file belongs to, and how a PR that touches several packages is reviewed.
## Validation errors
Rimfe checks the file in order: it reads it, parses the JSON, checks the shape, then checks the patterns and mappings. The first failing step is the one reported.
Every message ends with the same hint: `Fix the file on the base branch, or set Documentation scope to Dashboard settings in Rimfe.`
| Problem | Message |
| --- | --- |
| File missing or unreadable on the base branch | `.rimfe.json is missing or unreadable on the base branch.` |
| File over 32,000 bytes | `.rimfe.json is 40,120 bytes; the limit is 32,000 bytes.` (with the real size) |
| Not valid JSON | `.rimfe.json is not valid JSON (…). Remove comments and trailing commas.` The parenthesis holds the JSON parser's message. |
| Wrong shape: unknown key, missing `docsGlobs`, a pattern that is empty or longer than 500 characters, a rule that is empty, longer than 300 characters or holds a control character, a `referenceIgnore` entry that is not a valid glob, too many entries | `.rimfe.json has an invalid shape:` followed by up to five problems, such as `unknown key "docGlobs"` or `docsGlobs: Too small: expected array to have >=1 items` |
| Invalid glob, duplicate pattern or rule, or a bad code mapping | `.rimfe.json has invalid patterns:` followed by the individual problems |
The individual problems in the last row use the same wording as the dashboard:
- `Invalid docs globs pattern: `
- `Invalid ignore paths pattern: `
- `Invalid docs ignore paths pattern: `
- `Duplicate docs globs pattern: `
- `Duplicate ignore paths pattern: `
- `Duplicate docs ignore paths pattern: `
- `Invalid code mapping source pattern: `
- `Code mapping target is invalid: `
- `Code mapping target is outside docs scope: `
- `Duplicate code mapping: => `
- `Duplicate review rule: `
See [Code mappings](https://docs.rimfe.com/configuration/code-mappings#validation-rules) for what makes a target valid.
### Where errors show up
- **When you save.** Selecting **Save changes** with **.rimfe.json at the PR base** checks the file on your default branch. The error appears as a message on the form, and the setting is not saved.
- **In the setup preview.** **Check setup** reports the error under **Setup check failed**.
- **During a review.** The file is read again from the current tip of each PR's base branch (not the base commit GitHub recorded when the PR was opened, which never moves). If it is missing or invalid there, the review does not start. Instead, Rimfe records a failed run with the reason **Configuration invalid** and completes the `Rimfe` check as failed with the title "Rimfe configuration is invalid" and the message above as its summary. `@rimfe review` replies with the same message and a link to the run. No result comment is posted.
- **In the config command.** `@rimfe config` reads the file at the base branch tip and, when it is invalid, prints the message on the docs scope line.
- **On the settings page.** With the file selected, the **Docs scope** section reads the file on the default branch and shows either its values or the validation message.
Because reviews read the base branch, fixing the file in a PR branch does not help that PR. Push the fix to the base branch and comment `@rimfe review`; it applies to every open pull request at once. Or switch **Documentation scope** back to **Dashboard settings**.
## Test your file
### Commit the file
Merge `.rimfe.json` into your default branch.
### Turn it on
In the repository's **Settings**, open **Advanced**, set **Documentation scope** to **.rimfe.json at the PR base**, and select **Save changes**. If the file is invalid, the save fails with the reason.
### Preview the scope
The **Docs scope** section now shows "Scope comes from .rimfe.json" with the file's values. Select **Check setup** to confirm the matched file count and the **Matched files** list, and use **Test the scope** to see which pages a changed file reaches through the file's mappings.
### Run a review and check the source
Comment `@rimfe review` on a pull request, then open the run. A line reading `Scope: .rimfe.json` with a commit confirms that review used your file at that base-branch commit.
### The config command
Comment `@rimfe config` on a pull request to print the settings Rimfe would use to review that pull request: review trigger, PR comments, GitHub check, docs repository, docs scope, ignored paths, number of mappings, translations, ignored reference names, review rules, and whether docs PRs are on. It also links to the settings page. You need write access, and **PR commands** must be on.
With **.rimfe.json at the PR base** selected, the scope line reads `Docs scope (from .rimfe.json at 1a2b3c4d)` with the base branch commit the file was read from. If the file at that commit is invalid, the line says so and repeats the validation message. When the PR touches packages with their own file, a `Package configs for this PR` line lists those files.
## Switch back to the dashboard
Set **Documentation scope** to **Dashboard settings** and save. The file is ignored from the next review onward. You can leave it in the repository.
## Related
- [Configuration overview](https://docs.rimfe.com/configuration)
- [Docs scope](https://docs.rimfe.com/configuration/docs-scope)
- [Code mappings](https://docs.rimfe.com/configuration/code-mappings)
---
# Docusaurus
Rimfe reviews the Markdown and MDX files in your Docusaurus `docs` folder. This guide shows how to scope it so that a code change is checked against your current docs, and not against old versions.
## How Rimfe detects Docusaurus
Detection is a suggestion. It never changes your settings on its own.
When you open a repository's **Settings** and choose **Check setup**, Rimfe reads the file list of your repository's default branch. It looks for a file named `docusaurus.config` with the extension `js`, `ts`, `mjs`, `cjs`, `mts` or `cts`, anywhere in the repository.
If it finds one:
- It shows a **Docusaurus layout** badge.
- It suggests the `docs` folder next to that config file as your docs scope. A config at the repository root gives `docs/**/*.{md,mdx}`. A config at `website/docusaurus.config.js` gives `website/docs/**/*.{md,mdx}`.
- If the repository has a root `README.md`, it adds that to the suggestion.
With the dashboard scope, **Use detected scope** copies the suggestion into **Docs globs**. Nothing is saved until you choose **Save changes**.
Detection looks only at file names. It does not read `docusaurus.config`, so it does not see a custom docs `path`, additional docs plugin instances, or anything in your sidebar file. If your docs are not in a folder named `docs`, set the globs yourself.
## Recommended scope
| Setting | Value | Why |
| --- | --- | --- |
| **Docs globs** | `docs/**/*.{md,mdx}` | The current docs only. Without `mdx` in the glob, MDX pages are not read. |
| **Docs globs** | `i18n/*/docusaurus-plugin-content-docs/current/**/*.{md,mdx}` | Only if you commit translations. Copies are not reviewed; each finding lists the ones affected. See [Translated pages](https://docs.rimfe.com/configuration/rimfe-json#translated-pages). |
| **Ignore docs paths** | `versioned_docs/**` | Snapshots of old releases. A code change should not be checked against them. |
| **Ignore docs paths** | `docs/api/**` | Only if these pages are generated and committed, for example by a TypeDoc plugin. |
A narrow glob such as `docs/**/*.{md,mdx}` already excludes `versioned_docs`, `i18n` and `blog`. Add the ignore docs paths if you use a wider glob like the default, or if you move your docs into a larger tree.
If you do not set docs globs, the default is `**/*.{md,markdown,mdx,rst,adoc,asciidoc}`. That covers every docs file in the repository, including `versioned_docs` and the blog. Set the glob explicitly.
Rimfe also never treats files in a `build`, `dist`, `vendor`, `node_modules`, `.next` or `coverage` folder as docs, whatever your globs say. Docusaurus's `build` output is excluded for you.
## Add a config file
You can keep your scope in the repository instead of the dashboard. Create `.rimfe.json` at the repository root:
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"docsIgnorePaths": ["versioned_docs/**", "i18n/**"],
"codeMappings": [
{ "source": "packages/core/src/config/**", "target": "docs/configuration.mdx" }
]
}
```
Then open **Settings**, then **Advanced**, set **Documentation scope** to **.rimfe.json at the PR base**, and choose **Save changes**. Each review reads the file from the PR's base commit, so a change to the file in a PR takes effect only after it merges. See [`.rimfe.json`](https://docs.rimfe.com/configuration/rimfe-json) for every field.
If your site lives in a subfolder of a larger repository, put the folder in every path, for example `website/docs/**/*.{md,mdx}`.
## MDX notes
Rimfe reads `.md` files as Markdown and `.mdx` files as MDX.
- **Imports and components are not expanded.** Rimfe reads each file as written. A partial that you import into a page is read as its own page, and its text is not merged into the page that imports it. Keep a claim and the code it describes in the same file where you can.
- **Invalid MDX is read as plain Markdown.** If an `.mdx` file has broken JSX, an unclosed tag or an unescaped `{` in prose, Rimfe splits it as Markdown instead and names the page in the run's notes. A Docusaurus build usually fails on the same file, so fix it there.
- **Admonitions are plain text.** `:::note` blocks are read as ordinary paragraphs, which is enough to quote them as evidence.
## Tips
- **Map code to pages.** Docusaurus pages are named for topics, and a mapping tells Rimfe where each part of the code is documented. Use `packages/core/src/config/** => docs/configuration.mdx` for one page or `packages/api/** => docs/api/` for a whole folder. See [Code mappings](https://docs.rimfe.com/configuration/code-mappings).
- **Preview before you save.** The **Test the scope** box takes a changed file path and shows which docs it can reach.
- **Keep the blog out.** `blog/**` is not part of the suggested scope. Posts describe a moment in time and should not be flagged as stale.
- **Edit old versions by hand.** Rimfe checks the current docs. If a fix also belongs in an old release, make that change yourself.
- **Docs in another repository.** If the Docusaurus site is in a different repository from the code, see [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository).
- **Run one real PR first.** Choose **Run check** on the repository page and pick a recent PR to confirm the scope picks up the pages you expect. The check page lists anything that was left out under **Files outside this review**.
---
# MkDocs
Rimfe reviews the Markdown files in your MkDocs docs directory. This guide shows how Rimfe finds that directory and what to set when your layout differs from the default.
## How Rimfe detects MkDocs
Detection is a suggestion. It never changes your settings on its own.
When you open a repository's **Settings** and choose **Check setup**, Rimfe reads the file list of your repository's default branch. It looks for a file named `mkdocs.yml` or `mkdocs.yaml`, anywhere in the repository.
If it finds one:
- It shows an **MkDocs layout** badge.
- It suggests the `docs` folder next to that file as your docs scope. A `mkdocs.yml` at the repository root gives `docs/**/*.{md,mdx}`. One at `website/mkdocs.yml` gives `website/docs/**/*.{md,mdx}`.
- If the repository has a root `README.md`, it adds that to the suggestion.
With the dashboard scope, **Use detected scope** copies the suggestion into **Docs globs**. Nothing is saved until you choose **Save changes**.
The setup preview reads `docs_dir` from `mkdocs.yml` and suggests that folder. Without a `docs_dir`, it assumes `docs`, next to the config file. It reads no other MkDocs setting, such as `exclude_docs` or `nav`.
## Recommended scope
| Setting | Value | Why |
| --- | --- | --- |
| **Docs globs** | `docs/**/*.md` | Your docs directory. If you changed `docs_dir`, use that folder instead, for example `documentation/**/*.md`. |
| **Ignore docs paths** | Any page listed in `exclude_docs` | MkDocs skips these files when it builds. Rimfe does not read `exclude_docs`, so repeat them here. |
Translated copies, such as `docs/fr/index.md` or `index.fr.md`, are matched to their source page and left out of the review. Each finding lists the affected copies. See [Translated pages](https://docs.rimfe.com/configuration/rimfe-json#translated-pages).
MkDocs pages use `.md`, which the default scope (`**/*.{md,markdown,mdx,rst,adoc,asciidoc}`) covers. A narrow glob is still better. The default matches every docs file in the repository, including your root `README.md` and pull request templates. Changelogs are excluded by default.
Rimfe never treats files in a `build`, `dist`, `vendor`, `node_modules`, `.next` or `coverage` folder as docs, whatever your globs say. The MkDocs output folder, `site`, contains HTML and is not matched by Markdown globs.
## Add a config file
You can keep your scope in the repository instead of the dashboard. Create `.rimfe.json` at the repository root:
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.md"],
"docsIgnorePaths": ["docs/fr/**"],
"codeMappings": [
{ "source": "src/myproject/cli/**", "target": "docs/cli.md" }
]
}
```
Then open **Settings**, then **Advanced**, set **Documentation scope** to **.rimfe.json at the PR base**, and choose **Save changes**. Each review reads the file from the PR's base commit, so a change to the file in a PR takes effect only after it merges. See [`.rimfe.json`](https://docs.rimfe.com/configuration/rimfe-json) for every field.
## What Rimfe sees in a page
Rimfe reads each page exactly as written in the file.
- **Includes are not expanded.** If you pull in text with a snippet include, such as `--8<--`, Rimfe sees the include line and not the included text. If the included file is in your docs scope, it is read as a separate page.
- **Generated reference is not visible.** A page that holds only a `:::` directive, as mkdocstrings uses, shows Rimfe that directive and not the generated content. A change to a docstring cannot contradict that page. Keep behavior that you want checked, such as defaults and flags, in written pages.
- **Navigation is ignored.** A page that is not in your `nav` is still read if it is in scope.
## Tips
- **Map code to pages.** MkDocs pages are usually named for topics, and a mapping tells Rimfe where each part of the code is documented. Use `src/myproject/cli/** => docs/cli.md` for one page or `src/myproject/api/** => docs/api/` for a whole folder. See [Code mappings](https://docs.rimfe.com/configuration/code-mappings).
- **Preview before you save.** The **Test the scope** box takes a changed file path and shows which docs it can reach.
- **Monorepos.** If the MkDocs site is one project among several, include its folder in every path. See [Monorepos](https://docs.rimfe.com/guides/monorepos).
- **Docs in another repository.** If the MkDocs site is in a different repository from the code, see [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository).
- **Run one real PR first.** Choose **Run check** on the repository page and pick a recent PR to confirm the scope picks up the pages you expect. The check page lists anything that was left out under **Files outside this review**.
---
# Starlight
Rimfe reviews the Markdown and MDX files in your Starlight content folder. This guide shows how Rimfe finds that folder and what to set for MDX pages and translations.
## How Rimfe detects Starlight
Detection is a suggestion. It never changes your settings on its own.
When you open a repository's **Settings** and choose **Check setup**, Rimfe reads the file list of your repository's default branch. It looks for any file under a `src/content/docs/` folder.
If it finds one:
- It shows a **Starlight layout** badge.
- It suggests that folder as your docs scope. A site at the repository root gives `src/content/docs/**/*.{md,mdx}`. A site at `apps/site` gives `apps/site/src/content/docs/**/*.{md,mdx}`.
- If the repository has a root `README.md`, it adds that to the suggestion.
With the dashboard scope, **Use detected scope** copies the suggestion into **Docs globs**. Nothing is saved until you choose **Save changes**.
Detection looks only at file paths. It does not read `astro.config`, so it cannot tell whether the Starlight integration is set up. It matches the folder name. If another Astro content setup uses the same folder, it shows the same badge.
## Recommended scope
| Setting | Value | Why |
| --- | --- | --- |
| **Docs globs** | `src/content/docs/**/*.{md,mdx}` | Your docs, including MDX pages, and nothing outside the site. |
| **Ignore docs paths** | `src/content/docs/reference/generated/**` | Only if you generate reference pages and commit them. |
If you do not set docs globs, the default is `**/*.{md,markdown,mdx,rst,adoc,asciidoc}`. That covers every docs file in the repository, including READMEs and notes outside the site. Set the glob explicitly so only the site is read.
Starlight pages are `.md` or `.mdx`. A Markdoc page with the `.mdoc` extension is not read.
Translations in locale folders such as `src/content/docs/fr/` are matched to their source page and left out of the review. Each finding lists the affected copies. See [Translated pages](https://docs.rimfe.com/configuration/rimfe-json#translated-pages).
## Add a config file
You can keep your scope in the repository instead of the dashboard. Create `.rimfe.json` at the repository root:
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["src/content/docs/**/*.{md,mdx}"],
"docsIgnorePaths": ["src/content/docs/fr/**", "src/content/docs/de/**"],
"codeMappings": [
{ "source": "src/lib/api/**", "target": "src/content/docs/reference/api.mdx" }
]
}
```
Then open **Settings**, then **Advanced**, set **Documentation scope** to **.rimfe.json at the PR base**, and choose **Save changes**. Each review reads the file from the PR's base commit, so a change to the file in a PR takes effect only after it merges. See [`.rimfe.json`](https://docs.rimfe.com/configuration/rimfe-json) for every field.
If your site is inside a monorepo, include the folder in every path, for example `apps/site/src/content/docs/**/*.{md,mdx}`. See [Monorepos](https://docs.rimfe.com/guides/monorepos).
## MDX notes
Rimfe reads `.md` files as Markdown and `.mdx` files as MDX.
- **Component imports are fine.** An import of Starlight components at the top of an `.mdx` page, such as `Card` or `Tabs`, parses normally. The component itself is not expanded.
- **Invalid MDX is read as plain Markdown.** If an `.mdx` file has broken JSX, an unclosed tag or an unescaped `{` in prose, Rimfe splits it as Markdown instead and names the page in the run's notes. Astro fails on the same file at build time, so fix it there.
- **Text in components is still text.** Content inside a component, such as the body of a `Card`, is read as part of the page, so it can be quoted as evidence.
## Tips
- **Map code to pages.** Starlight pages are named for topics, and a mapping tells Rimfe where each part of the code is documented. Use `src/lib/api/** => src/content/docs/reference/api.mdx` for one page or `src/lib/api/** => src/content/docs/reference/` for a whole folder. See [Code mappings](https://docs.rimfe.com/configuration/code-mappings).
- **Mapping targets must be in scope.** A target outside your docs globs is rejected when you save.
- **Preview before you save.** The **Test the scope** box takes a changed file path and shows which docs it can reach.
- **Pages outside the content folder.** Astro pages in `src/pages` and blog collections in other content folders are not docs unless you add them to the globs.
- **Docs in another repository.** If the Starlight site is in a different repository from the code, see [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository).
- **Run one real PR first.** Choose **Run check** on the repository page and pick a recent PR to confirm the scope picks up the pages you expect. The check page lists anything that was left out under **Files outside this review**.
---
# Monorepos
Rimfe works per repository. In a monorepo, you tell it which docs belong to which package in one of two ways: one root scope with mappings, or a `.rimfe.json` file in each package. This guide covers both.
## One repository, one review
A monorepo is one repository to Rimfe:
- **One set of automation settings.** Review trigger, PR comments, the GitHub check, commands and Docs PRs apply to every package. They are set in the dashboard.
- **One check per PR.** A PR that touches several packages gets one review, one check and one comment.
- **One scope per PR.** The root scope applies to every PR. With package files, each PR also gets the scope of every package it touches.
## Choose a setup
| Setup | Use it when |
| --- | --- |
| **One root scope with mappings** | A few packages, one docs folder or one docs site, or one team owns all the docs. Works with dashboard settings or a root `.rimfe.json`. |
| **Package `.rimfe.json` files** | Many packages, each with its own docs folder or owner. Each team edits its own file and writes paths from its package folder. Needs **.rimfe.json at the PR base**. |
You can mix them: keep shared docs in the root file and add package files only where a package has its own docs.
## Package files
With **Documentation scope** set to **.rimfe.json at the PR base**, Rimfe also reads `.rimfe.json` files in subfolders, such as `packages/sdk/.rimfe.json`. The root file is still required. Package files are optional.
```tree title="A monorepo with package files"
.rimfe.json # root scope, required
docs/ # shared docs
packages/
sdk/
.rimfe.json # paths start at packages/sdk
docs/
src/
cli/
.rimfe.json
src/
apps/
api/
.rimfe.json # maps to /docs with a leading /
src/
scripts/ # belongs to the root
```
A package file uses the same format as the root file, with these differences:
- **Allowed keys:** `docsGlobs`, `docsIgnorePaths`, `ignorePaths`, `codeMappings`, `surface`, [`referenceIgnore`](https://docs.rimfe.com/configuration/rimfe-json#ignore-reference-names), `agentContext`, `entryPoints` and [`rules`](https://docs.rimfe.com/configuration/review-rules). All are optional, so a package file can hold only mappings or only rules.
- **Paths start at the package folder.** Rimfe adds the package folder to every pattern and mapping when it reads the file.
- **A leading `/` means the repository root.** Use it to point at shared docs outside the package.
- **No `..`.** A path cannot climb out of the package. Write it from the root with `/` instead.
- **Mapping targets** must be inside the package's docs globs or the root docs scope.
### Example: docs inside the package
```json title="packages/sdk/.rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"docsIgnorePaths": ["docs/api/**"],
"ignorePaths": ["src/generated/**"],
"codeMappings": [{ "source": "src/**", "target": "docs/" }]
}
```
Rimfe reads this as:
| In the file | Used by the review |
| --- | --- |
| `docs/**/*.{md,mdx}` | `packages/sdk/docs/**/*.{md,mdx}` |
| `docs/api/**` | `packages/sdk/docs/api/**` |
| `src/generated/**` | `packages/sdk/src/generated/**` |
| `src/** => docs/` | `packages/sdk/src/** => packages/sdk/docs/` |
### Example: package code, shared docs
```json title="apps/api/.rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"codeMappings": [
{ "source": "src/routes/**", "target": "/docs/reference/http-api.md" },
{ "source": "src/auth/**", "target": "/docs/guides/authentication.md" }
]
}
```
The sources become `apps/api/src/routes/**` and `apps/api/src/auth/**`. The leading `/` keeps the targets at `docs/reference/http-api.md` and `docs/guides/authentication.md`, which the root file's docs globs must cover.
### Which package a file belongs to
Each changed file belongs to the nearest folder above it that has a `.rimfe.json`. Files with no package file above them belong to the root.
- `packages/sdk/src/client.ts` belongs to `packages/sdk`.
- If `packages/sdk/plugins/auth/.rimfe.json` also exists, `packages/sdk/plugins/auth/src/index.ts` belongs to `packages/sdk/plugins/auth` only. Package files do not stack.
- `scripts/release.ts` belongs to the root.
### How a PR that touches two packages is reviewed
Say a PR changes `packages/sdk/src/client.ts` and `packages/cli/src/main.ts`, and both packages have a file. The review uses:
- **Docs scope:** the root docs globs plus both packages' docs globs. Every page in that scope can be read and named in findings.
- **Ignore lists:** the root lists plus both packages' lists.
- **Mappings:** both packages' mappings first, then the root mappings, so the package page ranks first.
- **Rules and surface names:** both packages' entries first, then the root's.
Packages the PR does not touch are not read, so a broken file in another package does not affect this PR. The check page shows `Package configs: packages/cli, packages/sdk` under the scope line, and `@rimfe config` lists the same files.
### Limits and rules
- **50 package files.** Rimfe reads the first 50 `.rimfe.json` files in path order. Files past 50 are ignored.
- **32,000 bytes per file**, and the same field limits as the root file. See [Limits](https://docs.rimfe.com/reference/limits#configuration-file-limits).
- **Repository-wide keys are root-only.** A package file that sets `owners`, `translations`, `audiences`, `graph`, `product`, `coverageFloor`, `coverageMaxDrop`, `inlineComments`, `afterMergeCheck`, `delivery`, `forkPolicy`, `publicAuthorRunsPerDay`, `linkAllowlist` or `securitySensitive` stops the review with an error that names the file and the key. Automation settings such as `checkMode` or `allowPatchPrs` are set in the dashboard and fail in any `.rimfe.json`.
- **Read at the PR base.** Like the root file, a package file changed in a PR takes effect after it merges.
- **Errors name the file.** A broken package file that the PR touches fails the review the same way a broken root file does, for example `packages/sdk/.rimfe.json has an invalid shape: …`.
- **Dashboard settings ignore every file.** With **Documentation scope** set to **Dashboard settings**, neither the root file nor package files are read.
The settings page checks every package file on the default branch, up to 50, and lists any that a review would reject, with the same message. Saving **Documentation scope** with **.rimfe.json at the PR base** runs the same check: a broken package file does not block the save, but the save reports it. **Test the scope** applies the package that owns the path you enter.
GitHub cuts the file list short for very large repositories. When it does, the settings page says some package files may be missing. Reviews use the root scope for packages that are left out.
Without package files, write every path from the repository root, for example `packages/billing/src/**`.
## Scope docs with globs
The default scope is `**/*.{md,markdown,mdx,rst,adoc,asciidoc}`. In a monorepo that matches every package README and internal note. Replace it with globs for the folders that hold real docs. Changelogs are excluded by default.
```text title="Docs globs"
README.md
packages/*/README.md
packages/*/docs/**/*.{md,mdx}
```
`*` matches one folder, so `packages/*/docs` covers every package that has a `docs` folder.
```text title="Docs globs"
README.md
docs/**/*.{md,mdx}
```
```text title="Docs globs"
apps/site/src/content/docs/**/*.{md,mdx}
```
Put the full path from the repository root. See the [Starlight](https://docs.rimfe.com/guides/starlight), [Docusaurus](https://docs.rimfe.com/guides/docusaurus) and [MkDocs](https://docs.rimfe.com/guides/mkdocs) guides for framework layouts.
Add a glob for each place docs live. A file is in scope when it matches at least one glob. Only [docs formats](https://docs.rimfe.com/reference/formats) count.
To check your globs, open the repository's **Settings** and choose **Check setup**. **Matched files** lists up to the first 100 files. If you see a framework badge such as **Docusaurus layout**, **Use detected scope** fills in a suggestion. Detection searches the whole file tree, so it finds a docs site that sits in a subfolder. Review the suggested globs before you save, because they can include folders you do not want. See [Docs scope](https://docs.rimfe.com/configuration/docs-scope).
When docs live in the same repository, Rimfe reads them at the PR's latest commit. A PR that changes a package and its docs page together is checked against the updated page.
## Map packages to doc pages
Rimfe searches your docs on its own, but a monorepo often has several pages that sound alike, such as one `getting-started` page per package. A code mapping tells Rimfe which page covers which package. When a changed file matches the source, Rimfe reads the target first and ranks it higher.
Enter one mapping per line under **Code-to-doc mappings** in the repository's **Settings**:
```text title="Code-to-doc mappings"
packages/billing/src/** => packages/billing/docs/
packages/auth/src/** => packages/auth/docs/guides/authentication.md
apps/api/src/routes/** => docs/reference/http-api.md
packages/*/src/config.ts => docs/reference/configuration.md
```
Or use the `codeMappings` array in `.rimfe.json`:
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["README.md", "packages/*/docs/**/*.{md,mdx}", "docs/**/*.{md,mdx}"],
"codeMappings": [
{ "source": "packages/billing/src/**", "target": "packages/billing/docs/" },
{ "source": "packages/auth/src/**", "target": "packages/auth/docs/guides/authentication.md" }
]
}
```
Keep these points in mind:
- **Sources match changed files by full path.** `packages/billing/**` matches every file under that package. A single `*` does not cross a folder boundary. Wildcards do match folders that start with a dot.
- **A target ending in `/` is a folder.** Every in-scope page under it is read first. The folder must allow a `README` page under your docs globs, or saving fails.
- **A file target must be in scope.** It has to be a docs format, match your docs globs and not match an ignore docs path.
- **Order matters.** Mappings earlier in the list rank higher, so put narrow mappings (one package) before broad ones.
- **Mappings do not limit the review.** Rimfe still looks at other relevant pages. A mapping only makes sure the right page is in front of the review.
- **One mapping per package is enough to start.** Add more only where the review picks the wrong page.
Under **Test the scope**, enter a changed path such as `packages/billing/src/invoice.ts`. Rimfe lists the pages it can reach and why. See [Code mappings](https://docs.rimfe.com/configuration/code-mappings) for the validation rules.
## Ignore generated API docs
If your repository commits generated reference pages, such as output from TypeDoc or an OpenAPI tool, keep them out of scope. A generated page is rewritten by a tool, so a review should not quote it or propose edits to it.
```text title="Ignore docs paths"
packages/*/docs/api/**
docs/reference/generated/**
```
An ignore docs path removes a matching page from the docs: it is never read or edited, even if a docs glob matches it. To leave generated code, fixtures and vendored files out of the review, use **Ignore code paths** (`ignorePaths`) instead. The two lists are separate.
Write the full pattern: `packages/*/docs/api/**` works, and `docs/api` does not match the files inside it.
Some folders are never docs or code under review, whatever you set:
- Pages inside a folder named `.next`, `build`, `coverage`, `dist`, `node_modules` or `vendor` are never read as docs.
- Changed files in those folders, tests, lockfiles, images and other assets, and docs files are not reviewed as code.
For one noisy PR, a maintainer can comment `@rimfe ignore path packages/legacy/**`. The ignore applies to that PR only. Comment `@rimfe review` afterwards to apply it to the current commit. See [Comment commands](https://docs.rimfe.com/reference/commands#ignore-path).
## Large PRs
Monorepo PRs often touch many packages. A PR with more than 300 reviewable code files, more than 30,000 changed lines in code files, or more than 3,000 changed files is skipped before anything is downloaded, and its check completes as Too large to review. Docs, tests, generated files and ignored paths do not count toward these limits. Below them, every changed code file Rimfe can read as code is reviewed in full. Files reviewed from their diff, such as SQL, GraphQL or Dockerfiles, are capped at 40 per review, API specs first, then in path order.
When a PR goes past a limit, the review is marked **Partial review** and lists the skipped files under **Files outside this review**. A partial review that finds no drift is reported as **Incomplete**, not **Pass**.
To get a complete review:
- **Ignore noise.** Add ignore code paths for generated code and fixtures so they do not use up the budget.
- **Use a full review.** Turn on **Full review** in the repository's settings, then comment `@rimfe full review`. It looks deeper, and with docs in a separate repository it also allows larger limits. See [Full review](https://docs.rimfe.com/how-it-works/what-gets-reviewed#large-pull-requests).
- **Split the PR.** One package per PR gives the clearest result.
See [Limits](https://docs.rimfe.com/reference/limits) for every number.
## Docs kept in another repository
If your docs live in other repositories, link them as docs targets. This works well for a monorepo whose services keep their docs apart, or share docs with other repositories.
1. Install the Rimfe GitHub App on every repository, in the same workspace.
2. In the **code** repository's **Settings** > **Docs**, select **Link docs** under **Docs targets** for each docs repository.
3. Write **Docs folders** as paths in the **docs** repository.
4. Set **Code folders** to review a target only for changes in one service, for example `packages/billing/**`.
5. Write mapping sources as paths in the **code** repository and start each target with the docs repository.
```text title="Code-to-doc mappings (set in the monorepo)"
packages/billing/src/** => acme/billing-docs:content/
apps/api/src/routes/** => acme/docs:content/reference/http-api.mdx
```
Points that differ from docs in the same repository:
- **Docs are read from the docs repository's default branch.** A docs change that is still in an open PR is not seen, and neither is a docs page changed in the same code PR.
- **Each ignore list has one side.** **Ignore docs paths** match pages in the docs repository. **Ignore code paths** match changed files in the code repository.
- **Package files still add the package folder.** In a package file, start mapping targets with `/` so they stay paths in the docs repository.
- **Docs PRs go to the docs repository.** `@rimfe open docs PR` opens one PR per docs repository against its default branch, once **Docs PRs** is on.
- **Each docs repository has its own check and comment** when there are several, named after the repository.
See [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository) for setup, permissions and common errors.
## Check the setup
1. Choose **Check setup** and confirm **Matched files** lists the docs you expect.
2. Use **Test the scope** with one changed path from each package.
3. Open a real PR that touches a single package. Choose **Run check** on the repository page if you do not have one open.
4. On the check page, read **Files outside this review** to see what was skipped.
**Check setup** and **Test the scope** use the root scope only. To check package files, comment `@rimfe config` on a PR that touches the package and confirm the **Package configs for this PR** line.
## Related
- [Docs scope](https://docs.rimfe.com/configuration/docs-scope)
- [Code mappings](https://docs.rimfe.com/configuration/code-mappings)
- [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository)
- [Limits](https://docs.rimfe.com/reference/limits)
---
# OpenAPI and schemas
If your team writes the API spec first and builds docs and SDKs from it, the spec is the API surface. Rimfe treats a changed spec as a change to your public contract and checks that your API docs describe it.
## How spec changes are reviewed
Rimfe recognises specs by file name: `openapi.yaml`, `swagger.json`, `asyncapi.yml`, `*.openapi.yaml`, files under `openapi/`, `api-spec/` or `spec/`, `.graphql` and `.gql` schemas, `.proto` files and `*.schema.json` files. See [What gets reviewed](https://docs.rimfe.com/how-it-works/what-gets-reviewed#api-specs) for the full list.
A changed spec:
- **Is always reviewed.** It is never skipped, and never counted as a docs page, even when it sits in your docs folder.
- **Is read first.** Spec changes get priority in the review.
- **Is split into behaviors.** Each added, removed or renamed path, operation, parameter, response field, enum value, default or required flag is checked on its own, so one PR can report several findings for one spec file.
- **Is named in the result.** The review adds a note such as "API spec reviewed: openapi.yaml."
## Structural comparison
For OpenAPI 3.x and Swagger 2 files in JSON or YAML, Rimfe reads the spec before and after the PR and compares what they define, not just the changed lines. It finds changes to operations, parameters, request bodies, responses, fields, enum values, defaults and required flags.
References inside the same file (`$ref: "#/components/schemas/User"`) are followed. A change to a shared schema is reported for every operation that uses it, so renaming a required field in `User` names each endpoint that accepts or returns a `User`.
A few rules keep it safe:
- Only references inside the same file are followed. External references (other files or URLs) are never fetched, and are noted in the review.
- Circular references are followed once, then noted.
- Very large or deeply nested specs fall back to the diff, and the review is marked Partial with the reason. See [limits](https://docs.rimfe.com/reference/limits#api-specs).
- GraphQL, Protobuf, AsyncAPI and JSON Schema files are reviewed from their diff: the names on changed lines are looked up in your docs and checked against the diff.
### Invalid specs
If the spec after the PR is not valid JSON or YAML, Rimfe leaves it out of the review, diff included, because a half-written spec reads as removed operations. The review is marked **Partial** and asks you to fix the spec and push again. If the spec cannot be read, Rimfe reviews its diff as text, marks the review **Partial** and says why. Either way, the review can never pass on a spec it could not read. Structural faults, such as a missing `paths` object, an unresolved `$ref` or a duplicate `operationId`, are listed in the run's notes. They are never reported as documentation drift.
### Reference pages in your repository
When the API reference is committed to the docs repository, Rimfe compares the spec with it. It looks at pages that a [code mapping](https://docs.rimfe.com/configuration/code-mappings) links to the spec, and pages generated from a spec (Fumadocs OpenAPI, Docusaurus OpenAPI, Mintlify).
- An operation the PR adds that no page mentions is reported as **Missing docs**, quoting the spec change.
- An operation the PR removes that a page still describes is reported as a **Docs conflict**, quoting the spec change and the page.
- When each operation has its own generated page, as with Mintlify's `openapi: 'POST /teams'` front matter, a missing operation names the page to add: its path beside the other operation pages, and the front matter it needs.
Missing operations are only reported when every candidate reference page was read. The run's notes list the pages checked.
An operation counts as described when a page names its path with the method nearby (`{id}`, `:id` and `` are the same), or names its `operationId`. Parameters, fields and values on those pages are then checked by the review itself.
A finding is **Missing docs** when no API page describes the change, and **Docs conflict** when a page states something the spec no longer says, such as an old default or a removed enum value.
## Map the spec to your reference pages
Rimfe searches your docs for the right pages on its own. For specs, a [code mapping](https://docs.rimfe.com/configuration/code-mappings) makes sure the API reference is read first.
```text title="Code-to-doc mappings"
openapi/** => docs/api-reference/
openapi.yaml => docs/api-reference/overview.mdx
proto/billing/** => docs/guides/billing.md
```
Or in `.rimfe.json`:
```json title=".rimfe.json"
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["docs/**/*.{md,mdx}"],
"codeMappings": [
{ "source": "openapi/**", "target": "docs/api-reference/" },
{ "source": "openapi.yaml", "target": "docs/api-reference/overview.mdx" }
],
"rules": [
"Every new endpoint needs a request and response example in docs/api-reference"
]
}
```
A folder target such as `docs/api-reference/` checks every page in it first. Use **Test the scope** in the repository's **Settings** with a path like `openapi/paths/users.yaml` to check which pages it reaches.
[Review rules](https://docs.rimfe.com/configuration/review-rules) work well for spec conventions, such as requiring an example for every new endpoint.
### When the reference is generated
Many docs tools, such as Fern, Speakeasy, Bump.sh, Mintlify or Redocly, render the API reference from the spec at build time. Those pages are not files in your repository, so Rimfe cannot read them.
- Map the spec to the hand-written pages that explain the API: guides, authentication, errors, pagination and migration notes. Those pages go stale when the spec changes and nobody notices.
- If generated pages are committed to the repository, add them to **Ignore docs paths**, so the review does not suggest edits that the next build overwrites.
## Measure API docs coverage
Rimfe counts how many operations in your OpenAPI and Swagger files your docs mention, using the same matching as above. Set a floor to fail pull requests that add endpoints without docs. See [Docs coverage](https://docs.rimfe.com/configuration/docs-coverage).
## What is not covered
- **Rendered references.** Pages that exist only after your docs build are not in the repository, so they cannot be compared.
- **References to other files.** A spec split across files is compared one file at a time; references to another file are not followed.
- **Linting.** Rimfe reports faults that stop it from reading a spec. It is not a spec linter, so keep yours in CI.
## Related
- [What gets reviewed](https://docs.rimfe.com/how-it-works/what-gets-reviewed)
- [Code mappings](https://docs.rimfe.com/configuration/code-mappings)
- [Review rules](https://docs.rimfe.com/configuration/review-rules)
- [Docs coverage](https://docs.rimfe.com/configuration/docs-coverage)
- [Monorepos](https://docs.rimfe.com/guides/monorepos)
---
# Docs previews
When Rimfe opens a docs pull request, your docs host usually builds a preview of it. Rimfe finds that preview and links it, so you can read the fix as your readers will see it.
Rimfe does not build previews itself. If your host does not build one, nothing changes.
## Where the link appears
- The Rimfe comment on the original pull request: **Review the docs PR**, followed by `· Preview`.
- The check page, next to **View docs PR**.
The comment is edited once, when the preview is found. It is not edited again for the same link.
## Supported hosts
| Host | What Rimfe reads |
| --- | --- |
| Mintlify | The comment from the Mintlify GitHub App. |
| Vercel | The comment from the Vercel GitHub App. In a monorepo, the project whose folder holds the changed files wins. |
| Netlify | The comment from the Netlify GitHub App. |
| Cloudflare Workers Builds | The check run and the comment from the Cloudflare GitHub App. The branch preview link is preferred. |
| Cloudflare Pages | The check run and the comment from the Cloudflare Pages GitHub App. |
Rimfe trusts only what the host's own GitHub App wrote. A comment from a person is never read, even if it looks like a preview comment.
Rimfe reads the check runs and pull request comments it can already see. It does not need the commit status or deployments permission, and the GitHub App asks for nothing new.
## How long Rimfe looks
Rimfe checks the docs pull request for about 10 minutes after it opens, with longer pauses between checks. It stops as soon as a preview is ready or the build has failed.
If no preview turns up in that time, Rimfe shows no link and reports no error. It does not look again later.
## Make sure your host builds one
Connect your docs repository to the host's GitHub App and turn on pull request previews.
- **Separate docs repository.** Rimfe looks at the docs pull request in the docs repository, so the host must be connected there.
- **Monorepo.** The host project must build from the folder that holds your docs.
- **Silenced comments.** If you turn off the host's pull request comment, Rimfe cannot see the link. Cloudflare Workers Builds also reports the link in a check run, so it works either way.
- **Cloudflare Workers.** Only builds that run `wrangler versions upload` produce a preview.
## Related
- [Docs pull requests](https://docs.rimfe.com/how-it-works/docs-prs)
- [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository)
---
# Bring your own AI key
Reviews run on an AI model. Every plan includes some reviews on Rimfe's models. After those, reviews run on your own provider key, which keeps the cost on your provider bill and your data under your terms with them.
## Included reviews
| Plan | Included reviews a month |
| --- | --- |
| Hobby | 10 |
| Startup | 200 |
| Business | 750 |
| Enterprise | Set in the contract |
Included reviews reset with the monthly review allowance on your workspace's anniversary. They are part of the plan's review total, not added to it. They cover pull request reviews and their repair retries only.
Reviews use the included reviews first, then your key. To run every review on your key, owners and admins turn off **Use included reviews first** under **Settings**, then **AI**, then **Usage and limits**.
When the included reviews are used and there is no key, new reviews pause. The check finishes neutral with the title **Rimfe paused: Included reviews used** and the message "This month's included reviews are used. Add your AI key to keep reviewing." A pull request is never failed for it. Owners and billing managers get one email a month. With **Use included reviews first** off and no key, the title is **Rimfe paused: Add an AI key**.
## Who needs a key
| Plan | After the included reviews |
| --- | --- |
| Hobby | Your own key. |
| Startup and Business | Your own key. |
| Enterprise | Your own key by default. AI can be added to the contract. |
Hosted-docs AI does not use your key. It runs on your [Docs tier](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers), and so do docs audits while you have one. Ask Rimfe runs on your key only.
## Add a key
Owners and admins open **Settings**, then **AI**, and choose **Add key**. Saving a key needs a sign-in from the last 10 minutes. If yours is older, Rimfe asks you to [confirm it's you](https://docs.rimfe.com/guides/account-and-security#confirm-its-you) and then saves the key.
### Choose a provider and paste the key
Supported providers are OpenRouter, Anthropic, OpenAI, Google Gemini, Google Vertex AI (with an API key), Azure OpenAI, Amazon Bedrock, Mistral, xAI, Groq, DeepSeek, Cohere, Together AI, Fireworks, Cerebras, DeepInfra and the Vercel AI Gateway. An OpenAI-compatible endpoint is available on Business. Azure asks for a resource name, Bedrock for a region and access key id, and a custom endpoint for its URL. A custom endpoint must be public HTTPS.
### Wait for the check
Rimfe tests the key right after you save it: it lists the models the key can use and sends one small test request. The key shows **Testing** while it runs, then **Valid** when the provider accepts it or **Needs attention** when it does not. **Choose a model** means the provider gives no model list, so pick a model under **Models** and Rimfe tests that. Your browser encrypts the key before it is sent, and Rimfe's app and review workers can't read it.
### Choose a model and thinking level
Your key, your choice: Rimfe doesn't pick or recommend a model. Choose a model from the ones your key can use, or type any model name. The thinking levels shown are the ones that model offers, and **Provider default** keeps your provider's setting. Use one choice for everything, or turn off **Use the same for all stages** to set reviews and audits separately. Rimfe runs a small test call on your choice.
## Test, rotate and remove
- **Test** checks the key again and shows why it fails, such as an invalid key, a missing permission, a rate limit or a model your account cannot use.
- **Rotate** opens the same dialog and replaces the key without changing the models you chose.
- **Remove** deletes the key. Reviews that used it switch to your included reviews while any are left, and pause when there are none and no other key. Rimfe will not remove a key that still runs **Labels** or **Embeddings**: move them to Rimfe or another key first.
- **Limit models** (owners only) lists the models admins may choose for this key, one name per line. Leave it empty to allow any model.
Only the last four characters of a key are shown after you save it. If a provider refuses the key during a review, reviews pause with a neutral check titled **Rimfe paused: AI key needs attention** until you replace it. See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks#ai-paused).
## Spend limit
Every workspace has a monthly limit of $10 on its own key until it changes it. Owners and admins set it under **Settings**, then **AI**, then **Usage and limits**. An empty field means no limit.
Typing a limit below what was already spent this period shows a warning before you save, such as "You've used $9.40 this month. At $5, reviews on your key pause until the reset date."
Under **Advanced**:
- **Period**, weekly or monthly, and a **time zone**. Weeks start on Monday and months on the 1st.
- **Pull request reviews** and **Docs audits** can have their own limits, so one cannot use up the other.
- **Most per run** caps what one review may use. A review over it runs a lighter search first, and pauses only if that is still too much.
- **Repository shares** give a repository part of the workspace limit. The page warns when the shares add up to more than the limit.
Changes apply to the next call. Rimfe holds an estimate before each call and settles the real cost after it, so the bar shows what is spent and what is held. A model Rimfe does not list has no known price. Enter an estimated price per million tokens for it, or the limit assumes a high one.
At the limit, new reviews and audits on your key pause. The check finishes neutral and titled **Rimfe paused: AI budget reached**, and nothing fails. A run already started finishes. Owners and billing managers get an email, and a Slack message when Slack is connected, at 50%, 80% and 100% of the limit, once each per period, with the reset time. Raise the limit from the paused review or from the **Usage and limits** page and reviews resume at once.
If your provider stops the key at its own limit, the check is titled **Rimfe paused: AI provider limit reached**. The key stays valid. Raise the limit at the provider.
Rimfe's figures are estimates. For OpenRouter keys the page also shows what OpenRouter reports for the same period. Set a limit on a dedicated key at your provider as a backstop above the one here: [OpenRouter](https://openrouter.ai/settings/keys), [Anthropic](https://console.anthropic.com/settings/limits), [OpenAI](https://platform.openai.com/settings/organization/limits). Azure OpenAI and Amazon Bedrock have no dollar stop, so the limit in Rimfe is the only one. Included reviews run on Rimfe and are outside the limit, as are labels and embeddings, wherever they run.
## What data goes where
- Code and docs excerpts for a review go to the provider you chose, under your terms with them.
- Rimfe's zero-retention routing applies to included reviews, Docs work and OpenRouter calls only.
- Labels (reading `@rimfe` comments, double-checking audit findings) and embeddings (searching your docs) run on Rimfe's models at no charge. Under **Labels and embeddings** on the **Keys and models** page you can move either to your own key, so that data reaches only your provider. Embeddings work with OpenAI, Azure OpenAI, Amazon Bedrock, Google Gemini, Vertex AI, Mistral, Cohere, OpenRouter and custom endpoints. Changing the embedding model rebuilds your docs index. While the key is invalid, these tasks pause rather than move back to Rimfe.
- Your browser seals your key before it is sent. Only Rimfe's AI broker can open it, when a call runs. The app and the review workers can't, and it is never shown, logged or put in a comment.
See [Privacy and data](https://docs.rimfe.com/how-it-works/privacy-and-data) for everything else Rimfe stores.
---
# History and reports
Rimfe records what changed, why, what the docs said at the time and when a change reached users. The **History** tab on each repository and the workspace settings for reports, retention and the audit log are built on that record.
## Hold public docs until a release
By default every docs patch opens when the pull request merges. If your public docs should only describe what users can already use, open **History**, then **Release policy**, and choose what public docs follow:
- **Every merge**: nothing is held.
- **Git tags**, **GitHub releases** or **Deployments**: a public patch is held until a tag, release or deployment contains the merged change. For deployments, name the production environment.
Internal docs always update on merge. A held patch is listed under **Held public patches** with the reason. **Publish now** opens it without waiting. Patches that fail the leak check are only released by a person.
Rimfe needs the **Deployments** read-only permission and the Release, Create and Deployment status events on the GitHub App. See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions).
## Reports
Open **Settings**, then **Reports and alerts**, and find **Reports**. Turn on the weekly report (Mondays at 08:00) or the monthly report (the 1st at 08:00) in the time zone you choose, then pick Slack, email or both. Quiet hours are respected: a report waits until they end.
A report lists:
- Changes grouped by confirmed feature, each with the reason given in the pull request.
- Docs kept in sync, with median and p90 time to docs per audience.
- Docs still wrong, ranked by how many days they have been stale.
- Changes no docs page mentions: new or changed public code (a function, an option, an endpoint) that no page names.
- Changes with no recorded reason.
- Public patches waiting on a release.
Every line comes from a record and links to it. No model writes the report. **Preview this week** shows the current report without sending it.
## Docs as of a date
On **History**, pick a date under **Docs as of a date** to list the pages and sections that were live that day. Each page links to GitHub at the commit that wrote it. Rimfe stores page structure, not page text.
## Export and verify evidence
Each change on **History** has **JSON** and **PDF** links. The period export covers every change merged between two dates. An export holds the chain from the reason, to the pull request, review, findings, patches, decisions, release and docs merge, each with time, actor and link. A model-written summary, when there is one, is labelled **Generated summary**.
The PDF footer and the JSON file carry a SHA-256 of the canonical JSON of the chain and an HMAC-SHA256 signature of that hash made with a Rimfe server key. Rimfe keeps only the hash, not the export.
To check an export, hash the `chain` object of the JSON file (keys sorted at every depth, no whitespace) and send the hash and signature:
```bash
curl -s https://app.rimfe.com/api/history/verify \
-H "Content-Type: application/json" \
-d '{"hash":"","signature":""}'
```
`genuine: true` means Rimfe signed the hash and recorded the export.
## Retention
Open **Settings**, then **Data**, and find **Retention** (owners only). Set how many days Rimfe keeps run text, findings and history. Each plan has a range, shown beside the field. Hobby keeps 30, 90 and 90 days. Startup and Business allow 7 to 30, 30 to 365 and 90 to 730 days. Enterprise allows up to seven years of history. Older data is deleted every day, with a deletion receipt for each repository. Current docs state and open findings are never deleted.
## Audit log
**Settings**, then **Audit log**, lists who changed what and when, including who can reach each hosted docs site and who deleted one. Filter by action and export the list as CSV. Owners and admins can open it.
## Feature flags
When a change sits behind a feature flag, its public docs wait until the flag is released, so the docs never announce a feature most users cannot see. Internal docs update on merge as usual. Rimfe finds the flags a change reads three ways:
- Calls in the pull request's added lines, in any language: LaunchDarkly, Unleash, PostHog, GrowthBook, Statsig, Flagsmith, Split, OpenFeature, Optimizely, ConfigCat, DevCycle, Django waffle, Flipper and the like.
- Flag reads in the changed JavaScript and TypeScript files, including keys held in constants and `useFlags().key`.
- Flags that already gate the changed code elsewhere in the repository, from the code graph.
Your own flag functions and env var flags count when you declare them in `.rimfe.json`. See [Product declarations](https://docs.rimfe.com/configuration/rimfe-json#product-declarations).
The repository's **History** tab lists the flags under **Feature flags**, with each flag's production rollout and the patches it holds. Under **Release policy** you set:
- **Rollout threshold**: the percentage a flag must reach. 100 by default.
- **Flag with no rollout reported**: hold public docs (the default) or publish them.
- **Flags to ignore**: kill switches and ops flags that never hold docs, such as `kill-*` or `ops.*`.
- **Production environment**: rollouts in other environments never release public docs.
Without a rollout webhook, use **Mark released** on a flag once it is on for everyone. **Mark not released** holds new docs for it again. A held patch can also be published by hand from **Held public patches**. Changelog entries Rimfe drafts leave out pull requests whose flags are not released.
## Send flag rollouts
Send this JSON from your flag provider's webhook or automation to the URL under **Settings**, **Integrations**, **Flag rollouts**, each time a flag's rollout changes:
```json
{
"repository": "acme/app",
"flagKey": "new-billing",
"percentage": 100,
"environment": "production",
"targeting": "everyone"
}
```
`environment` and `targeting` are optional. Leave out `environment` only when the rollout is for production. Set `targeting` to `segments` when the flag is on only for chosen users, teams or accounts, such as staff or beta testers: Rimfe counts that as 0% public, whatever the percentage inside those segments. The latest rollout is the flag's state, so turning a flag back down holds new docs for it again, and the audit log records the roll-back.
Sign the request. The workspace owner creates a secret on the same page. Send two headers:
- `X-Rimfe-Timestamp`: the current time in Unix seconds. Requests more than five minutes off are rejected.
- `X-Rimfe-Signature`: `sha256=` followed by the hex HMAC-SHA256 of `.` with the secret.
Rimfe answers `200` when the rollout is recorded, `401` for a bad signature or old timestamp, `404` for an unknown repository, `400` for a body that does not match, `413` for a body over 16 KB and `429` when you send too many requests.
---
# Account and security
Open **Settings**. Your own settings are under **Account**: **Profile**, **Security**, **Notifications** and **Privacy**. Settings that belong to everyone in a workspace sit under the workspace's name.
## Profile
Change your name, your time zone and your language and region. Rimfe fills in your time zone from your browser the first time you visit. Slack digests, quiet hours and dates in the app follow it.
To change your email, choose **Change email**. Rimfe emails your current address to approve the change, then emails the new address to confirm it. The email changes only after both. We email your old address when it is done.
## Sign-in methods
GitHub is always available. People who do not use GitHub can sign in with an emailed link that works once and expires in five minutes. Both open the same account when the email matches and is verified; a different email makes a different account.
## Sessions
**Security** lists the browsers and devices signed in to your account with the country each signed in from and when it was last active. Sign out one session, or all the others. Rimfe stores the country only, never a city.
## Two-factor and passkeys
Turn on two-factor to be asked for a code from an authenticator app after GitHub or an email link. Scan the QR code, enter the six digits and save the recovery codes: each works once if you lose the app. You can make new recovery codes or turn two-factor off from the same place.
A passkey signs you in with your device's fingerprint, face or screen lock and counts as a second factor on its own. Add as many as you like, and remove one when a device is gone.
Rimfe emails you when you sign in from a new country or device, when two-factor is turned on or off, and when a passkey is added or removed. These emails cannot be turned off.
## Confirm it's you
A few changes need a sign-in from the last 10 minutes: turning two-factor on or off, new recovery codes, adding or removing a passkey, linking GitHub, changing your email, saving an AI key, and deleting or transferring a workspace. If your sign-in is older, Rimfe asks you to confirm it's you on the same page, then makes the change. Nothing is lost and you stay signed in.
Confirm with a passkey, or with a code from your authenticator app or a recovery code when two-factor is on. Without two-factor, Rimfe can email you a six-digit code that works once for 10 minutes.
## Notifications
**Notifications** sets, for each kind of notice, whether it shows in the bell and on the **Notifications** page, arrives by email or arrives in Slack. The rows are grouped as **For you** (findings assigned to you, docs pull requests to review, findings in docs you own, checks on your pull requests, release readiness, docs changes ready to publish, docs pages that no longer match the code, what readers need from the docs and data exports), **Pull requests in this workspace** (docs update needed, review failed, docs pull request opened and every result) and **Workspace** (usage alerts, billing and AI alerts, weekly and monthly reports). Each row offers only the channels it supports. Email for billing and AI alerts cannot be turned off. Workspace invitations always reach your bell. Pull request result emails go out **Right away** or as a **Daily digest**. The bell in the top bar shows the unread count for the active workspace; **Inbox** lists everything and keeps items for 90 days.
## Export your data
**Privacy** can prepare a zip of your profile and sign-in methods, memberships, invitations, preferences, sessions (without tokens), your security log, your notifications, the decisions and feedback you made and the audit events you took part in. Passkey keys and provider tokens are never included. Rimfe tells you when it is ready. The download link works for 24 hours and you must be signed in; the file is deleted after seven days.
A workspace owner can also export the whole workspace from the workspace's **Data** page: settings, repositories, runs with their findings, decisions, history and the audit log. Notification URLs, secrets and tokens are never included.
## Hand over or delete a workspace
An owner can transfer or delete a workspace from the workspace's **General** page. The new owner can bill, export and delete the workspace, and you become an admin. The audit log records it. Both need a recent sign-in; see [Confirm it's you](#confirm-its-you).
## Delete your account
**Privacy**, **Delete account** removes your profile, sessions, passkeys, notification choices and exports. You type your email to confirm, and enter a code from your authenticator when two-factor is on. If you own a workspace, transfer it or delete it first. Findings and decisions you made stay in the workspace without your name, and Rimfe keeps a deletion receipt with counts only.
## Billing details
Owners and billing managers can set a billing email, company name, tax ID and address under **Billing**, **Invoices**. They go to the payment provider with your next checkout. The same page lists past invoices with links to the PDFs.
---
# Release notes and readiness
When a Git tag, a GitHub release or a deployment to production is recorded, Rimfe builds release notes from the pull requests merged since the previous release of the same kind. The first recorded release lists what was merged in the 30 days before it. A release lists at most 100 pull requests. If the range has more commits than GitHub lists, the oldest are left out and the notes say so.
Each pull request gets a docs state from your [history](https://docs.rimfe.com/guides/history-and-reports):
| State | Meaning |
| --- | --- |
| docs updated | Its findings were closed by a docs merge, or its docs PR was applied. |
| docs missing | It has an open finding. |
| finding dismissed | Its findings were dismissed. |
| no docs impact | It was reviewed and nothing was found. |
| not reviewed | It was never reviewed, or Rimfe has no record of it. |
The notes use each pull request's title and, when it has one, a quote of its description. No AI model rewrites them.
## Releases on the History tab
**History**, then **Releases**, lists each release with the count per state. Choose **Copy Markdown** to copy the notes. When a hosted docs site documents the repository and your plan includes agents, **Draft changelog page** asks the changelog agent to write an entry from exactly these pull requests and their states. You review the draft before it publishes.
## Readiness
When a release ships pull requests with docs missing, Rimfe posts to the workspace's Slack channel and messages the owners of the affected pages, once per release. Owners come from `.rimfe.json` `owners` or CODEOWNERS and need to be linked to Slack.
Rimfe needs the **Deployments** read-only permission and the Release, Create and Deployment status events on the GitHub App. For deployments, set the production environment in the release policy; without one, an environment named `production` or `prod` counts.
---
# Rolling out to a team
Roll Rimfe out in small steps. Start on one repository with the default settings, learn from its first findings, then turn on more as your team trusts the results. This guide gives an order that keeps noise low.
## Start with one repository and the default trigger
Pick an active repository whose docs are in decent shape. Finish the [Quickstart](https://docs.rimfe.com/quickstart) for it, and set the docs scope before the first review. A repository whose overview shows **Docs scope: Every docs file** reviews against `**/*.{md,markdown,mdx,rst,adoc,asciidoc}`, which includes every README and internal note in the repository.
Leave the other settings alone for now. The defaults are made for a quiet start:
| Setting | Default | What your team sees |
| --- | --- | --- |
| **Review trigger** | **On every push** | A review when a PR opens and after each push. A burst of pushes gets one review of the latest commit. |
| **PR comments** | **Needs update only** | A comment only when docs need changes. A passing review leaves no comment. A review that could not run, or a pull request too large to review, still gets one. |
| **GitHub check** | **Non-blocking** | Findings never turn the `Rimfe` check red and never block a merge. The check only fails if Rimfe itself cannot finish the review. |
| **PR commands** | On | Anyone with write access can run `@rimfe` commands. |
| **Docs PRs** | Off | Rimfe does not open docs PRs yet. |
**Wait for drafts to be ready** is on by default. A draft PR is not reviewed automatically until you mark it ready for review. `@rimfe review` works on drafts.
To see a result before your team does, choose **Run check** on the repository page, pick a recent open PR and choose **Start check**. A manual check does not need a new PR. Manual checks have a daily fair-use limit. See [Limits](https://docs.rimfe.com/reference/limits#manual-checks).
Run it for a week or two of normal PRs before you change anything. See [Review triggers](https://docs.rimfe.com/configuration/review-triggers) for the full list of modes.
## Review the first findings and give feedback
Open the first few drift results from the **Checks** page, or from **Recent checks** on the repository overview. For each finding, read the quotes under **Code** and **Docs**. Ask two questions:
- Is the quoted code change real, and is the quoted doc text now wrong or missing?
- Is the suggested target the page you would update?
A finding is **Docs conflict** when the docs say something the code no longer does. It is **Missing docs** when the change adds behavior that no page describes. **Needs context** means Rimfe could not decide with the evidence it had. The PR comment and the check page use the same labels. See [Concepts](https://docs.rimfe.com/concepts).
Then tell Rimfe what you think. Under each finding, choose **Accept** if it is real, or **Dismiss** if it is not. **Dismiss** asks why: **Wrong**, **Too noisy**, **Docs are elsewhere** or **Other**. Add a note if you like, up to 1,000 characters. If you pick **Docs are elsewhere**, enter the right page under **Docs page**; it must be a page in your docs scope. To undo a decision, choose **Reopen finding**.
Rimfe remembers a decision on later reviews as long as the finding's evidence has not changed. Saving one regenerates the suggested fix from the remaining findings and refreshes the PR comment. The first 2 decisions on a check repair it for free; each later one uses a manual check. Only workspace owners and admins can record decisions.
On the pull request, a maintainer can comment `@rimfe ignore` to dismiss the current finding. The check then reads **Docs finding dismissed**. Use this when a finding is wrong and you do not need to record why.
Use what you learn to tune the scope:
- A finding on generated or archived docs means an **Ignore docs paths** entry is missing. See [Docs scope](https://docs.rimfe.com/configuration/docs-scope).
- A finding on code nobody documents on purpose can be skipped for one PR with `@rimfe ignore path `, or for good with an ignore code path in settings.
- A review marked **Partial review** hit a limit. Open **Files outside this review** on the check page to see what was left out.
## Turn on docs PRs
When the findings look right, let Rimfe turn them into PRs.
Rimfe already drafts a docs fix during every review that confirms drift, for up to 24 files. You see it in the PR comment as a suggested patch. Turning on docs PRs does not change that. It lets a maintainer publish the fix as a PR.
1. Open the repository's **Settings**, then **Reviews**, and find **Commands and docs PRs**.
2. Turn on **Docs PRs**, then choose **Save changes**.
3. Make sure the GitHub App can write. For docs in the same repository, it needs write access to **Contents** and **Pull requests**. GitHub asks the installation owner to approve new permissions, so ask them to accept the change. See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions).
4. Choose **Check setup**. **Setup needs attention** tells you if a write permission is still missing.
To publish a fix, a maintainer comments `@rimfe open docs PR` on the PR, or an owner or admin chooses **Open docs PR** on the check page.
Where the PR lands depends on where your docs live:
- **Same repository.** Rimfe creates a branch from the PR's head commit and opens the docs PR against the PR's own branch. Merge it to bring the docs fix into the feature branch.
- **Separate docs repository.** The docs PR goes to that repository's default branch.
Rimfe never merges a docs PR on its own. Your team reviews it like any other PR. For a PR from a fork, Rimfe does not open a docs PR in the same repository. See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs).
## Add mappings
By now you know which pages Rimfe picks wrongly. A code mapping fixes that by telling Rimfe where each part of the code is documented.
1. In **Settings**, on the **Docs** tab, find **Code-to-doc mappings**.
2. Add one mapping per line, for example `src/billing/** => docs/invoices.md`.
3. Under **Test the scope**, enter a real changed file path and confirm the page you want is listed.
4. Choose **Save changes**.
Mappings only make sure the right page is read first. They do not limit what is reviewed. Add a few for your busiest areas, not one for every folder. See [Code mappings](https://docs.rimfe.com/configuration/code-mappings) and, for repositories with several packages, [Monorepos](https://docs.rimfe.com/guides/monorepos).
If you would rather keep scope and mappings in the repository, move them into a `.rimfe.json` file. A PR that edits the file takes effect only after it merges. See [`.rimfe.json`](https://docs.rimfe.com/configuration/rimfe-json).
## Invite teammates
Open **Settings**, then **Members**. Owners and admins can invite people. An invitation lasts 7 days.
1. Enter the person's email under **Invite by email**.
2. Pick a **Role**: **Member**, **Admin** or **Billing manager**. Only owners can pick **Billing manager**.
3. Choose **Send invite**.
Rimfe emails the invitation when email delivery is set up. Otherwise the button reads **Create invite**, and you tell the person yourself. Either way, the invitee opens the invitation link, signs in with the invited email address (GitHub or an email link) and chooses **Join workspace**. Only that address, once verified, can join; someone signed in with a different email sees who the invitation is for instead. A used, canceled or expired link shows a message instead of letting anyone in. Pending invitations are listed with a **Cancel** button.
Pick roles by what each person does:
| Role | Can do |
| --- | --- |
| **Member** | View repositories, checks and settings, start a check, use **Review latest** and **Retry repair**. |
| **Admin** | Everything a member can, plus change settings, record decisions, use **Full review**, **Pause automation** and **Open docs PR**, and invite and manage members other than owners and billing managers. |
| **Billing manager** | View repositories and checks, and manage billing, invoices and usage. Cannot start checks or change settings. |
The workspace owner has every permission and is the only one who can delete the workspace. An owner can hand the workspace to another member with **Make owner** in that member's actions menu; the previous owner becomes an admin. See [Dashboard](https://docs.rimfe.com/reference/dashboard#roles).
Dashboard roles and PR commands are separate. A teammate does not need a dashboard account to comment `@rimfe review` on a PR. They need write access to the repository on GitHub. Teammates without write access get a reply that says so.
Once teammates have joined, set up how they hear about results:
- An owner or admin chooses **Add to Slack** under **Settings**, **Integrations**, **Slack**, then picks which results post to a channel under **Reports and alerts**. Each teammate who should decide from Slack chooses **Connect Slack account** once under **Settings**, **Account**, **Notifications**.
- Anyone who prefers their inbox turns on **Email** under **Settings**, **Account**, **Notifications**: **Right away**, or a **Daily digest** that keeps a busy repository quiet.
See [Notifications](https://docs.rimfe.com/reference/notifications).
Add more repositories in the same way you added the first, one at a time. Each repository has its own settings, so start it with the defaults.
## Agree what reviewers do with a drift comment
Share these steps with your reviewers. A drift comment opens with an alert that says the docs will (or may) be wrong after merge, with how many findings and pages. The findings follow under a heading per docs page, each with its evidence collapsed, and a closing line with the next step.
1. **Read the evidence.** Open each finding's **Evidence**. Compare the **Code** quote with the **Docs** quote. If the alert says "Rimfe is not sure about this one", read it more carefully.
2. **Decide if it is real.**
- **It is real.** Update the docs in the same PR. Use the suggested patch, write the change by hand, or comment `@rimfe open docs PR` if docs PRs are on.
- **It is wrong.** Comment `@rimfe ignore` to dismiss it, or select **Dismiss** under it in the dashboard and pick a reason.
- **It is right but about the wrong page.** Update the right page. Select **Dismiss** and **Docs are elsewhere** to record where the docs belong, or add a mapping so the next review finds it.
3. **Re-check.** With the default trigger, pushing the docs change starts a new review. With **On PR open** or **Only when asked**, comment `@rimfe review` after you push. When the docs are fixed, Rimfe updates the same comment to show a passing result.
4. **Handle partial results.** A comment with a **Partial review** note, or one that opens with **Review incomplete.**, needs a look at the check page. **Files outside this review** lists what was missed. Comment `@rimfe full review` if the PR is large and **Full review** is on.
Two more habits help:
- `@rimfe explain` repeats the latest result, and `@rimfe config` shows the settings in use. Neither starts a review.
- To pause automatic reviews on one PR, comment `@rimfe pause`. Comment `@rimfe resume` to turn them back on. See [Comment commands](https://docs.rimfe.com/reference/commands).
## Tighten up when the team trusts it
After a few weeks of useful findings, consider these changes, one at a time:
- **Review less often.** On a busy repository, set **Review trigger** to **On PR open** or **Only when asked**. Every review uses one of the monthly reviews in your plan, and all reviews in a workspace share daily limits. See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits).
- **Block merges on drift.** Set **GitHub check** to **Blocking when docs required**, and add `Rimfe` as a required status check in your GitHub branch protection rules or rulesets. In this mode, every push is reviewed, an incomplete review also reports "action required", and a review stopped by the daily limit stays neutral. Only repository admins and maintainers can dismiss a finding, pause a PR or ignore paths on it. Choose **Strict blocking** instead if a PR whose review could not run (a limit or an AI key problem) must not merge either.
- **Comment more.** Set **PR comments** to **Needs update and uncertain** to also see results Rimfe is not confident about.
See [Review triggers](https://docs.rimfe.com/configuration/review-triggers) for each option, and [Troubleshooting](https://docs.rimfe.com/troubleshooting) if a review does not appear.
---
# Comment commands
You control Rimfe from the pull request by writing a comment that starts with `@rimfe`. Rimfe replies on the same PR. For commands whose result shows up elsewhere (`review`, `full review`, `update comment`, `ignore` and the finding decisions), it adds an eyes reaction to your comment instead of replying. A command Rimfe reads but does not run gets a reply that says why and what to type, or a confused reaction when no reply is allowed (Notify only, or the pull request's daily replies are used up).
Commands are on by default. You can turn them off with the **PR commands** switch in the repository's settings.
## Write a command
A comment is treated as a command when all of these are true:
- It is a new comment on the pull request conversation, a new inline review comment, or the text of a submitted review. Edited comments are not read again; the one exception is ticking an [action box](#action-boxes) in Rimfe's result comment.
- A person wrote it. Comments from bots are ignored.
- One line starts with `@rimfe` (up to three spaces of indent) and sits in normal paragraph text. Text inside quotes, code blocks and lists is ignored. Inline code, links and emphasis later on the same line are fine.
- The text after `@rimfe` matches a command exactly, or says what you want in plain language.
Matching is not case sensitive, and extra spaces are collapsed. The aliases are `@rimfe apply` for `@rimfe apply patch` and `@rimfe stop` for `@rimfe cancel`, and there are no flags.
Plain-language requests work too, such as `@rimfe can you check the latest push?`. Rimfe runs `review`, `explain`, `update comment` and `config` when it is sure what you mean, and replies `Did you mean …?` for any command that changes or costs something. Anything else gets the [help reply](#unrecognized-commands).
A line that starts with a command which takes no words, such as `@rimfe review the docs too` or `@rimfe cancel it now`, runs nothing. Rimfe replies with the command to type:
```text
Rimfe did nothing: `@rimfe cancel` takes no words after it. Comment `@rimfe cancel` on its own to run it.
```
`explain`, `dismiss`, `wrong`, `too noisy`, `docs are elsewhere`, `ignore path` and `open docs PR` take words after them.
If a comment has more than one `@rimfe` line, only the first one runs.
A command in a reply under one of Rimfe's [inline comments](#review-threads-and-decisions) is about that finding, and Rimfe answers in the same thread. Everywhere else, commands act on the latest result and Rimfe answers on the pull request, or in the thread you wrote in.
## Who can run commands
Your GitHub permission on the repository is checked when Rimfe processes the comment.
| Your GitHub permission | Result |
| --- | --- |
| Admin, Maintain or Write | The command runs. |
| Triage or Read, as a member or collaborator of the repository | Rimfe replies: `Rimfe commands require current write access to this repository.` |
Rimfe reads your repository role, so Maintain and custom roles built on Maintain count as Maintain. On a public repository, commands from people with no link to it are ignored without a reply.
While **GitHub check** is **Blocking when docs required** or **Strict blocking**, `@rimfe ignore`, `@rimfe ignore this PR`, `@rimfe pause` and `@rimfe ignore path` need Admin or Maintain, because they let a pull request past the check. With Write, Rimfe replies, for example: `Only repository admins and maintainers can use @rimfe pause while the check is blocking.`
With [delivery mode](https://docs.rimfe.com/how-it-works/review-queue#delivery-mode) set to **Notify only**, commands still run, but Rimfe answers with a reaction on your comment instead of a reply: eyes for a command it ran, confused for one it did not run. The same holds once the pull request has used its [daily replies](https://docs.rimfe.com/configuration/review-triggers#replies-per-pull-request).
If **PR commands** is off for the repository, every command gets this reply instead, whatever your permission is:
```text
Rimfe PR commands are disabled for this repository.
```
## Action boxes
A drift result comment ends with checkboxes for the commands that fit it. Ticking one runs the same command as typing it:
| Box | Runs | Shown when |
| --- | --- | --- |
| Open a docs PR with the fix | `@rimfe open docs PR` | **Docs PRs** is on and there is a valid fix with no docs PR yet. With docs in several repositories, the box is for that comment's repository. |
| Commit the fix to this PR | `@rimfe apply patch` | Same, and the docs live in this repository. |
| Approve the held patch | `@rimfe approve patch` | [Patch safety](https://docs.rimfe.com/how-it-works/docs-prs#patch-safety) held the fix. |
| Review the latest commit again | `@rimfe review` | Always on a drift result. |
The same permission checks apply as for a typed command. A box ticked by someone without the permission the command needs runs nothing and gets no reply. Rimfe then clears the box, so it can be ticked again later. Edits by bots, including Rimfe's own, never run anything, and a redelivered webhook does not run the command twice.
## Command summary
| Command | What it does | Needs |
| --- | --- | --- |
| `@rimfe review` | Reviews the latest commit. | None |
| `@rimfe full review` | A [full review](https://docs.rimfe.com/reference/limits#normal-and-full-reviews): looks deeper and allows larger limits. | **Full review** on |
| `@rimfe explain` | Replies with the latest result. | A finished review |
| `@rimfe update comment` | Refreshes the Rimfe result comment. | A finished review |
| `@rimfe open docs PR` | Opens a PR with the suggested docs fix. | **Docs PRs** on, a valid fix |
| `@rimfe apply patch` | Commits the suggested docs fix to your PR's branch. | **Docs PRs** on, a valid fix |
| `@rimfe approve patch` | Approves a patch that [patch safety](https://docs.rimfe.com/how-it-works/docs-prs#patch-safety) held. | Admin or Maintain, a held patch |
| `@rimfe ignore` | Dismisses the current finding. | A finished review with drift |
| `@rimfe accept` | Accepts a finding (in its thread) or every open finding. | A finished review |
| `@rimfe dismiss ` | Dismisses one finding with your reason. | A finished review |
| `@rimfe wrong` | Dismisses with the reason "wrong". With a reason after it, dismisses one finding with that reason. | A finished review |
| `@rimfe too noisy` | Dismisses with the reason "too noisy" and remembers it. With a reason after it, dismisses one finding with that reason. | A finished review |
| `@rimfe docs are elsewhere ` | Dismisses and records the page the docs belong on. | A finished review |
| `@rimfe ignore this PR` | Stops automatic reviews and comments on this PR. | None |
| `@rimfe cancel` / `@rimfe stop` | Stops the queued or running check of the latest commit; the check closes as stopped. | Write, Maintain or Admin |
| `@rimfe pause` | Stops automatic reviews and comments on this PR. | None |
| `@rimfe resume` | Turns automatic reviews back on for this PR. | None |
| `@rimfe ignore path ` | Skips matching changed files on this PR. | Admin or Maintain while the check is blocking |
| `@rimfe ignore repo path ` | Points you to settings. It changes nothing. | None |
| `@rimfe config` | Shows the repository's Rimfe settings. | None |
"Needs" lists the setting or state a command depends on. Every command also needs write access and **PR commands** on, as described above.
## review
```text
@rimfe review
```
Queues a docs drift review for the latest commit of the PR. The result arrives as the `Rimfe` check and, depending on the repository's comment mode, a PR comment.
A manual review ignores the draft and label rules, and it runs even if automation is paused for the PR. It does not count against the manual check guard. See [Limits](https://docs.rimfe.com/reference/limits). A pull request too large to review is not reviewed by a manual review either: Rimfe replies with the size it measured and the limit it passed, adds no eyes reaction, and no review runs. The check completes as **Too large to review**.
If the commit was already reviewed, Rimfe reuses that result and refreshes the PR comment instead of reviewing again. A check someone stopped is not a result: `@rimfe review` or **Review latest** starts it again. An automatic review that was stopped stays stopped if GitHub delivers the same push again.
Rimfe adds an eyes reaction to your comment. The review arrives as the check and the PR comment. If Rimfe cannot add a reaction, for example on the text of a submitted review, it replies with one of these:
```text
Queued a Rimfe review for the latest PR commit.
```
```text
Rimfe already reviewed this commit. Updating the existing result: https://app.rimfe.com/checks/
```
```text
Rimfe already has a run for this commit. Current status: running.
```
Errors:
| Reply | Cause |
| --- | --- |
| `Selected pull request is no longer open.` | The PR is closed or merged. |
| `Rimfe could not start the review.` followed by the validation message and a link to the check | The repository reads its scope from `.rimfe.json` and the file on the base branch is missing or invalid. Rimfe also records a failed run and a failed check. See [.rimfe.json](https://docs.rimfe.com/configuration/rimfe-json#validation-errors). |
## full review
```text
@rimfe full review
```
Runs the same review in full mode, described under [Normal and full reviews](https://docs.rimfe.com/reference/limits#normal-and-full-reviews). Use it on a hard PR, or a large one when docs live in a separate repository.
Turn on **Full review** in the repository's settings first.
Rimfe answers like `review`, with an eyes reaction.
Errors:
| Reply | Cause |
| --- | --- |
| `Full review is disabled for this repository. Enable it in Rimfe settings before using @rimfe full review.` | **Full review** is off. |
| `Selected pull request is no longer open.` | The PR is closed or merged. |
## explain
```text
@rimfe explain
```
Replies with the summary of the latest finished review, plus the docs file it would change and the fix summary when there is one. It does not start a new review. Words after it, such as `@rimfe explain why this page`, are fine and change nothing.
Example reply:
```text
Rimfe result: Creating an invoice now requires an Idempotency-Key header.
Impacted docs target: `docs/api/invoices.md`.
Patch summary: Marks the Idempotency-Key header as required.
```
Errors:
| Reply | Cause |
| --- | --- |
| `Rimfe has no completed result for this PR yet. Reply @rimfe review to run one.` | No review has finished on this PR. |
| `The PR has moved since Rimfe produced that result. Reply @rimfe review to analyze the latest commit.` | New commits were pushed after the last review. |
## update comment
```text
@rimfe update comment
```
Rewrites the Rimfe result comment from the latest finished review. Use it if the comment was deleted or looks out of date.
Rimfe adds an eyes reaction and refreshes the comment. If it cannot add a reaction, it replies `Updating the Rimfe PR comment with the latest result.`
The errors are the same as for `explain`. The comment is still subject to the repository's comment mode, so a passing result does not create a comment under the default mode.
## approve patch
```text
@rimfe approve patch
```
Approves the patch of the latest review after [patch safety](https://docs.rimfe.com/how-it-works/docs-prs#patch-safety) held it. Only repository admins and maintainers can use it, whatever the check mode. Rimfe replies with the result and records who approved, in the audit log and the history. Then `@rimfe open docs PR` works.
## open docs PR
```text
@rimfe open docs PR
```
Opens a pull request with the suggested docs fix from the latest review. Docs PRs are off by default. Turn on **Docs PRs** in the repository's settings first. The GitHub App also needs write access, as described in [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions).
Where the PR goes:
- If docs live in the same repository, the docs PR targets the branch of your PR.
- If docs live in [other repositories](https://docs.rimfe.com/configuration/separate-docs-repository), each docs PR targets that repository's default branch. Rimfe opens one per docs repository with a fix. To open only one, name it: `@rimfe open docs PR acme/docs`.
See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs) for how fixes are generated and checked.
Example reply:
```text
Opened the docs PR: https://github.com/acme/api/pull/412
```
## apply patch
```text
@rimfe apply patch
```
Commits the suggested docs fix from the latest review straight to your PR's branch, with no separate docs PR. `@rimfe apply` works too. It needs the same settings and checks as `@rimfe open docs PR`: **Docs PRs** on, a valid fix, and the PR still at the commit Rimfe reviewed.
- Rimfe adds one commit on top of the reviewed commit. If someone pushes while Rimfe is applying the fix, GitHub refuses the commit and nothing is changed.
- Rimfe never commits to a branch in a fork.
- Only the fix for the docs in your repository is committed. Docs in [other repositories](https://docs.rimfe.com/configuration/separate-docs-repository) have no branch of yours to commit to: when they are the only ones with a fix, Rimfe opens the docs PR there instead, and otherwise the reply names the `@rimfe open docs PR ` command for each.
The result comment then says **Applied to this PR** with a link to the commit. With **On every push**, the new commit is reviewed like any other push.
Example reply:
```text
Applied the docs fix to this PR in 3f9c2ab.
```
| Reply | Meaning |
| --- | --- |
| `The PR branch moved while Rimfe was applying the fix, so nothing was applied. Reply @rimfe review to check the latest commit.` | A push landed while Rimfe was applying the fix. |
| `GitHub refused the commit to this PR's branch, so nothing was applied. Check the branch protection rules, or reply @rimfe open docs PR instead.` | A branch rule blocks the GitHub App from pushing. |
| `Rimfe already applied this fix to the PR.` | The fix is already in the branch. |
Errors:
| Reply | Cause |
| --- | --- |
| `Docs PRs are turned off for this repository. Turn on Docs PRs in Rimfe settings, then comment @rimfe open docs PR again.` | **Docs PRs** is off. |
| `Docs fixes are paused for this PR. Reply @rimfe resume before running @rimfe open docs PR.` | The PR is paused or ignored. |
| `Rimfe has no completed patch result for this PR yet. Reply @rimfe review first.` | No review has finished. |
| `A docs PR already exists: ` | A docs PR was already opened for this result. |
| `No generated patch is available for the latest Rimfe result.` | The review found nothing to fix, or no fix was generated. |
| `The latest generated patch is not valid. Reply @rimfe review to regenerate it.` | The fix failed validation. |
| `The latest Rimfe result has no safe docs target.` | No docs file inside your docs scope can take the fix. |
| `No current patch is available, or Docs PRs are turned off. Review the latest commit and repository settings.` | The latest result for this PR is not the one with the fix, or the result was dismissed with `@rimfe ignore`. |
| `The PR has moved since Rimfe generated that patch. Reply @rimfe review to regenerate it for the latest commit.` | The PR's head or base changed after the review. |
| `Docs PRs aren't opened from forks. Apply the suggested change by hand.` | Docs PRs are never created from a fork PR. |
| `Patch safety is holding this patch: it names something the code and docs do not, or edits a security-sensitive section. A maintainer approves it with @rimfe approve patch or on the check page.` | The patch has an ungrounded domain, command, package or security line, or edits a sensitive section. |
| `The docs repository changed since this review. Comment @rimfe review to check against the latest docs, then request the docs PR again.` | The separate docs repository got a new commit after the review. |
| `The documentation repository changed. Run a new review.` | You changed the docs repository setting after the review. |
| `The docs repository connection changed. Run a new review.` | The docs repository was renamed, transferred or reconnected under a different installation after the review. |
| `Docs PRs need Contents and Pull requests write permissions on the Rimfe GitHub App installation.` | The GitHub App lacks write access to Contents or Pull requests. The check covers the code repository's installation, or the docs repository's when docs live elsewhere. |
| `Rimfe could not open the docs PR.` (`Rimfe could not apply the fix.` for `@rimfe apply patch`) followed by the reason | Publishing failed after the checks above passed, for example `Documentation changed or cannot be read: ` when the page changed since the review, `Repair no longer applies: ` when the fix no longer fits, `The source PR changed while preparing its docs patch`, or a GitHub error. The reply tells you to comment `@rimfe review` to regenerate the fix and try again. |
## ignore
```text
@rimfe ignore
```
Dismisses the latest result on this PR. The result becomes Skipped, the check is updated, the result comment is refreshed, and `@rimfe open docs PR` stops working for it. Automatic reviews keep running. Use `@rimfe ignore this PR` to stop them.
Rimfe adds an eyes reaction and refreshes the check and the comment. If it cannot add a reaction, it replies `Marked the current Rimfe finding as ignored for this PR. Automatic checks are unchanged; use `@rimfe ignore this PR` to pause them.`
Errors:
| Reply | Cause |
| --- | --- |
| `There is no current documentation finding to ignore.` | The latest review did not find drift. |
| `Rimfe has no completed result for this PR yet. Reply @rimfe review to run one.` | No review has finished. |
| `The PR has moved since Rimfe produced that result. Reply @rimfe review to analyze the latest commit.` | New commits were pushed after the last review. |
To dismiss one finding out of several, or to record why, use **Dismiss** under the finding on the check page. See [Dashboard](https://docs.rimfe.com/reference/dashboard#check-details).
## Stop a check
`@rimfe cancel`, or `@rimfe stop`, stops every queued or running review of the pull request's latest commit. The check closes at once as **Check stopped**, and Rimfe replies with one of:
| Reply | Meaning |
| --- | --- |
| `Stopped the Rimfe check. Comment @rimfe review to start it again.` | A review was queued or running and is now stopped. |
| `No Rimfe check is running for the latest commit.` | There was nothing to stop. |
It needs Write, Maintain or Admin on the repository. It must be typed as a command: a plain-language request such as "please stop the review" never runs it, because a wrong guess would end a review.
## Review threads and decisions
Rimfe posts an inline comment on the docs line of each finding on a docs page the pull request itself edits. Reply in that thread to decide on the finding. Written as a normal comment or review text, a command without a reason of your own acts on every open finding of the latest result. A reason of your own describes one finding, so it acts only when exactly one finding is open.
| Command | In a finding's thread | In a normal comment |
| --- | --- | --- |
| `@rimfe accept` | Accepts that finding. | Accepts every open finding. |
| `@rimfe dismiss ` | Dismisses that finding. A reason is required. | Dismisses the only open finding. With several open, dismisses nothing and asks which. |
| `@rimfe wrong` | Dismisses with the reason `wrong`. | The same, for every open finding. |
| `@rimfe wrong ` | Dismisses as wrong, with your reason. | Dismisses the only open finding. With several open, dismisses nothing and asks which. |
| `@rimfe too noisy` | Dismisses with the reason `too noisy` and remembers the decision while the finding's evidence is unchanged. | The same, for every open finding. |
| `@rimfe too noisy ` | Dismisses as too noisy, with your reason. | Dismisses the only open finding. With several open, dismisses nothing and asks which. |
| `@rimfe docs are elsewhere ` | Dismisses and records `` as the page the finding belongs on. The path must be inside your docs scope. | The same, for every open finding. |
| `@rimfe explain` | Replies with the code change, the docs quote and why they disagree. It uses the stored result and makes no AI call. | The latest result, as before. |
With several findings open, a reason in a normal comment gets this reply, and nothing is dismissed:
```text
Rimfe dismissed nothing: 3 findings are open. Reply `@rimfe wrong ` in the thread of the finding you mean, or dismiss it on the check page: https://app.rimfe.com/checks/. To dismiss all 3, comment `@rimfe wrong` on its own.
```
When a pull request is reviewed against several docs repositories, a normal comment acts on the only one with open findings. If more than one has them, Rimfe asks which you mean. Name it first, as in `@rimfe accept acme/docs` or `@rimfe wrong acme/docs`. Before a reason, the name is read only when it is one of the reviewed repositories, as in `@rimfe dismiss acme/docs the page is generated`; otherwise it is part of the reason.
These commands write the same decision as the check page and the Slack buttons, so the dashboard, Slack and the pull request stay in sync. The result comment is refreshed afterwards. A dismissed finding stays dismissed, and accepting leaves the finding open until the docs change that fixes it merges.
A plain decision gets an eyes reaction, and the result comment is refreshed. `@rimfe docs are elsewhere `, decisions on a named docs repository and decisions that dismiss nothing reply with text. Example replies:
```text
Noted: the docs for this are in `docs/guides/setup.mdx`. Dismissed the finding.
```
```text
Add a reason after `@rimfe dismiss`, for example `@rimfe dismiss the page is generated`.
```
Decisions follow the same permission as other commands: Write or higher. They are recorded in the workspace's audit log with your GitHub login.
## ignore this PR and pause
```text
@rimfe ignore this PR
@rimfe pause
```
Both stop automatic reviews and automatic comments on this PR, and both block `@rimfe open docs PR` until you resume. They are recorded as different states (ignored and paused) so the dashboard can tell them apart, and they get different replies.
`@rimfe ignore this PR`:
```text
Ignoring this PR: Rimfe will not run automatic checks or post result comments here, and `@rimfe open docs PR` is off until you resume. `@rimfe review` still works. Reply `@rimfe resume` to undo.
```
`@rimfe pause`:
```text
Paused Rimfe automatic checks and comments for this PR. Reply `@rimfe resume` to turn them back on.
```
Manual commands such as `@rimfe review` still work on a paused or ignored PR.
## resume
```text
@rimfe resume
```
Turns automatic reviews and comments back on for this PR, after `pause` or `ignore this PR`. It does not start a review. Run `@rimfe review` to check the current commit now.
Example reply:
```text
Resumed Rimfe automatic checks for this PR.
```
## ignore path
```text
@rimfe ignore path
```
Adds an ignore code path for this PR only. Matching changed files are left out of later reviews of the PR. It never hides docs pages. The pattern is a glob, such as `src/internal/**`, and it is matched against full file paths. Comment `@rimfe review` afterwards to apply it to the current commit. While the check is blocking, only repository admins and maintainers can use it.
Example:
```text
@rimfe ignore path src/generated/**
```
Example reply:
```text
Recorded PR-scoped path ignore `src/generated/**`. Future Rimfe runs for this PR will exclude matching changed files.
```
The glob is checked before it is stored. An invalid pattern such as `[bad` gets this reply and nothing is recorded:
```text
`[bad` is not a valid glob pattern, so nothing was recorded. Example: `@rimfe ignore path src/generated/**`.
```
A valid pattern that matches nothing is accepted. Write the glob after `path`, with a space between. `@rimfe ignore path` on its own gets the help reply.
## ignore repo path
```text
@rimfe ignore repo path
```
Does not change anything. Repository-wide ignores must be set in the repository's settings, where they can be reviewed. The reply says so:
```text
Repository-level path ignores must be changed in Rimfe settings so they are reviewable and permissioned.
```
Add the pattern under **Ignore code paths** in the repository's settings. See [Docs scope](https://docs.rimfe.com/configuration/docs-scope).
## config
```text
@rimfe config
```
Replies with the settings Rimfe would use to review this pull request, and a link to change them. It does not start a review.
Example reply:
```text
Rimfe settings for this repository
- Review trigger: On every push
- PR comments: Needs update only
- GitHub check: Non-blocking
- Docs live in: this repository
- Docs scope (from dashboard): `**/*.{md,markdown,mdx,rst,adoc,asciidoc}`
- Ignored code paths: none
- Ignored docs paths: none
- Code-to-docs mappings: 0
- Translations: listed under findings (`list`)
- Review rules: none
- Docs PRs: off
Change settings
```
When the repository reads its scope from a [`.rimfe.json` file](https://docs.rimfe.com/configuration/rimfe-json), Rimfe reads the file at the current tip of the base branch, and the scope line names the file and that commit, for example `Docs scope (from .rimfe.json at 1a2b3c4d)`. If the file at that commit is invalid, the line reads `Docs scope: .rimfe.json at 1a2b3c4d cannot be used, so reviews on this PR fail until it is fixed.` followed by the validation message, and the lines after it (ignored paths, mappings, translations and review rules) are left out.
An `Ignored reference names` line appears when `referenceIgnore` is set. With [review rules](https://docs.rimfe.com/configuration/review-rules) set, the rules line reads `Review rules (2):` and lists each rule below it.
When the pull request touches packages that have their own [package `.rimfe.json`](https://docs.rimfe.com/guides/monorepos#package-files), a line after the scope lists them, for example `Package configs for this PR: packages/cli/.rimfe.json, packages/sdk/.rimfe.json`. The docs scope, ignored paths and mapping count already include those packages.
Values you can see here:
| Line | Possible values |
| --- | --- |
| Review trigger | On PR open, On every push, Only when asked, Paused |
| PR comments | Needs update only, Needs update and uncertain, All results, Never |
| GitHub check | Non-blocking, Blocking when docs required, Strict blocking, Off |
| Translations | listed under findings, reviewed like any page, ignored |
| Review rules | none, or the count followed by each rule |
| Docs PRs | on, off |
The names match the dashboard.
## Unrecognized commands
A line that starts with a command which takes no words gets the [extra words reply](#write-a-command). Anything else that starts with `@rimfe` and is not a command gets this reply:
```text
I did not recognize that Rimfe command. Available commands:
- `@rimfe review`: check the latest commit
- `@rimfe full review`: a deeper check
- `@rimfe cancel` / `@rimfe stop`: stop the running check
- `@rimfe explain`: summarize the latest result, or explain one finding in its thread
- `@rimfe accept` / `@rimfe dismiss `: decide on a finding (in its thread) or on all open findings; add `owner/repo` first when several docs repositories have findings
- `@rimfe wrong` / `@rimfe too noisy`, with an optional reason after it: dismiss with a quick reason
- `@rimfe docs are elsewhere `: dismiss and name the page the docs belong on
- `@rimfe open docs PR`: open a docs PR with the suggested fix
- `@rimfe apply patch`: commit the suggested fix to this PR's branch
- `@rimfe ignore`: dismiss the current finding on this PR
- `@rimfe ignore path `: skip matching files in this PR
- `@rimfe ignore this PR`: stop checks and comments on this PR
- `@rimfe pause` / `@rimfe resume`: pause or resume automatic checks
- `@rimfe update comment`: refresh the result comment
- `@rimfe config`: show this repository's settings
```
Rimfe handles each command comment once. If you want to run a command again, post a new comment.
## When a command fails
If Rimfe hits an unexpected error while handling a command, it replies:
```text
Rimfe could not complete `@rimfe review` and will retry. If this message stays, contact support with reference ``.
```
It then retries the command. A successful retry replaces that reply with the real one. If the message stays, send the reference to support.
## Commands and the dashboard
Most commands have a dashboard equivalent on the check page. See [Dashboard](https://docs.rimfe.com/reference/dashboard#check-details).
| Command | Dashboard |
| --- | --- |
| `review` | **Review latest** |
| `full review` | **Full review** |
| `cancel`, `stop` | **Stop check** |
| `pause`, `resume` | **Pause automation**, **Resume automation** |
| `open docs PR` | **Open docs PR** |
| `config` | Repository **Settings** |
| `accept`, `dismiss`, `wrong`, `too noisy`, `docs are elsewhere` | **Accept** and **Dismiss** under a finding |
## Re-run and after merge
The **Re-run** button on the `Rimfe` check, and the **Re-run Rimfe** button on a finished check, start a new manual review of that commit. They need the same access as `@rimfe review`, and a paused or ignored PR stays paused. See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks#inline-comments-re-run-and-after-merge).
The `review`, `full review`, `pause`, `resume` and `open docs PR` actions on the dashboard follow the workspace roles described in [Dashboard](https://docs.rimfe.com/reference/dashboard#roles). The commands follow GitHub permissions instead.
---
# CLI
The `rimfe` command line sets up a repository and works with checks from the terminal. It needs Node.js 20 or newer.
## Set up a repository
Run this at the root of the repository, or anywhere inside it:
```sh
npx @rimfe/cli init
```
`init` finds your docs the same way setup in the dashboard does. It recognises Docusaurus, MkDocs, Starlight, Mintlify, GitBook, Sphinx, Antora, Nextra, VitePress, Fumadocs and Fern, and plain `docs` folders. It then writes a [`.rimfe.json`](https://docs.rimfe.com/configuration/rimfe-json) at the repository root:
```json
{
"$schema": "https://rimfe.com/schema/rimfe.json",
"docsGlobs": ["README.md", "website/docs/**/*.{md,mdx}"]
}
```
- It reads the files git tracks (or the folder, outside git), never sends anything anywhere and needs no sign-in.
- Test fixtures are never taken for your docs.
- With no docs found, it writes a starting guess (`README.md` and `docs/`) and says so.
- In a terminal, it shows what it found and asks before writing. In CI or a script, or with `--yes` (`-y`), it writes without asking.
- `--print` shows the file without writing it.
- An existing `.rimfe.json` is left alone unless you confirm, or pass `--force`.
Then:
1. Check the globs, and commit the file to your default branch.
2. Install [Rimfe on GitHub](https://github.com/apps/rimfe) on the repository.
3. In the repository's settings in Rimfe, set **Documentation scope** to **.rimfe.json at the PR base** on the **Advanced** tab.
## Work with checks
Install the CLI, sign in once, then list and act on checks:
```sh
npm install -g @rimfe/cli
rimfe login
rimfe checks --view action
```
| Command | What it does |
| --- | --- |
| `rimfe login` | Signs in through the browser, where you pick the workspace and whether the CLI may make changes. |
| `rimfe logout` | Forgets this computer's sign-in. |
| `rimfe repos` | Lists the workspace's repositories. |
| `rimfe checks` | Lists pull requests with their latest check. `--repo owner/name` limits it to one repository, `--view` picks `action`, `all`, `pass` or `skipped`, `--page n` pages through. |
| `rimfe check ` | Shows a check's findings. |
| `rimfe start ` | Starts a check of an open pull request. |
| `rimfe decide ` | Records `accepted`, `dismissed`, `resolved` or `reopened` on a finding. `--reason text` adds why. |
- `--json` prints the raw results, for scripts.
- `start` and `decide` change things, so they need write access, which you grant when you sign in, and they ask before they run.
- A start counts toward the [manual check limit](https://docs.rimfe.com/reference/limits), like **Run check** in the dashboard.
- `rimfe --version` prints the version, and `rimfe --help` lists a command's options.
The sign-in is kept in your user config folder, readable by you only. `rimfe logout` removes it.
---
# GitHub App permissions
Rimfe is a GitHub App, so you grant it access, review it and remove it from GitHub. It asks for six repository permissions, one organization permission and the webhook events below. Everything else is set to **No access**.
The default setup reads your repository and reports results. It writes to your repository only if you turn on docs PRs or hosted docs edits.
## Repository permissions
| Permission | Access | Why Rimfe needs it |
| --- | --- | --- |
| Metadata | Read-only | Lists the repositories the App is installed on and keeps their state current. GitHub grants this to every App. |
| Contents | Read and write | Reads the code and docs being reviewed. Write access is used only to commit a docs fix someone asked for, or a hosted docs edit you turned on. |
| Pull requests | Read and write | Reads the PR's state, changed files, labels and draft status. Write access is used to open a docs PR, post inline review comments and reply in review threads, and to ask the owners of the changed pages to review a docs PR. |
| Issues | Read and write | GitHub treats PR conversation comments as issue comments. Rimfe uses this to post and update its result comment and to reply to `@rimfe` commands. |
| Checks | Read and write | Creates and updates the `Rimfe` check on the PR's head commit. |
| Deployments | Read-only | Reads deployment statuses, so docs changes held for a release go out once it ships. |
GitHub grants an App one set of permissions, so write access comes with every install. Rimfe uses it only when you turn on docs PRs or hosted docs edits. See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs).
### What Rimfe never does with these permissions
- It does not edit code. A docs PR can only change docs pages inside your docs scope.
- It never merges on its own. It merges a docs PR only when you ask, for example with **Merge docs PR** in Slack.
- It does not write to a fork's branch, and it never opens a docs PR from a fork's content, even into a separate docs repository.
- It does not keep your repository. Each review reads the reviewed commit through the GitHub API and deletes its copy when the review ends.
For what is read, cached and kept, see [Privacy and data](https://docs.rimfe.com/how-it-works/privacy-and-data).
## Organization permissions
| Permission | Access | Why Rimfe needs it |
| --- | --- | --- |
| Members | Read-only | Confirms that the person connecting an organization installation to a workspace is a member of that organization. |
## Webhook events
| Event | What Rimfe does with it |
| --- | --- |
| Pull requests | Starts automatic reviews according to the repository's trigger mode. It acts on opened, reopened, synchronized (new commits), ready for review, labeled and unlabeled. When a PR closes, it ends reviews of that PR that have not finished. When a docs PR closes, merges or reopens, Rimfe records it. |
| Issue comments | Reads new PR comments for `@rimfe` commands. Only newly created comments are handled. See [Comment commands](https://docs.rimfe.com/reference/commands). |
| Pull request review comments, Pull request reviews | Read `@rimfe` commands written in review threads and in the text of a submitted review. Only new comments and submitted reviews are handled. |
| Check runs, Check suites | Start a new review when someone selects **Re-run** on the Rimfe check or **Re-run Rimfe**. Rimfe ignores other apps' checks. |
| Installation | Tracks whether the App is active, suspended or removed, and refreshes the permissions it holds when you accept an update. |
| Installation repositories | Adds or disconnects repositories when you change which repositories the App can access. |
| Repository | Notices renamed, transferred, archived, deleted and visibility changes, so Rimfe stops reviewing repositories it can no longer reach. |
| Push | Keeps Rimfe's view of your docs current after merges, and rebuilds hosted docs sites from the branch they read. See [Privacy and data](https://docs.rimfe.com/how-it-works/privacy-and-data). |
| Releases, Create (tags), Deployment statuses | Release docs changes that wait for a version or a deployment. See [History and reports](https://docs.rimfe.com/guides/history-and-reports). |
Rimfe verifies every webhook before it acts on it, and a redelivery never creates a duplicate review.
See [Review triggers](https://docs.rimfe.com/configuration/review-triggers) for how the trigger mode decides which pull request events start a review.
## Installing and approving updates
You install the App from the **Repositories** page in the dashboard. After GitHub redirects you back, Rimfe asks you to authorize with your GitHub account. It uses that to confirm that you can manage the installation. For an organization, you must be an organization owner.
If Rimfe later needs a new permission, GitHub asks the installation owner to approve it. Until they do, the old permissions stay in force. After approval, Rimfe picks up the new permissions on its own.
## Where the dashboard shows problems
Rimfe compares the installation against the permissions it must have, and reports what is missing:
- The **Repositories** list shows a **Permissions needed** badge in the **Setup** column.
- A repository's **Overview** shows **GitHub permissions need attention**, with the missing permissions and a **Review installation permissions** link.
- **Settings**, **Integrations**, **GitHub** shows **Permissions needed for** the account that owns the installation, with a **Review permissions** link.
Missing permissions are listed in the form `contents: read`, `pull requests: read`, `issues: write` and `checks: write`.
To test a repository before relying on it, open **Settings** and use **Check setup**. It also checks the optional permissions against your settings, and it checks that the App is subscribed to the events your settings need. See [Dashboard](https://docs.rimfe.com/reference/dashboard#repository-settings).
## When a permission is missing
| Missing | What happens |
| --- | --- |
| Contents read | Rimfe cannot read your docs or code. Reviews fail with the reason Permission error: `GitHub permissions are not sufficient for this run.` |
| Pull requests read | Rimfe cannot read the PR. Reviews fail with the reason Permission error, and the **Run check** dialog cannot list open pull requests. |
| Issues write | Rimfe cannot post or update its comment, or answer commands. The review still completes, and the check page shows the comment as Failed. Commands appear to do nothing. |
| Checks write | Rimfe cannot create the check. The review still completes, and the check page shows the GitHub check as failed. Because a passing result does not comment by default, a pass can leave no mark on the PR. |
| Contents write or Pull requests write | The docs PR is not created, and `@rimfe open docs PR` replies `Docs PRs need Contents and Pull requests write permissions on the Rimfe GitHub App installation.` The same message appears in **Check setup** when **Docs PRs** is on, and for a separate docs repository it refers to the installation that covers the docs repository. Reviews are not affected. |
When a missing permission blocks a review, the check page shows the failure and the **Permissions needed** badge appears. Fix the permission on GitHub, then retry the review. A failed run has a **Retry check** button.
## When an event is not subscribed
| Missing event | What happens |
| --- | --- |
| Pull requests | Automatic reviews never start, and Rimfe does not hear about closed PRs. Manual checks and comment commands still work. |
| Issue comments | `@rimfe` commands never arrive. Reviews are not affected. |
| Installation, Installation repositories or Repository | The repository list does not update on its own. Use **Sync** on the **Repositories** page to refresh it. |
| Push | Rimfe does not learn about merged docs changes right away. Each review still starts from your current docs, so reviews take longer. |
## Separate docs repositories
If your docs live in [another repository](https://docs.rimfe.com/configuration/separate-docs-repository), the App must be installed on both repositories in the same Rimfe workspace.
| Repository | Needs |
| --- | --- |
| Code repository | The permissions above, to read the PR and report the result. |
| Docs repository | Contents read, to read the docs. Contents and Pull requests write, to open a docs PR there. |
---
# Limits
Rimfe reads a bounded amount of code and docs on each review. When a pull request goes past a limit, the review does not fail silently. It is marked **Partial review** and lists what it left out. A pull request too large to review is skipped instead, before anything is downloaded; see Review size below.
Monthly review allowances and prices are on [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits).
## What a limit does to the result
- A limit never turns a finding into a false one. Every finding is still checked against the code and docs Rimfe read.
- A review that hit a limit and found no drift is reported as **Incomplete**, not **Pass**, because Rimfe cannot show that everything was covered.
- A review that hit a limit and found drift still reports that drift.
- The check page lists skipped files and pages under **Files outside this review**. See [Dashboard](https://docs.rimfe.com/reference/dashboard#check-details).
See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks) for the check statuses.
## Review size
| Limit | Value | When you exceed it |
| --- | --- | --- |
| Code file | 1 MB | The file is reviewed from its diff instead of its full content. |
| Docs page | 2 MiB | The page is skipped and counted in the run's notes. |
| Generated files | Lines over 5,000 characters, or folders such as `dist` | The file is skipped. |
| Files reviewed from their diff | 40 per review | The rest are listed under **Files outside this review**, and the review is **Partial**. |
| Code past the change summary's budget | Read in part or not at all | The review is **Partial** with the note "Some code changes were too large to read in full." The files left out are listed under **Files outside this review**, unless another stage read them. Test files do not count. |
| Review time | About 8 minutes | Checks still running are stopped. The review keeps what it found and is **Partial**. |
| Pull request too large | More than 300 code files, 30,000 changed lines in code files, or 3,000 changed files | The review is skipped before anything is downloaded and no model runs. The check says **Too large to review**. Docs, tests, generated files and ignored paths do not count toward the file and line limits. |
Files reviewed from their diff are the ones Rimfe cannot read as code, such as SQL, GraphQL or CSS. See [What gets reviewed](https://docs.rimfe.com/how-it-works/what-gets-reviewed#files-that-count-as-product-facing).
### Docs pages read
| Limit | Value | When you exceed it |
| --- | --- | --- |
| Pages read for passages that name changed code | 30 | The least likely pages are left. The review is **Partial** with the note "N docs pages that name changed code were not read within the review's limits". The next review reads them first. |
| Other matching pages read in full | 10 | The best matches are read. |
| Passages in the first pass | 240 | Later passages skip the first pass and are read in order, within the 30 pages. |
### Repository size
Rimfe downloads the commits it reviews and deletes them when the review ends. Very large repositories are trimmed to the docs, config files and changed files. A repository too large to download stops the review, and the check page shows the error. Narrow your docs globs if a separate docs repository is that large.
## Normal and full reviews
Reviews use the normal limits by default. A [full review](https://docs.rimfe.com/reference/commands#full-review) looks deeper and allows larger limits. It is off by default. Turn on **Full review** in the repository's settings, then comment `@rimfe full review` or select **Full review** on the check page.
With docs in a [separate repository](https://docs.rimfe.com/configuration/separate-docs-repository), a full review raises these limits:
| Limit | Normal | Full |
| --- | --- | --- |
| Files reviewed from their diff | 40 | 80 |
| Function changes checked | 40 | 80 |
| Pages read for passages that name changed code | 30 | 60 |
| Other matching pages read in full | 10 | 20 |
| Passages in the first pass | 240 | 480 |
| Closest sections per query | 12 | 24 |
| Diff text per page check | 60,000 characters | 120,000 characters |
## API specs
An OpenAPI or Swagger file is compared with its previous version only within these limits. A spec past any limit is reviewed as a text diff, and the review is **Partial**.
| Limit | Value |
| --- | --- |
| Spec size | 1 MB per version |
| Operations | 2,000 |
| Nesting depth | 128 levels |
| Specs compared in one review | 8 |
| Changes kept per spec | 400 |
External `$ref` values are never fetched. See the [OpenAPI guide](https://docs.rimfe.com/guides/openapi).
## Fair-use guards
Fair-use guards protect against bursts, such as a script that starts many checks at once. The app tells you when one is reached. Rimfe does not publish the numbers.
### Manual checks
A manual check is a review you start from the dashboard. These each count:
- **Start check** in a repository's **Run check** dialog.
- **Review latest** or **Full review** on a check page, when they start a new review.
- **Retry repair** on a check page, when Rimfe has a fix to redo.
Not counted:
- Automatic reviews that start when a pull request opens or changes.
- `@rimfe` comment commands.
- A review Rimfe reuses because the same commit was already reviewed.
When a guard is reached, the **Run check** dialog shows `Daily check limit reached`. Automatic reviews and comment commands keep working.
### Bursts of reviews
When a burst of reviews is held back:
- Automatic reviews end as **Skipped** with the reason **Daily limit reached**, and a neutral check titled "Rimfe paused: daily AI limit reached". The check never fails your pull request.
- Rimfe retries automatic reviews on its own after the reset, once each, while the pull request is still open and has no newer review. The run history shows "Retried after the daily limit reset".
- Reviews you start from a comment or the dashboard are not retried. Start a new one with `@rimfe review` or **Review latest** after the reset.
## Reviews at the same time
Reviews run side by side, also within one workspace. A review of a newer commit replaces an automatic review of the same pull request that has not started yet. The older review ends as **Skipped** with the reason **Stale commit**.
## Docs PR limits
These apply to the fix Rimfe generates and the pull request it opens. See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs).
| Limit | Value |
| --- | --- |
| Files changed in one docs PR | 24 |
| Size of a page Rimfe can edit | 120,000 bytes |
| Bytes a fix can add to a page | 50,000 |
| What you exceeded | What happens |
| --- | --- |
| A fix needs more than 24 files | The first 24 are fixed. The check page and the PR comment name the files left out, to update by hand. |
| A page is larger than 120,000 bytes | The finding is reported, but no fix is generated for that page. It is named with the reason "too large to patch automatically". |
| A fix would add more than 50,000 bytes to a page | The fix is marked invalid and cannot be published. |
A docs PR only touches pages inside your [docs scope](https://docs.rimfe.com/configuration/docs-scope), and never generated folders such as `build`, `dist`, `vendor` and `node_modules`.
## PR comment size
A Rimfe comment is at most 60,000 characters. A longer one leaves out whole collapsed blocks, never part of one, and adds a note that links the check page for the full result. A change summary over 4,000 characters is clipped in the comment; the check page keeps all of it.
Each finding shows quotes from up to 3 code files and up to 3 docs files, with at most 4 quotes per file. The rest are on the check page.
## Configuration file limits
If you keep your docs scope in a [`.rimfe.json` file](https://docs.rimfe.com/configuration/rimfe-json), these limits apply.
| Limit | Value |
| --- | --- |
| File size | 32,000 bytes |
| Docs globs | 1 to 50 |
| Ignore paths | Up to 100 |
| Docs ignore paths | Up to 100 |
| Code mappings | Up to 100 |
| Review rules | Up to 10, each up to 300 characters |
| Length of one pattern | 500 characters |
| [Package files](https://docs.rimfe.com/guides/monorepos#package-files) read | 50, in path order |
A file that is too large, invalid or unreadable at the PR base stops the review. Saving the scope setting checks the file on your default branch first.
## Finding feedback
When you decide on a finding, the note can be up to 1,000 characters. A **Docs page** can be up to 300 characters.
---
# Formats
Rimfe reads your docs and code as they already live in the repository. Nothing needs converting.
## Docs
| Format | Extensions | How it is read |
| --- | --- | --- |
| Markdown | `.md`, `.markdown` | Front matter is skipped. Each heading starts a section. |
| MDX | `.mdx` | Read as MDX. A page with invalid MDX is read as plain Markdown and named in the run's notes. |
| reStructuredText (Sphinx) | `.rst` | Sphinx directives and roles are accepted. `include` is never followed. |
| AsciiDoc | `.adoc`, `.asciidoc` | `include::` is never followed. |
The default [docs scope](https://docs.rimfe.com/configuration/docs-scope) covers all four. If you set your own docs globs, name every extension you use, for example `docs/**/*.{md,mdx,rst}`.
A page larger than 2 MiB, a binary file, or a page that cannot be read is skipped and counted in the run's notes. Changelogs and release notes are never read as docs.
## Code
Rimfe reads changed code to find what a reader could notice: functions, classes, flags, env vars, routes, config keys and signatures.
| Language | Extensions |
| --- | --- |
| TypeScript and JavaScript | `.ts`, `.mts`, `.cts`, `.tsx`, `.js`, `.jsx`, `.mjs`, `.cjs` |
| Python | `.py`, `.pyi` |
| Go | `.go` |
| Rust | `.rs` |
| Java | `.java` |
| Kotlin | `.kt`, `.kts` |
| C# | `.cs` |
| Ruby | `.rb`, `.rake` |
| PHP | `.php` |
| Swift | `.swift` |
| C | `.c`, `.h` |
| C++ | `.cc`, `.cpp`, `.cxx`, `.hh`, `.hpp`, `.hxx` |
| Shell | `.sh`, `.bash`, `.zsh` |
Rimfe also reads `package.json`, `pyproject.toml`, OpenAPI and Swagger specs, JSON Schema and `.env.example` files.
Tests, files larger than 1 MB, and generated files (a line over 5,000 characters, or a build folder such as `dist`) are skipped. Code is read, never run.
---
# Plans and limits
Rimfe is priced per workspace. Every plan has unlimited members and unlimited public repositories, and the same review quality. Plans differ by private repositories, review volume and how AI is paid for. Hosted docs are a [Docs tier](#docs-tiers) you add to any plan.
See the [pricing page](https://rimfe.com/pricing) for the full comparison. For size limits on a single review, see [Limits](https://docs.rimfe.com/reference/limits).
## Plans
| | Hobby | Startup | Business | Enterprise |
| --- | --- | --- | --- | --- |
| Monthly | $0 | $29 | $129 | Contact us |
| Yearly | $0 | $290 ($24/mo) | $1,290 ($107.50/mo) | Annual contract |
| Reviews per month (fair use) | 100 | 1,000 | 5,000 | Custom |
| Private repositories | 1 | 10 | Unlimited | Unlimited |
| Included reviews a month | 10 | 200 | 750 | Custom |
| Public repositories | Unlimited | Unlimited | Unlimited | Unlimited |
| Members | Unlimited | Unlimited | Unlimited | Unlimited |
Prices are in US dollars and exclude tax. Any sales tax or VAT for your location is added at checkout.
Each plan includes everything in the plan before it. Hobby never asks for a card. Startup and Business start with a 14-day trial, once per workspace. Nothing is charged at checkout. The card is charged when the trial ends, unless you cancel before then.
For Enterprise, email [sales@rimfe.com](mailto:sales@rimfe.com).
## Features by plan
Pull request reviews, `@rimfe` commands, review rules, docs PRs, blocking mode and roles are on every plan. These features depend on the plan:
| | Hobby | Startup | Business | Enterprise |
| --- | --- | --- | --- | --- |
| [Slack and webhooks](https://docs.rimfe.com/reference/notifications) | No | Yes | Yes | Yes |
| [Daily email digest](https://docs.rimfe.com/reference/notifications#email) | No | Yes | Yes | Yes |
| [Private docs repository](https://docs.rimfe.com/configuration/separate-docs-repository) | No | Yes | Yes | Yes |
| [Audits](https://docs.rimfe.com/how-it-works/audits) per repository | No | 1 per billing cycle | Unlimited | Unlimited |
| [Weekly audit](https://docs.rimfe.com/how-it-works/audits#weekly-audit) | No | No | Yes | Yes |
| [Accept or dismiss from Slack](https://docs.rimfe.com/reference/notifications#accept-or-dismiss-from-slack) | No | No | Yes | Yes |
| [Docs coverage limits](https://docs.rimfe.com/configuration/docs-coverage#set-limits) | No | No | Yes | Yes |
| Analytics history | 7 days | 90 days | 1 year | 1 year |
| Analytics CSV export | No | No | Yes | Yes |
The audit allowance resets with the monthly allowance. When a plan lacks a feature, the setting says which plan adds it.
## AI costs
The plan fee covers hosting, the dashboard and everything else. AI for reviews comes from two places, used in this order:
1. **Included reviews.** Every plan includes reviews a month on Rimfe's models: 10 on Hobby, 200 on Startup, 750 on Business. Enterprise is set in the contract. They reset with the monthly allowance and are part of the plan's review total, not added to it.
2. **Your own AI key.** Once the included reviews are used, reviews run on your key. Without a key, reviews pause until the next cycle. Every workspace has a $10 monthly spend limit on its key until you change it.
Turn off **Use included reviews first** on the **Usage and limits** page to run every review on your own key.
- **Included reviews** cover pull request reviews and their repair retries only.
- **Used up, no key:** new reviews pause. The check finishes neutral with the title **Rimfe paused: Included reviews used**, and a pull request is never failed for it.
- **Labels and embeddings** run on Rimfe's models at no charge. To keep that data with your own provider, move them to your key under **Labels and embeddings** on the **Keys and models** page.
- **Docs:** AI for hosted docs is paid by your [Docs tier](#docs-tiers), never by your key.
- **Ask Rimfe** runs on your own key only.
See [Bring your own AI key](https://docs.rimfe.com/guides/ai-provider) for keys, models and the spend limit.
## Docs tiers
A Docs tier hosts your docs sites and pays for the AI that writes and maintains them. Add one to any plan, Hobby included, or use it on its own. Enterprise includes Docs in the contract.
| | Docs Lite | Docs Plus | Docs Pro |
| --- | --- | --- | --- |
| Monthly | $25 | $75 | $125 |
| Yearly | $250 | $750 | $1,250 |
| Hosted sites | 1 | 3 | 10 |
| AI pages a month | 150 | 600 | 1,500 |
| Ask answers a month | 250 | 1,000 | 3,000 |
| Pages per generation | 25 | 50 | 100 |
| Pages per agent task | 10 | 20 | 40 |
| Pages per translation run | 25 | 50 | 150 |
| Pages per [website import](https://docs.rimfe.com/platform/import-and-export#import-from-a-website) | 100 | 300 | 1,000 |
| Languages per site | 2 | 5 | 10 |
| Custom domains | Yes | Yes | Yes |
| [Private docs](https://docs.rimfe.com/platform/private-docs) | No | Yes | Yes |
| "Hosted by Rimfe" footer | Shown | Removed | Removed |
- **AI pages** count each page an agent writes, rewrites or translates, each page **Draft fix** checks in [Verification](https://docs.rimfe.com/platform/verification), and each page a [style check](https://docs.rimfe.com/platform/agent-instructions#style-check) reads. A page whose text and rules have not changed since its last style check counts none. Reference pages built from your API spec and drafts from merged pull requests count none.
- **Ask answers** count each answer [Ask the docs](https://docs.rimfe.com/platform/ask-the-docs) gives readers, across all your sites.
- Both reset with the monthly allowance. At the limit, AI work or answers pause until the next cycle, or until you move to a bigger tier. Nothing is charged beyond the tier price.
- Docs AI always runs on Rimfe's models, never on your key.
- Whole-repository [audits](https://docs.rimfe.com/how-it-works/audits) run on Docs while you have a tier. Otherwise they run on your own key.
- Owners and billing managers choose a tier under **Settings**, then **Billing**, in the **Docs** section. A move up is charged now for the rest of the cycle. A move down applies now, and sites above the new tier's allowance pause.
- **Turn off Docs** stops AI work and pauses your sites. They are deleted 14 days later unless you add a tier again.
## What counts as a review
A review is a pull request review that analyzes your change. Each one uses one review from the monthly fair-use allowance, however many files or findings it has and whichever source pays for it. An included review is counted once, at the review's first model call.
These are free and never count:
- Reviews that end early: no code change to review, out of scope, held back, or skipped.
- Docs PRs and **Retry repair**.
- `@rimfe` commands themselves. A review that a command starts counts like any other.
- Re-renders of an existing result.
A review you stop with the Stop check button or `@rimfe cancel` is free if no model call had started. Once a model call has started, the stopped review still counts.
## Monthly allowance
The allowance resets on your workspace's own monthly anniversary, not on the 1st of the month. This is the same on yearly plans.
| Plan | The anniversary is |
| --- | --- |
| Startup and Business | The day the subscription started |
| Hobby | The day the workspace was created |
If the anniversary day does not exist in a short month, the reset moves to that month's last day. A workspace that started on the 31st resets on 30 April, then on 31 May.
The **Billing** page shows **Usage this cycle**: included reviews, all reviews and private repositories, with the reset date. With a Docs tier, the **Docs** section shows the cycle's AI pages and Ask answers used.
### Deleted workspaces
Deleting a workspace does not reset usage. A new workspace that connects the same GitHub account, or is created by the same owner, carries over the deleted workspace's reviews for that month, including the included reviews used this cycle.
How many workspaces a person can own depends on the best plan among the workspaces they own:
| Plan | Workspaces you can own |
|---|---|
| Hobby | 1 |
| Startup | 3 |
| Business | 10 |
| Enterprise | Unlimited |
Limits are not added up: with a Startup and a Business workspace you can own 10 in total. A new workspace starts on Hobby, and you can have one free workspace, so upgrade it before you create another. Being a member of other workspaces has no limit.
### At the limit
The fair-use cap is hard and applies to reviews from every source.
- At **80%** and at **100%** of the allowance, Rimfe emails the workspace owners and billing managers.
- At 100%, new reviews finish with a neutral check titled **Rimfe paused: monthly reviews used**, and Rimfe posts one comment on the pull request that links to upgrade.
- The check is neutral in every mode. A pull request is never failed because of the limit.
- Reviews resume at the next reset, or as soon as you move to a larger plan.
## Private repositories
- **Hobby:** 1 private repository is active. Others can be installed but show as locked, and Rimfe does not review them.
- **Startup:** up to 10 private repositories are active. When you have more, the **Repositories** page asks you to choose which 10, and the rest are paused. Until you choose, the 10 connected first stay active. Change the choice any time from the page menu with **Choose private repositories**.
- **Business and Enterprise:** unlimited.
Paused and locked repositories keep their settings and history. Nothing is deleted.
## Fair-use guards
Fair-use guards protect against bursts of checks. The app tells you when one is reached, for example **Daily check limit reached** in the **Run check** dialog. See [Limits](https://docs.rimfe.com/reference/limits#fair-use-guards).
## Who can pay
Workspace owners and billing managers can start a trial, change plan, and open the customer portal. Admins see the plan but cannot change it. Members see usage only.
A workspace owner can make any member a billing manager from the members page.
## Change or cancel
- **Upgrade:** takes effect right away. You pay the difference for the rest of the period.
- **Downgrade, or yearly to monthly:** takes effect at the end of the paid period.
- **Cancel:** choose **Cancel plan** on the **Billing** page. The plan stays until the end of the period you paid for, then the workspace moves to Hobby. During a trial, **Cancel trial** ends it with no charge. **Keep plan** undoes either before the end date.
- **Come back after cancelling:** once a plan can no longer be kept, for example after it was cancelled right away in the billing portal, choose a plan on the **Billing** page. This starts a new subscription, charged that day.
- **Delete the workspace:** cancel the paid plan first. A workspace with a plan that can still charge cannot be deleted.
The customer portal also has your invoices and card.
## Failed payments
If a payment fails, Rimfe keeps your plan while your payment provider retries the card and sends reminder emails. A banner on the **Billing** page shows the problem.
If the provider stops retrying and the subscription leaves its past-due state, the workspace uses Hobby limits until a payment succeeds. Private repositories are paused, and nothing is deleted. Update the card in the customer portal to restore the plan.
If a trial ends without a card, the workspace moves to Hobby limits the same way.
---
# Dashboard
The dashboard is where you connect repositories, change how reviews run, and read the full result of any review. This page names each page and control as it appears on screen.
## Navigation
The sidebar has **Repositories**, **Docs map**, **Checks** and **Queue** under **Review**, **Hosted docs** under **Hosted docs**, and **Analytics** under **Insights**. **Settings** and the help menu are at the bottom. The workspace switcher is at the top, and your name opens a menu with your account, a light and dark mode switch, and **Sign out**. The bell opens your latest **Notifications**, and **View all** opens the full page.
**Search** at the top, or ⌘K (CtrlK on Windows and Linux), finds pages, repositories and their tabs, checks by pull request title or number, hosted docs sites and settings. It also switches the theme.
Opening the dashboard sends you to **Repositories**. If you do not have a workspace yet, it sends you to workspace setup first.
### Workspace setup
On first sign-in you create a workspace. It holds your repositories, checks and teammates.
- If you have been invited to a workspace with your account email, you can accept the invitation here.
- If you already belong to workspaces, you pick one to continue.
- To create one, enter a **Workspace name** and a **Slug**, then choose **Create workspace**.
## Repositories
The **Repositories** page lists every repository the GitHub App can see in the active workspace. With six or more repositories, a **Filter repositories** box appears.
| Column | Shows |
| --- | --- |
| **Repository** | The repository name and its visibility. Archived repositories carry an **Archived** badge. |
| **Health** | A status badge, described below. |
| **Last check** | The latest result and when it ran, or **No checks yet**. |
Each active repository has a **Run check** button.
### Health
The **Health** badge tells you what to do next:
| Badge | Meaning |
| --- | --- |
| **Disconnected** | The repository is no longer available to the GitHub App. |
| **Locked** | The workspace's plan does not cover this private repository. |
| **Connection issue** | The GitHub App installation is suspended, removed or not finished. A repository sync in progress or a failed sync does not stop reviews. |
| **Permissions needed** | The App is missing a permission. See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions). |
| **Docs for** a repository | This repository holds the docs for another repository. Configure it from that repository. |
| **Indexing…** | The repository's first docs index build is running. The badge changes when the build ends. |
| **Set up docs** | The repository still uses the default scope. It opens the **Docs** settings. |
| **N open findings** | Findings are waiting for a decision. It opens the queue. |
| **Delivery failed** | The last review finished, but its check or comment could not be delivered. |
| **No checks yet** | The scope is set and no review has run yet. |
| **Up to date** | Nothing needs attention. |
### Review trigger labels
The **Review trigger** setting uses these labels. See [Review triggers](https://docs.rimfe.com/configuration/review-triggers).
| Label | Meaning |
| --- | --- |
| **On every push** | Reviews when a PR opens and on every new commit. This is the default. |
| **On PR open** | Reviews when a PR opens, reopens, becomes ready or changes labels, then only when asked. |
| **Only when asked** | Reviews only on request. |
| **Paused** | No automatic reviews. |
### GitHub connection
The top of the **Repositories** page holds the GitHub connection controls once the App is installed:
- **Sync** refreshes the list from GitHub.
- The menu next to **Sync** has **Verify connection** and **Manage installation**.
- Before the App is installed, an empty state shows **Install GitHub App**.
After an install or a sync, a message at the top reports the result. Examples are **GitHub App connected**, **Repositories synced** and **Install failed**. If the installation belongs to another workspace, you see **Installation already connected**.
**Settings**, **Integrations**, **GitHub** also shows the connection. See [Account and workspace](#account-and-workspace).
## Repository overview
Open a repository from the list to see its overview. The page has the tabs **Overview**, **Checks**, **Docs audits** and **Settings**. **Ask**, **Features** and **History** appear when the repository has them. The header has **Open on GitHub** and **Run check**.
The overview shows:
- **GitHub permissions need attention**, with the missing permissions, if the App lacks one.
- **Open findings**, **Last result**, **Last check** and **Docs scope** (**Custom** or **Every docs file**, with the number of code mappings, or `.rimfe.json` when **Documentation scope** on the **Advanced** tab is **.rimfe.json at the PR base**).
- The recent checks of the repository.
- **Docs scope**, with the docs globs and the number of code mappings in effect, or a line saying the scope comes from `.rimfe.json` at each pull request's base. If docs live in another repository, it names that repository.
On **Settings**, **Advanced**, a **Status** section shows **Connection**, **Reviews run** (the review trigger), **GitHub check**, **Last successful review** and **Last GitHub event**. Use the last two to see whether GitHub is reaching Rimfe.
### Features
The **Features** tab lists the product features Rimfe groups the code into when it builds the docs index. **Proposed** features wait for a decision: confirm one, renaming it if you like, split it, reject it, or select several and merge them. **Confirmed** features can be renamed or rejected, and [reports](https://docs.rimfe.com/guides/history-and-reports#reports) group changes by them. The tab appears after the first index build.
## Run check
The **Run check** button opens a dialog, titled **Run a check**, that starts a review of any open pull request. A pull request too large to review is not started: the dialog shows its size and the limit it passed, and no review runs. See [Limits](https://docs.rimfe.com/reference/limits).
1. Search for a pull request under **Open pull request**.
2. Choose **Start check**.
The review runs in the background. The result appears in the dialog as **Check result**, and on the PR. Under **Latest result** you see the last review of the repository.
The dialog shows how many manual checks you have left today. If you have used them all, you see **Daily check limit reached**. Automatic reviews are not affected. See [Limits](https://docs.rimfe.com/reference/limits).
If the GitHub App installation is suspended, removed or not finished, you see **Repository not ready** instead of the form.
## Docs audits
The **Docs audits** tab checks every docs page in scope against the code as it is now, outside any pull request. It lists past audits and is where you start one or turn on the weekly sweep. See [Audits](https://docs.rimfe.com/how-it-works/audits).
## Repository settings
The **Settings** tab holds everything that controls how reviews run for the repository. Every member can open it and read the settings. Only workspace owners and admins can change them; for everyone else the fields are read-only and the save buttons are hidden. See [Roles](#roles).
### Docs targets
Where reviews read docs and open docs PRs. A repository without targets reviews its own docs. Select **Link docs** to add a docs repository, with its folders, readers and optional code folders; **Edit** and **Remove** change a target at once, apart from the tab's **Save**. Linking needs write access to both repositories on GitHub. When this repository holds docs for others, **Holds docs for** lists them. The workspace-wide view is **Docs map**, under **Repositories** in the sidebar. See [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository).
### Check setup
Choose **Check setup** to read your repository on GitHub. It shows:
- How many docs match your scope, and on which branch and commit.
- Any **Detected layouts**, such as Docusaurus. With the dashboard scope, **Use detected scope** copies the suggested globs into the form. It does not save them.
- **Setup needs attention**, with anything that is missing, such as a permission or a webhook event.
- **Matched files**, up to the first 100.
- Links to **Installation access** and **App events and permissions** on GitHub.
The check makes no changes.
### Reviews
The **Reviews** tab has three sections.
**Results on GitHub** has a **Mode** choice: **Check and comment**, **Check only** or **Notify only**. Under **Advanced** it has **PR comments**, **GitHub check**, **Pull request delivery** and **Comment on changed docs lines**.
| Setting | Options |
| --- | --- |
| **PR comments** | **Needs update only**, **Needs update and uncertain**, **All results**, **Never** |
| **GitHub check** | **Non-blocking**, **Blocking when docs required**, **Strict blocking**, **Off** |
| **Pull request delivery** | **Check and comment**, **Comment only**, **Notify only** |
**When checks run** has **Review trigger** (**On PR open**, **On every push**, **Only when asked**, **Paused**), **Wait for drafts to be ready**, **Check after merge**, **Forks and first-time contributors**, **Daily reviews per author**, **Automatic reviews per hour**, **Rimfe replies per PR a day**, **Require these labels** and **Pause for these labels**. See [Review triggers](https://docs.rimfe.com/configuration/review-triggers).
**Commands and docs PRs** has three switches:
| Setting | Options |
| --- | --- |
| **PR commands** | On or off. Allows [comment commands](https://docs.rimfe.com/reference/commands). On by default. |
| **Docs PRs** | On or off. Lets maintainers ask Rimfe to open the suggested fix as a PR. Off by default. |
| **Full review** | On or off. Allows `@rimfe full review` and the **Full review** button. Off by default. |
### Docs scope
On the **Docs** tab:
- **Docs globs**: one glob per line. If you leave it blank, the default is `**/*.{md,markdown,mdx,rst,adoc,asciidoc}`.
- **Code-to-doc mappings**: one `source => target` per line.
On the **Advanced** tab:
- **Ignore code paths**: one path pattern per line. Changes to matching files are not reviewed.
- **Ignore docs paths**: one path pattern per line, relative to the docs repository. Rimfe never reads or edits these pages.
- **Review rules**: one rule per line, up to 10. Each becomes a documentation requirement for this repository.
See [Docs scope](https://docs.rimfe.com/configuration/docs-scope), [Code mappings](https://docs.rimfe.com/configuration/code-mappings) and [Review rules](https://docs.rimfe.com/configuration/review-rules).
### Test the scope
Enter the path of a changed file under **Changed file path** to preview which docs it can reach with the settings above. When **Documentation scope** is set to **.rimfe.json at the PR base**, the test uses the file's scope instead, plus the [package file](https://docs.rimfe.com/guides/monorepos#package-files) that owns the path. It shows **Package:** with that package's folder, or the package file's error if it is broken.
### When the scope comes from `.rimfe.json`
With **.rimfe.json at the PR base** selected, the **Docs scope** section shows a notice "Scope comes from .rimfe.json on main at 1a2b3c4d" with the file's docs globs, ignore paths, docs ignore paths, mappings and review rules, read from the default branch. The dashboard scope fields are hidden; they are kept but not used. If the file is invalid, the notice shows the validation message and says reviews fail until it is fixed. Broken package files are listed under "Reviews that touch these packages fail". If GitHub cut the repository's file list short, a second notice says some package files may be missing.
### Scope source and saving
On the **Advanced** tab, **Documentation scope** is either **Dashboard settings** or **.rimfe.json at the PR base**. See [.rimfe.json](https://docs.rimfe.com/configuration/rimfe-json).
**Forks and first-time contributors** has the options **Wait for @rimfe review**, **Review them** and **Skip them**. The default is **Skip them** on Hobby and **Wait for @rimfe review** on paid plans.
Each tab has its own **Save changes**, and a dot on a tab means it has unsaved changes. Settings apply to the next check. Manual reviews ignore the draft, fork and label rules.
## Checks
The **Checks** page lists every review in the workspace, newest first, 25 to a page.
- The filters **Needs update**, **Passed**, **Skipped** and **All** each show a count. **Needs update** also lists reviews that failed. It is the view you land on.
- With more than one repository, a repository filter appears.
- The columns are **Pull request**, **Result**, **Trigger** and **When**. The trigger is **Manual**, **Automatic** or **PR command**.
- **Previous** and **Next** page through the list.
Open any row with **View**.
### Results
| Result | Meaning |
| --- | --- |
| **Pass** | No docs update is needed. |
| **Needs update** | The code change made docs wrong or left new behavior undocumented. |
| **Fixed** | Every finding of a **Needs update** check was fixed. |
| **Incomplete** | Some behavior could not be verified with the evidence Rimfe had. |
| **Skipped** | No review was needed, or the review was held back. Read the reason. |
| **Stopped** | A person stopped the check before it finished. It is not a failure, and it shows no findings. |
| **Failed** | The review could not finish. |
| **Queued**, **Running** | The review is waiting or in progress. |
See [Findings and checks](https://docs.rimfe.com/how-it-works/findings-and-checks).
## Analytics
The **Analytics** page shows how reviews have gone across the workspace. Choose a period: Hobby sees **7 days**, Startup up to **90 days**, and Business and Enterprise up to **1 year**. Business and Enterprise can also download the period with **Export CSV**, one line per repository and day. **Findings fixed** counts findings in reviews whose docs PR merged, and **Median time to fix** runs from the finished review to that merge. With more than one repository, a repository filter narrows every number on the page. Every member can open it, and nothing on it changes anything. If there were no reviews in the period, the page says so in one line.
| Number | Meaning |
| --- | --- |
| **Reviews** | Reviews started in the period, whatever their result. A check a person stopped reviewed nothing and is not counted. |
| **Needs-update rate** | **Needs update** reviews divided by reviews that finished with **Pass** or **Needs update**. **Skipped**, **Failed** and unfinished reviews are left out. |
| **PRs needing updates** | Pull requests with at least one **Needs update** review. A PR reviewed twice counts once. |
| **Findings fixed** | Findings in reviews whose docs PR merged, out of all findings found. |
| **Median time to fix** | The middle time from a finished review to its docs PR merging. |
| **Docs PRs merged** | Docs PRs merged, with how many of those decided were merged and the middle time from opening one to merging it. |
| **Docs PR merge rate** | Merged docs PRs divided by docs PRs that were merged or closed. Open docs PRs are left out. Below it, the middle time from a finished review to its docs PR. |
| **Findings dismissed** | Findings whose latest decision is **Dismiss finding**. **Reopen finding** takes a finding back out. |
**Reviews per week** charts reviews and needs-update results per week, with weeks starting on Monday (UTC). The first and last weeks can be partial. **Repositories** lists reviews, **Needs update** reviews, the needs-update rate, docs PRs, merged docs PRs and last review for each repository. **Pages that need updates most** ranks up to ten docs pages that findings named, by the number of PRs that named them. A page counts when a finding that needs action suggests it or quotes it as evidence. **View** opens the latest review that named the page.
## Billing
The **Billing** page shows the workspace's plan and usage. Every member can open it.
- The current plan, with **Manage billing** for owners and billing managers once the workspace has a paid plan. It opens the customer portal with invoices and the card.
- **Cancel plan** (or **Cancel trial**) ends the paid plan at the next billing date, after you confirm. Nothing more is charged, and the plan shows **Ends** with the date. **Keep plan** undoes it before that date.
- **Usage this cycle**: reviews and private repositories used this cycle, the reset date, and manual checks used today.
- **Plans**: switch between **Monthly** and **Yearly**, then start a trial, upgrade or downgrade. Owners, admins and billing managers see it; only owners and billing managers can change the plan.
See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits).
## Check details
A check page shows one review of one pull request. While a review is in progress, the page refreshes on its own.
### Controls
| Control | What it does |
| --- | --- |
| **Review latest** | Reviews the PR's newest commit. |
| **Stop check** | Stops a queued or running check at once, with no confirm step. The check page then names who stopped it ("Stopped by Dana Reyes."), or says a comment on the pull request or Rimfe support stopped it. The GitHub check and PR comment say "a workspace member" instead of a name. A stopped check starts again with **Review latest** or `@rimfe review`. |
| **Full review** | A [full review](https://docs.rimfe.com/reference/limits#normal-and-full-reviews): looks deeper and allows larger limits. Disabled while **Full review** is off in settings. |
| **Pause automation** / **Resume automation** | Stops or restarts automatic reviews and comments for this PR. Owners and admins only; members see "Automation paused for this PR" when it is paused. |
| **Open docs PR** | Opens the docs fix as a PR. Shown only to owners and admins, when **Docs PRs** is on and the fix is valid. |
Controls a role cannot use are not shown. **Full review** appears for owners and admins only.
### Result
The page leads with a one-line status, such as **Docs need an update**, **Docs up to date**, **All findings dismissed**, **No review was needed** or **Review failed**. Below it are:
- A summary of the change.
- **Details**: **Started**, **Finished**, **Confidence**, **Reason**, **Commit**, and the **Scope** source. **Docs repository** and **Package configs** appear when you use them.
**Reason** can be one of these:
| Reason | Meaning |
| --- | --- |
| **Docs updated** | The PR's docs already cover the change. |
| **Docs missing** | Docs need an update. |
| **Internal change** | Nothing public changed. |
| **Ignored change** | Nothing the review looks at changed. |
| **No docs found** | The docs scope matched no pages, so there was nothing to check. |
| **Review incomplete** | A limit or unreadable file left a gap. |
| **Finding dismissed** | You dismissed the result with `@rimfe ignore`. |
| **Automation held back** | An automatic review was held back by a draft, label or pause rule. The summary says which. |
| **Permission error** | A GitHub permission is missing. |
| **Daily limit reached** | A fair-use guard held the review back. |
| **Configuration invalid** | `.rimfe.json` at the PR base is missing or invalid. The summary has the message. |
| **Stale commit** | A newer commit replaced this one. |
| **PR closed** | The pull request closed before the review ended. |
| **Too large to review** | The pull request is past a size limit, so nothing was downloaded or reviewed. Split it, or narrow what Rimfe reads with ignore code paths. |
| **GitHub error**, **Run failed** | The review could not finish. |
### Findings
When a review did not cover everything, the **Findings** section has a badge that says **Partial review** or **Not assessed**, with the reasons listed under it. Facts that did not make the review partial, such as a page read as plain Markdown, follow on their own lines, each marked **Note**. Files and pages that were left out are under **Files outside this review**.
Each finding has a label:
| Label | Meaning |
| --- | --- |
| **Docs conflict** | The docs say something the code no longer does. |
| **Missing docs** | The change adds behavior that no page describes. |
| **Covered** | The docs already describe the change correctly. |
| **Internal change** | The change has no public effect. |
| **Needs context** | Rimfe could not decide with the evidence it had. |
Open a finding to read the reasoning and the quoted **Code** and **Docs** evidence, plus the docs page it suggests. A finding that breaks a [review rule](https://docs.rimfe.com/configuration/review-rules) has a **Rule** badge with the rule's number, and lists each rule as **Review rule** with its text.
### Decide on a finding
Under each finding that still needs action, **Accept** and **Dismiss** let you say what you think of it. Owners and admins see them, on a finished review; members do not. They are hidden while Rimfe regenerates the fix, and on findings that are already fixed or need no change.
- **Accept** marks the finding as real. It stays open until the docs change that fixes it. Select **Accepted** again to undo it.
- **Dismiss** opens **Why dismiss this?**. Pick **Wrong**, **Too noisy**, **Docs are elsewhere** or **Other**, add a note if you like (up to 1,000 characters), and select **Dismiss finding**. For **Docs are elsewhere**, enter the right page under **Docs page**; it must be a page inside your docs scope.
- **Reopen finding** appears in the **Dismissed** popover and takes a dismissed finding back out.
A decision is kept on later reviews while the finding's evidence stays the same. After you save one, the existing suggested fix is marked invalid and Rimfe regenerates it from the remaining findings and refreshes the PR comment on its own. The first 2 decisions on a check repair the fix for free; each later one uses a manual check, and when none are left the decision is saved without a new fix. If it cannot start (for example because the PR has moved), the message says why. Open **Explain** on a finding to read its **Earlier decisions**.
### Suggested fix and retries
If the review found docs that need an update and generated a fix, the **Suggested change** section shows the target file, its status (**Ready**, **Check before merging** or **Needs changes**), and the change. Once a docs PR exists, **View docs PR** links to it, with a badge that reads **Open**, **Merged** or **Closed**. See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs).
- **Retry repair** asks for a new fix when there is none or it is not valid. It reuses the saved review and uses one manual check. If the manual check guard is reached, the result is left as it is and the button says so.
- **Retry check** appears on a failed run and takes you to the repository's **Check a pull request** page. It is not shown for a permission error or an invalid `.rimfe.json`; the check page tells you what to fix instead.
### Delivery and history
- **GitHub check** shows the check's state and a **View check** link.
- **PR comment** shows whether the comment was queued, posted, updated, skipped or failed, with an **Open comment** link.
- **Timeline** lists what happened during the review, step by step.
- **Support reference** at the bottom is the ID to quote when you contact support.
## Account and workspace
**Settings** opens a second sidebar, with the pages your role can use.
| Group | Pages |
| --- | --- |
| **Account** | **Profile**, **Security**, **Notifications**, **Privacy** |
| Your workspace | **General**, **Members**, **Integrations**, **Reports and alerts** |
| **AI** | **Keys and models**, **Usage and limits** |
| **Billing** | **Plan and usage**, **Invoices** |
| **Security and data** | **Audit log**, **Data**, **Support access** |
See [Account and security](https://docs.rimfe.com/guides/account-and-security) for the **Account** pages.
### Workspaces
Choose a workspace from the switcher at the top of the sidebar, or create a new one there. **General** has:
- **Rename**, for owners and admins. You can change the name and the slug.
- **Leave workspace**. You lose access until someone invites you again. It is blocked while you are the only owner.
- **Transfer**, for owners. The member you choose becomes the owner and you become an admin.
- **Delete workspace**, for owners only. It removes the workspace for every member, with its repositories, checks and configuration. You must type the slug to confirm. Cancel a paid plan in **Billing** first; a workspace with one cannot be deleted. Deleting does not uninstall the GitHub App; the dialog links to each installation on GitHub so you can remove it there.
### Members and invitations
Owners and admins invite people under **Members**.
1. Enter the person's email under **Invite by email**.
2. Pick a **Role**: **Member**, **Admin** or **Billing manager**. Only owners can pick **Billing manager**.
3. Choose **Send invite**.
The invitee opens the link from the email, signs in with the invited address (GitHub or an email link) and chooses **Join workspace**. Only that address can accept. An invitation lasts 7 days. A link that was already used, canceled or expired cannot be used again. Pending invitations are listed with **Resend** and **Cancel**, and expired ones are marked **Expired**.
Owners and admins can also change a member's role or remove them from the workspace.
### Reports and alerts
**Reports and alerts** under your workspace sets the rules for Slack and the webhook, the reports it sends and the emails from Rimfe, and **Integrations** connects them. See [Notifications](https://docs.rimfe.com/reference/notifications). Every member sets their own under **Account**, **Notifications**, and can use **Connect Slack account** there to decide on findings from Slack.
### Support access
**Support access**, under **Security and data**, links the data processing addendum and lists every request from Rimfe support to read your findings text, with the checks you shared. Owners and admins choose how long to allow it and select **Approve**, **Deny** or **Revoke**. Every access is in the audit log. To get help with one check, open it and choose **Share with support** from its menu. Support can then read that check's findings until the time is up.
### GitHub App
**Integrations**, **GitHub** shows each installation and when it last synced, and lists missing permissions as **Permissions needed for** the account, with a **Review permissions** link. **Manage** opens the installation on GitHub, where you can remove the App.
## Roles
Each member has a role in the workspace.
| Action | Owner | Admin | Member |
| --- | --- | --- | --- |
| View repositories and checks | Yes | Yes | Yes |
| Start a check, **Review latest**, **Retry repair** | Yes | Yes | Yes |
| **Stop check** | Yes | Yes | Yes |
| **Start audit** | Yes | Yes | Yes |
| Open **Settings** and read them | Yes | Yes | Yes |
| Change **Settings** | Yes | Yes | No |
| **Full review**, **Pause automation**, **Resume automation**, **Open docs PR** | Yes | Yes | No |
| **Weekly audit** | Yes | Yes | No |
| **Accept**, **Dismiss** and **Reopen finding** | Yes | Yes | No |
| Install the GitHub App and **Sync** | Yes | Yes | No |
| Invite and manage members | Yes | Yes | No |
| Give or remove the **Billing manager** role | Yes | No | No |
| Rename the workspace | Yes | Yes | No |
| Change **Reports and alerts** | Yes | Yes | No |
| Change or cancel the plan, **Manage billing** | Yes | No | No |
| Delete the workspace | Yes | No | No |
A **Billing manager** can view repositories and checks and manage the plan. Under **Usage and limits**, **Who can start AI work** can limit checks, audits and docs agents to owners and admins.
The **Billing manager** role can see repositories and checks and manage billing, but cannot start checks or audits or change anything else.
Roles apply to the dashboard only. Comment commands follow GitHub permissions. See [Comment commands](https://docs.rimfe.com/reference/commands).
---
# Notifications
Rimfe can tell you when a review finds docs that need an update, fails, or opens a docs PR, and when an audit finishes. Three destinations are available: Slack, a webhook URL of your own, and email. Owners and admins set the workspace rules under **Settings > Reports and alerts**, and Slack and the webhook under **Settings > Integrations**. Members can see which are set, but not the URLs. Email is personal: each member chooses theirs under **Account > Notifications**.
## Events
Choose which events a workspace is notified about. Each review sends at most one message per destination, and each person chooses their own email events.
| Event | Key | Sent when |
| --- | --- | --- |
| **Docs update needed** | `drift_found` | A review finishes with the **Needs update** result. On by default. |
| **Review failed** | `review_failed` | A review could not finish. |
| **Docs PR opened** | `docs_pr_opened` | Rimfe opens a docs PR. On by default. See [Docs PRs](https://docs.rimfe.com/how-it-works/docs-prs). |
| **Every result** | `all_results` | Any review finishes, including **Pass** and **Skipped**. |
| **Docs audit finished** | `audit_completed` | An [audit](https://docs.rimfe.com/how-it-works/audits) completes. A weekly audit sends only when it has findings, and a failed audit sends nothing. Slack and webhooks only. |
| **Docs PR merged** | `docs_pr_merged` | A docs PR Rimfe opened is merged. Webhook only. |
| **Public docs held** | `patch_held` | A public docs patch waits for a release, a feature flag or a review. Webhook only. See [History and reports](https://docs.rimfe.com/guides/history-and-reports). |
| **Public docs released** | `patch_released` | A held public docs patch is released by a release, a flag rollout or a person. Webhook only. |
| **Flag rolled back** | `flag_rolled_back` | A flag that had reached the rollout threshold drops below it in production. Webhook only. |
| **AI spend alert** | `spend_threshold` | AI spend reaches 50%, 80% or 100% of a spend limit. Webhook only. |
A skipped review sends nothing unless **Every result** is on, except one paused until someone acts (AI key, spend cap or plan limit), which goes out under **Review failed**. A pull request skipped as too large to review sends nothing, even with **Every result** on; its PR comment and check say why. A check a person stopped sends nothing either. When **Every result** and a specific event are both on, a drift or failed review is sent under the specific event, not twice.
## Plans
| Destination | Plan |
| --- | --- |
| Email, **Right away** | Every plan |
| Email, **Daily digest** | Startup and above |
| Slack and webhooks | Startup and above |
| Slack app buttons that change things (**Accept**, **Dismiss**, docs PR buttons) | Business and Enterprise |
A workspace that moves to a plan without Slack and webhooks keeps its saved URLs, but nothing is sent to them. See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits#features-by-plan).
## Set up Slack
Choose one of two ways.
**Slack app.** Owners and admins choose **Add to Slack** under **Settings > Integrations > Slack**, allow the Rimfe app, then pick a channel. The app can also be set per repository. In Slack, invite it to the channel with `/invite @Rimfe`. The app adds more than messages:
- **Accept** and **Dismiss** buttons on drift messages (Business and Enterprise).
- **Open docs PR**, **Merge docs PR** and **Re-run** buttons on a result (Business and Enterprise).
- Direct messages to the author and followers of a pull request, and the owners of the affected pages, when a review finds drift. Each person can turn theirs off.
- A `/rimfe` command, also available as an `@Rimfe` mention. See [Slack commands](#slack-commands).
- A personal digest, quiet hours and a **Home** tab with the pull requests waiting on you.
- Previews when you paste a run or audit link from Rimfe.
**Slack webhook.**
1. In Slack, open [api.slack.com/apps](https://api.slack.com/apps), create an app for your workspace, and turn on **Incoming Webhooks**.
2. Choose **Add New Webhook to Workspace** and pick the channel.
3. Copy the webhook URL. It starts with `https://hooks.slack.com/`.
4. In Rimfe, open **Settings > Integrations > Slack**, paste the URL under **Incoming webhook URL** and choose **Save**. Then choose **Send test** to check the channel. An incoming webhook is used only while the Slack app is not connected.
The message shows the result, a link to the pull request and repository, the summary, and an **Open in Rimfe** button. A webhook posts messages only, without buttons.
### Link your Slack account
To act on results from Slack, link your Slack account once: choose **Connect Slack account** under **Account > Notifications** and sign in with Slack. Rimfe stores only your Slack workspace and user IDs. Choose **Unlink** to remove the link at any time.
A button click or command works only when all of these are true:
- It comes from the Slack workspace connected to that Rimfe workspace.
- Your Slack account is linked to your Rimfe account.
- Your role in the Rimfe workspace allows that action. This is the same permission the dashboard asks for.
If not, only you see a short reply, and nothing is saved.
### Accept or dismiss from Slack
A drift message lists up to three open findings, each with **Accept** and **Dismiss**. A click records the same decision as the dashboard, with the reason "Decided from Slack", refreshes the suggested fix, and updates the message to show who decided.
### Slack commands
Type `/rimfe ` or mention `@Rimfe`. A pull request is a GitHub link or `owner/repo#123`.
| Command | What it does |
| --- | --- |
| `status ` | Shows the latest docs check. |
| `follow ` | Sends you updates on the pull request. |
| `unfollow ` | Stops them. |
| `mute ` | Stops all updates on it, even as the author. |
| `audit ` | Starts an [audit](https://docs.rimfe.com/how-it-works/audits) of the repository. |
| `digest` | Sends your digest now. |
| `settings` | Opens your Slack preferences. |
| `ask ` | Asks about the repository's docs and code. |
Anything else shows the command list.
### Your Slack preferences
Set these under **Settings**, **Account**, **Notifications**, in **Your Slack preferences**, or with `/rimfe settings`.
| Setting | Options |
| --- | --- |
| **Digest** | Off, Daily or Twice daily, sent at set local times. |
| **Quiet from** and **Quiet until** | No direct messages or digests in these hours; what came in is listed in your next digest. |
| **Time zone** | Used for the digest and quiet hours. |
## Email
Under **Account > Notifications**, tick **Email** for what you want to hear about in this workspace, and choose how pull request results arrive:
| Option | What you get |
| --- | --- |
| **Right away** | One email per result. |
| **Daily digest** | One email a day at the hour you pick (08:00 by default) in your profile time zone, listing the results since the last one. Needs the Startup plan or higher. On a plan without digests, results are sent right away. |
Emails go to your account address. Audits do not send email. Owners and billing managers also get usage alerts until they untick them, and billing and AI alerts always: a broken AI key, paused reviews and spend limits stop reviews or cost money. The alert that the month's reviews are used up is sent even with usage alert email off. Every email you can turn off has a **Manage email** link and a one-click **Unsubscribe** link that stops that kind of email only, weekly and monthly reports included. Sign-in links, invitations and security notices cannot be turned off. If you leave a workspace, its results stop reaching you.
## Set up a webhook
Enter an HTTPS URL under **Webhook URL** and save. Rimfe creates a signing secret and shows it once. Copy it then. To replace it later, choose **Rotate secret**; deliveries signed with the old secret stop verifying right away.
Rimfe stores both URLs and the secret encrypted. After saving, the page shows each URL masked, such as `https://hooks.slack.com/…WXYZ`. Leave the mask as it is to keep the saved URL, replace it to change the URL, or clear it to remove the destination.
The URL must be HTTPS and point to a public host. Localhost, private network addresses and link-local addresses are rejected, and Rimfe does not follow redirects.
### Headers
Deliveries follow the [Standard Webhooks](https://www.standardwebhooks.com) format.
| Header | Value |
| --- | --- |
| `x-rimfe-event` | The event key, or `test` for a test delivery. |
| `webhook-id` | A unique ID for the message. A retry or a replay from the delivery log uses the same ID, so you can ignore one you already handled. |
| `webhook-timestamp` | When the delivery was signed, in Unix seconds. |
| `webhook-signature` | `v1,` followed by the base64 HMAC-SHA256 signature. |
The secret looks like `whsec_` followed by base64. Decode the part after `whsec_` to get the signing key.
### Payload
```json
{
"event": "drift_found",
"workspace": { "id": "0b7c1f4e-3f43-4a52-9f0a-6b6d1d2f0c11", "name": "Acme" },
"repository": {
"fullName": "acme/app",
"url": "https://github.com/acme/app"
},
"pullRequest": {
"number": 42,
"title": "Add the --json flag",
"url": "https://github.com/acme/app/pull/42"
},
"run": {
"id": "5c1d9a7e-6d0b-4b8e-8e57-0f5b2f9d1a33",
"url": "https://app.rimfe.com/checks/5c1d9a7e-6d0b-4b8e-8e57-0f5b2f9d1a33",
"outcome": "drift",
"reasonCategory": "docs_missing",
"summary": "The new --json flag is not documented.",
"confidence": "high",
"findingCount": 2,
"actionableCount": 1
}
}
```
`outcome` is `pass`, `drift`, `skipped` or `failed`. A `docs_pr_opened` payload also has a `docsPr` object with the docs PR `url` and `number`. It adds `previewUrl` only if the docs host's preview is already known. The notification is sent when the docs PR opens, which is usually before the preview exists.
An `audit_completed` payload has an `audit` object instead of `pullRequest` and `run`:
```json
{
"event": "audit_completed",
"workspace": { "id": "0b7c1f4e-3f43-4a52-9f0a-6b6d1d2f0c11", "name": "Acme" },
"repository": {
"fullName": "acme/app",
"url": "https://github.com/acme/app"
},
"audit": {
"id": "9e4b2c6a-1f7d-4c3e-a8b5-2d6f0e1c7a44",
"url": "https://app.rimfe.com/audits/9e4b2c6a-1f7d-4c3e-a8b5-2d6f0e1c7a44",
"trigger": "scheduled",
"coverage": "partial",
"summary": "Checked 25 pages. 3 outdated statements found. 5 pages not checked.",
"findingCount": 3,
"pagesChecked": 25,
"pagesNotChecked": 5
}
}
```
`trigger` is `manual` or `scheduled`, and `coverage` is `complete` or `partial`.
The webhook-only events carry ids, numbers, keys and links, never page text, code or titles. Each has `event`, `workspace` and `repository` (null for a workspace-wide spend alert), plus:
| Event | Fields |
| --- | --- |
| `docs_pr_merged` | `docsPr` (`number`, `url`), `run` (`id`, `url`), `pullRequest` (`number`, `url`, or null) and `findingsResolved`. |
| `patch_held`, `patch_released` | `patch` (`id`, `audience`, `reason`, `flagKey`), `pullRequest` (or null) and `historyUrl`. A held `reason` is `release_policy`, `flag_rollout`, `flag_unknown` or `leak_gate`. A released `reason` is `tag`, `release`, `deployment`, `rollout`, `manual` or `person`. |
| `flag_rolled_back` | `flag` (`key`, `from`, `to` as percentages) and `historyUrl`. |
| `spend_threshold` | `spend` (`threshold`, `scope`, `spentCents`, `capCents`, `blocked`, `resetsAt`) and `aiUrl`. `scope` is `workspace`, `review`, `audit` or `repository`. |
```json
{
"event": "patch_held",
"workspace": { "id": "0b7c1f4e-3f43-4a52-9f0a-6b6d1d2f0c11", "name": "Acme" },
"repository": { "fullName": "acme/app", "url": "https://github.com/acme/app" },
"patch": {
"id": "5a1d7c2e-9b34-4f6a-8e21-3c4b5d6e7f80",
"audience": "public_user",
"reason": "flag_rollout",
"flagKey": "new-billing"
},
"pullRequest": { "number": 482, "url": "https://github.com/acme/app/pull/482" },
"historyUrl": "https://app.rimfe.com/repositories/2c9e.../history"
}
```
### Verify the signature
Sign the string `webhook-id`, `.`, `webhook-timestamp`, `.`, and the raw body, before any JSON parsing. Reject a timestamp more than five minutes from your clock, and compare signatures in constant time. The header can hold several space-separated `v1,` signatures; one must match.
```js
import { createHmac, timingSafeEqual } from "node:crypto";
export function isValidWebhook(rawBody, headers, secret) {
const id = headers["webhook-id"];
const timestamp = headers["webhook-timestamp"];
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const expected = `v1,${createHmac("sha256", key)
.update(`${id}.${timestamp}.${rawBody}`)
.digest("base64")}`;
const wanted = Buffer.from(expected);
return (headers["webhook-signature"] ?? "").split(" ").some((candidate) => {
const received = Buffer.from(candidate);
return received.length === wanted.length && timingSafeEqual(received, wanted);
});
}
```
Respond with any `2xx` status once you have accepted the delivery.
## Delivery and retries
- Each request times out after 10 seconds.
- A network error, a timeout or a `5xx` response is tried again up to six more times, with growing gaps over about 32 minutes, under the same `webhook-id`. After that, the delivery log shows it as failed, and **Replay** sends it again.
- A `4xx` response or a redirect is a failure and is not retried.
- A failed delivery never affects the review, the check or the PR comment.
The last 50 webhook deliveries are listed under **Webhook deliveries** with their result and time, and each has a **Replay** button that sends the same message again with the same `webhook-id` and a new signature. Deliveries are kept for 30 days. Every delivery is also recorded on the run's **Timeline** as sent or failed, with the destination and, for a failure, the reason such as `HTTP 404`. Slack and webhook URLs are never written to the timeline or to logs.
## What a notification contains
Titles, links, the summary and counts only. Notifications never include diffs, docs text or the quotes behind a finding. The Slack app adds a one-line summary for up to three findings; webhooks and email never carry them. See [Privacy and data](https://docs.rimfe.com/how-it-works/privacy-and-data#notifications).
---
# Troubleshooting
Find the message you see, then follow the fix. The messages below are quoted from Rimfe's check summaries, PR comments, replies and dashboard.
Email hello@rimfe.com with the repository name, the PR number and the support reference. The support reference is shown at the bottom of the check page. When a failed check's message says to contact support, the GitHub check shows it too. The PR comment on a failed check shows its first eight characters, unless the check failed for a missing GitHub permission. Do not send private code, secrets or tokens.
## Setup and installation
### No repositories connected
**Symptom.** The **Repositories** page shows "No repositories connected" with an **Install GitHub App** button, or "No repositories synced" with a **Sync repositories** button.
**Why.** The GitHub App is not installed for this workspace, or the repository list has not been imported yet.
**Fix.** Select **Install GitHub App**, or **Sync** if the app is already installed. In GitHub, make sure the repository is selected under the installation's repository access.
### GitHub App not installed
**Symptom.** After you select **Sync**, the page says "GitHub App not installed - Install the GitHub App to sync repositories."
**Why.** No active installation is linked to this workspace. This also happens after the app is uninstalled from GitHub.
**Fix.** Select **Install GitHub App** and complete the install. Your earlier run history stays in Rimfe.
### Installation already connected
**Symptom.** "Installation already connected - This installation belongs to another Rimfe workspace."
**Why.** A GitHub installation can belong to one workspace at a time.
**Fix.** Use the workspace that already has it. To move the installation to another workspace, contact support.
### GitHub access not verified
**Symptom.** "GitHub access not verified - Connect again using the GitHub account you signed in with. Organization installations require an organization owner."
**Why.** Rimfe checks that the GitHub account you signed in with can manage the installation.
**Fix.** Sign in with the GitHub account that owns or administers the installation, or ask an organization owner to connect it. Then try again.
### Install link expired or install failed
**Symptom.** "Install link expired - Start again from Connect GitHub.", "Authorization cancelled - Connect GitHub again to finish setup." or "Install failed - Something went wrong. Try again."
**Why.** The install was left open too long, you cancelled on GitHub, or something interrupted it.
**Fix.** Start the install again from the **Repositories** page. If it keeps failing, contact support.
### Permissions needed
**Symptom.** A repository shows **Permissions needed**, and its overview says "GitHub permissions need attention" and lists what is missing, such as contents or issues.
**Why.** The installation lacks a permission Rimfe needs. See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions).
**Fix.** Select **Review permissions on GitHub**, and approve any pending permission update on GitHub. Then select **Verify connection** from the menu next to **Sync** on the **Repositories** page.
### The host did not respond or is limiting requests
**Symptom.** A dashboard action or run says "GitHub did not respond. Try again in a moment." or "GitHub is limiting requests right now. Try again in a few minutes."
**Why.** GitHub was slow, unavailable or rate limiting at that moment.
**Fix.** Wait a few minutes and try again.
### The app does not have access
**Symptom.** "The GitHub App does not have access to this yet. Check its permissions and repository access."
**Why.** The installation lacks a permission, or the repository is not selected in the installation's repository access.
**Fix.** See [Permissions needed](#permissions-needed).
### Repository is disconnected
**Symptom.** A repository shows **Disconnected** or **Connection issue**. A run fails with "The repository is disconnected. Reconnect it before reviewing." or the **Run check** page says "Repository not ready - Checks run once the GitHub App is connected."
**Why.** The installation was suspended, removed or revoked, or the repository was removed from it, archived or deleted.
**Fix.** Restore the repository in the app's repository access on GitHub, or reinstall the app. Then use **Verify connection**.
## Checks that do not appear or are skipped
### No check on my pull request
**Symptom.** You opened a PR and there is no `Rimfe` check.
**Why.** Common causes:
- **Review trigger** is "Only when asked" or "Paused". Nothing runs until someone comments `@rimfe review`.
- **GitHub check** is "Off".
- **Pull request delivery** is "Comment only" or "Notify only". Neither posts a check.
- The PR is a draft, or label rules, a fork rule or a pause hold it back. A draft, fork or label hold shows as a skipped check with a reason in every check mode except Off. A pause shows no check when the check is non-blocking.
- The app never received the event. **Check setup** shows "Last event from GitHub: none yet", and the **Status** section on the **Advanced** settings tab shows **Last GitHub event**.
- You pushed to a PR that already has a review result while the trigger is "On PR open". That mode reviews pushes only until a review produces a result.
**Fix.** Check the trigger and check mode in **Settings**. Select **Check setup** to see setup problems. Comment `@rimfe review` to start a review now.
### The check is waiting
**Symptom.** Branch protection requires Rimfe's check, and the pull request shows "Expected" with "Waiting for status to be reported".
**Why.** No review has reported on the latest commit. Common causes:
- The rule still requires `docs drift` (or `docs drift (acme/docs)`), the check's earlier name. Rimfe no longer posts a check with that name, so the rule waits on every new commit. A repository admin must change the required check to `Rimfe` in branch protection or the ruleset, and `docs drift (acme/docs)` to `Rimfe (acme/docs)`.
- **Review trigger** is "Only when asked" or "Paused", so nothing runs on its own.
- **GitHub check** is "Non-blocking", so a pause holds the review back without a check. A draft, fork or label rule completes a skipped check that says how to start a review. In blocking mode, held-back reviews complete the check as skipped.
- The review is still queued or running, or waiting for a fair-use guard to reset.
**Fix.** Comment `@rimfe review`. To report on every commit by itself, set **GitHub check** to **Blocking when docs required** with **On PR open** or **On every push**.
### Setup says to subscribe to events
**Symptom.** The setup preview shows "The Rimfe GitHub App is not subscribed to pull request events" or "… not subscribed to issue comment events".
**Why.** The GitHub App is not subscribed to the events Rimfe needs, so PR activity or `@rimfe` comments never arrive.
**Fix.** These events are set on the Rimfe GitHub App itself, not on your installation. If you host Rimfe yourself, enable them under **App events and permissions**. Otherwise contact support.
### "No relevant product-facing change was detected."
**Symptom.** The check is skipped with this summary, or "Only test or internal changes were detected."
**Why.** Every changed file was a doc, test, lockfile, asset, generated path or housekeeping file. There is no behavior to document. A docs-only PR also ends this way.
**Fix.** None needed. If you expected a review, check that the changed code is not in **Ignore code paths**, and that you did not use `@rimfe ignore path`.
### "No docs found in the docs scope"
**Symptom.** The check says "Rimfe skipped: no docs found".
**Why.** The docs scope matched no pages at the reviewed commit, so there was nothing to compare the code against. Rimfe does not ask you to start docs from scratch.
**Fix.** Add docs that match the scope (every docs file by default), or set the docs scope or link a docs target in **Settings**. Then comment `@rimfe review`.
### Automatic review is paused
**Symptom.** With any **GitHub check** except Off, a draft, fork or label hold is skipped with one of these summaries, under the titles Draft not reviewed, Waiting for approval, Fork not reviewed, Paused by a label or Waiting for labels. A pause still shows no check with the default non-blocking setting.
- "Rimfe reviews this pull request when it is marked ready for review. Comment @rimfe review to review it now."
- "An excluded label pauses automatic review. Remove it, or comment @rimfe review to review it now."
- "Automatic review is waiting for the required labels. Add them, or comment @rimfe review to review it now."
- "Automatic reviews are paused. Start a manual review when needed."
- "This pull request is from a fork or a first-time contributor. No model runs on it until a maintainer comments @rimfe review."
- "Pull requests from forks and first-time contributors are not reviewed automatically. A maintainer can comment @rimfe review."
- "This author has reached the limit of 10 automatic reviews a day on a public repository. A maintainer can comment @rimfe review to run one."
- "This repository started 120 automatic reviews in the last hour, its limit. Automatic reviews start again by 14:20 UTC. A maintainer can comment @rimfe review to run one now."
**Why.** The PR is a draft, has a label from **Pause for these labels**, is missing a label from **Require these labels**, or automation is paused for it (`@rimfe pause`, `@rimfe ignore this PR`, or **Pause automation** in the dashboard). The trigger mode "Only when asked" or "Paused" has the same effect.
**Fix.** Mark the PR ready for review, change the labels, or comment `@rimfe resume`. You can also comment `@rimfe review` at any time. Manual reviews ignore these automatic rules. Draft and label rules are under **When checks run** on the settings **Reviews** tab.
### Fork PRs are not reviewed
**Symptom.** A pull request from a fork gets no automatic review.
**Why.** **Forks and first-time contributors** is set to "Wait for @rimfe review" or "Skip them", under **When checks run** on the settings **Reviews** tab. Hobby skips them by default and paid plans wait for a maintainer, so a stranger cannot spend your reviews.
**Fix.** A maintainer comments `@rimfe review` on the pull request, or sets the option to "Review them".
### Run skipped because of a newer commit
**Symptom.** "Run skipped because a newer commit was pushed to the pull request." or "A newer automatic review replaced this request."
**Why.** You pushed again while the review was running. Rimfe drops the old result so it never reports on stale code.
**Fix.** None needed. If the trigger is not "On every push", comment `@rimfe review` to review the latest commit.
### A push during the first review
**Symptom.** You pushed while the first review was running. The older commit's check says "Run skipped because a newer commit was pushed to the pull request."
**Why.** Rimfe drops a review that has not finished when the pull request moves on. With "On PR open", the push starts a new review of the latest commit, because the PR has no result yet.
**Fix.** None needed. Wait for the check on the latest commit.
### Run skipped because the PR is closed
**Symptom.** "Run skipped because the pull request was closed."
**Why.** The PR was closed or merged before the review finished.
**Fix.** None needed.
## Incomplete and failed reviews
### Unsupported changed files
**Symptom.** "Review incomplete: unsupported file types (.xyz, .abc). Changed: path1, path2."
**Why.** The PR changes only text file types Rimfe does not analyze, and the message names their extensions. Rimfe reads common languages, web files and config or schema files, and skips lockfiles, images, fonts, binaries, snapshots, minified files, source maps and generated folders without counting them. See [what gets reviewed](https://docs.rimfe.com/how-it-works/what-gets-reviewed) for both lists. When a PR mixes supported and unsupported files, the review runs on the supported ones and its coverage is partial.
**Fix.** Read the findings that were produced. For the unsupported files, update docs by hand if needed. You can add the paths to **Ignore code paths** if they never affect docs.
### GitHub returned only some of the changed files
**Symptom.** "Review incomplete: GitHub returned N of M changed files. Split the pull request to review the complete comparison."
**Why.** Very large PRs exceed what GitHub returns for a comparison. Rimfe does not guess about files it cannot see.
**Fix.** Split the PR into smaller ones.
### Partial review
**Symptom.** The check title is "Rimfe could not review everything". The summary ends with "Review coverage is partial." The comment opens with a note, **Review incomplete.**, and a "Partial review:" line lists the reasons.
**Why.** Part of the change or the docs was not read, so the review cannot pass. If part of the docs was not read, Rimfe also will not claim anything is missing. The reasons are listed:
- "Some code changes were too large to read in full."
- "Some changed files have no available diff."
- "Some changed file types are not supported: …" followed by the extensions.
- "N docs pages were not checked before the review ran out of time."
- "N docs pages could not be checked."
- "N docs pages that name changed code were not read within the review's limits." Comment `@rimfe review` to read them next.
- "Changed API specs could not be compared; only their text diffs were reviewed."
- "N code samples that use changed code did not fit the review's snippet limit." or "Some code samples were not checked because the docs have more than the snippet limit."
- "Some changes could not be confirmed with quotes from the pull request and the docs."
The last reason appears when a finding is "Needs context", for example because a quote could not be verified. A review with no findings and complete coverage passes.
**Fix.** Open the check in the dashboard and read the findings and the **Files outside this review** list. Narrow the PR or the docs scope, or run `@rimfe full review` if full review is on. See [Concepts](https://docs.rimfe.com/concepts#review-coverage) for what partial coverage means.
### Rimfe configuration is invalid
**Symptom.** The check fails with the title "Rimfe configuration is invalid". The summary starts with `.rimfe.json is missing or unreadable on the base branch`, `.rimfe.json is not valid JSON`, `.rimfe.json has an invalid shape` or `.rimfe.json has invalid patterns`. `@rimfe review` replies `Rimfe could not start the review.` with the same message. The run shows **Failed** with the reason **Configuration invalid**.
**Why.** The repository reads its docs scope from `.rimfe.json`, and the file at the current tip of the base branch cannot be used.
**Fix.** Fix the file on the base branch (not in the pull request), then comment `@rimfe review`. The next review reads the branch tip, so the fix applies to open pull requests at once. Or set **Documentation scope** to **Dashboard settings** on the repository's **Advanced** settings tab. See [.rimfe.json](https://docs.rimfe.com/configuration/rimfe-json#validation-errors) for each message.
The same applies to a [package file](https://docs.rimfe.com/guides/monorepos#package-files) that the PR touches. Its messages start with its path, such as `packages/sdk/.rimfe.json has an invalid shape`. The repository's settings page lists every broken package file on the default branch, so you can fix them before a PR touches them.
### A package config was ignored
**Symptom.** A PR changes files in a package that has its own `.rimfe.json`, but the check page has no `Package configs:` line for it, and `@rimfe config` does not list it.
**Why.** One of these:
- **Dashboard settings are on.** With **Documentation scope** set to **Dashboard settings**, no `.rimfe.json` is read, root or package.
- **More than 50 package files.** Rimfe reads the first 50 in path order. The settings page shows how many it found under **Docs scope**.
- **The repository is too large for one file list.** GitHub cuts the list short for very large repositories, and package files that are left out are not read. The settings page says so under **Docs scope**.
- **A nearer package file owns the change.** A changed file belongs only to the nearest folder above it with a `.rimfe.json`. Package files do not stack.
- **The file is not on the base branch yet.** Package files are read from the base branch tip, like the root file.
A package file that sets an automation key, such as `checkMode` or `allowPatchPrs`, is not ignored: it stops the review with `packages/sdk/.rimfe.json sets "checkMode", which a package file cannot set.` Move the setting to the dashboard.
**Fix.** Switch **Documentation scope** to **.rimfe.json at the PR base**, merge the package file into the base branch, or move small packages' settings into the root file to stay under 50. Then comment `@rimfe review`.
### The review failed
**Symptom.** The check fails with one of these summaries:
- "GitHub permissions are not sufficient for this run."
- "Reading the pull request failed after retries. Retry the check; if it fails again, contact support." (The first words can also be "Starting the check", "Checking the docs" or "Posting the result".) The GitHub check adds the support reference below it.
- "The review stopped before finishing. Retry the check."
**Why.** A permission was missing, or a step kept failing after several attempts.
**Fix.** For the permission message, see [Permissions needed](#permissions-needed). For the others, select **Retry check** on the check page or comment `@rimfe review`. If it fails again, contact support.
## Limits
**Too large to review.** **Symptom.** The check is titled "Too large to review" and its summary gives the count, the limit it passed and "Split the pull request, or narrow what Rimfe reads with ignore code paths." Unless **PR comments** is "Never", the pull request also gets one comment with the same text. A manual `@rimfe review` gets that message as a reply, with no reaction, and no review runs.
**Why.** A review could not read enough of a very large change to be useful, so Rimfe skips it before any download or model call. The limits are 300 code files, 30,000 changed lines in code files, and 3,000 changed files in the pull request. Docs, tests, lockfiles, generated, vendored, binary and ignored files do not count toward the file and line limits. The skip uses none of your plan's reviews.
**Fix.** Split the pull request into smaller ones, or add paths that never affect docs to **Ignore code paths**. The check is skipped in every **GitHub check** mode except **Strict blocking**, where it fails, so nothing merges unreviewed.
### Included reviews used or an AI key problem
**Symptom.** A neutral check titled "Rimfe paused: Included reviews used", "Rimfe paused: Add an AI key", "Rimfe paused: AI key needs attention", "Rimfe paused: AI budget reached" or "Rimfe paused: AI provider limit reached", with one comment on the pull request.
**Why.** The month's included reviews are used and the workspace has no working key, the provider refused the key, or the spend limit on the key (or the provider's own limit) is used up.
**Fix.** A workspace owner adds or replaces the key under **Settings**, **AI**, **Keys and models**, or raises the limit under **Usage and limits**. Then comment `@rimfe review`. See [Bring your own AI key](https://docs.rimfe.com/guides/ai-provider).
### Daily limit reached
**Symptom.** One of these messages:
- "Daily check limit reached. Try again after TIME." in the dashboard.
- "Daily check limit reached" with "All N dashboard checks are used for today." on the **Run check** page.
- "Daily workspace AI limit reached. Try again after the quota resets." as a run summary.
**Why.** Fair-use guards protect against bursts of checks. See [Limits](https://docs.rimfe.com/reference/limits#fair-use-guards) and [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits).
**Fix.** Wait until the time shown, then retry. Automatic reviews held back by a guard are retried once on their own after the reset. Comment-triggered and automatic reviews do not use the manual check guard. **Retry repair** on the check page counts as a manual check when Rimfe has a fix to redo.
### Monthly reviews used
**Symptom.** A neutral check titled "Rimfe paused: monthly reviews used", with one comment on the pull request that links to upgrade.
**Why.** The workspace used all the reviews in its plan for this month. See [Plans and limits](https://docs.rimfe.com/reference/plans-and-limits#monthly-allowance).
**Fix.** Upgrade the plan, or wait for the monthly reset shown on the **Billing** page. Run `@rimfe review` on the pull request afterwards.
### Plan does not cover this private repository
**Symptom.** A repository shows **Locked**, and a pull request gets a neutral check titled "Rimfe paused: plan does not cover this private repository".
**Why.** Your plan covers a set number of private repositories: 1 on Hobby, 10 on Startup.
**Fix.** Choose which private repositories to keep on the **Repositories** page, or upgrade in **Billing**. Then comment `@rimfe review`.
## Comments
### No comment on my PR
**Symptom.** The check finished but there is no Rimfe comment.
**Why.** **PR comments** decides when Rimfe comments. The default, "Needs update only", posts only when docs need changes. The dashboard check page shows the comment status, such as "Comment skipped by repository comment mode." Comments are also skipped when the PR is paused, closed or has a newer commit.
**Fix.** Change **PR comments** to "Needs update and uncertain" or "All results" in settings. The result is always available on the check and the check page.
### "No safe docs target found"
**Symptom.** The comment's alert ends with "No safe docs target found." The text says "No safe docs target was found inside the configured docs scope." Next step: "Update the docs by hand, or add the right docs path to the docs scope and comment `@rimfe review`."
**Why.** Rimfe found drift but no page in your docs scope that it can safely change. When the reason is different, the comment states it instead, for example "is too large to patch automatically" for a page over 120,000 bytes.
**Fix.** Add the correct path to **Docs globs**, or add a code-to-doc mapping. Check that the page is not under **Ignore docs paths**. If the page is too large to patch, edit it by hand or split it. Then comment `@rimfe review`. See [Docs scope](https://docs.rimfe.com/configuration/docs-scope).
### The patch failed or is invalid
**Symptom.** The comment says "Rimfe could not write a suggested change for this run. Details are in Rimfe." or "The suggested change did not pass validation. Details are in Rimfe."
**Why.** Rimfe found drift but could not produce a patch that applies cleanly and stays in scope.
A finding whose own edit failed validation twice shows without an edit, under the line "No suggested edit: it failed verification. Update the page by hand."
**Fix.** Update the docs by hand, or select **Retry repair** on the check page for a new suggestion. The check page lists the validation issues under the suggested change.
## Commands
### Nothing happens when I comment
**Symptom.** You wrote `@rimfe review` and nothing seems to happen.
**Why.** Rimfe answers a command it understood with an eyes reaction on your comment, and the result shows up as a check or comment. A command it read but did not run gets a reply that says why. It reacts instead of replying once the PR has used its daily replies (**Rimfe replies per PR a day**) or when **Pull request delivery** is "Notify only" or "Comment only": eyes for a command it ran, confused for one it did not run. If you see no reaction, Rimfe ignored the comment. It ignores a comment unless it contains a command line it can read:
- The command must start a line, with at most three spaces of indent.
- It must be plain text. Commands inside code blocks, quotes or lists are not read. Inline code and links later on the line are fine.
- It must be on a pull request, not an issue, and written by a person, not a bot.
- The repository's **PR commands** switch must be on, and you need write access. On a public repository, commands from people outside the project get no reply.
**Fix.** Put the command alone on its own line. Check **PR commands** in settings.
### "I did not recognize that Rimfe command."
**Symptom.** Rimfe replies with this sentence and a command list.
**Why.** The line starts with `@rimfe` but is not an exact command. Rimfe may run the closest safe command, or reply "Did you mean `@rimfe review`? Reply with that command to run it." and wait for you to comment it. When nothing matches, it replies with the sentence above and the command list. A line that starts with a command which takes no words, such as `@rimfe review the docs too`, gets "Rimfe did nothing: `@rimfe review` takes no words after it." instead.
**Fix.** Use a command from the list in the reply, on its own. See [Commands](https://docs.rimfe.com/reference/commands).
### "Rimfe dismissed nothing"
**Symptom.** You commented `@rimfe wrong `, `@rimfe too noisy ` or `@rimfe dismiss `, and Rimfe replied "Rimfe dismissed nothing: N findings are open."
**Why.** A reason of your own describes one finding. In a normal comment it acts only when exactly one finding is open.
**Fix.** Reply with the same command in the thread of the finding you mean, or dismiss it on the check page. To dismiss every open finding, comment `@rimfe wrong` or `@rimfe too noisy` on its own.
### Commands are disabled or need write access
**Symptom.** "Rimfe PR commands are disabled for this repository.", "Rimfe commands require current write access to this repository.", "Only repository admins and maintainers can use `@rimfe ignore` while the check is blocking." or "Only repository admins and maintainers can use `@rimfe approve patch`."
**Why.** Either **PR commands** is off, or your GitHub permission on the repository is too low. While the check is blocking, `@rimfe ignore`, `@rimfe ignore path`, `@rimfe ignore this PR` and `@rimfe pause` need maintain or admin access. `@rimfe approve patch` always does.
**Fix.** Turn on **PR commands** in **Settings** (workspace owners and admins), or ask someone with the right access to run the command.
### The PR moved, or there is no result yet
**Symptom.** "The PR has moved since Rimfe produced that result. Reply `@rimfe review` to analyze the latest commit." or "Rimfe has no completed result for this PR yet. Reply `@rimfe review` to run one."
**Why.** `@rimfe explain`, `@rimfe update comment` and `@rimfe ignore` work on the latest finished result for the current commit.
**Fix.** Comment `@rimfe review`, wait for it to finish, then run the command again.
### Full review is disabled
**Symptom.** "Full review is disabled for this repository. Enable it in Rimfe settings before using `@rimfe full review`."
**Why.** **Full review** is off by default.
**Fix.** Turn on **Full review** under **Commands and docs PRs** on the settings **Reviews** tab.
## Docs PRs
### Docs PRs are turned off
**Symptom.** "Docs PRs are turned off for this repository. Turn on **Docs PRs** in Rimfe settings, then comment `@rimfe open docs PR` again."
**Why.** Docs PRs are off by default.
**Fix.** In **Settings**, on the **Reviews** tab, turn on **Docs PRs** and select **Save changes**. Then comment the command again. Approve any permission update GitHub asks for.
### Docs PR refused because the result is stale
**Symptom.** One of these replies:
- "The PR has moved since Rimfe generated that patch. Reply `@rimfe review` to regenerate it for the latest commit."
- "A newer result is available. Open it before creating a docs PR."
- "The documentation repository changed. Run a new review."
- "The docs repository changed since this review. Comment `@rimfe review` to check against the latest docs, then request the docs PR again."
- "The docs repository connection changed. Run a new review."
**Why.** Rimfe only writes a docs PR for the exact commit and docs version it reviewed. A new push, a docs update on the default branch, or a settings change makes the patch stale.
**Fix.** Comment `@rimfe review`, wait for the new result, then request the docs PR again.
### Docs PR not allowed
**Symptom.** One of these replies:
- "Docs fixes are paused for this PR. Reply `@rimfe resume` before running `@rimfe open docs PR`."
- "Docs PRs aren't opened from forks. Apply the suggested change by hand."
- "Patch safety is holding this patch: it names something the code and docs do not, or edits a security-sensitive section. A maintainer approves it with `@rimfe approve patch` or on the check page."
- "Docs PRs need Contents and Pull requests write permissions on the Rimfe GitHub App installation."
- "The docs repository must be connected to this workspace with an active installation."
- "A workspace owner or admin must perform this action." (dashboard only)
**Why.** Docs PRs have strict safety rules. They are blocked on paused PRs and on forks, need Contents and Pull requests write access on the installation that covers the repository where the docs PR is opened, need the docs repository to be connected to your workspace, and are held when a fix names something the code and docs do not have or edits a security-sensitive section, until a maintainer approves it.
**Fix.** Comment `@rimfe resume`, approve the updated permissions on GitHub, connect the docs repository, have a repository admin or maintainer check the patch and comment `@rimfe approve patch`, or ask a workspace owner or admin to use **Open docs PR** on the check page. For fork PRs, apply the patch from the comment by hand: Rimfe never opens a docs PR from a fork's content, even into a separate docs repository.
### No patch to open
**Symptom.** One of these replies:
- "Rimfe has no completed patch result for this PR yet. Reply `@rimfe review` first."
- "No generated patch is available for the latest Rimfe result."
- "The latest generated patch is not valid. Reply `@rimfe review` to regenerate it."
- "The latest Rimfe result has no safe docs target."
- "No current patch is available, or Docs PRs are turned off. Review the latest commit and repository settings."
- "A docs PR already exists: URL"
- "Rimfe already applied this fix to the PR."
- "This review's docs are on a hosted site. Review the change in Rimfe and publish it there."
- "NAME is archived, so Rimfe can't open a docs PR there."
**Why.** The latest review has no usable patch, a docs PR was already opened for it, or the docs are on a hosted site or in an archived repository.
**Fix.** Comment `@rimfe review` to regenerate. If the reply names an existing docs PR, use that one. For "no safe docs target", fix your docs scope as described in [No safe docs target found](#no-safe-docs-target-found).
### Patch is outside the docs scope
**Symptom.** The check page shows a validation issue such as "Target path is outside docs scope: Path is outside the configured docs scope."
**Why.** The page Rimfe wanted to change is not covered by your **Docs globs**, is under **Ignore docs paths**, is not a [docs format](https://docs.rimfe.com/reference/formats), or is in a generated path. Other reasons you may see: "Path is ignored by PATTERN." and "Path must use an allowed documentation extension."
**Fix.** Widen **Docs globs** or remove the ignore rule, save, and comment `@rimfe review`.
### No reply to the docs PR command
**Symptom.** You commented `@rimfe open docs PR` and Rimfe did not answer.
**Why.** A failed request is normally answered in the PR with "Rimfe could not open the docs PR" and the reason. If there is no reply at all, the PR may have used its daily replies, **Pull request delivery** may be "Notify only" or "Comment only" (Rimfe only reacts), or you may be outside the project on a public repository.
**Fix.** Open the check in the dashboard and select **Open docs PR** to see the error. Or comment `@rimfe review` to regenerate the patch, then ask again.
---
# FAQ
Short answers to the questions teams ask most. For error messages and fixes, see [Troubleshooting](https://docs.rimfe.com/troubleshooting).
## Questions
For docs in your repositories, Rimfe does not store your docs text or source files. Docs you host on Rimfe are stored in Rimfe, because the site is served from them. Each review works from a temporary download that is deleted when the review ends. While a repository is connected, Rimfe keeps a search index of your docs to find the right pages, without the page text.
Each review keeps a record so you can inspect it later: the findings with their quoted evidence and any suggested fix. Diff text and the docs text behind a fix are cleared after 30 days. Completed and failed reviews are eligible for deletion after 90 days.
See [Privacy and data](https://docs.rimfe.com/how-it-works/privacy-and-data) for the full list.
Yes. Rimfe uses a third-party AI provider to compare code changes with your docs. It only does this when a pull request changes product-facing files, and it sends just the relevant diffs and docs. Every AI provider Rimfe uses works under zero data retention: your prompts and outputs are not stored after the response returns, and neither Rimfe nor the providers train models on your content. See [Privacy and data](https://docs.rimfe.com/how-it-works/privacy-and-data#ai-processing).
Markdown, MDX, reStructuredText (Sphinx) and AsciiDoc. The default scope reads all four, including every README and note in the repository. See [Formats](https://docs.rimfe.com/reference/formats).
For a narrower scope, use **Check setup** and **Use detected scope** in settings, or set the globs yourself. The setup preview recognizes the file layouts of Docusaurus, MkDocs, Sphinx, Antora, Starlight, Mintlify, Fumadocs, Nextra, VitePress, Fern and GitBook, and suggests a scope for them. See [Docs scope](https://docs.rimfe.com/configuration/docs-scope).
Rimfe recognizes changes in C, C++, C#, F#, Dart, Elixir, Go, Java, JavaScript, Kotlin, Lua, Objective-C, PHP, Python, Ruby, Rust, Scala, shell, SQL, Swift and TypeScript files, plus web files such as Vue, Svelte, Astro, HTML and CSS. It also reads configuration and schema files, including JSON, YAML, TOML, INI, Terraform, `.env`, GraphQL and Protobuf files, Dockerfiles and Makefiles, and files under paths such as `api/`, `routes/` and `migrations/`. The full list is on [what gets reviewed](https://docs.rimfe.com/how-it-works/what-gets-reviewed).
Unknown text file types are not analyzed. If a PR includes them, the review is marked partial and cannot pass. See [Concepts](https://docs.rimfe.com/concepts#why-partial-coverage-blocks-missing).
Yes. Rimfe reads private repositories through the GitHub App you install. It only sees the repositories you select during installation, and you can remove access from GitHub at any time. See [GitHub App permissions](https://docs.rimfe.com/reference/github-app-permissions).
Yes, by default. When you push several times quickly, Rimfe reviews the newest commit.
To review only when a PR opens, set **Review trigger** to "On PR open" in settings. A push after the first result then needs `@rimfe review`. See [Review triggers](https://docs.rimfe.com/configuration/review-triggers).
No. Rimfe can only change docs pages inside your docs scope, and only when you ask: in a docs PR (`@rimfe open docs PR`) or as a commit on your PR branch (`@rimfe apply patch`). No code file is a valid target. Without docs PRs turned on, Rimfe only reads your repository and posts a check and a comment.
No. Rimfe never merges on its own. A docs PR is an ordinary PR that you review and merge yourself. The check is non-blocking by default. If you set the check to "Blocking when docs required" and require it in branch protection, a drift result can hold a merge until docs are fixed.
Link it as a docs target, once per code repository. In **Settings** > **Docs**, select **Link docs** under **Docs targets** and choose the repository and its docs folders. The docs repository must be in the same workspace with the GitHub App installed, and you need write access to both repositories on GitHub.
Rimfe then reads those folders from the docs repository's default branch. The check and comment stay on the code PR, and docs PRs open in the docs repository. A code repository can have several docs targets, and several code repositories can share one docs repository. See [Docs in other repositories](https://docs.rimfe.com/configuration/separate-docs-repository).
Comment one of these on the PR:
- `@rimfe ignore this PR` stops automatic checks and comments on that PR.
- `@rimfe pause` does the same. `@rimfe resume` turns them back on.
- `@rimfe ignore path GLOB` skips matching files in that PR.
A workspace owner or admin can also select **Pause automation** on the check page. A paused PR can still be reviewed on request with `@rimfe review`. To stop Rimfe on every PR in a repository, set **Review trigger** to "Paused". See [Commands](https://docs.rimfe.com/reference/commands).
Check the quotes first. They show exactly which lines Rimfe compared. If the finding is wrong, open it on the check page, select **Dismiss**, pick a reason (Wrong, Too noisy, Docs are elsewhere or Other), add a note if you like and select **Dismiss finding**. Rimfe remembers the decision while the finding's evidence is unchanged, so later runs do not raise it again.
On the pull request, comment `@rimfe wrong`, `@rimfe too noisy`, `@rimfe docs are elsewhere PATH` or `@rimfe dismiss REASON`, in the finding's thread or on the whole result. A reason of your own after the command, as in `@rimfe wrong the page is generated`, applies to one finding: reply in its thread when several are open. `@rimfe ignore` dismisses the current finding on that PR.
If Rimfe keeps pointing at the wrong page, add a code-to-doc mapping or an ignore docs path. See [Code mappings](https://docs.rimfe.com/configuration/code-mappings).
Anyone with write, maintain or admin access to the repository. While the check is set to block, `@rimfe ignore`, `@rimfe ignore path`, `@rimfe ignore this PR` and `@rimfe pause` need maintain or admin access. `@rimfe approve patch` always does. Other users in your project get a reply that they lack access. On a public repository, people outside the project get no reply. A workspace owner or admin can turn commands off for a repository with the **PR commands** switch in settings. Only workspace owners and admins can change settings.
A pass means Rimfe read everything it needed and found no required docs change. A result is Incomplete when it could not verify everything, for example when the PR is too large, some file types are unsupported, some docs were not read in full, or a finding could not be backed by a verified quote. The reasons are listed in the check summary, the comment and the check page. See [Review coverage](https://docs.rimfe.com/concepts#review-coverage).
---
# Changelog
Each entry says what is new and links to the page that explains it. Subscribe with the [RSS feed](https://docs.rimfe.com/changelog.xml).
## Docs tiers on any plan
26 November 2026
Hosted docs are now three Docs tiers you add to any plan, Hobby included.
- Docs Lite at $25 a month, Docs Plus at $75 and Docs Pro at $125.
- Each tier shows its AI pages and Ask answers a month, instead of a share of a budget.
- Custom domains on every tier; private docs and no Rimfe footer from Docs Plus.
- Generation drafts up to 100 pages in one run on Docs Pro.
[Read more](https://docs.rimfe.com/reference/plans-and-limits#docs-tiers)
## Included reviews and the Docs add-on
2 November 2026
Every plan now includes reviews on Rimfe's models each month, and AI docs writing is its own add-on.
- 10 included reviews a month on Hobby, 200 on Startup, 750 on Business. The rest run on your key.
- Your key has a $10 monthly limit until you change it, and you can run on your key only.
- The Docs add-on writes and maintains your hosted docs on Rimfe's models.
[Read more](https://rimfe.com/pricing)
## Setup checklist and contact support
30 October 2026
A short checklist on the repositories page walks a new workspace to its first review, and the help menu reaches support from anywhere in the app.
- The checklist reads your workspace, so each step ticks itself when it is done.
- Contact support from the help menu; the message carries ids, never page content.
- Changelog in the help menu shows the latest changes.
- Welcome, first review, week-one and trial reminder emails can be turned off in notification settings.
## Free documentation tools
30 October 2026
Check links, validate an llms.txt, estimate docs debt and check an AGENTS.md without an account.
- Find broken links and heading anchors in a public repository's Markdown.
- Validate or generate an llms.txt in your browser.
- Check an AGENTS.md or CLAUDE.md against its repository.
- Guides, comparisons and learn articles are also available as Markdown at their URL plus .md.
[Read more](https://rimfe.com/tools)
## Review queue, notify-only mode and precision
30 October 2026
One list of open findings across repositories, a quieter delivery mode, and a precision measure from your own decisions.
- Assign, accept or dismiss findings in bulk, and open one docs PR for accepted findings.
- Pull request delivery: check and comment, comment only, or notify only.
- Analytics shows how often findings were right, by kind, from your team's decisions.
- The accuracy page lists every measured engine version with its holdout digest.
[Read more](https://rimfe.com/accuracy)
## Trust center and legal pages
30 October 2026
Security, data handling, AI use, sub-processors and the legal documents now live in one place.
- Terms, DPA, acceptable use, SLA and an AI page, each with a last-updated date.
- Sub-processor changes are announced by email to workspace owners and in an RSS feed.
- Owners can accept the DPA for the workspace.
[Read more](https://rimfe.com/trust)
## Hosted docs sites
29 October 2026
Rimfe can host your docs, with the same engine reviewing the pages.
- Import from Mintlify, GitBook and Docusaurus, and export a ZIP any time.
- Custom domains and private docs on plans that include them.
- Reviews and audits treat hosted pages like pages in your repository.
[Read more](https://rimfe.com/integrations/hosted-docs)
## Spend caps on your own AI key
29 October 2026
Set a limit on what reviews can spend, so a busy week cannot surprise you.
- A review that would pass the cap runs in a lighter mode before it is refused.
- Owners are told once when a cap is reached, with the reset time.
- A provider's own spend limit pauses reviews without marking the key invalid.
[Read more](https://rimfe.com/integrations/ai-providers)
## Bring your own AI key
29 October 2026
Run reviews on OpenRouter, Anthropic, OpenAI, Google Gemini, Azure OpenAI or Amazon Bedrock.
- Keys are tested when you save them, and you choose a model for each stage.
- Spend limits on your key pause reviews, never fail them.
- Invalid-key alerts go to owners and billing managers.
[Read more](https://rimfe.com/integrations/ai-providers)
## Reviews follow more of your code
29 October 2026
Rimfe now follows how code connects, so a change is checked against more of the docs it affects.
- Screens, translation files and feature flags can be declared in `.rimfe.json`.
- Docs coverage tracks which public config keys, flags and variables a page mentions.
- Audiences let you mark pages as API reference, changelog or internal.
[Read more](https://docs.rimfe.com/configuration/rimfe-json)
## Public accuracy page
24 October 2026
See how often Rimfe is right, and what it misses, on a benchmark we never tune on.
- Precision, recall and cost, with the corpora and the known gaps.
- Each new measurement is added with the engine version it ran on.
[Read more](https://rimfe.com/accuracy)