Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>PR Review AssistantNew to Visual Studio Code? Get it now.
PR Review Assistant

PR Review Assistant

MdShohag

|
3 installs
| (0) | Free
Local branch review assistant with Copilot-style AI feedback
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PR Review Assistant

AI-assisted review for your local branch changes in VS Code.

PR Review Assistant helps you inspect diffs, review file-by-file, and get concise AI feedback before opening a pull request.

Features

  • Load local diff against a target branch (base...HEAD)
  • Sidebar with changed files and review progress
  • Side-by-side or unified diff view
  • Inline AI feedback clips for selected changed lines
  • Copy-ready feedback for GitHub comments
  • Session summary across reviewed files
  • Works locally (does not post to GitHub)

Quick Start

  1. Open a git project in VS Code.
  2. Open PR Review from the activity bar.
  3. Click Load Diff.
  4. (Optional) Click Set Target Branch to change base branch.
  5. Open a file from Changed Files.
  6. Run AI Review from the review panel or line-level review with +.

Commands

  • PR Review: Load Diff
  • PR Review: Set Target Branch
  • PR Review: Show Branch Info
  • PR Review: Open File Review
  • PR Review: Run AI Review
  • PR Review: Mark Reviewed
  • PR Review: Next File
  • PR Review: Generate Summary
  • PR Review: Reset Session
  • PR Review: Set OpenAI API key (fallback)
  • PR Review: Clear OpenAI API key

Settings

{
  "prReview.baseBranch": "main",
  "prReview.maxPatchChars": 12000,
  "prReview.ai.provider": "copilot-like",
  "prReview.ai.copilotVendor": "copilot",
  "prReview.ai.copilotFamily": "gpt-4o-mini",
  "prReview.ai.useOpenAiFallback": true,
  "prReview.ai.endpoint": "https://api.openai.com/v1",
  "prReview.ai.model": "gpt-4o-mini",
  "prReview.ai.temperature": 0.1,
  "prReview.navigation.highlightDurationMs": 2500
}

Notes:

  • Set prReview.navigation.highlightDurationMs to 0 to disable jump highlighting.
  • OpenAI-compatible API keys are stored securely using VS Code Secret Storage.

AI Backend Order

When generating AI feedback, the extension resolves backend in this order:

  1. VS Code Language Model API (copilotVendor + copilotFamily)
  2. VS Code Language Model API (copilotVendor only)
  3. Any available VS Code chat model
  4. OpenAI-compatible fallback (if enabled and key is configured)
  5. Local heuristic fallback

Troubleshooting

  • No files shown after Load Diff: ensure workspace is a git repo and has changes against target branch.
  • No AI response: verify Copilot/model availability, or configure OpenAI fallback + API key.
  • Wrong comparison base: run PR Review: Set Target Branch.

Privacy

  • Diff and review state are local to your workspace.
  • The extension does not create GitHub comments or PRs.
  • If OpenAI fallback is enabled, selected diff content is sent to your configured API endpoint.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft