VS Code Extension

AI-Powered Code Reviews in Your Editor

Get lightning-fast, expert code reviews and AI-generated commit messages directly in VS Code. Use local Ollama models or connect to Claude, Gemini, Mistral, MiniMax, GLM, Hugging Face, or any OpenAI-compatible server.

v3.19.0 Latest Version
8+ AI Providers
MIT Open Source
review-output.md
// Staged changes reviewed
function processPayment(amount) {
return amount * 1.1;
}
AI Review
Bug: Magic number 1.1 should be a named constant (TAX_RATE)
Security: Validate amount parameter to prevent negative values
Suggestion: Add JSDoc documentation for clarity

Works with your favorite AI providers

Ollama (Local)
Claude (Anthropic)
Gemini (Google)
Mistral AI
Hugging Face
GLM (Z.AI)
MiniMax
OpenAI-Compatible

Powerful Features for Modern Development

Everything you need to improve code quality, catch bugs early, and maintain consistent commit messages across your team.

Review Staged Changes

Analyze all your staged Git modifications with comprehensive AI-powered feedback. Detect bugs, security issues, and optimization opportunities before you commit.

Smart Commit Messages

Auto-generate conventional commit messages based on your actual code changes. Maintain consistent, descriptive commits across your entire team.

Inline Code Actions

Use the lightbulb menu to explain code, generate tests, fix issues, add documentation, and get refactoring suggestions—all without leaving your editor.

Agent Skills System

Download specialized review profiles from GitHub repositories. Select multiple skills simultaneously to combine expertise—security audits, performance optimization, accessibility checks, and more.

Performance Metrics

Track token usage, generation latency, and inference costs. Monitor AI performance and optimize your workflow with detailed analytics.

Multi-Provider Support

Switch between local Ollama and cloud providers instantly. Use the status bar to change models on the fly without configuration hassle.

Cross-Branch Analysis

Compare and review differences between any two branches or Git references. Perfect for pull request preparation and code comparison.

Smart Diff Filtering

Automatically excludes node_modules, lock files, and minified code. Detects formatting-only changes to reduce noise and focus on real modifications.

Custom Prompt Templates

Override AI prompts for code reviews and commit messages with your own templates. Use variable placeholders like ${code}, ${frameworks}, and ${skills} for full control.

Review Specific Commits

Review any historical commit by hash, select from recent commits, or trigger directly from the Git Graph extension context menu. Also supports commit range reviews.

Review Profiles & Presets

Switch between General, Security, Performance, Accessibility, Educational, and Strict profiles. Compliance profiles cite OWASP, PCI-DSS, GDPR, HIPAA, SOC 2, and NIST CSF standards.

GitHub / GitLab / Bitbucket PR Integration

Review Pull Requests and Merge Requests directly from VS Code. Post AI-generated reviews as PR comments with summary, inline, or both styles.

Pre-Commit Guard

Automatically review staged changes with AI before every commit. Configurable severity thresholds block commits when critical issues are found.

Agentic Multi-Step Reviews

5-step AI pipeline: analyze diff, gather context, detect patterns, deep review, and self-critique. Goes beyond single-pass reviews for comprehensive analysis.

CI/CD Integration

Run AI code reviews headlessly in GitHub Actions, GitLab CI, and any pipeline via the @ollama-code-review/cli package. Auto-post results to PRs.

Persistent AI Chat Sidebar

Dedicated AI chat panel in the Activity Bar with full conversation history that persists across sessions. Use @-mentions to inject file, diff, and review context.

RAG-Enhanced Reviews

Index your codebase for semantic code retrieval. The AI retrieves the most similar code snippets and injects them as additional context for deeper, more accurate reviews.

Architecture Diagrams (Mermaid)

Generate visual class, flowchart, sequence, and dependency diagrams from code changes using Mermaid.js, rendered directly in the review panel.

Review Analytics Dashboard

Track score trends, severity distributions, category breakdowns, model usage, and weekly activity. Export all data as CSV or JSON.

Team Knowledge Base

Encode architecture decisions (ADRs), coding patterns, and team rules in a YAML file. The AI cites specific entry IDs when flagging violations.

Notification Integrations

Automatically post review summaries to Slack, Microsoft Teams, and Discord. Configure severity-based triggers to notify your team on critical findings.

Batch / Legacy Code Review

Review any file, folder, or selected text without needing Git. Perfect for legacy codebases, third-party code, or files not tracked by version control.

Export Review Results

Copy to clipboard, save as Markdown, format as PR description, create GitHub Gists, generate commit messages, and discuss reviews in the AI chat sidebar.

Streaming Responses

Real-time, token-by-token output as the AI generates your review. Supported for Ollama, Claude, and any OpenAI-compatible server.

MCP Server (GitSage)

Use the code review functionality directly in Claude Desktop via the GitSage MCP server. 16 tools available including review, commit messages, code explanation, and more.

How It Works

Get started in minutes with a simple setup process. No complex configuration required.

1

Install the Extension

Search for "Ollama Code Review" in VS Code Marketplace or install directly from the command line.

2

Configure Your Provider

Set up Ollama locally or add API keys for cloud providers like Claude, Gemini, Mistral, GLM, or Hugging Face in VS Code settings.

3

Stage Your Changes

Use Git as normal. Stage your code changes and the extension integrates seamlessly with your workflow.

4

Review & Commit

Run the review command, get AI feedback, generate commit messages, and ship better code faster.

Inline AI Actions at Your Fingertips

Right-click any code selection or use the lightbulb menu to access powerful AI-driven code actions. Get instant help without breaking your flow.

Explain Code

Get clear explanations of complex logic and algorithms

Fix Issues

Automatically fix bugs and apply suggested improvements

Generate Tests

Create unit tests for your functions and methods

Add Documentation

Generate JSDoc, docstrings, and inline comments

example.ts
// Select code and use lightbulb menu
async function fetchUserData(id: string) {
const response = await fetch(`/api/users/${id}`);
return response.json();
{'}'}
Generated Test
describe('fetchUserData', () => {'{'}
it('returns user data', async () => {'{'}
const data = await fetchUserData('123');
expect(data).toBeDefined();
{'}'});
{'}'});

Quick Installation

Choose your preferred installation method and start reviewing code in minutes.

VS Code Marketplace

Open VS Code, go to Extensions (Ctrl+Shift+X), and search for "Ollama Code Review". Click Install.

Open in Marketplace

Command Line

Use the VS Code CLI to install the extension directly from your terminal.

code --install-extension VinhNguyen-Vincent.ollama-code-review

Ollama Setup (Local)

For local AI, install Ollama from ollama.com and pull a coding model.

ollama pull kimi-k2.5:cloud

8+

AI Providers Supported

42

Major Features

100%

Open Source

MIT

Licensed

Ready to Ship Better Code?

Join developers who are catching bugs earlier, writing better commit messages, and shipping with confidence.