pi-rewind-chat
v0.2.0
Published
Per-message rewind extension for Pi coding agent. Rollback code, chat history, and AI context to any previous message.
Downloads
57
Maintainers
Readme
pi-rewind-chat
Per-message rewind extension for the Pi coding agent.
Features
/rewind— Pick any user message, rollback code, chat, or both to that point/rewind-undo— Reverse the last rewind (repeatable — walks back through multiple rewinds)- Code checkpoints work like Claude Code's: snapshot the pre-edit content of files touched by tool calls each turn, no git required
- Chat rewind is non-destructive: it moves the conversation branch pointer (via Pi's native tree navigation), it doesn't delete history
- Preview affected files and scope (code/chat/both) before confirming
Note: Checkpoints are stored in-memory per session. They won't persist if you restart Pi. This prevents feedback loops that could cause infinite message cycles.
Install
# From npm (when published)
pi install npm:pi-rewind-chat
# From GitHub
pi install github.com/aldeniaalexandra/pi-rewind-chat
# For development
git clone github.com/aldeniaalexandra/pi-rewind-chat
pi -e ./pi-rewind-chat/src/index.tsUsage
- Chat normally with Pi
- Type
/rewindto see list of your messages - Select a message to rewind to
- Preview changes and confirm
- Code + chat rolled back to that point
- Made a mistake?
/rewind-undoto restore
Requirements
- Pi coding agent v0.79+
License
MIT
