Supported files
The following file patterns are detected by default:File names are case-sensitive. A file named
claude.md is not matched by the **/CLAUDE.md pattern.How scoping works
A guideline file applies to the directory it lives in and all of its subdirectories. CodeRabbit does not apply guidelines from one part of your repository tree to unrelated paths. Examples:CLAUDE.mdat the repository root → applies to all filessrc/frontend/CLAUDE.md→ applies only to files undersrc/frontend/src/backend/.cursorrules→ applies only to files undersrc/backend/
Guidelines in a documentation or tooling directory will not affect code review
unless the code files you are reviewing live inside that same directory tree.
Managing applied guidelines
The CodeRabbit UI shows the coding guidelines that were applied during the latest reviews for a repository. Repository admins with write access can edit or trash applied guideline rows for future reviews of that repository.- Click the pencil icon on a guideline row to edit its path pattern or instruction text. The edit changes what CodeRabbit applies in future reviews for that repository, but it leaves the original guideline document unchanged.
- Use Reset to original on an edited guideline to discard the repository-level edit and apply the original rendered guideline text again.
- Select one or more applied guideline rows and click Trash selected to stop those rendered guidelines from being applied in future reviews.
knowledge_base.code_guidelines.enabled to false.
Adding custom file patterns
If your team stores coding standards in files that are not in the default list, you can extend the detected patterns by settingknowledge_base.code_guidelines.filePatterns in your .coderabbit.yaml.
Custom patterns are added on top of the defaults—they do not replace them.
.coderabbit.yaml
** wildcard matches any number of path segments.
Configuration reference
.coderabbit.yaml
Setting
filePatterns to an empty list ([]) keeps the default patterns
active. To disable code guidelines entirely, set enabled: false.What’s next
Knowledge base overview
Learn about all knowledge base capabilities: learnings, code guidelines, and linked repositories.
Learnings
Teach CodeRabbit your team’s review preferences through natural conversation.
Configuration reference
Full reference for all
knowledge_base configuration options.