AI-powered code review for Azure DevOps pipelines. Reviews code changes in Git Pull Requests and TFVC Shelvesets using either Google Gemini (cloud) or Ollama (self-hosted).
Highlights
Two providers, one task — pick at pipeline time
Multi-key + multi-model rotation with a 3-3-3-...-3 retry pattern
Cleans up prior review comments on every PR run
Supports both Git PRs and TFVC gated check-in builds
Quick Start
Install the extension in your Azure DevOps organization.
Add the AI Code Review (Unified) task to your pipeline (PR validation for Git, gated check-in for TFVC).
Pick a provider, supply keys/models, run the build.
Provider Setup
Google Gemini
Comma-separate multiple API keys for load balancing.
The apiKey input is hidden when the provider is "Ollama".
Ollama (local)
The default URL is http://localhost:11434 — works on a self-hosted agent running Ollama.
The apiUrl input is hidden when the provider is "Google Gemini".
Pull the models you want to use (ollama pull <model>) before running the pipeline.
Permissions
The build job must have "Allow scripts to access the OAuth token" enabled. The task uses the SYSTEM_ACCESSTOKEN to read and post PR comments.