@firstpick/pi-extension-reverse-last
v0.1.2
Published
Session-aware undo for Pi write/edit tool changes via /reverse-last.
Maintainers
Readme
pi-extension-reverse-last
Session-local undo for Pi write and edit file changes.
What it does
- Captures pre-change file snapshots for successful
write/edittool calls. - Maintains a per-session undo stack.
- Restores one or multiple recent changes with a command.
Install
pi install npm:@firstpick/pi-extension-reverse-lastConfiguration
PI_REVERSE_LAST_STATE_DIR(optional)- Override undo state storage directory.
- Accepts absolute paths or home-relative paths.
- Default:
~/.pi/agent/state/reverse-last
Commands
/reverse-last [count]— undo last successful file changes in current session.
Tools
None.
