@henryqw/pi-undo
Rewind Pi conversation context to the latest user prompt.
Package details
Install @henryqw/pi-undo from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@henryqw/pi-undo- Package
@henryqw/pi-undo- Version
1.0.2- Published
- Sep 6, 2026
- Downloads
- 715/mo · 469/wk
- Author
- henrywang
- License
- MIT
- Types
- extension
- Size
- 3.1 KB
- Dependencies
- 0 dependencies · 1 peer
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
@henryqw/pi-undo
Return to your latest user prompt so you can edit and retry it without later conversation context. The prompt returns in place instead of requiring a copied new turn.
Install
pi install npm:@henryqw/pi-undo
Use
Run /undo with no arguments. Pi stops active work and puts your latest prompt back in the editor.
Edit or submit it again.
Limits and recovery
/undo does not revert filesystem changes.