@firstpick/pi-extension-reverse-last
Session-aware undo for Pi write/edit tool changes via /reverse-last.
Package details
Install @firstpick/pi-extension-reverse-last from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@firstpick/pi-extension-reverse-last- Package
@firstpick/pi-extension-reverse-last- Version
0.2.2- Published
- Aug 24, 2026
- Downloads
- 382/mo · 49/wk
- Author
- firstpick
- License
- MIT
- Types
- extension
- Size
- 17.5 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Reverse Last for Pi
Undo the most recent changes made through Pi’s write and edit tools.
What you can do
- Tracks changes made through Pi’s write and edit tools.
- Shows which recent change can be undone.
- Restores one or several recent change steps.
- Keeps undo limited to changes it can safely identify.
Install
Install it through Pi:
pi install npm:@firstpick/pi-extension-reverse-last
Restart Pi if the package does not appear in your current session.
How to use it
Run /reverse-last to preview and undo the latest Pi file change. Add a number when you need to reverse several recent change steps together.
/reverse-last [count]— undo last successful file changes in current session.
Before you start
No setup is required. Undo history is kept only for the current Pi session unless you configure another state directory.
Technical details
See TECHNICAL.md for complete commands, configuration, compatibility, security, and troubleshooting information.