← Catalog

@agnishc/edb-diff-files

Pi extension: live widget tracking files changed this session with an inline diff viewer

Extension

Install

Install with PiG

pig install npm:@agnishc/edb-diff-files

Install with Pi

pi install npm:@agnishc/edb-diff-files
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.21.1 (README.md). PiG does not review it.

@agnishc/edb-diff-files

A Pi CLI extension that tracks every file the agent touches during a session and shows them in a live widget above the editor. Opens a full-screen diff viewer on demand.

Features

  • Live widget — updates above the editor after every turn showing + created, ~ edited, - deleted files
  • Flash notification — briefly highlights newly added files at the end of each turn
  • Footer status — compact D(+N ~N -N) indicator always visible
  • Inline diff viewer — press Enter on any file to see a syntax-coloured unified diff
  • Filter by type — cycle through all / created / edited / deleted with f
  • Open in editor — press o to open the file in your configured GUI editor

Install

pi install npm:@agnishc/edb-diff-files

Usage

/diff-files
KeyAction
j/k or ↑/↓Navigate file list
EnterOpen inline diff for selected file
oOpen file in GUI editor
fCycle filter: all → created → edited → deleted
EscClose / back to list

Configuration

Set via environment variables or ~/.pi/settings.json:

VariableDefaultDescription
FILES_WIDGET_MAX_LINES8Max files shown in widget
FILES_WIDGET_SHOW_HEADERtrueShow "N files changed" header
FILES_WIDGET_INCLUDE_DELETEDfalseInclude deleted files in widget

License

MIT © Agnish Chakraborty