npm package

merge-mentor

An automated code review bot powered by AI CLI tools. Reviews pull requests on GitHub and Azure DevOps using your existing AI subscription — GitHub Copilot CLI, OpenCode, or Cursor — and posts intelligent inline feedback directly on your PRs.

Install it globally and point it at any PR. By default it runs in dry-run mode so you can preview every comment before anything is posted.

npm install -g merge-mentor
View on npm

Multi-Platform

GitHub & Azure DevOps

Works seamlessly with both GitHub pull requests and Azure DevOps PRs. Authenticate with a personal access token and point merge-mentor at any repository.

Multi-Provider

Your AI, Your Rules

Use the AI tool you already have — GitHub Copilot CLI, OpenCode CLI, or Cursor CLI. No separate API key or subscription needed; merge-mentor leverages your existing setup.

Intelligent Analysis

Deep Code Review

Analyses every changed file for bugs, security vulnerabilities, performance issues, code quality, and documentation gaps. Specialist review modes let you focus on security or testing specifically.

Smart Posting

Inline Comments & Deduplication

Posts feedback as inline PR comments on the exact lines that need attention. Smart deduplication ensures the same issue is never flagged twice, and auto-resolution detects when issues are fixed.

Confidence Filtering

Signal Without the Noise

Only high-confidence findings are posted by default. Multi-run mode aggregates results from several passes for extra thoroughness, without flooding your PR with low-value comments.

Dry-Run by Default

Preview Before You Post

Run a full review and get a detailed markdown report without touching your PR. Add --write only when you're happy with the output. Real-time streaming output shows exactly what the AI is thinking.

Quick Start

Install globally, set your credentials, and review any PR in seconds. Command-line parameters always override environment variables.

# GitHub — dry-run preview
merge-mentor review --pr 123 \
  --github-token your_token \
  --github-repo-owner owner \
  --github-repo-name repo

# Post comments to the PR
merge-mentor review --pr 123 --write

# Use OpenCode instead of Copilot
merge-mentor review --pr 123 --provider opencode --write
Full documentation on npm →