Tutorials

How to Set Up AI Code Review in 5 Minutes

Step-by-step guide to installing Git AutoReview and reviewing your first Bitbucket PR with Claude, Gemini, or GPT.

Git AutoReview TeamJanuary 5, 20265 min read

Why AI Code Review?

Code reviews are essential but time-consuming. Teams spend 4-8 hours per week on manual code reviews. AI can help by:

  • Catching bugs before human review
  • Enforcing coding standards automatically
  • Providing instant feedback on PRs

Prerequisites

Before you start, you'll need:

  • VS Code 1.85.0 or higher
  • Bitbucket Cloud or Server account
  • API key for Claude, Gemini, or GPT

Step 1: Install the Extension

Open VS Code and install Git AutoReview:

1. Press Cmd+Shift+X (Mac) or Ctrl+Shift+X (Windows)

2. Search for "Git AutoReview"

3. Click Install

Or install via command line:

code --install-extension vitalii4reva.git-autoreview

Step 2: Add Your API Key

Open Command Palette (Cmd+Shift+P) and run:

Git AutoReview: Open Settings

Add at least one AI provider key:

ProviderGet KeyBest For
Claudeconsole.anthropic.comDeep code understanding
Geminimakersuite.google.comFast analysis
GPTplatform.openai.comGeneral purpose

Step 3: Configure Bitbucket

Add your repository in settings:

Bitbucket Cloud:

{
  "type": "cloud",
  "workspace": "your-workspace",
  "repo": "your-repo-slug"
}

Bitbucket Server:

{
  "type": "server",
  "baseUrl": "https://bitbucket.company.com",
  "projectKey": "PROJ",
  "repo": "your-repo"
}

Step 4: Review Your First PR

1. Click the Git AutoReview icon in the Activity Bar

2. Select a Pull Request from the list

3. Click "Review"

4. AI analyzes the code and shows suggestions

5. Approve or Reject each suggestion

6. Click "Publish" to post to Bitbucket

That's it! You've completed your first AI code review in under 5 minutes.

What's Next?

setupgetting-startedbitbucketai

Ready to Try AI Code Review?

Install Git AutoReview and review your first PR in 5 minutes.