@johnnywu/pi-filechanges
Tracks files changed by pi via edit and write tools, with a toggleable file changes widget
Package details
Install @johnnywu/pi-filechanges from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@johnnywu/pi-filechanges- Package
@johnnywu/pi-filechanges- Version
1.2.2- Published
- May 12, 2026
- Downloads
- 165/mo · 33/wk
- Author
- johnnywu
- License
- MIT
- Types
- extension
- Size
- 25.4 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-filechanges
Tracks files changed by pi via the built-in edit and write tools. Shows an optional changes widget with changed files and added/removed line counts.
Highly inspired by amosblomqvist/pi-config/extensions/filechanges.
Capabilities & Limitations
✅ Can track
- Files changed by the current Agent through the built-in
editandwritetools
❌ Cannot track
- Files changed by the user outside of the Agent (e.g. manual edits in an editor,
git checkout, scripts run in a separate terminal) - Files changed by other tools or commands (e.g.
bashcommands that write to files, custom tools that modify files directly) - Files changed by sub-agents — each sub-agent runs in its own session and this extension only monitors the current session's tool calls
Install
pi install npm:@johnnywu/pi-filechanges
Commands
| Command | Effect |
|---|---|
/filechanges |
Toggle the changes widget on/off (default: on) |
/filechanges clear |
Clear the tracked changes log without modifying files |
Development
# Run tests
bun test
# Release (local, requires GH_TOKEN and NPM_TOKEN)
bun run release
This project uses semantic-release with conventional commits.
License
MIT