@juanibiapina/pi-files

Pi extension that tracks files read/written/edited by the agent

Package details

extension

Install @juanibiapina/pi-files from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@juanibiapina/pi-files
Package
@juanibiapina/pi-files
Version
0.1.1
Published
Mar 7, 2026
Downloads
37/mo · 4/wk
Author
juanibiapina
License
MIT
Types
extension
Size
31.4 KB
Dependencies
1 dependency · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/index.js"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@juanibiapina/pi-files

A pi extension that tracks files read, written, and edited by the agent during a session.

Features

  • /files command — Show a list of all files the agent has interacted with, sorted by most recent access
  • Operation indicators — Each file shows R (read), W (written), E (edited) labels
  • Open in editor — Select a file to open it in your configured editor
  • Keyboard shortcut — Optionally bind a shortcut to open the file list
  • Session-aware — Rebuilds file list from session history on resume, clears on session switch

Installation

pi install npm:@juanibiapina/pi-files

Requires @juanibiapina/pi-extension-settings for settings management.

Usage

Use /files in pi to open the file picker. Navigate with arrow keys, press Enter to open a file in your editor.

Settings

Configure via /extension-settings:

Setting Description Example
editorCommand Command to open files (space-separated, path is appended) code -g
shortcut Keyboard shortcut to open file list ctrl+f

License

MIT