> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codealive.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Code Review

> Automated intelligent code reviews for every pull request

## Overview

CodeAlive AI Code Review automatically analyzes your pull requests, providing comprehensive feedback on code quality, security, performance, and best practices. Get instant, consistent reviews that help your team ship better code faster.

## Key Features

> [card] Automatic Reviews
>
> Reviews trigger automatically on PR creation and updates

> [card] Multi-Language Support
>
> Support for 19+ programming languages

> [card] Customizable Focus
>
> Configure review agents for specific concerns

> [card] Team Consistency
>
> Maintain coding standards across your organization

## Getting Started

**1. Connect Your Repository Provider**

Choose your version control platform:

> [tab] GitHub
>
> Navigate to **Providers → GitHub** in your CodeAlive dashboard

> [tab] GitLab
>
> Navigate to **Providers → GitLab** in your CodeAlive dashboard

**2. Configure Review Settings**

Set up your review preferences in the PR Reviews section

**3. Create a Pull Request**

CodeAlive will automatically review new PRs and updates

## GitHub Integration

### Installing the GitHub App

**1. Access GitHub Settings**

Navigate to **Providers → GitHub** in your CodeAlive dashboard

![GitHub Integration Settings](https://mintcdn.com/codealive/SZlXGtmtipDDYs2P/images/github_settings.png?fit=max\&auto=format\&n=SZlXGtmtipDDYs2P\&q=85\&s=24da2299cc637d074e842331c32ad389)

**2. Install GitHub App**

1. Click **"Install GitHub App"**
2. You'll be redirected to GitHub
3. Select your organization or personal account
4. Choose repository access:
   * **All repositories** - Recommended for organization-wide coverage
   * **Selected repositories** - Choose specific repositories

**3. Authorize Installation**

1. Review the requested permissions
2. Click **"Install & Authorize"**
3. You'll be redirected back to CodeAlive
4. The status will show **"GitHub App Successfully Installed"**

**4. Import Repositories**

Once connected:

* Click **"Import Repositories"** to add repos for indexing
* Select the repositories you want to review
* Wait for initial indexing to complete

## GitLab Integration

### Setting Up GitLab Access

**1. Create Personal Access Token**

In GitLab:

1. Go to **User Settings → Access Tokens**
2. Create a new token:
   * **Name**: CodeAlive
   * **Expiration**: Set as needed
   * **Scopes**: Select `api` and `read_repository`
3. Copy the generated token

**2. Configure in CodeAlive**

1. Navigate to **Providers → GitLab** in CodeAlive
2. Paste your Personal Access Token
3. Click **"Token Set"**

![GitLab Integration Settings](https://mintcdn.com/codealive/SZlXGtmtipDDYs2P/images/gitlab_settings.png?fit=max\&auto=format\&n=SZlXGtmtipDDYs2P\&q=85\&s=9b50deac7c8efb940d57d5e03bfca5f2)

**3. Set Up Webhooks**

Configure GitLab webhooks for automatic reviews:

1. Copy the webhook URL from CodeAlive
2. In your GitLab project:
   * Go to **Settings → Webhooks**
   * Add the CodeAlive webhook URL
   * Select triggers:
     * Merge request events
     * Comments
3. Click **"Secret Configured"** in CodeAlive

**4. Import Repositories**

* Click **"Import Repositories"**
* Select GitLab projects to analyze
* Complete the setup

## Review Configuration

### Customizing Review Behavior

Access review settings by clicking **"Repository Review Configuration"** in the PR Reviews section.

![Review Configuration Settings](https://mintcdn.com/codealive/SZlXGtmtipDDYs2P/images/review_settings.png?fit=max\&auto=format\&n=SZlXGtmtipDDYs2P\&q=85\&s=222017799c912ccdad07ea3afcdd8b50)

### Quick Settings

> [tab] Nitpicking Level
>
> Control the detail level of reviews:
>
> * **Minimal (1)**: Critical issues only
> * **Basic (2)**: Important problems
> * **Balanced (3)**: Comprehensive review (recommended)
> * **Detailed (4)**: Include minor issues
> * **Thorough (5)**: Every possible improvement

> [tab] Review Language
>
> Choose the language for review comments:
>
> * English (default)
> * Spanish
> * French
> * German
> * Japanese
> * Chinese
> * And many more...
>
> This setting controls the language of the review feedback, not the programming languages supported.

> [tab] Review Style
>
> Choose the tone of feedback:
>
> * **Professional**: Formal, technical feedback
> * **Friendly**: Approachable and encouraging
> * **Constructive**: Balanced with suggestions
> * **Direct**: Straight to the point

### Focus Areas

Enable or disable specific review agents:

> [accordion] Security
>
> Reviews code for potential security vulnerabilities, authentication issues, and data exposure risks

> [accordion] Performance
>
> Analyzes code efficiency, identifies bottlenecks, and suggests optimizations

> [accordion] Architecture
>
> Evaluates code structure, design patterns, and architectural decisions

> [accordion] Consistency
>
> Checks for coding standards, naming conventions, and style consistency

> [accordion] Quality
>
> Reviews overall code quality, maintainability, and best practices

> [accordion] Jira Task Validation
>
> Validates pull requests against linked Jira tasks to ensure requirements are met

### General Instructions

Add custom guidelines that apply to all review agents. This is useful for:

* Team-specific conventions
* Project requirements
* Domain-specific rules
* Compliance standards

Example:

```
- Follow our team's error handling patterns
- Ensure all API endpoints have proper authentication
- Use TypeScript strict mode conventions
- Include unit tests for new functions
```

## Managing Reviews

### PR Reviews Dashboard

The PR Reviews page shows all pull requests across your repositories:

![PR Reviews Dashboard](https://mintcdn.com/codealive/SZlXGtmtipDDYs2P/images/review_page.png?fit=max\&auto=format\&n=SZlXGtmtipDDYs2P\&q=85\&s=c6dcd24ad4e79e3e077c64ec55024894)

Features:

* **Repository selector**: Filter by repository
* **Import PRs**: Manually import pull requests
* **Auto-refresh**: Keep the list updated
* **Automatic Review**: Toggle automatic reviews on/off

### Review States

Pull requests can have the following states:

* **Review Scheduled**: Queued for review
* **Review Completed**: Review finished successfully
* **Re-analyze**: Request a fresh review

### Triggering Reviews

Reviews can be triggered in multiple ways:

> [tab] Automatic
>
> Reviews trigger automatically when:
>
> * A new PR is created
> * Commits are pushed to an open PR
> * PR is updated or edited

> [tab] Manual via UI
>
> 1. Go to PR Reviews page
> 2. Find your pull request
> 3. Click **"Re-analyze"**

> [tab] PR Comments
>
> Add a comment to your PR:
>
> ```
> /codealive review
> ```

## Best Practices

> [card] Start Balanced
>
> Begin with balanced settings (level 3) and adjust based on team feedback

> [card] Customize Gradually
>
> Enable focus areas one at a time to understand their impact

> [card] Use Clear PR Titles
>
> Descriptive PR titles help AI understand context better

> [card] Iterate on Config
>
> Review and refine settings based on team needs

> [card] Set Team Guidelines
>
> Use general instructions for team-specific rules

> [card] Monitor Feedback
>
> Track which suggestions are most valuable

## Troubleshooting

> [accordion] Reviews not triggering automatically
>
> **Check:**
>
> * Automatic Review toggle is enabled
> * Repository is properly indexed
> * Webhooks are configured (GitLab)
> * GitHub App has proper permissions

> [accordion] Reviews taking too long
>
> **Normal duration**: 2-5 minutes depending on PR size
>
> **If longer:**
>
> * Check repository indexing status
> * Verify API limits aren't exceeded
> * Contact support if persistent

> [accordion] Missing or incomplete reviews
>
> **Verify:**
>
> * All files in PR are in supported languages
> * PR isn't too large (>1000 files)
> * Repository is fully indexed
> * Review configuration is saved

> [accordion] Webhooks not working (GitLab)
>
> **Steps:**
>
> 1. Verify webhook URL is correct
> 2. Check webhook test in GitLab settings
> 3. Ensure merge request events are selected
> 4. Confirm secret token matches

## Related Resources

* [Semantic Code Search](https://docs.codealive.ai/features/semantic-search.md)
* [Codebase Chat](https://docs.codealive.ai/features/codebase-chat.md)
* [Multi-Repository & Workspaces](https://docs.codealive.ai/features/multi-repo.md)
* [API Reference](https://docs.codealive.ai/api-reference/toolapi/list-visible-data-sources.md)
* [Getting Started](https://docs.codealive.ai/quickstart.md)
* [MCP Integrations](https://docs.codealive.ai/integrations/mcp.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.