Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>WatcherNew to Visual Studio Code? Get it now.
Watcher

Watcher

mr-burhanuddin

|
5 installs
| (0) | Free
AI-powered PR review agent using editor-provided models
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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.

✅ No OpenAI keys
✅ No external APIs
✅ No CI or CLI dependency
✅ Works entirely inside the editor


✨ What Watcher Does

Watcher analyzes your staged code and provides:

  • 🤖 AI vs Human code attribution
  • 🔍 Code quality & logic review
  • 🧪 Test coverage feedback
  • 🆕 Regression detection (baseline comparison)
  • ✅ Custom checklist enforcement
  • 🧠 AI confidence scoring & hallucination detection
  • ⚠️ Inline editor diagnostics (Problems panel)
  • 📝 PR-ready Markdown summaries
  • 🛡️ Performance & safety controls for large PRs

All without leaving your editor.


🧠 How Watcher Works (High Level)

  1. Reads staged Git changes
  2. Optionally compares against a user-defined base branch
  3. Applies custom checklist rules (if provided)
  4. Uses editor-provided AI models to review the changes
  5. Runs a self-verification pass to detect AI disagreement
  6. Generates:
    • Detailed review report
    • PR summary
    • Inline diagnostics

🚀 How to Use Watcher

1️⃣ Install the Extension

Install Watcher from the VS Code marketplace (or sideload during development).


2️⃣ Stage Your Changes

Watcher only reviews staged files:

git add .

3️⃣ Run Watcher

Use any of the following:

  • Command Palette

    Ctrl + Shift + P → Watcher: Run PR Review
    
  • Keybinding (optional)

  • VS Code Task

  • code --command watcher.run (VS Code must already be open)


4️⃣ Review the Output

Watcher generates:

.watcher/
├── WATCHER_REVIEW.md   ← Full detailed review
└── PR_SUMMARY.md       ← GitHub-ready PR summary

It also:

  • Adds inline warnings/errors in the editor
  • Populates the Problems panel

📁 Generated Files

.watcher/WATCHER_REVIEW.md

Detailed technical analysis including:

  • AI confidence
  • Risk level
  • New vs existing issues
  • Checklist results
  • Test feedback

.watcher/PR_SUMMARY.md

Concise, GitHub-ready summary suitable for PR descriptions.


⚙️ Configuration

Watcher supports both global (VS Code) and per-repository configuration.

🔹 Configuration Priority

.watcher/config.json   ← highest priority
VS Code settings       ← fallback
Defaults               ← last resort

🔹 VS Code Settings

Open:

Settings → Extensions → Watcher
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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft