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
Configuration
Planning is enabled by default. To disable it, add this to your.coderabbit.yaml:
Using Plan Mode
Once enabled, you’ll see a checkbox in the enrichment comment:- Check the “Create Plan” checkbox, OR
- Comment
@coderabbitai planon the issue
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.
Auto-Planning
Automatically generate plans when specific labels are added to issues.- 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