@johnnywu/pi-filechanges
v1.2.2
Published
Tracks files changed by pi via edit and write tools, with a toggleable file changes widget
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-filechangesCommands
| 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 releaseThis project uses semantic-release with conventional commits.
License
MIT
