@touchtechclub/pi-oc-rewind
Pi coding-agent extension: per-message undo/redo with shadow-git snapshots. Opencode-inspired.
Package details
Install @touchtechclub/pi-oc-rewind from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@touchtechclub/pi-oc-rewind- Package
@touchtechclub/pi-oc-rewind- Version
0.1.1- Published
- May 21, 2026
- Downloads
- not available
- Author
- touchtechclub
- License
- MIT
- Types
- extension
- Size
- 14.5 KB
- Dependencies
- 0 dependencies · 0 peers
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
@touchtechclub/pi-oc-rewind
Opencode-inspired Pi extension for per-message undo and redo with shadow-git snapshots.
Features
- Shadow-git snapshots — stores file state in a separate git dir under
~/.pi/agent/checkpoints/ - Per-message undo —
/undoreverts the last chat message, restoring files to their prior state - Per-message redo —
/redore-applies a previously undone message - ACP-compatible — aliases
/acp-undoand/acp-redofor Agent Client Protocol clients - Automatic repair — fixes corrupted checkpoints on
/reload
Install
pi extension add @touchtechclub/pi-oc-rewind
Commands
| Command | Description |
|---|---|
/undo |
Revert last message and restore files |
/redo |
Re-apply a previously undone message |
/acp-undo |
Same as /undo (ACP client-safe) |
/acp-redo |
Same as /redo (ACP client-safe) |
/checkpoint-undo |
Same as /undo |
/checkpoint-redo |
Same as /redo |
License
MIT