MergeGuardAgent quickstart
Install MergeGuardAgent, sign in, and run your first AI review from the editor.
Same account as GitHub & GitLab
Sign in with the MergeGuard account you use for pull request reviews. Editor reviews count toward the same monthly plan limits shown in the sidebar.
Prefer a walkthrough? Watch the MergeGuard demo video.
1. Install MergeGuardAgent
- Open Extensions in VS Code (Ctrl+Shift+X / ⌘⇧X).
- Search for MergeGuardAgent and click Install, or install from the Visual Studio Marketplace.
MergeGuard also works in VS Code Insiders, VSCodium, Cursor, and Windsurf—any editor that supports VS Code extensions.
2. Open your project
Open a folder (File → Open Folder…), not just a single file. The extension needs a workspace root to resolve relative paths and run git diff.
3. Sign in
- Click the MergeGuardAgent icon in the activity bar (left sidebar).
- Click Sign In. Your browser opens the MergeGuard sign-in page.
- Connect GitHub or GitLab with the same account you use for PR/MR reviews.
- When sign-in completes, the browser redirects back to your editor. The sidebar shows your plan and remaining reviews for the month.
If the redirect does not focus your original window, the extension also polls in the background—wait a few seconds and the sidebar should update automatically.
4. Run a review
Use the MergeGuardAgent sidebar or the Command Palette (Ctrl+Shift+P / ⌘⇧P):
Review Current File
- Open the file you want reviewed in the editor.
- Click Review Current File in the sidebar, or run
MergeGuardAgent: Review Current Filefrom the Command Palette. - Findings appear as editor diagnostics (squiggles), in the sidebar list, and in the output panel.
Review Git Diff
- Make local changes in a git repository.
- Click Review Git Diff in the sidebar, or run
MergeGuardAgent: Review Git Diff. - MergeGuard reviews your working-tree changes (compared to
HEAD). Large diffs are truncated to the first 40 files.
Security Scan
- Click Security Scan in the sidebar, or run
MergeGuardAgent: Security Scan. - The extension scans lockfiles (
package-lock.json, etc.), Dockerfiles, Terraform, YAML, and.envfiles in your workspace.
5. Read findings and apply fixes
- Sidebar — click a finding to jump to the file and line.
- Output — open View → Output and select MergeGuardAgent for the full risk score, severity, and suggestions.
- Explain Issue — select a finding in the sidebar, use the lightbulb quick fix on a diagnostic, or run
MergeGuardAgent: Explain Issuefor a plain-language explanation. When a fix is available, choose Apply Fix to patch the file in place. - Clear findings — use the trash icon in the sidebar title bar or run
MergeGuardAgent: Clear Findings.
Editor shortcuts
Right-click in an open file for context-menu actions:
MergeGuardAgent: Review Current FileMergeGuardAgent: Explain Issue(after a review)
Troubleshooting
- “Sign in to MergeGuard” — run
MergeGuardAgent: Sign Infrom the Command Palette. - “No git changes to review” — save files and confirm you have uncommitted changes in the opened folder.
- “No lockfiles / IaC files found” — add scannable files (e.g.
package-lock.jsonor aDockerfile) or open the repo root as the workspace folder. - Review limit reached — check remaining reviews in the sidebar or plans & limits. Limits reset at the start of each UTC month.
Next steps
- MergeGuardAgent overview
- GitHub quickstart — automated PR reviews
- Plans & limits
- Contact support