Supported files
The following file patterns are detected by default:| File pattern | Associated tool |
|---|---|
**/AGENTS.md | AI agent instructions |
**/.cursorrules | Cursor |
.github/copilot-instructions.md | GitHub Copilot |
.github/instructions/*.instructions.md | GitHub Copilot (scoped instructions) |
**/CLAUDE.md | Claude Code |
**/GEMINI.md | Gemini CLI |
**/.cursor/rules/* | Cursor (rules directory) |
**/.windsurfrules | Windsurf |
**/.clinerules/* | Cline |
**/.rules/* | Generic team rules |
**/AGENT.md | AI agent instructions |
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.
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
| Field | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Apply coding guideline files as review criteria. Set to false to disable auto-detection entirely. |
filePatterns | array of strings | [] | Additional glob patterns for guideline files. Supplements the built-in defaults; does not replace them. File names are case-sensitive. |
Setting
filePatterns to an empty list ([]) keeps the default patterns
active. To disable code guidelines entirely, set enabled: false.