How it works
1
Define recipes in your config
Add named recipes under
reviews.finishing_touches.custom in .coderabbit.yaml. Each recipe has a name and a freeform instructions field.2
Trigger a recipe
Comment
@coderabbitai run <recipe name> in a GitHub pull request or GitLab merge request. On GitHub, you can also check the corresponding recipe checkbox in the CodeRabbit Walkthrough under ✨ Finishing Touches.3
Agent execution
CodeRabbit clones your repository into a sandbox, provides the agent with full PR context (title, description, summary, coding guidelines), and runs your instructions using the Claude Agent SDK.
4
Receive the output
By default, CodeRabbit opens a new pull request against your branch containing the agent’s changes. You review and merge it like any other PR.
Platform support
GitHub
Use a PR comment command or the CodeRabbit Walkthrough checkbox.
GitLab
Use a merge request comment command.
Configuration
Add custom recipes to.coderabbit.yaml:
Recipe fields
Custom recipes are available on the Pro+ plan and above. You can define up to 20 custom recipes per repository on Pro+ and Enterprise.
Recipe names are matched case-insensitively, so
"Cleanup Stale Imports" and "cleanup stale imports" refer to the same recipe.
Triggering recipes
PR comment
Ad hoc evaluation (without a saved recipe)
To try out a finishing touch without committing it to your config, use the evaluate command directly in a PR comment:.coderabbit.yaml.
Finishing Touches checkbox
On GitHub, each enabled recipe appears as a checkbox in the ✨ Finishing Touches section of the CodeRabbit Walkthrough comment. Checking it triggers the recipe with the Create PR output mode.What the agent receives
When a recipe runs, CodeRabbit provides the agent with:- Your recipe instructions
- PR title and description
- CodeRabbit’s PR summary (walkthrough and objectives)
- Global coding guidelines from
reviews.path_instructionsin your config - Full repository access via Read, Write, Edit, Glob, Grep, and Bash tools
Example recipes
Remove console statements:What’s next
Finishing Touches overview
See all available finishing touches and how to trigger them from any PR
Autofix
Automatically implement fixes for unresolved CodeRabbit review findings
YAML configuration
Set up .coderabbit.yaml to define custom recipes and other review settings