Watcher 🤖🔍Editor-native AI Pull Request Reviewer Watcher is a VS Code–compatible extension that performs AI-assisted Pull Request reviews directly inside your editor using the editor’s built-in AI models (Copilot / Cursor / Windsurf / compatible editors). It reviews staged Git changes, highlights issues inline, generates PR-ready summaries, and helps human reviewers focus on what actually matters.
✨ What Watcher DoesWatcher analyzes your staged code and provides:
All without leaving your editor. 🧠 How Watcher Works (High Level)
🚀 How to Use Watcher1️⃣ Install the ExtensionInstall Watcher from the VS Code marketplace (or sideload during development). 2️⃣ Stage Your ChangesWatcher only reviews staged files:
3️⃣ Run WatcherUse any of the following:
4️⃣ Review the OutputWatcher generates:
It also:
📁 Generated Files
|
| Setting | Description | Default |
|---|---|---|
watcher.autoStage |
Auto-stage Watcher files after review | true |
watcher.baseBranch |
Base branch for regression comparison | "origin/dev" |
🔹 Per-Repo Config
Create:
.watcher/config.json
Example:
{
"autoStage": true,
"baseBranch": "origin/dev"
}
🆕 Baseline Comparison (Regression Detection)
Watcher can compare your PR against a user-defined base branch to detect:
- New issues introduced
- Test regressions
- Changes that worsen existing code
Base branch must be explicitly configured (no guessing).
✅ Custom Checklist Support
Teams can define custom review rules.
Create:
.watcher/checklist.yml
Example:
checks:
- id: no-console
description: "No console.log statements in production code"
- id: tests-required
description: "All public APIs must have tests"
- id: no-todo
description: "No new TODO comments introduced"
Watcher will:
- Evaluate each checklist item
- Mark it as PASS / FAIL / UNCERTAIN
- Include results in reports and diagnostics
🧠 Confidence Score & Hallucination Guard
Watcher assigns a confidence score (0–100) to every review based on:
- AI self-assessment
- Language uncertainty detection
- AI self-verification (disagreement detection)
- Diff size & truncation
Low confidence reviews are explicitly flagged so humans know when to be cautious.
⚠️ Inline Editor Diagnostics
Watcher integrates with VS Code diagnostics:
- Errors / warnings appear inline
- Issues show up in the Problems panel
- Severity is based on confidence & risk
This makes Watcher feel like a native linting tool.
🛡️ Performance & Safety Controls
Watcher is safe for large PRs:
- Diff size limits
- Deterministic chunking
- Maximum AI calls
- Graceful degradation (never crashes)
When a PR is too large:
- Review is partial
- Confidence is reduced
- Clear warnings are shown
🔒 What Watcher Does NOT Do
Watcher is intentionally editor-only.
❌ No CLI (npm run watcher will not work)
❌ No CI execution
❌ No GitHub API calls
❌ No auto-posting PR comments
❌ No commit message rewriting
This is required to safely use editor-provided AI models.
🧩 Supported Editors
Watcher works in any editor that supports VS Code extensions and the Language Model API, including:
- VS Code
- Cursor
- Windsurf
- Antigravity
- Other compatible forks
🧠 Best Practices
- Run Watcher before committing
- Keep checklist rules small & focused
- Always review low-confidence outputs manually
- Use baseline comparison for large refactors
📌 Summary
Watcher is designed to:
- Assist, not replace, human reviewers
- Reduce review noise
- Surface real risks
- Stay transparent and configurable
If you trust your editor — you can trust Watcher.
📄 License
MIT