CodeRabbit Code Review
AI-powered code review using CodeRabbit. Enables autonomous development workflows where you can implement features, review code, and fix issues without manual intervention.
When to Use
When user asks to:
- •Review code changes / Review my code / Review this
- •Check code quality / Code quality check
- •Find bugs or security issues / Check for bugs / Find issues
- •Security review / Security check
- •Get feedback on their code / PR review / Pull request feedback
- •Review staged/uncommitted changes
- •What's wrong with my code / What's wrong with my changes
- •Run coderabbit / Use coderabbit
- •Implement a feature and review it
- •Fix issues found in review
How to Review
1. Run Review as Background Agent
CodeRabbitレビューはbackground agentとして実行する。Taskツールでrun_in_background: trueを指定:
code
Task tool parameters: - subagent_type: "Bash" - run_in_background: true - prompt: "coderabbit review --plain を実行してレビュー結果を取得"
Options:
- •
-t all- All changes (default) - •
-t committed- Committed changes only - •
-t uncommitted- Uncommitted changes only - •
--base main- Compare against specific branch
2. Check Background Agent Results
Background agentの完了後、TaskOutputツールまたはReadツールでoutput_fileの内容を確認する。
3. Triage (Main Agent)
CodeRabbitの指摘は必ずしも的確とは限らない。メインエージェントが各指摘を精査し、対応要否を判断する:
- •レビュー結果の各指摘について、コードの文脈を読み取り対応が必要か判断
- •対応不要と判断した指摘はスキップ理由とともにユーザーに報告
- •対応が必要な指摘のみタスクリスト化して修正
- •必要に応じて再レビュー(手順1に戻る)
4. Autonomous Workflow
ユーザーが実装+レビューを要求した場合:
- •機能を実装
- •Background agentでCodeRabbitレビューを実行
- •レビュー完了を待機
- •メインエージェントが各指摘をトリアージし、対応要否を判断
- •対応が必要な問題のみ修正
- •重大な問題が解消されるまで繰り返し
Documentation
For more details: https://docs.coderabbit.ai/cli/claude-code-integration