Back to tips

Review Branch Diffs with Agent

Send entire git diffs to your AI agent for automated code review

git beginner March 16, 2026 · godruoyi
#git #agent #code-review #diff
Review Branch Diffs with Agent

When reviewing your branch changes before committing or creating a PR, you can now send the entire diff to your AI agent for an automated code review with a single click.

How to Use

  1. Open the command palette and run git: branch diff
  2. Review your changes in the split diff view
  3. Click the Review Branch button at the top
  4. The entire diff is automatically sent to your last-used agent
  5. Review the agent’s feedback in the Agent Panel

The agent receives a pre-written prompt asking it to review your changes for potential issues, improvements, and best practices.

Why This Matters

Quick feedback: Get instant code review suggestions without waiting for teammates.

Catch issues early: Identify potential bugs or improvements before committing.

Learn best practices: The agent explains why certain changes might be problematic.

Seamless workflow: No need to copy/paste diffs or switch contexts.

This feature is perfect for solo developers, quick sanity checks, or getting a second opinion before requesting human review.