omp packages

@johnnywu/pi-filechanges1.4.1

Tracks files changed by pi via edit and write tools, with a toggleable file changes widget

johnnywu Published 3 days ago MIT ~721 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

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 edit and write tools

❌ 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. bash commands 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

The filechanges shortcut (ctrl+enter by default) switches between the compact and full file lists. Pi's tool-output shortcut (ctrl+o by default) controls tool output separately. When the number of tracked files exceeds maxfiles, the compact list's last line shows the total edited and new file counts alongside the filechanges shortcut. When the widget is hidden, use /filechanges to show it again.

Configuration

Optional. Create ~/.pi/agent/extensions/pi-filechanges.json:

{
  "toggleKey": "ctrl+enter",
  "maxfiles": 8
}
Setting What it does Default
toggleKey Shortcut that switches between the compact and full file lists, in Pi keybinding form (ctrl+enter, ctrl+shift+t). Set "off" to disable the shortcut. "ctrl+enter"
maxfiles Maximum number of file rows in the compact list. Accepts integers from 0 to 10. With 0, the compact view shows only the summary row when changes are tracked. 8

Run /reload to apply changes. Missing or invalid settings fall back to their defaults. pi-filechanges only reads this file.

ctrl+enter requires a terminal that reports it separately from enter, such as Ghostty. Use toggleKey to choose a shortcut your terminal supports.

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