diffpilot-ts

bkalafat/diffpilot-ts

3.2

If you are the rightful owner of diffpilot-ts and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

DiffPilot is a local AI-powered code review tool designed to catch bugs, security issues, and code smells before they reach your team.

Tools
7
Resources
0
Prompts
0

DiffPilot

Review your code before creating a PR. 100% local.

Catch bugs, security issues, and code smells before they reach your team. DiffPilot brings AI-powered code review directly into your workflow—no cloud uploads, no waiting.

DiffPilot


Why DiffPilot?

"I wish I had reviewed that before pushing..."

We've all been there. DiffPilot solves this by making self-review instant and automatic.

🔍 Self-Review👀 Code Review🎯 Auto Detection
Review your own changes before pushingCheckout any branch and reviewNo need to specify base branch

Stop pushing code blindly. Get AI-powered feedback before creating a PR.


Features

Local Code Review — AI reviews your uncommitted changes instantly
Branch Diff Analysis — Compare any branch against main/master
Secret Detection — Catch API keys, passwords, tokens before commit
Commit Messages — Generate conventional commit messages automatically
PR Generation — Create PR titles and descriptions from your changes
Zero Config — Auto-detects base branch (main, master, develop)
Enterprise Ready — Works with Azure DevOps, TFS, air-gapped environments
100% Local — No cloud, no uploads, your code stays on your machine


Quick Start

Just ask your AI assistant:

# Review local changes (staged first, then unstaged)
@workspace #check_changes

# Review branch diff against main
@workspace #review_code

# Generate a commit message
@workspace #create_commit_message

# Check for leaked secrets
@workspace #find_secrets

MCP Tools

DiffPilot provides 7 powerful MCP tools for GitHub Copilot, Claude, and other AI assistants:

ToolWhat it does
#check_changesReview your local staged/unstaged changes
#get_diffGet the diff between your branch and main
#review_codeAI code review with issue detection
#create_pr_titleGenerate a PR title from your changes
#create_pr_bodyCreate a complete PR description
#create_commit_messageGenerate conventional commit messages
#find_secretsDetect leaked API keys, passwords, tokens

Use Cases

🔍 Self-Review Before PR

# After finishing your work, before creating a PR:
@workspace #check_changes

# AI finds issues → you fix locally → then push

👀 Code Reviewer Workflow

git checkout feature/user-authentication
@workspace #review_code focus on security

🔐 Pre-Commit Secret Check

@workspace #find_secrets

# Catches API keys, passwords, JWT tokens before commit

📝 Quick Commit Message

@workspace #create_commit_message

# Generates: feat(auth): add JWT token validation

Installation

VS Code Extension (Recommended)

Install from VS Code Marketplace

npm

npm install -g diffpilot

npx (No install)

npx diffpilot

Manual MCP Configuration

For Claude Desktop or other MCP clients:

{
  "mcpServers": {
    "diffpilot": {
      "command": "npx",
      "args": ["diffpilot"]
    }
  }
}

Requirements

  • VS Code 1.101+
  • Node.js 18+
  • Git

Settings

SettingDefaultDescription
diffpilot.nodePathnodePath to Node.js executable
diffpilot.serverPath(bundled)Custom MCP server path

How It Works

  1. You make changes to your code
  2. Ask AI to review with #check_changes or #review_code
  3. DiffPilot fetches the git diff and sends to your AI assistant
  4. AI analyzes and reports issues in file:line format
  5. You fix issues locally before pushing

All processing happens locally. Your code never leaves your machine.


Version History

VersionChanges
2.0.4Documentation cleanup
2.0.3Privacy & security docs, architecture diagram
2.0.2Reduced package size (8MB → 5MB)
2.0.1Added check_changes for local review
2.0.0Initial release with 7 MCP tools

Links


License

MIT © Burak Kalafat