How it works
Define recipes in your config
Add up to 5 named recipes under
reviews.finishing_touches.custom in .coderabbit.yaml. Each recipe has a name and a freeform instructions field.Trigger a recipe
Comment
@coderabbitai run <recipe name> in any PR, or check the corresponding recipe checkbox in the CodeRabbit Walkthrough under ✨ Finishing Touches.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.
Platform support
GitHub
Custom recipes are currently available only on GitHub pull requests.
Configuration
Add custom recipes to.coderabbit.yaml:
Recipe fields
| Field | Required | Limits | Description |
|---|---|---|---|
name | Yes | Max 100 characters | Identifier used in run commands. Case-insensitive. Must be unique across your recipes. |
instructions | Yes | Max 10,000 characters | Freeform description of what the agent should do. The agent receives full PR context alongside these instructions. |
enabled | No | — | Set to false to temporarily disable a recipe without removing it. Defaults to true. |
"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
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