diffox

Docs / Settings

The rules file

If your repository has a rules file, the review reads it too and says where a change goes against one of your rules.

Which files

AGENTS.md and CLAUDE.md are looked for at the repository's root, in that order, and the first one found is read. Beside it, a root REVIEW.md is read too: the file you write to tell a review what to look for. When one of them is only a pointer — a symbolic link to a .md file, or a single @ line naming one, such as @.github/copilot-instructions.md — that file is read instead. An @ line inside a longer file, and a markdown link, are not followed.

From which branch

The rules are read from the branch the pull request merges into, not from the pull request itself, so a pull request cannot tell its own review what to overlook. On diffox.ai every round reads that branch as it is now. On the command line the default is the point where the pull request left it; diffox prepare --spec-base main reads the branch as it is now, and --spec-from-head reads the rules from the pull request itself: for your own branch, never for a pull request from a fork.

How much of them

The first 20,000 characters of each file.

What the review writes

A changed line that goes against a rule is reported after the problems that break something, with the rule it goes against named.

An example

REVIEW.md
# Review instructions - Tell us when a change under `migrations/` cannot be undone.- Money is held in `Decimal`; point at any line that uses `float` for it.