Skip to main content
Examples on this page use @coderabbitai. If CodeRabbit is installed with a different service-account handle on your platform, use that handle instead in PR comments and PR descriptions.

Review control commands

These commands control CodeRabbit’s automatic review behavior for your pull request.

Manual review triggers

@coderabbitai review does incremental review (new changes), not a full review. Use @coderabbitai full review when you want a complete pass over the entire pull request. Both commands use one PR review from your allowance when the review runs.
Description: Triggers an incremental review of new changes onlyUsage: Post as a comment in your pull requestWhen to use:
  • Automatic reviews are disabled
  • You want to manually request a review of recent changes
  • You’ve made updates and want focused feedback on new code
  • A full review already ran and you only want feedback on what changed since then (new commits)
Example:
@coderabbitai review
Description: Performs a complete review of all files from scratchUsage: Post as a comment in your pull requestWhen to use:
  • You want fresh view on the entire PR
  • Previous reviews may have missed something
  • You’ve made significant changes affecting the overall logic
  • A PR was moved from draft to open and you want the first complete review now
Example:
@coderabbitai full review

Review flow control

Description: Temporarily stops automatic reviews on the PRUsage: Post as a comment in your pull requestWhen to use:
  • Making multiple rapid changes
  • Want to avoid review spam during development
  • Need time to complete your implementation
Example:
@coderabbitai pause
Description: Restarts automatic reviews after a pauseUsage: Post as a comment in your pull requestWhen to use:
  • Ready for CodeRabbit to review again
  • Completed your changes and want feedback
Example:
@coderabbitai resume
Description: Permanently disables automatic reviews for this PRUsage: Add anywhere in the pull request descriptionWhen to use:
  • Want to handle the review process manually
  • PR contains sensitive or experimental code
  • Working on a hotfix that needs immediate deployment
Example:
@coderabbitai ignore
This command must be placed in the PR description, not in comments. To re-enable reviews, remove this text from the description.

Content generation commands

These commands help generate and update PR content and documentation.

Summary and documentation

Note: This is not a command - it’s a placeholder that you put in your PR description.Description: A placeholder in your PR description that gets replaced with CodeRabbit’s high-level summary of the changesHow it works:
  1. Add @coderabbitai summary anywhere in your PR description
  2. When CodeRabbit generates a summary, it replaces this placeholder instead of appending to the end
  3. You can customize this placeholder using the reviews.high_level_summary_placeholder configuration option
Usage: Place directly in your PR description (not as a comment)When to use:
  • You want the summary in a specific location in your description
  • You want to control where the summary appears instead of it being appended at the end
Example PR description:
## Overview
This PR implements the new user authentication flow.

@coderabbitai summary

## Testing
- [ ] Unit tests pass
- [ ] Integration tests pass
You can change this placeholder to anything you like using the reviews.high_level_summary_placeholder configuration option. See the configuration reference for more details.
Description: Generates docstrings for functions and classes in the PRUsage: Post as a comment in your pull requestWhen to use:
  • Code lacks proper documentation
  • Want consistent docstring formatting
  • Need to improve code documentation quickly
Example:
@coderabbitai generate docstrings
This feature must be enabled in your CodeRabbit configuration under reviews.finishing_touches.docstrings.enabled.
Description: Generates unit tests for the code in the PRUsage: Post as a comment in your pull requestWhen to use:
  • Code lacks test coverage
  • Want to quickly scaffold test cases
  • Need examples of how to test your functions
Example:
@coderabbitai generate unit tests
This feature must be enabled in your CodeRabbit configuration under reviews.finishing_touches.unit_tests.enabled.
Description: Automatically applies fixes for unresolved CodeRabbit review findings on GitHub, GitLab, Azure DevOps, and Bitbucket Cloud pull requests. Fixes can be committed directly to the current branch or to a new branch, based on your preference. For full details, see Finishing Touches / Autofix.When to use: You want CodeRabbit to automatically implement review fixesUsage:Post as a comment in your pull request
Commit changes directly to the current branch
@coderabbitai autofix
Commit changes to a new branch and open a stacked pull request against the current branch
@coderabbitai autofix stacked pr
The aliases auto-fix and auto fix are also supported.
Supported on GitHub, GitLab, Azure DevOps, and Bitbucket Cloud. The interactive Autofix checkboxes are available on supported GitHub pull-request flows only.
No configuration required. Enabled by default for Pro and Enterprise plan users.
If the pull request has merge conflicts, Autofix stops before making changes. The reply will suggest @coderabbitai resolve merge conflict as the next step. See Resolve merge conflicts for details.
Description: Creates a sequence diagram visualizing the PR’s history and changesUsage: Post as a comment in your pull requestWhen to use:
  • Want to visualize complex interactions
  • Need to understand the flow of changes
  • Documentation requires visual aids
Example:
@coderabbitai generate sequence diagram

Comment management

Description: Resolves all unresolved CodeRabbit review threads and then attempts to submit CodeRabbit’s approval on the pull requestUsage: Post as a new top-level comment in your pull requestWhen to use:
  • You’ve addressed CodeRabbit’s feedback and want a single command to resolve its threads and approve the PR
  • Your team uses CodeRabbit as a required reviewer and you want to request approval explicitly
  • You do not want to wait for the normal automatic approval path after resolving comments
Example:
@coderabbitai approve
This command only submits an approval when reviews.request_changes_workflow is enabled. Without that setting, CodeRabbit resolves its review threads but reports that approval is disabled. See the configuration reference.
Post this as a new top-level PR comment. @coderabbitai approve is not supported in review-thread replies.
Description: Marks all CodeRabbit review comments as resolvedUsage: Post as a comment in your pull requestWhen to use:
  • Addressed all CodeRabbit feedback
  • Want to clean up resolved issues
  • Ready to merge and need clean comment state
Example:
@coderabbitai resolve
This will resolve ALL CodeRabbit comments. Make sure you’ve actually addressed the feedback before using this command.

Information and configuration

Description: Displays the resolved CodeRabbit configuration settings, with comments that identify where settings came from (repository YAML, inherited central configuration, UI settings, defaults, global overrides, etc.). When is enabled, source comments let you trace exactly which level each merged value originated from.Usage: Post as a comment in your pull requestWhen to use:
  • Need to check current settings
  • Troubleshooting configuration issues
  • Want to export or share your configuration
  • Need to understand which configuration layer supplied a setting
Example:
@coderabbitai configuration
Description: Creates a PR that adds the current resolved configuration as .coderabbit.yaml (or shows it if already present).Usage: Post as a comment in your pull requestWhen to use:
  • Want to export current settings to a file
  • Share configuration with team members
  • Create a baseline configuration for the repository
Example:
@coderabbitai generate configuration
Description: Opens a pull request that adds suggested to your .coderabbit.yaml. CodeRabbit collects path-instruction suggestions generated over the past 7 days, merges the new ones into the reviews.path_instructions section, and opens a PR titled “Update CodeRabbit path instructions”.Usage: Post as a comment in your pull requestWhen to use:
  • You want to capture recurring review guidance as durable, path-scoped configuration
  • CodeRabbit has surfaced path-instruction suggestions that you want to apply in bulk
  • You want a reviewable PR rather than hand-editing .coderabbit.yaml
Example:
@coderabbitai emit path instructions
How it works:
  1. Reads path-instruction suggestions from the past 7 days, both those surfaced after reviews and those produced by CodeRabbit’s path-instruction agent.
  2. If no recent agent suggestions exist, it runs the path-instruction agent inline to generate them.
  3. Merges the suggestions into your existing .coderabbit.yaml (or creates one if none exists), preserving your existing comments, formatting, and other settings. Entries are deduplicated by path, so existing path instructions are never overwritten.
  4. Opens a pull request with the updated configuration, including a summary of how many suggestions came from each source.
What you might see back:
  • A pull request when new path instructions are added.
  • No changes when all recent suggestions already exist in your configuration.
  • No suggestions when no path-instruction suggestions were found in the last 7 days.
The alias emit path-instructions is also supported.
This command requires a platform that supports opening pull requests. Generating new suggestions with the path-instruction agent requires a Pro plan with an active subscription.
Description: Shows a quick reference guide of available commandsUsage: Post as a comment in your pull requestWhen to use:
  • Need a quick reminder of available commands
  • Want to see command syntax
  • Sharing CodeRabbit capabilities with team members
Example:
@coderabbitai help

Command reference table

For quick reference, here’s a summary of all available commands:
CommandTypeDescriptionLocation
@coderabbitai reviewReviewIncremental review of new changesPR comment
@coderabbitai full reviewReviewComplete review from scratchPR comment
@coderabbitai pauseControlTemporarily stop reviewsPR comment
@coderabbitai resumeControlRestart reviews after pausePR comment
@coderabbitai ignoreControlPermanently disable reviewsPR description
@coderabbitai summaryContentRegenerate PR summaryPR comment
@coderabbitai generate docstringsContentGenerate function documentationPR comment
@coderabbitai generate unit testsContentGenerate test casesPR comment
@coderabbitai autofixContentAuto-apply review fixesReview comment
@coderabbitai autofix stacked prContentAuto-fix via stacked pull requestReview comment
@coderabbitai generate sequence diagramContentCreate visual diagramPR comment
@coderabbitai approveManagementResolve threads and approve PRPR comment
@coderabbitai resolveManagementResolve all CR commentsPR comment
@coderabbitai configurationInfoShow current settingsPR comment
@coderabbitai generate configurationInfoCreate/export configuration filePR comment
@coderabbitai emit path instructionsInfoSuggest path instructions via PRPR comment
@coderabbitai helpInfoShow command referencePR comment
Many of these commands are affected by your CodeRabbit configuration. Key configuration options include:
  • Automatic reviews: reviews.auto_review.enabled
  • Docstring generation: reviews.finishing_touches.docstrings.enabled
  • Unit test generation: reviews.finishing_touches.unit_tests.enabled
  • High-level summaries: reviews.high_level_summary
  • Sequence diagrams: reviews.sequence_diagrams
For complete configuration options, see Configuration Reference.