Skip to main content
| Custom recipes let you encode your team’s repeated finishing-touch tasks — things like enforcing import ordering, tightening TypeScript types, or applying project-specific conventions — into named, reusable instructions. Once defined, anyone on your team can trigger a recipe with a single comment on GitHub or GitLab, or with a checkbox click on GitHub. CodeRabbit’s agent will carry out the work inside a sandbox and open a PR with the result.

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

Recipe names can include spaces. Quoting is optional:
The command is matched case-insensitively and can appear anywhere in a comment, including multi-line comments.

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:
For example:
The agent runs exactly as it would for a saved recipe — with full PR context — but the recipe is not persisted anywhere. This is useful for one-off tasks or for iterating on instructions before adding them to .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_instructions in your config
  • Full repository access via Read, Write, Edit, Glob, Grep, and Bash tools
This means your recipes can reference project conventions, coding standards, and PR intent without you needing to repeat that context in every recipe.

Example recipes

Remove console statements:
Add missing test coverage:
Enforce naming conventions:

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