raine

Better Pi Rewind — Design skill for Claude Code

Design community

Claude Code-style file checkpoints and conversation rewind for Pi and OMP.

How to install Better Pi Rewind

This entry records only its repository, not the path inside it, so there is no exact command to give. Open raine/better-pi-rewind and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Better Pi Rewind does

Claude Code-style file checkpoints and conversation rewind for Pi and OMP.

Alternatives in Design

  • Brand Guidelines — Apply Anthropic's official brand colors and typography to artifacts 94.1k ★
  • Planning With Files — Claude Code skill implementing Manus-style persistent markdown planning — the workflow pattern behind the $2B 17.4k ★
  • Explanatory Output Style — Educational output mode with insights about implementation choices 14k ★

README

better-pi-rewind

Claude Code-style file checkpoints for [pi](https://pi.dev) and [OMP](https://omp.sh).

The extension records the state of files changed through the host's built-in `edit` and `write` tools. Rewinding can restore those files, reset descendant Git commits, navigate the current conversation to an earlier user prompt, or combine those actions.

![Rewind selector showing file diff statistics](https://raw.githubusercontent.com/raine/better-pi-rewind/main/meta/rewind-selector.webp)

Install

Install the published package from npm.

Pi

pi install npm:better-pi-rewind

OMP

omp plugin install better-pi-rewind

Both hosts can also install a tagged GitHub release directly:

pi install git:github.com/raine/better-pi-rewind@v0.2.0
omp plugin install github:raine/better-pi-rewind#v0.2.0

Use

Run `/rewind` and select the point before an earlier user prompt. The extension then offers:

  • Restore code and conversation
  • Restore conversation only
  • Restore code only
  • Restore code with a hard reset of commits created after the checkpoint

Commit reset choices appear when the selected checkpoint and the current state use the same Git repository and branch, and the checkpoint commit is an ancestor of `HEAD`. The reset choice shows the number of commits it will remove and asks for confirmation before running `git reset --hard`.

`/checkpoint` is an alias for `/rewind`.

Double Escape

Press Escape twice within 500 ms with an empty editor. The extension opens its rewind selector with every user prompt, the code changes that would be restored, and a current-position marker. The same selector is available through `/rewind`.

Disable the host's built-in double-Escape action so the extension owns this interaction.

For Pi, set this in `~/.pi/agent/settings.json`:

{
  "doubleEscapeAction": "none"
}

For OMP, run:

omp config set doubleEscapeAction none

While an assistant response is active, Escape r