Configure Reviews With a File
Control code review from a .createst/review.yaml file in your repository — set which reviews block a merge, which files they run on, and how auto-fix behaves.
You can configure code review from a file in your repository instead of (or alongside) the Code Review settings screen. Add a .createst/review.yaml file to your repo and Createst reads it when it reviews a pull or merge request — so your review setup is version-controlled and reviewed like any other change.
Createst always reads this file from the target branch of a pull request — the branch you're merging into — not from the branch under review. That way a pull request can never loosen the rules it will be checked against.
Where the file lives
Commit the file at .createst/review.yaml at the root of your repository. If the file is missing or empty, Createst falls back to the settings you've configured in the Code Review screen, so nothing breaks.
Blocking vs. advisory reviews
Each review pass runs in one of two modes:
| Mode | What happens |
|---|---|
| blocking | If the review finds a problem at or above your chosen severity, the review status turns red and the pull request can't be merged until it's resolved. |
| advisory | The review posts its feedback as a single summary comment and never blocks the merge. |
# .createst/review.yaml
passes:
- id: correctness
mode: blocking
fail_on: error # block when a finding is "error" severity (or use "warning")
- id: style
mode: advisory # comments only, never blocks
output: summary # one summary comment instead of inline threadsfail_on— the severity a blocking pass fails at:error(default) orwarning.output—threadsposts each finding as its own inline comment;summaryposts one comment.
All options for a review pass
Every pass supports the following. Only id and mode are required.
| Option | What it does | Values / default |
|---|---|---|
id | A name for the pass, used by path rules and in the review output. | Any short label (required). |
mode | Whether the pass blocks the merge. | blocking or advisory (required). |
fail_on | For a blocking pass, the lowest severity that turns the status red. | error (default) or warning. |
output | How findings are posted. | threads (an inline comment per finding) or summary (one comment). |
agent | The reusable review agent this pass runs as. | An agent name. All or nothing: if any pass names an agent, every pass must — see below. |
max_findings | Cap the number of findings this pass reports, so large diffs stay readable. | A positive number; unlimited by default. |
on_error | What to do if the review can't complete (a transient failure) — so an incomplete review never silently passes. | e.g. "retry(2) then fail". A failed review never counts as a pass. |
When a pass needs more than one attempt, its check summary says so (Took 2 attempts.), so you can see your
on_error policy working rather than having to take it on faith. If a pass ultimately fails, the summary
quotes the provider's own error message — the actual reason, not a guess.
passes:
- id: security
mode: blocking
fail_on: error
max_findings: 20
on_error: "retry(2) then fail" # try again on a transient hiccup, then fail rather than pass blindlyOne overall status
However many passes you run, Createst reports a single overall check named createst/review on your pull request. That's the status you make a required check in your repository's branch-protection rules. The name stays the same even if you change the agent or model a pass uses, so your required check never breaks.
You can tune the overall check:
aggregate_check:
timeout_minutes: 20 # give up if the whole review hasn't finished in this long
on_timeout: failure # what to report then: "failure" (blocks) or "neutral" (doesn't)| Option | What it does | Values / default |
|---|---|---|
timeout_minutes | How long to wait for the whole review before giving up. This applies to the overall check, not to each pass separately. | A number of minutes; no limit by default. |
on_timeout | What the overall check reports if it times out. | failure (blocks the merge, the default) or neutral (doesn't block). |
If a review doesn't finish in time, comment @createst review to run it again on the same commit —
see Re-run a Review.
The overall check is always called createst/review. That name never changes, which is what makes it safe
to require in your branch-protection rules.
Adding this file renames your per-pass checks
Without a review file, each pass reports as Createst Code Review #1 — Claude Code (…). With one, it
reports as Createst Code Review · <id> (blocking) — named after the pass, so you can tell at a glance
which one is holding up the merge.
That means adding or editing this file changes the names of your per-pass checks. If your branch protection requires any of the old names, every pull request after the merge would wait forever on a check that no longer reports.
So Createst tells you first: on the pull request that introduces the change, it posts a comment listing
exactly which check names will stop reporting and which will start, before you merge it. Update your branch
protection to the new names — or require only createst/review, whose name never changes.
Run certain reviews only on certain files
Use path rules to run specific passes only when matching files change — for example, run a lighter check on documentation-only changes:
path_rules:
- when:
only: ["**/*.md"] # the change touches only Markdown files
passes: [docs-check]
- when:
any: ["src/**"] # any source file changed
passes: [correctness, security]
gate:
fail_on: error
ignore_paths: ["dist/**", "**/*.lock"]when.onlymatches when every changed file matches the patterns;when.anymatches when at least one does.ignore_pathsskips review entirely for changes that only touch those paths.
Naming an agent for each pass
If any pass sets agent, every pass must set one. Mixing them is rejected with an error naming the
passes that are missing it, because the alternative — quietly not running the unnamed passes — would mean
reviewing less than you asked for without telling you.
An agent value that doesn't match one of your agents is also rejected, and the message lists the names
that are available, so a typo takes one edit to fix. In both cases the review doesn't run and
createst/review fails: a review configuration that can't be honoured blocks the request rather than
silently reviewing part of it.
Require only createst/review in your branch-protection rules. The per-pass checks are named after
your passes, so adding or renaming a pass changes their names — while createst/review stays the same.
Keep auto-fix contained
When you let Createst fix findings, you can bound what it's allowed to do:
autofix:
max_commits_per_pr: 3 # stop after this many fix commits
deny_paths: ["**/*.lock"] # never edit these files
on_cap:
label: needs-human # add this label when the limit is reached| Setting | What it does |
|---|---|
scope | Set to pr_diff_only to keep fixes inside the files the pull request already changes. |
max_commits_per_pr | The most fix commits Createst will make on one pull request before it stops. |
deny_paths | Files auto-fix must never touch. |
on_cap.label | A label Createst adds when it reaches the commit limit, so a person can take over. |
Avoid repeated reviews
runs:
debounce_seconds: 30 # wait briefly and review only the latest commit in a burst of pushes
on_superseded: cancel_and_mark_stale # cancel an in-flight review when a newer commit arrives
rereview:
scope: since_last_reviewed_sha # on a new push, review only what changed since the last review
respect_dismissals: true # don't re-raise findings you've dismissed
max_auto_rereviews: 10 # stop automatically re-reviewing after this many review roundsWhen you push several times in quick succession, Createst reviews only the final commit instead of every push.
| Option | What it does | Values / default |
|---|---|---|
runs.debounce_seconds | Wait this long and review only the latest commit when you push several times quickly. | Seconds; 0 (review every push) by default. |
runs.on_superseded | Set to cancel_and_mark_stale to cancel an in-progress review when a newer commit arrives. | cancel_and_mark_stale; off by default. |
rereview.scope | On a re-review, since_last_reviewed_sha looks only at what changed since the last review; full re-reviews the whole request. | since_last_reviewed_sha or full (default). |
rereview.respect_dismissals | When true, a finding you dismissed stays dismissed on later pushes (until the code at that spot changes). | true (default) or false. |
rereview.max_auto_rereviews | Stop automatically re-reviewing a request after this many review rounds, to avoid endless loops. One round is one reviewed commit, however many passes you run — so a six-pass setup still uses one round per commit. | A number; a sensible default applies. |
When the limit is reached, createst/review reports a neutral result that says so, rather than going
quiet. Neutral doesn't satisfy a required check, so the request stays blocked until you raise the limit or
reopen it — but you can always see why. You can also comment @createst review to run one more round on
the same commit; see Re-run a Review.
What to expect
When a pull or merge request is opened or updated, Createst runs the passes your file configures, posts their findings, and reports the single createst/review status. A blocking pass that finds a problem keeps the request from merging until it's resolved; an advisory pass only comments.