Skip to content

gavrix/pi-review-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Review Diff

Review your local changes in a web UI and send review feedback back into Pi.

  • review the entire branch against main, including committed and local changes
  • switch between Branch, Uncommitted, live Active turn, and Last turn views
  • syntax highlighting for Swift, Kotlin, TypeScript/JavaScript, HTML, and CSS
  • stream live per-turn file and line counts while Pi is working
  • add inline comments to diffs
  • include review comments in your next Pi prompt automatically

Screenshot

Pi Review Diff screenshot

Install

pi install git:github.com/gavrix/pi-review-diff@v0.1.0

Then reload Pi resources:

/reload

Usage

In Pi, run:

/review-diff

The review opens on Branch, comparing the current worktree with the merge base of main. Use the change selector to switch to:

  • Uncommitted — the current worktree compared with HEAD
  • Active turn — a read-only live diff that appears while Pi is running and updates after file-changing tools complete
  • Last turn — only the changes made during Pi's most recently completed turn

Untracked files are included. Click the live activity pill to open Active turn; its dropdown entry lists the files changing so far. Add comments in the browser, then continue in Pi as usual. Pending comments are injected into the next normal prompt, marked as sent immediately, and considered resolved when that Pi run finishes.

Credits

Built as a Pi extension.

License

MIT. See LICENSE.

About

Local browser diff review UI for Pi

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors