@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.@coderabbitai review
@coderabbitai review
- 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)
@coderabbitai full review
@coderabbitai full review
- 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
Review flow control
@coderabbitai pause
@coderabbitai pause
- Making multiple rapid changes
- Want to avoid review spam during development
- Need time to complete your implementation
@coderabbitai resume
@coderabbitai resume
- Ready for CodeRabbit to review again
- Completed your changes and want feedback
@coderabbitai ignore
@coderabbitai ignore
- Want to handle the review process manually
- PR contains sensitive or experimental code
- Working on a hotfix that needs immediate deployment
Content generation commands
These commands help generate and update PR content and documentation.Summary and documentation
@coderabbitai summary
@coderabbitai summary
- Add
@coderabbitai summaryanywhere in your PR description - When CodeRabbit generates a summary, it replaces this placeholder instead of appending to the end
- You can customize this placeholder using the
reviews.high_level_summary_placeholderconfiguration option
- 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
reviews.high_level_summary_placeholder configuration option. See the configuration reference for more details.@coderabbitai generate docstrings
@coderabbitai generate docstrings
- Code lacks proper documentation
- Want consistent docstring formatting
- Need to improve code documentation quickly
reviews.finishing_touches.docstrings.enabled.@coderabbitai generate unit tests
@coderabbitai generate unit tests
- Code lacks test coverage
- Want to quickly scaffold test cases
- Need examples of how to test your functions
reviews.finishing_touches.unit_tests.enabled.@coderabbitai autofix
@coderabbitai autofix
auto-fix and auto fix are also supported.@coderabbitai resolve merge conflict as the next step. See Resolve merge conflicts for details.@coderabbitai generate sequence diagram
@coderabbitai generate sequence diagram
- Want to visualize complex interactions
- Need to understand the flow of changes
- Documentation requires visual aids
Comment management
@coderabbitai approve
@coderabbitai approve
- 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
reviews.request_changes_workflow is enabled. Without that setting, CodeRabbit resolves its review threads but reports that approval is disabled. See the configuration reference.@coderabbitai resolve
@coderabbitai resolve
- Addressed all CodeRabbit feedback
- Want to clean up resolved issues
- Ready to merge and need clean comment state
Information and configuration
@coderabbitai configuration
@coderabbitai configuration
- Need to check current settings
- Troubleshooting configuration issues
- Want to export or share your configuration
- Need to understand which configuration layer supplied a setting
@coderabbitai generate configuration
@coderabbitai generate configuration
.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
@coderabbitai emit path instructions
@coderabbitai emit path instructions
.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
- Reads path-instruction suggestions from the past 7 days, both those surfaced after reviews and those produced by CodeRabbitâs path-instruction agent.
- If no recent agent suggestions exist, it runs the path-instruction agent inline to generate them.
- 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. - Opens a pull request with the updated configuration, including a summary of how many suggestions came from each source.
- 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.
emit path-instructions is also supported.@coderabbitai help
@coderabbitai help
- Need a quick reminder of available commands
- Want to see command syntax
- Sharing CodeRabbit capabilities with team members
Command reference table
For quick reference, hereâs a summary of all available commands:| Command | Type | Description | Location |
|---|---|---|---|
@coderabbitai review | Review | Incremental review of new changes | PR comment |
@coderabbitai full review | Review | Complete review from scratch | PR comment |
@coderabbitai pause | Control | Temporarily stop reviews | PR comment |
@coderabbitai resume | Control | Restart reviews after pause | PR comment |
@coderabbitai ignore | Control | Permanently disable reviews | PR description |
@coderabbitai summary | Content | Regenerate PR summary | PR comment |
@coderabbitai generate docstrings | Content | Generate function documentation | PR comment |
@coderabbitai generate unit tests | Content | Generate test cases | PR comment |
@coderabbitai autofix | Content | Auto-apply review fixes | Review comment |
@coderabbitai autofix stacked pr | Content | Auto-fix via stacked pull request | Review comment |
@coderabbitai generate sequence diagram | Content | Create visual diagram | PR comment |
@coderabbitai approve | Management | Resolve threads and approve PR | PR comment |
@coderabbitai resolve | Management | Resolve all CR comments | PR comment |
@coderabbitai configuration | Info | Show current settings | PR comment |
@coderabbitai generate configuration | Info | Create/export configuration file | PR comment |
@coderabbitai emit path instructions | Info | Suggest path instructions via PR | PR comment |
@coderabbitai help | Info | Show command reference | PR comment |
Related configuration
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