Ship better software faster with confidence. CodeRabbit is an AI code reviewer that works a pull request or local diff the way a thorough senior staff engineer would — analyzing cross-file impacts, verifying edge cases, and enforcing coding standards.
Traditional static analyzers only catch mechanical syntax issues, while human reviewers often skim large pull requests. CodeRabbit bridges this gap by acting as an intelligent, context-aware code review agent. It builds a structural code graph of your repository, runs linters, inspects ASTs, and leverages frontier reasoning models to surface non-obvious bugs, security vulnerabilities, and architectural regressions before code hits production.
CodeRabbit integrates directly with your existing developer stack: GitHub, GitLab, Azure DevOps, Bitbucket, Slack, IDEs (VS Code, Cursor, Windsurf), and CLI tools.
- 🧠 Context-Aware PR Reviews: Builds a fresh structural code graph per review to track cross-file dependencies and downstream impacts across the repository.
- ⚡ One-Click Fixes: Generates actionable, ready-to-commit code diffs and suggestions directly inside pull requests or local CLI sessions.
- 🛡️ Low False-Positive Rate: Uses an automated "Judge" model step that validates each finding against gathered context before posting.
- 💬 Natural Language Discussion: Reply to any review comment on GitHub/GitLab to ask CodeRabbit for clarification, alternative implementations, or unit tests.
- 💻 Command-Line & Agent Workflows: Run local pre-commit reviews via the CLI or pair CodeRabbit with AI coding agents (Claude Code, Cursor, Codex) using structured output flags.
- 📋 Planning & Issue Grounding: Integrates with Jira and Linear to verify changes against original project requirements and ticket descriptions.
- Navigate to docs.coderabbit.ai and sign in with your Git provider.
- Install the CodeRabbit GitHub App (or GitLab/Bitbucket integration) on your organization or selected repositories.
- Open a Pull Request on any configured repository. CodeRabbit will automatically analyze your changes and post a review summary with inline comments.
For local pre-commit checks or autonomous agent workflows:
# Install via Homebrew
brew install coderabbit
# Or via official installation script
curl -fsSL https://cli.coderabbit.ai/install.sh | sh
Authenticate and verify your setup:
coderabbit auth login
coderabbit doctor
Run a review on uncommitted or staged changes:
# Review local uncommitted edits
coderabbit review --uncommitted
# Run structured review formatted for AI Coding Agents
coderabbit review --agent --uncommitted
Customize CodeRabbit's behavior by placing a .coderabbit.yaml configuration file at the root of your repository:
version: "2"
language: "en-US"
tone_instructions: "Act as a constructive, senior staff software engineer. Prioritize security, performance, and maintainability."
reviews:
profile: "chill" # Options: assertiveness levels ("chill", "assertive")
request_tools:
enabled: true
auto_review:
enabled: true
ignore_title_keywords:
- "WIP"
- "draft"
drafts: false
# File exclusion patterns
path_filters:
- "!**/node_modules/**"
- "!**/vendor/**"
- "!**/*.min.js"
- "!**/dist/**"
chat:
auto_reply: true
# Custom instructions tailored to your codebase
instructions: |
- Ensure all database queries utilize parameterized inputs to prevent SQL injection.
- Require explicit error logging for all caught exceptions.
- Verify that exported TypeScript interfaces are documented with JSDoc comments.
┌─────────────────┐ ┌──────────────────┐ ┌───────────────────┐
│ Git Event (PR) │ ──> │ MicroVM Sandbox │ ──> │ Structural Graph │
│ or Local CLI │ │ & Lint Execution │ │ & Context Build │
└─────────────────┘ └──────────────────┘ └───────────────────┘
│
┌─────────────────┐ ┌──────────────────┐ │
│ Posted Feedback │ <── │ Judge Model │ <─────────────┘
│ & 1-Click Fixes │ │ (Filter Noise) │ Reasoning Agent
└─────────────────┘ └──────────────────┘
- Isolation & Static Analysis: Clones code into an isolated sandbox to run static analysis tools and linters.
- Context Assembly: Generates a real-time code graph, compresses diffs, and pulls linked Jira/Linear tickets.
- Agentic Reasoning: Frontier AI reasoning models inspect downstream dependencies and look for logical flaws.
- Noise Reduction: A dedicated Judge Model filters out minor nitpicks and false positives before publishing.
CodeRabbit works seamlessly with agentic IDEs and CLI tools (e.g., Cursor, Claude Code, OpenCode):
# Export structured JSON findings for downstream LLM agents
coderabbit review --agent --uncommitted > .coderabbit-findings.json
Instruct your AI coding agent:
"Run
coderabbit review --agent --uncommitted, inspect.coderabbit-findings.json, and apply fixes for any critical or high-severity findings."
This repository is distributed under the MIT License.