@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.0- Published
- Oct 17, 2026
- Downloads
- 1,596/mo · 565/wk
- Author
- henrywang
- License
- MIT
- Types
- extension
- Size
- 3.5 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 without the later conversation context. You can edit the prompt and send it again. The prompt returns in place, so you do not need to copy it into a new turn.
Install
pi install npm:@henryqw/pi-undo
Use
Run /undo with no arguments. It cancels active work. It waits until the work stops. Then it returns to the latest user prompt on the current branch. You can edit the prompt or submit it again.
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
/undo returns only the conversation context to its earlier state. It does not revert filesystem changes. Review or restore files separately if necessary.