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

# How to use

> How to start CodeAnt AI code reviews in VS Code

CodeAnt AI provides two convenient ways to trigger code reviews for your local changes against the main branch:

## Review Methods

### 1. **Automatic Review on Commit**

The easiest way to get your code reviewed is through automatic triggering on git commits:

```bash theme={null}
git add -A
git commit -m "your message"
# CodeAnt automatically starts reviewing your changes
```

CodeAnt will automatically detect your commit and begin analyzing the changes immediately.

### 2. **Manual Review from Side Panel**

For on-demand reviews without committing:

* Open the CodeAnt side panel in VS Code
* Click the **"Start Review"** button
* Get comprehensive analysis in 2-3 minutes

## ✨ The CodeAnt Workflow

Here's how the complete review process works:

1. **Write Code** - Develop features as usual in your workspace
2. **Commit Changes** - Use your normal git workflow to commit changes
3. **Automatic Review** - CodeAnt analyzes your commit for bugs and security issues
4. **See Issues** - View all detected problems in the side panel with detailed explanations
5. **Fix with Diffs** - Click "Show Diff" to see suggested fixes for each issue
6. **Apply Changes** - Edit the diff if needed, then click "Apply Fix" to implement the solution
7. **Push Clean Code** - Confidently push bug-free code to your repository

## What Gets Reviewed

CodeAnt analyzes your local changes by comparing:

* Modified files against the main branch
* New files added in your current branch
* Deleted code and its impact on the codebase

The review covers code quality, security vulnerabilities, potential bugs, and adherence to best practices.
