CodeRabbit Code Review
Use the CodeRabbit CLI to review code from within Cursor. CodeRabbit is already installed; run it as a command-line tool to get AI-powered feedback on uncommitted or committed changes.
When to Use
- User asks to "run CodeRabbit", "review my code", or "run a code review"
- After implementing a feature and the user wants issues caught before commit/PR
- User asks to "fix CodeRabbit issues" or "address CodeRabbit suggestions"
Prerequisites
- CodeRabbit CLI installed (install:
curl -fsSL https://cli.coderabbit.ai/install.sh | sh) - Authenticated: run
coderabbit auth status; if not logged in, runcoderabbit auth login
How to Run CodeRabbit
Review uncommitted changes (most common)
Use this when reviewing current working-directory changes:coderabbit --prompt-only -t uncommitted--prompt-onlygives Cursor concise, token-efficient output (file, line, severity, suggestion).Review committed changes
coderabbit --prompt-only -t committedReview all changes (committed + uncommitted)
coderabbit --prompt-only -t allDifferent base branch
If the default branch is notmain:coderabbit --prompt-only -t uncommitted --base developHelp
cr -hor
coderabbit -hfor full CLI options.
Limits
- Do not run CodeRabbit more than 3 times for the same set of changes in one session. After that, summarise remaining issues and stop.
- Reviews can take several minutes (about 7–30 depending on scope). Run in the background or warn the user if the run will be long.
After CodeRabbit Finishes
- Read the
--prompt-onlyoutput (plain text with file locations, severity, and suggestions). - Build a short task list of issues to fix (by file and severity).
- Apply fixes for each finding; prefer fixing critical/high first, then nits if the user asked for "all" or "fix everything".
- If the user said "fix critical only" or "ignore nits", only address critical/high findings.
Project Configuration
This repo has a .coderabbit.yaml that sets:
- Language: British English
- Profile: chill (lighter feedback, fewer nits)
- Tone: Concise, direct, actionable; British English spelling
Respect that style when describing or applying CodeRabbit feedback (e.g. "colour" not "color").
Optional: Cursor Rule
To make Cursor always use CodeRabbit correctly, add a rule via Cursor’s @rule and paste:
# Running the CodeRabbit CLI
CodeRabbit is already installed in the terminal. Run it to review code.
- Help: `cr -h` or `coderabbit -h`
- Prefer: `coderabbit --prompt-only -t uncommitted` for uncommitted changes
- Do not run CodeRabbit more than 3 times for the same set of changes
References
Converted and distributed by TomeVault — claim your Tome and manage your conversions.