Auto-Fix
Let Createst fix the issues it finds — committing the changes back and re-reviewing until they're resolved.
With auto-fix enabled, Createst doesn't stop at reporting problems — it fixes them. After a review finds issues, it edits the code to resolve them, pushes a fix commit back to the pull request's branch, and re-reviews. The cycle repeats until the findings are resolved or a limit you set is reached.
Turn on auto-fix
In your project's Code Review settings, enable auto-fix and set a cycle limit — the maximum number of fix-and-re-review rounds before it stops and leaves the rest to you.
You can also tailor how auto-fix works: give it its own agent, model, and tools, and an optional custom prompt with a prompt mode (Append to base adds your instructions to Createst's built-in fix guidance; Replace base uses yours instead). For consistency across repositories, attach a reusable auto-fix agent — see Reusable Review & Auto-Fix Agents.
How a cycle works
Configure auto-fix in your review file
You can configure every aspect of auto-fix from your .createst/review.yaml file (see Configure Reviews With a File), so your fix policy is version-controlled alongside your review setup:
autofix:
fix_severities: [error] # only fix findings at these severities
deny_paths: [".github/**", "**/*.lock"] # never edit these files
max_commits_per_pr: 3 # stop after this many fix commits on one request
open_issues: false # don't let auto-fix open issues or new requests
pause_on_label: autofix-pause # pause auto-fix on any request with this label
on_cap:
label: needs-human # add this label when the commit limit is reached
fail_aggregate: false # when capped, leave the check unblocked (true to block)| Setting | What it does | Values / default |
|---|---|---|
fix_severities | Which finding severities auto-fix attempts to fix. If you leave this out, auto-fix only attempts errors — it won't rewrite your branch over a suggestion. | A list (e.g. [error], [error, warning]). |
deny_paths | Extra files auto-fix must never touch. This adds to the files that are always protected (CI and workflow files among them) — it can't remove protection from them. | A list of path patterns. |
max_commits_per_pr | The most fix commits auto-fix makes on one request before it stops. | A positive number. |
open_issues | Whether auto-fix may open issues or new requests. Off by default for safety. | false (default) or true. |
pause_on_label | A label that pauses auto-fix for a single request — without turning it off for the whole repository. | A label name. |
on_cap.label | A label added when the commit limit is reached, so a person can take over. | A label name. |
on_cap.fail_aggregate | Whether reaching the limit blocks the merge. | false (don't block, default) or true. |
Auto-fix runs once the overall review has concluded, and only one run happens per request at a time. It always stays inside the pull request's own files, never edits protected paths, and caps its commits — so it can't run away. It also only ever changes commits it made itself: if anyone else pushes to the branch while it's working, it leaves the branch alone and says so on the request.
If nothing matches your fix_severities, auto-fix simply doesn't run. You won't get a commit, and you
won't get a message telling you it failed — there was nothing for it to do. You can pause it on a single request with your pause_on_label label, or turn it off entirely in the Code Review settings.
Pull requests from forks
When a pull request comes from a fork, Createst can't push commits to someone else's branch. In that case auto-fix switches to comment-only: instead of committing fixes, it posts its suggested changes as review comments for the author to apply.
What to expect
- Fix commits are clearly attributable and show up in the PR like any other commit.
- When the cycle limit is reached, Createst stops and leaves the remaining findings as comments.
- You stay in control — turn auto-fix off any time to go back to review-only.