@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
3.2.1- Published
- Oct 18, 2026
- Downloads
- 2,088/mo · 545/wk
- Author
- henrywang
- License
- MIT
- Types
- extension
- Size
- 3.4 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 the latest user prompt on the current branch, without later conversation context. Edit and resend the prompt in place instead of copying it into a new turn.
Install
pi install npm:@henryqw/pi-undo
Use
Run /undo with no arguments. It cancels active work, waits for it to stop, then returns to the undo target.
The command does not select prompts on other branches. If the current branch has no user message, Pi displays Nothing to undo.
Limits and recovery
Conversation rewind does not revert filesystem changes. Review or restore files separately before you resend the prompt.