Review your branch changes like a pull request—without leaving VS Code. See every file difference between your working branch and main in a searchable tree view, just like reviewing a PR on GitHub.
Perfect for validating AI-generated code, previewing your PR before pushing, or reviewing work-in-progress changes. Built for AI Coding WorkflowsModern AI assistants can modify 10-50+ files in seconds. Compare Branch gives you a comprehensive view of all changes before you merge. Common challenges this solves:
Works seamlessly with:
Key Features🔍 Search & Filter Changed Files
Instantly find specific files in large changesets. Filter by status (modified, added, deleted, renamed) to focus your review. 🌳 Dual View Modes
Toggle between "Changed Files" for focused review or "All Files" to see changes within your complete directory structure. ⚡ Auto-Detection & Zero Configuration
Automatically detects your upstream branch (main, develop, etc.) with one-click manual override when needed. No configuration required. 📌 Pin Current Commit as Baseline
One-click pinning of your current HEAD commit as a fixed comparison baseline. Track all subsequent changes from a known-good state, perfect for monitoring cumulative progress during iterative development or AI-assisted coding sessions. 🎯 Status-Based Filtering
Focus on specific change types: modified, added, deleted, or renamed files. Why Choose Compare Branch?Comparison with Alternatives
Key Advantages⚡ Speed & Performance Progressive loading handles repositories with 10,000+ files without lag. Non-blocking activation ensures zero impact on VS Code startup time. 🔒 Privacy Operates entirely locally. No cloud services, no telemetry, no external dependencies. 🎯 Simplicity Single-purpose tool focused on branch comparison. No feature bloat, no complex configuration. 🌐 Universal Compatibility Works with all VS Code-based editors (Cursor, Windsurf, VSCodium) and available on both VS Code Marketplace and Open VSX Registry. 🤖 AI Workflow Optimization Auto-refresh for agent-generated commits. Review while agents continue working. Designed specifically for multi-file changeset review. Workflow BenefitsPre-execution ReviewVerify your branch state before delegating work to an AI agent. Ensure you're starting from the correct baseline. Post-execution ValidationReview all AI-generated modifications in a unified tree view. Navigate file-by-file to validate changes before merging. Real-time MonitoringAuto-refresh as commits are created. Review live while AI agents continue working. Non-blocking architecture ensures no performance impact. Multi-branch WorkflowsFor teams using git worktrees to run parallel AI agents, Compare Branch enables side-by-side comparison across different working directories. CommandsAccess via Command Palette (
Advanced FeaturesProgressive LoadingHandles massive repositories (tested with 10,000+ files) without performance degradation. Git operations are cached for optimal responsiveness. Intelligent Branch DetectionAutomatically reads upstream branch configuration from git, typically identifying main, develop, or master as the comparison target. Manual override available for custom workflows. Visual OrganizationFiles display in a hierarchical directory tree with clear status indicators:
File Operations
Auto-refreshFilesystem and git state monitoring triggers automatic view updates when branches change, commits occur, or files are modified. Platform CompatibilityCompatible with all VS Code-based editors:
Also available on Open VSX Registry for VSCodium and privacy-focused distributions. Frequently Asked QuestionsDoes this work with AI coding assistants? Yes. The extension monitors git state and works with any tool that creates commits, including all major AI coding platforms. How does this differ from terminal git diff? Terminal diffs work well for small changes. For reviewing modifications across many files and directories, a tree-based visual interface provides superior navigation and context. Can I use this while an AI agent is working? Yes. The extension uses a non-blocking architecture and updates automatically as new commits are created. How does this differ from GitLens? GitLens provides comprehensive git functionality across history, blame, and collaboration. Compare Branch focuses specifically on branch comparison. Choose based on your workflow requirements. Can I compare any two branches? Yes. Use the "Change Source Branch" command to select any branch, commit, or tag for comparison. Does it support large repositories? Yes. Progressive loading maintains responsiveness with repositories containing 10,000+ files. Can I view diffs for deleted files? Yes. Clicking a deleted file displays the diff showing removed content. Is this compatible with VS Code forks? Yes. Works with Cursor, Windsurf, VSCodium, and other VS Code-based editors. Also available on Open VSX Registry. Does this work with monorepos? Yes. Supports any git repository structure. Support & ResourcesCommunity support: GitHub Discussions Bug reports: GitHub Issues Documentation: GitHub Repository Security: Security Policy Reporting IssuesWhen reporting bugs, please include:
Check for existing issues before creating new reports. LicenseProprietary software. Copyright © 2025 Goodfoot Media LLC. See LICENSE for complete terms. Summary:
AboutDeveloped by: Goodfoot Media LLC Technologies: TypeScript, VS Code Extension API, simple-git, chokidar Links |