Skip to main content
Review your code changes before pushing using AI-powered analysis. Powered by CodeRabbit, wit review catches issues before they hit the remote repository.

Overview

The wit 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

  1. Get an API key from coderabbit.ai
  2. Configure it:
Or set the environment variable:

Check Status


JSON Output

Get structured output for programmatic use.

Workflow Examples

Pre-commit Workflow

Pre-push Workflow

Pull Request Workflow


Issue Severity Levels