@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.3.0- Published
- Jun 7, 2026
- Downloads
- 698/mo · 173/wk
- Author
- touchtechclub
- License
- MIT
- Types
- extension
- Size
- 32.9 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 - Diff stats —
/diffshows cumulative lines added/removed per file across all checkpoints - 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 |
/diff |
Show diff stats (lines added/removed) for each file changed in current session |
License
MIT