← All tools

difit

Popularity 65 Updated Development & Build

A lightweight command-line tool that spins up a local web server to display Git commit diffs in a GitHub-like Files changed view

npmauto-collected

Installation

npm
npm install -g difit

Install with npm.

<h1 align="center" <img src="public/logo.png" alt="difit" width="260" </h1

<p align="center" <a href="https://www.npmjs.com/package/difit"<img src="https://img.shields.io/npm/v/difit.svg" alt="npm version"</a <a href="https://github.com/yoshiko-pg/difit/actions/workflows/pr.yml"<img src="https://github.com/yoshiko-pg/difit/actions/workflows/pr.yml/badge.svg" alt="CI"</a </p

<p align="center" English | <a href="./README.ja.md"日本語</a | <a href="./README.zh.md"简体中文</a | <a href="./README.ko.md"한국어</a </p

difit is a CLI tool that lets you view and review local git diffs with a GitHub-style viewer. In addition to clean visuals, comments can be copied as prompts for AI. The local code review tool for the AI era!

⚡ Quick Start

Try it first

npx difit  # View the latest commit diff in WebUI

Install and use

npm install -g difit
difit  # View the latest commit diff in WebUI

Enable use from AI agents

npx skills add yoshiko-pg/difit # Add the Skills to your agent

Installed skills include:

  • difit: ask the user for a review through difit after code changes
  • difit-review: review a specific diff or PR and launch difit with findings or explanations preloaded as comments

🚀 Usage

Basic Usage

difit <target>                    # View single commit diff
difit <target> [compare-with]     # Compare two commits/branches

Single commit review

difit          # HEAD (latest) commit
difit 6f4a9b7  # Specific commit
difit feature  # Latest commit on feature branch