---
title: "@henryqw/pi-undo"
seo:
  description: "Rewind Pi conversation context to the latest user prompt."
---

<div class="not-prose my-6 flex flex-wrap items-center gap-3"><span class="text-sm text-muted-foreground">v0.1.0</span><a href="https://www.npmjs.com/package/@henryqw/pi-undo" aria-label="View @henryqw/pi-undo on npm"><img alt="Monthly npm downloads" height="20" src="https://img.shields.io/npm/dm/%40henryqw%2Fpi-undo?cacheSeconds=7200&amp;color=1d4ed8&amp;label=downloads&amp;labelColor=101828&amp;style=flat-square" width="144"></a></div>

`/undo` rewinds conversation context and restores your latest prompt.

## Why

- **Created for**: People who need to retry their latest user prompt.
- **Advantage**: It restores that prompt without later conversation context.

## Install

```bash
pi install npm:@henryqw/pi-undo
```

## Use

Run `/undo` with no arguments.

It stops active work and restores your latest prompt.
It does not revert filesystem changes.
