wit review catches issues before they hit the remote repository.
Overview
Thewit review command analyzes your changes and provides AI-powered feedback, helping you catch bugs, security issues, and code quality problems before they reach code review.
Quick Start
Options
Review Modes
Uncommitted Changes
Review all changes in your working directory (staged and unstaged).Staged Changes
Review only whatβs staged for commit. Useful as a pre-commit check.Branch Changes
Review all changes since branching from the base branch.Commit Range
Review specific commits.Example Output
CI Integration
Use--strict mode to fail builds when issues are found.
Pre-push Hook
CI Pipeline
Configuration
Setup CodeRabbit
- Get an API key from coderabbit.ai
- Configure it:
Check Status
JSON Output
Get structured output for programmatic use.Workflow Examples
Pre-commit Workflow
Pre-push Workflow
Pull Request Workflow
Issue Severity Levels
Related Documentation
- AI Features - AI-powered capabilities
- PR Command - PR management including PR reviews
- Hooks - Git hooks for automation