AI for Pull Request Review
AZD now includes AI-powered pull request review capabilities to enhance your code review process.
This feature helps you identify potential issues, suggest improvements, and streamline the review workflow.
AI-Assisted Code Reviews
Get intelligent feedback on your pull requests with AI-powered code analysis:
Key Features
The AI pull request review offers several powerful capabilities:
Automated code quality checks and best practice suggestions
Detection of potential bugs, security vulnerabilities, and performance issues
Suggestions for code improvements and refactoring opportunities
Summary of changes with highlighted critical areas for human review
Using AI Reviews
Integrate AI reviews into your pull request workflow:

When you request an AI review, the changes from your pull request are sent to the AI chat
A chat tab is automatically opened in the IDE
After the analysis is complete, you can chat with the AI to ask for suggestions and other details about your PR
Review AI suggestions directly in the IDE's pull request interface
Use the chat to get more context and explanations about the AI's recommendations
Customizing AI Reviews
Configure the AI review system to match your team's needs:
Set the scope and depth of AI analysis
Define custom rules and coding standards for the AI to enforce
Adjust sensitivity for different types of suggestions
AI-Generated Comments on Code Diffs
The latest version introduces AI-generated comments on code diffs, allowing you to get intelligent feedback directly on your code changes:
Automatically analyze code changes and generate relevant comments
Identify potential issues, bugs, and improvements in the code diff
Get suggestions for better implementations or optimizations
Generate comments that can be directly posted to the pull request

AI Draft Comments
The AI can now assist you in creating draft comments for pull request reviews, streamlining your review process:
Bulk Draft Comments: Ask the AI to analyze and post draft comments on all files changed in the pull request. This provides comprehensive feedback across the entire PR.
Single File Analysis: When viewing a specific file in the diff editor, you can request the AI to generate draft comments for that particular file only.
Review and edit the AI-generated draft comments before submitting them as part of your review.
Use the Submit Comments button to publish all draft comments at once, providing a complete review workflow.

AI Provider Options
You can select from multiple AI providers for the pull request review feature, now with support for the latest AI models:
Claude: Use Anthropic's Claude models, including the latest versions for your AI reviews. Requires setting up your own API key.
OpenAI: Use OpenAI's models including the latest GPT versions for your AI reviews. Requires setting up your own API key.
Gemini: Use Google's Gemini models for your AI reviews. Requires setting up your own API key.
AZD AI Provider: Use the default provider included with the plugin. This is a proxy to the latest OpenAI gpt-4.1 models through the plugin author's subscription, so no API key is required.