Skip to main content
Finishing Touches are a set of post-review actions that CodeRabbit can perform on your behalf. After a review completes, you can trigger any finishing touch by posting a command as a PR comment or by checking a box in the Walkthrough comment. CodeRabbit runs the action in a sandboxed environment and pushes the output as a commit or opens a new PR. Look for the ✨ Finishing Touches section in the CodeRabbit Walkthrough comment, it lists every action available for the current PR.

Available finishing touches

Autofix

Automatically implement fixes for unresolved CodeRabbit review findings. Push a commit to your branch or open a stacked PR.

Resolve merge conflicts

Detect and resolve merge conflicts by analyzing the intent behind both sets of changes, then commit the result as a proper merge commit.

Generate unit tests

Analyze your code changes and produce comprehensive unit tests, including edge cases and error conditions, using your project’s existing frameworks.

Simplify code

Review your changed code for opportunities to simplify, improve reuse, quality, and efficiency, then apply targeted improvements automatically.

Custom recipes

Define reusable, named recipes in your config that encode your team’s repeated tasks: import ordering, type tightening, changelog entries, and more.

Generate docstrings

Scan your PR for functions missing documentation and generate format-aware docstrings delivered as a separate PR. Supports 18+ languages.

Platform support

PlatformAvailable finishing touches
GitHubFull support
GitLabResolve merge conflicts, Generate docstrings
Azure DevOpsGenerate docstrings
BitbucketGenerate docstrings

How to trigger

Every finishing touch can be triggered in two ways:
MethodHowWhere
PR commentComment a command like @coderabbitai generate docstringsAll supported platforms
CheckboxCheck the box in the ✨ Finishing Touches section of the CodeRabbit Walkthrough commentGitHub PRs
See each feature page for the exact commands and platform support details.

Quick reference

Finishing touchCommandOutput
Generate docstrings@coderabbitai generate docstringsNew PR with docstrings
Generate unit tests@coderabbitai generate unit testsPR or commit on branch
Simplify code@coderabbitai simplifyNew PR or commit on branch
Autofix@coderabbitai autofixCommit on branch or stacked PR
Custom recipes@coderabbitai run <recipe name>Commit on branch or stacked PR
Resolve merge conflicts@coderabbitai fix merge conflictMerge commit on branch

What’s next

Autofix

Automatically implement fixes for unresolved review findings and push them as a commit or stacked PR

Custom recipes

Define reusable, named recipes that encode your team’s repeated tasks into one-click agentic actions

Resolve merge conflicts

Let CodeRabbit analyze the intent behind conflicting changes and commit a clean resolution to your branch