@tombell/pi-diff
Show git diff for files changed during the current Pi session
Package details
Install @tombell/pi-diff from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@tombell/pi-diff- Package
@tombell/pi-diff- Version
0.0.4- Published
- May 31, 2026
- Downloads
- 568/mo · 27/wk
- Author
- tombell
- License
- BSD-3-Clause
- Types
- extension
- Size
- 9.7 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@tombell/pi-diff
Show git diff for files changed during the current Pi session.
Features
- Tracks file paths from successful
editandwritetool calls. - Adds two commands:
/diff/changed-files
/diff- defaults to session-tracked files
- shows a selector when multiple files are available
- falls back to all dirty files if no session files are tracked
--all/all: include every dirty repo file--stat/stat: show unified diff summary
/changed-files: lists all edited/written files tracked this session- Custom renderer with colored diff output
Install
- From npm:
pi install npm:@tombell/pi-diff - Local/quick test:
pi -e path/to/pi-diff