<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 WebUIInstall and use
npm install -g difit
difit # View the latest commit diff in WebUIEnable use from AI agents
npx skills add yoshiko-pg/difit # Add the Skills to your agentInstalled 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/branchesSingle commit review
difit # HEAD (latest) commit
difit 6f4a9b7 # Specific commit
difit feature # Latest commit on feature branch