Bring Claude Code–like “conversation and workspace sync rollback” to Pi

Today I worked on a Pi plugin project: a Claude Code-like “conversation and workspace synchronized rewind” for Pi. No Git configuration required—it uses Pi’s native session tree.

Features:

  • Double-press Esc to open Pi’s native session tree
  • Automatically create a checkpoint before sending each user prompt
  • Restore code and conversation to the same historical node
  • Switch only the conversation while leaving the code unchanged
  • Restore only the code while leaving the conversation unchanged
  • /redo-rewind undoes the most recent restore operation
  • Checkpoints remain available after /resume or restarting Pi
  • Precisely bind snapshots to user messages via Pi session node entryId
  • Write checkpoint metadata to Pi’s session tree using pi.appendEntry()
  • Use an independent shadow Git without modifying the project Git’s commits, branches, index, or reflog
  • Record untracked files and regular file changes produced by shell commands
  • Refuse to restore through symbolic or hard links to prevent writes through links
  • Retain up to 100 checkpoints per session
  • Runtime Chinese/English adaptation: Chinese is displayed on Chinese systems; English is displayed by default in other environments

npm page:

GitHub:

Installation: pi install npm:pi-claude-rewind

Open-source contributions welcome—feel free to pull/push

19 Likes

Just passing by—I’ve never used Pi before.

2 Likes

Thanks for sharing. Thumbs up to you. :xhj16:

1 Like

Take a look

1 Like

:ac01:

I’ll come for the red envelope.

Come take a look.

Red envelope :xhj003:

red envelope

red envelope

Awesome, dude

Thanks for sharing

Awesome

Nice content, Mark

Thanks for sharing! Red packet.

Thanks for sharing!

Thanks for sharing

Have a look

Thanks for sharing—I’ll grab a red envelope.

I often see people online discussing pi and dsh together. Which offers a better user experience?