pi-undo-edits
Undo last N conversation turns and restore edit/write file changes (no git, no bash undo). Usage: /undo [N]
Package details
Install pi-undo-edits from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-undo-edits- Package
pi-undo-edits- Version
1.0.0- Published
- Sep 21, 2026
- Downloads
- 191/mo · 2/wk
- Author
- wpbasket
- License
- MIT
- Types
- extension
- Size
- 13.4 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./extensions/undo.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-undo-edits
An undo button for Pi. If Pi makes a wrong change, you can go back to an earlier point. Your chat goes back, and your files go back too.
What it does
- Go back one step or many steps in your chat
- Bring back files as they were before Pi edited them
- Pick from a list if you are not sure how far to go back
- Puts your old message back in the typing box so you can fix and resend it
Note: only files Pi edited are restored. Commands run in the terminal stay as they are.
Install
pi install npm:pi-undo-edits
Or from GitHub:
pi install git:github.com/wpbasket/pi-undo-edits
Use
Inside Pi, type:
/undo # show list and pick where to go back
Pi will ask "are you sure?" once, then undo.
License
MIT
Keywords
pi · pi-agent · pi-extension · pi-package · undo · session · snapshots · restore · pi-undo · pi-undo-edits