This reference is automatically generated from the CodeRabbit configuration schema. Last updated: November 13, 2026
.coderabbit.yaml file in your repository root. This reference covers all available configuration options with clear property names and examples.
This page documents V2, used when the file omits version or declares version: 2. For eligible organizations using the V3 preview, see the V3 reference and migration guide.
Quick Start
Get started with basic configuration
YAML config examples
Browse example configurations
Configuration sections
General settings
Configure general settings
Code reviews
Configure automatic code reviews, tools, and review behavior
Chat
Configure interactive chat features
Knowledge base
Configure knowledge base features
Code generation
Configure code generation settings
Issue enrichment
Configure automatic Issue enrichment and planning
General settings
Set the language for reviews by using the corresponding ISO language code.One of the following:
de, de-DE, de-AT, de-CH, en, en-US, en-AU, en-GB, en-CA, en-NZ, en-ZA, es, es-AR, fr, fr-CA, fr-CH, fr-BE, nl, nl-BE, pt-AO, pt, pt-BR, pt-MZ, pt-PT, ar, ast-ES, ast, be-BY, be, br-FR, br, ca-ES, ca, ca-ES-valencia, ca-ES-balear, da-DK, da, de-DE-x-simple-language, el-GR, el, eo, fa, ga-IE, ga, gl-ES, gl, it, ja-JP, ja, km-KH, km, ko-KR, ko, pl-PL, pl, ro-RO, ro, ru-RU, ru, sk-SK, sk, sl-SI, sl, sv, ta-IN, ta, tl-PH, tl, tr, uk-UA, uk, zh-CN, zh, zh-TW, crh-UA, crh, cs-CZ, cs, nb, no, nl-NL, de-DE-x-simple-language-DE, es-ES, it-IT, fa-IR, sv-SE, de-LU, fr-FR, bg-BG, bg, he-IL, he, hi-IN, hi, vi-VN, vi, th-TH, th, bn-BD, bnSet the tone of reviews and chat. Example: ‘You must talk like Mr. T. I pity the fool who doesn’t!’
Max length: 250
Inheritance: Use parent settings for any values not defined here. Inheritance only propagates upward if enabled at each level.Learn more: Configuration inheritance
Reviews
Settings related to reviews.Set the review profile: quiet for only the most important feedback, chill for balanced feedback, assertive for more feedback (which may feel nitpicky).One of the following:
quiet, chill, assertivequiet: Posts only the most important comments inline and groups the other review comments in the review summary.chill: Balanced feedback.assertive: More feedback, which may feel nitpicky.
Merge Risk Instructions: Describe what makes a pull request more or less risky to merge in this codebase. CodeRabbit uses this when rating merge risk, which Learn more: Merge Risk
auto_approvals.max_merge_risk can limit for automatic approval. Up to 3000 characters. Example: Database migrations and billing changes are high risk. Docs-only and test-only changes are low risk.Max length: 3000
Security Risk Instructions: Describe facts about your system that affect security risk, such as which services are internet-facing, where tenant isolation is enforced, or which controls protect a path. CodeRabbit uses this when rating security architecture risk, which Learn more: Security Architecture Review
auto_approvals.max_security_risk can limit for automatic approval. Security risk assessments require the Advanced plan or above. Unlike Security scan context, which guides security findings in reviews and scans, this only affects the risk rating. Up to 3000 characters. Example: The admin service is reachable only over the corporate VPN. Changes to tenant isolation in packages/tenancy are high risk.Max length: 3000
Generate a high-level summary of the changes in the PR description or walkthrough.Learn more: PR Summaries
By default, CodeRabbit generates release notes in the description. Use this to customize the summary content and format. Example: ‘Create concise release notes as a bullet-point list, followed by a Markdown table showing lines added and removed by each contributing author.’ Note: Use
high_level_summary_in_walkthrough to place the summary in the walkthrough instead of the description.Learn more: PR SummariesPlaceholder in the PR description that CodeRabbit replaces with the high-level summary. If
high_level_summary is false, the summary is still generated when this placeholder is present.Learn more: PR SummariesInclude the high-level summary in the walkthrough comment.Learn more: PR Summaries
Post review status messages (e.g., when a review is skipped) in the walkthrough summary comment.Learn more: PR Walkthroughs
Post review information such as the configuration used, reviewed commits, and skipped files.
Post review details (ignored files, extra context used, suppressed comments, etc.).
On GitHub with CodeRabbit Cloud, report each review as a check run named
CodeRabbit that shows the review’s progress and outcome. When disabled, CodeRabbit posts the CodeRabbit commit status instead, if commit_status is enabled. GitLab, Azure DevOps, Bitbucket, and self-hosted CodeRabbit use the commit status.Learn more: CodeRabbit status checkPost a commit status named
CodeRabbit on the pull request’s latest commit. It is pending while CodeRabbit reviews and turns successful when the review ends, including when it is skipped or rate limited. Used on GitLab, Azure DevOps, Bitbucket, and self-hosted CodeRabbit, and on GitHub when review_progress is disabled. Require it in branch protection to keep pull requests from merging while a review is in progress.Learn more: CodeRabbit status checkReport a review that stops because of an error as failed, so a required
CodeRabbit check blocks merging. When disabled, the GitHub check run ends as neutral and the commit status ends as successful, with the error in its description. Rate-limited reviews never fail.Learn more: CodeRabbit status checkWrap the walkthrough in a Markdown collapsible section.Learn more: PR Walkthroughs
Include a summary of the changed files in the walkthrough.Learn more: PR Walkthroughs
Include sequence diagrams in the walkthrough.Learn more: PR Walkthroughs
Include an estimated code review effort in the walkthrough.Learn more: PR Walkthroughs
Include an assessment of how well the changes address linked issues in the walkthrough.Learn more: PR Walkthroughs
Include potentially related issues in the walkthrough.Learn more: PR Walkthroughs
Related PRs: Include potentially related PRs in the walkthrough.Learn more: PR Walkthroughs
Suggest labels based on the changes, and include them in the walkthrough.Learn more: PR Walkthroughs
Labeling Instructions: Define allowed labels and when to suggest them. When provided, CodeRabbit suggests only from this list (still informed by prior PRs); when empty, suggestions rely entirely on prior PRs.
.coderabbit.yaml
Mutually Exclusive Groups: Define labels that should not coexist. Example:
{ risk: ['critical', 'high', 'medium', 'low'] }.Suggest reviewers based on the changes, and include them in the walkthrough.Learn more: PR Walkthroughs
Automatically assign the suggested reviewers to the PR.Learn more: PR Walkthroughs
Reviewer Instructions: Map reviewers (users or team) to PR scenarios where they should be assigned. When empty, suggestions rely on prior PRs. Team handles are supported only on GitHub.Learn more: PR Walkthroughs
Post a fortune message while the review is running.Learn more: PR Walkthroughs
Generate a poem in the walkthrough comment.Learn more: PR Walkthroughs
Prompt for Coding Agents: Include the ’🤖 Prompt for Coding Agents’ section in inline review comments to provide codegen instructions for AI agents.
Specify file patterns to include or exclude in a review using glob patterns (e.g.,
!dist/**, src/**). These patterns also apply to ‘git sparse-checkout’, including specified patterns and ignoring excluded ones (starting with ’!’) when cloning the repository.Learn more: Path-based review instructions.coderabbit.yaml
Path Instructions: Add path-specific guidance for code review.Learn more: Path-based review instructions
.coderabbit.yaml
Disable caching of code and dependencies; fetch them fresh on each run.Learn more: Caching
Custom Post-merge Actions: Define custom actions to run after merging. Each action needs a unique name (≤100 chars) and a deterministic prompt (≤10,000 chars).Learn more: Post-Merge Actions
Automatic approvals
reviews.auto_approvals
Control automatic approval, optional risk limits, and overrides for teams or paths. Limits and disabled overrides apply to approve and resolve commands too. Missing, failed, disabled or stale required assessments withhold approval.
Learn more: Approval risk limits
Automatic approvals: Request changes for blocking findings. Automatically approve when required threads are resolved, the latest commit is reviewed, pre-merge checks pass, and configured risk limits are satisfied. In GitLab, required discussions must be resolved.Learn more: Automatic Approvals
Maximum merge risk for approval: Highest inclusive merge risk that permits approval. Omitted limits can be inherited; merge risk is unrestricted only when no configuration source sets a limit. A configured limit requires an assessment covering the current commit.One of the following:
minimal, low, moderate, high, criticalLearn more: Approval risk limitsAllow author approval commands: Allow pull request authors to use top-level @coderabbitai approve and @coderabbitai resolve commands on their own pull requests. When disabled, another reviewer must run them. The pull request’s branch configuration cannot re-enable this permission. Commands still honor approval risk limits. This does not require human review or change automatic approvals after normal review requirements pass.Learn more: Automatic Approvals
Maximum security risk for approval: Highest inclusive security architecture risk that permits approval. Security risk assessments require the Advanced plan or above. Omitted limits can be inherited; security risk is unrestricted only when no configuration source sets a limit. This is separate from Security finding severity. A configured limit requires an assessment covering the current commit.One of the following:
minimal, low, moderate, high, criticalLearn more: Approval risk limitsOverrides: Disable approvals or override risk limits by author team, changed paths, or both. When teams and paths are set, both must match. A matching file applies the override to the whole pull request. Any matching disabled override withholds approval. Otherwise, the strictest explicitly configured value wins for each limit; omitted values inherit the global limit. At most 15 distinct teams may be checked. Unavailable required team membership or changed-file evidence withholds approval.Learn more: Approval risk limits
Anti-Slop
reviews.slop_detection
Settings for detecting spam or low-quality pull requests and merge requests. Private repositories require the Essentials plan or higher. Public GitHub, GitLab, and Bitbucket repositories are eligible on all plans. Author exemptions, integration availability, labeling, and rechecks vary by platform.
Learn more: Slop Detection
Include authors otherwise exempt because of their repository relationship, including same-repository pull requests on Azure DevOps and Bitbucket. Recognized automation accounts remain exempt.Learn more: Slop Detection
Label to apply when a request is classified as spam or slop on platforms that support labeling. The label is applied in addition to the warning in the PR Walkthrough comment. When no label is configured, only the warning is added. Requests with this label are eligible for analysis on subsequent reviews on GitHub, GitLab, and Azure DevOps. Bitbucket does not support label-based rechecks.Learn more: Slop Detection
Min length: 1
Auto review
reviews.auto_review
Learn more: Automatic review controls
Keyword in the PR description that triggers a review when automatic reviews are disabled. If
enabled is false and this field is not empty, CodeRabbit reviews the PR only when this keyword is present in the description.Auto Pause After Reviewed Commits: Pause automatic reviews after this many reviewed commits since the last pause. Set to 0 to disable.
Min: 0, Max: 9007199254740991
Skip reviews when the PR title contains any of these keywords (case-insensitive).
Labels that control which PRs are reviewed. Labels starting with ’!’ are negative matches. Examples: [‘bug’, ‘feature’] reviews PRs with either label. [‘!wip’] reviews all PRs except those labeled ‘wip’ when automatic reviews are enabled. [‘bug’, ‘!wip’] reviews PRs labeled ‘bug’ but not ‘wip’. When
enabled is false, a positive label match (for example [‘review-ready’]) triggers a review; negative-only labels such as [‘!wip’] remain exclusion filters and do not opt PRs in by themselves..coderabbit.yaml
Base branches (other than the default branch) to review. Accepts regex patterns. Use ’.*’ to match all branches.Each entry is a regular expression tested against the target branch name without anchoring, so
develop also matches develop-2. Use ^ and $ to match the whole name..coderabbit.yaml
Skip reviews for pull requests authored by these usernames. Matching is exact and case-sensitive. Bitbucket Cloud matches the author’s display name, and Azure DevOps matches their unique name, usually the sign-in email, in lowercase.Learn more: Automatic review controls
Finishing touches
reviews.finishing_touches
Learn more: Finishing Touches overview
Fix comments: Configure the Fix comments finishing touch for one-off review repairs.Learn more: Fix comments: apply CodeRabbit code fixes to pull requests
Fix Failing CI: Configure the CI fixer.Learn more: Fix CI failures
Resolve Merge Conflicts: Configure the merge-conflict resolver.Learn more: Resolve Merge Conflicts
Custom Recipes: Define custom finishing touch recipes up to your plan limit. Trigger a recipe with
@coderabbitai run <recipe name>.Learn more: Custom Finishing Touch recipesPre-Merge Checks
reviews.pre_merge_checks
Learn more: Built-in Pre-Merge Checks
Override Requested Reviewers Only: When enabled, the pull request author cannot override/ignore failing pre-merge checks. Eligible actors are individually requested reviewers and, on GitHub, members of requested reviewer teams or submitted reviewers whose author association is OWNER, MEMBER, or COLLABORATOR.
Custom Pre-merge Checks: Define custom checks that must pass before merging. Each check needs a unique name (≤50 chars) and deterministic instructions (≤10,000 chars).Learn more: Custom checks
.coderabbit.yaml
Tools
reviews.tools
Tools that provide additional context to code reviews.
Learn more: Third-party tools overview
ast-grep is a code analysis tool that helps you to find patterns in your codebase using abstract syntax trees patterns.Version:
v0.51.1markdownlint-cli2 is a static analysis tool to enforce standards and consistency for Markdown files.Version:
v0.24.0TruffleHog is a secret scanner with verification capabilities that can detect and verify secrets in code.Version:
v3.99.8TFLint is a Terraform linter for finding potential errors and enforcing best practices.Version:
v0.66.0Flake8 is a Python linter that wraps PyFlakes, pycodestyle and Ned Batchelder’s McCabe script.Version:
v7.4.1PMD is an extensible multilanguage static code analyzer. It’s mainly concerned with Java.Version:
v7.29.0Cppcheck is a static code analysis tool for the C and C++ programming languages.Version:
v2.22.0OpenGrep is a high-performance static code analysis engine, compatible with Semgrep configurations.Version:
v1.33.0Semgrep is a static analysis tool designed to scan code for security vulnerabilities and code quality issues.Version:
v1.183.0Configuration for Squawk to lint Postgres migrations and SQL for safe schema changesVersion:
v2.70.0Trivy is a comprehensive security scanner that detects misconfigurations and secrets in Infrastructure as Code filesVersion:
v0.76.2Configuration for Shopify Theme Check to ensure theme quality and best practicesVersion:
cli 5.0.0, theme 3.58.2Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications.Version:
v8.1.0dotenv-linter is a tool for checking and fixing .env files for problems and best practicesVersion:
v4.0.0Stylelint is a linter for stylesheets (CSS, SCSS, Sass, Less, SugarSS, Stylus) that helps avoid errors and enforce conventions.Version:
v17.14.0React Doctor scans React codebases for security, performance, correctness, and accessibility issues.Version:
v0.9.18Microsoft Presidio Analyzer 2.2.366 detects sensitive identifiers (including payment cards, US SSN, cryptocurrency wallets, and phone numbers) in changed files. Tune entities, thresholds, and languages in repository Presidio configuration (for example .presidiocli or AnalyzerEngineProvider YAML); the built-in scan uses fixed defaults and is skipped when that configuration is present.Version:
v2.2.366Blinter is a linter for Windows batch files that provides comprehensive static analysis to identify syntax errors, security vulnerabilities, performance issues, and style problems.Version:
v1.1.49smarty-lint is a linter for Smarty 3 template files that checks for common issues such as incorrect operator usage, naming conventions, empty blocks, and unquoted strings.Version:
v0.3.3ember-template-lint is a linter for Handlebars template files that checks for common issues such as accessibility violations, deprecated patterns, and template anti-patterns.Version:
v7.9.4SkillSpector is a security scanner for AI agent skills that detects vulnerabilities, malicious patterns, and security risksVersion:
v2.12.0Chat
Allow non-organization members to interact with CodeRabbit in comment chat. Set to false to restrict issue/review comment interactions to organization members on GitHub organization repositories. This does not affect automatic PR review eligibility.
Integrations
chat.integrations
Learn more: Jira Integration
Learn more: Linear Integration
Knowledge base
Opt Out: Disable knowledge base features that require data retention. Opting out removes any existing stored knowledge base data.Learn more: Knowledge Base overview
Automatic Linking Mode: For Auto, private repositories may automatically link to public or private repositories, while public repositories may automatically link only to public repositories. Enabled uses context from any eligible repository in the organization, whether public or private. Disabled creates no automatic repository links. Manual repository links configured below are unaffected.One of the following:
auto, enabled, disabledLearn more: Multi-Repo AnalysisAutomatic Repository Linking: Deprecated. This setting has no effect. Use
knowledge_base.automatic_linking_mode instead.Learn more: Multi-Repo AnalysisLinked Repositories: Repositories that CodeRabbit should consider when reviewing PRs in this repo. Use this to surface cross-repo dependencies and catch breaking changes across related codebases.Learn more: Multi-Repo Analysis
Web search
knowledge_base.web_search
Learn more: Web Search
Code guidelines
knowledge_base.code_guidelines
Use your coding guideline documents (see File Patterns) as review criteria.
Learn more: Code Guidelines
File Patterns: Additional guideline files, as glob strings or
{ files, applyTo } objects. A string entry such as **/CODING_STANDARDS.md locates guideline files. An object entry sets files (the guideline documents) and applyTo (the source files they govern, for example **/*.ts), each a comma-separated list of globs. Either form can name a file in another repository of your organization as repo:path or owner/repo:path (for example engineering-standards:frontend/react.md), read from that repository’s default branch. On Azure DevOps Services, use repo:path within the reviewed project or org/project/repo:path for another project in the same organization; write project names with literal spaces. Supplements the default patterns; does not replace them. File names are case-sensitive.Learnings
knowledge_base.learnings
Learn more: Learnings
Learnings: Choose scope: ‘local’ (repo), ‘global’ (org), or ‘auto’ (local for public repos, global for private repos).One of the following:
local, global, autoauto: When reviewing a public repository, uses only that repository’s learnings. When reviewing a private repository, uses all of your organization’s learnings.global: Uses all of your organization’s learnings in every review.local: Uses only the learnings of the repository being reviewed.
Days admins have to approve or reject a learning before it is automatically applied. Must be an integer between 0 and 30. Set to 0 to apply learnings immediately without approval.
Min: 0, Max: 30
Issues
knowledge_base.issues
Learn more: Knowledge Base overview
Issues: Choose scope for GitHub/GitLab issues: ‘local’ (repo), ‘global’ (org), or ‘auto’ (local for public repos, global for private repos).One of the following:
local, global, autoJira
knowledge_base.jira
Learn more: Knowledge Base overview
Jira: Use Jira as a knowledge source. ‘auto’ disables the integration for public repositories.One of the following:
auto, enabled, disabledJira Project Keys: Restrict Jira context to these projects.Learn more: Jira Integration
Jira Excluded Project Keys: Never use these Jira projects as CodeRabbit context, regardless of repository allowlists. Managed at the workspace level as a security policy; exclusions always take precedence over any allowlist.Learn more: Jira Integration
Linear
knowledge_base.linear
Learn more: Knowledge Base overview
Linear: Use Linear as a knowledge source. ‘auto’ disables the integration for public repositories.One of the following:
auto, enabled, disabledLinear Team Keys: Restrict Linear context to these teams (e.g. ‘ENG’).Learn more: Linear Integration
Pull requests
knowledge_base.pull_requests
Learn more: Knowledge Base overview
PRs: Choose scope: ‘local’ (repo), ‘global’ (org), or ‘auto’ (local for public repos, global for private repos).One of the following:
local, global, autoMCP
knowledge_base.mcp
Learn more: MCP Servers
MCP: Use MCP servers as a knowledge source. ‘auto’ disables the integration for public repositories.One of the following:
auto, enabled, disabledauto: Uses MCP servers as a knowledge source on private repositories and skips them on public repositories.enabled: Uses MCP servers on all repositories, including public ones.disabled: Never uses MCP servers as a knowledge source.
Disabled MCP Servers: Specify MCP server labels to disable (case-insensitive). These servers will be excluded from reviews and knowledge base queries.
Code generation
Unit Test Generation
code_generation.unit_tests
Settings for generating unit tests.
Learn more: Generate unit tests
Path Instructions: Add path-specific guidelines for unit test generation.Learn more: Generate unit tests
Issue enrichment
Auto enrich
issue_enrichment.auto_enrich
Settings for automatic issue enrichment.
Learn more: Issue Enrichment
Automatic Issue Enrichment: Analyze and enrich issues with additional context (related code, potential solutions, complexity assessment).
Planning
issue_enrichment.planning
Settings for issue planning.
Learn more: Issue Planner
Labeling
issue_enrichment.labeling
Settings for issue labeling.
Learn more: Issue Enrichment
Labeling Instructions: Define issue labels to suggest and when to suggest them.
Automatically apply suggested labels to the issue. When enabled without labeling instructions, labels are auto-suggested based on similar issues.
Related resources
Review commands
Learn about @coderabbitai commands
Tools reference
Browse all supported linters and analyzers