Skip to main content
Plan Mode is a beta feature available as part of Issue Enrichment.

Overview

CodeRabbit Plan Mode analyzes your issues and generates comprehensive implementation plans that you can copy-paste into your favorite coding agent or IDE copilot. When you request a plan, CodeRabbit provides:
  • 📋 Step-by-step implementation plan with detailed instructions
  • 📁 File-specific guidance on what needs to be changed
  • 💡 Code examples and patterns from your codebase
  • Testing recommendations to validate the implementation
See Issue Enrichment for other automatic insights like duplicate detection, similar issues, and suggested assignees.

Configuration

Planning is enabled by default. To disable it, add this to your .coderabbit.yaml:
issue_enrichment:
  planning:
    enabled: false

Using Plan Mode

Once enabled, you’ll see a checkbox in the enrichment comment:
## 📝 CodeRabbit Plan Mode

Generate an implementation plan and prompts that you can use with your favorite coding
agent.

- [ ] Create Plan
To generate a plan:
  1. Check the “Create Plan” checkbox, OR
  2. Comment @coderabbitai plan on the issue
What you’ll get: A step-by-step implementation plan with file-specific instructions, code examples and patterns, and testing recommendations.
Plan generation is asynchronous and can take up to ~10 minutes to complete. You’ll receive a notification when the plan is ready, or you can check back on the issue to see the updated comment.
Example plans:

Auto-Planning

Automatically generate plans when specific labels are added to issues.
issue_enrichment:
  planning:
    enabled: true
    auto_planning:
      enabled: true
      labels:
        - "plan-me" # Auto-plan issues with this label
        - "ready" # Also auto-plan these
        - "!no-plan" # Never auto-plan issues with this label
Label Matching Rules:
  • Inclusion labels (e.g., plan-me): Only plan issues with these labels
  • Exclusion labels (e.g., !no-plan): Never plan issues with these labels starting with an exclamation mark (takes priority)
  • Only exclusions: If you only configure exclusion labels, all issues except excluded ones will be auto-planned
  • Mixed: If you have both, issues must have an inclusion label AND not have any exclusion labels

Frequently Asked Questions

How long does plan generation take?

Plan generation is asynchronous and typically takes 5-10 minutes, depending on the complexity of the issue and your codebase size. You’ll receive a notification when the plan is ready.

Can I regenerate a plan?

Yes! You can request a new plan at any time by checking the “Create Plan” checkbox again or commenting @coderabbitai plan. This is useful if you’ve updated the issue description or want fresh suggestions.

What information does CodeRabbit use to generate plans?

CodeRabbit analyzes:
  • The issue description and comments
  • Your repository’s codebase structure
  • Similar resolved issues and PRs
  • Existing code patterns and conventions
  • Test coverage and patterns

Support and Feedback

Visit our support page or join our Discord community for assistance or feedback.