Quick start
Most teams can start with these essential configurations, then customize further as needed:Essential settings
Data retention, learnings, and review behavior
Common customizations
Review length, path filters, and tool configuration
How to configure
1
Choose your approach
Configure using
.coderabbit.yaml
file (recommended) or CodeRabbit UI. YAML
configuration takes precedence over UI settings.2
Start with data and privacy
Decide on data retention, caching, and learnings based on your
organization’s policies.
3
Customize review behavior
Adjust review length, strictness, and automatic behavior to match your
team’s preferences.
4
Set path-specific rules
Add path filters and instructions for different parts of your codebase.
.coderabbit.yaml
file.
Data and privacy settings
Control how much data CodeRabbit retains about your repositories. CodeRabbit temporarily stores information to provide faster, more tailored reviews, but you can opt out if your organization has strict data-retention policies. For more about CodeRabbit data policies, see Data privacy and security.Data retention (organization-wide)
This setting is only available at the organization level, not per-repository.
Enable data retention for faster, more tailored reviews through caching and
knowledge base features.
Cache configuration
CodeRabbit keeps a temporary cache of repository data for faster reviews. Disable if this conflicts with your data-retention policies. Configure: Disable cacheKnowledge base retention
CodeRabbit builds a knowledge base of metadata about your repositories, team history, and review preferences. This enables more tailored reviews over time. Configure: Opt outLearnings
CodeRabbit learns your team’s preferences when you teach it during reviews using plain language. These learnings apply to future reviews. Set the scope of which stored learnings CodeRabbit applies: Configure: LearningsReview behavior
Customize how CodeRabbit generates and delivers code reviews.Review length and content
Collapse detailed sections and disable optional features: - Collapse
walkthrough: Hide
detailed change summary in expandable section - Sequence
diagrams: Disable visual
diagrams - Poem: Disable fun poems
about PRs
Code review strictness
CodeRabbit focuses on significant issues and includes less nitpicky tool
output in reviews.
Tool configuration
CodeRabbit uses dozens of industry-standard tools like linters and security analyzers. See full tool list. By default, CodeRabbit considers all available tools. Disable specific tools or provide tool-specific configuration files:Path-specific configuration
Give CodeRabbit different instructions for different parts of your codebase. See Path-based instructions for detailed guidance.Path filters
Exclude files CodeRabbit should ignore, or limit consideration to specific files. Useful for repositories with generated files or non-code content.Path instructions
Provide specific review instructions for different file types or locations:Documentation and testing instructions
Direct CodeRabbit to generate inline documentation or unit tests for specific paths: Configure: Docstrings and Unit testsWorkflow integration
Configure how CodeRabbit integrates with your team’s development workflow.Automatic review behavior
By default, CodeRabbit automatically reviews new PRs and updates to existing PRs against your default branch. Configure: Automatic incremental reviewReview restrictions
Limit reviews by labels
Limit reviews by labels
Only review PRs with specific labels: Configure:
Labels
Review additional branches
Review additional branches
Extend automatic reviews beyond your default branch: Configure: Base
branches
Pull request approval
We recommend requiring at least one human reviewer approval, even if
CodeRabbit can approve PRs.