← Catalog

@hcflabs/pi-undo

Rewind Pi conversation context to the latest user prompt.

Package

Install

Install with PiG

pig install npm:@hcflabs/pi-undo

Install with Pi

pi install npm:@hcflabs/pi-undo
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/undo.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 3.3.0 (README.md). PiG does not review it.

@hcflabs/pi-undo

Return to the latest user prompt on the current branch, without later conversation context. Edit and resend the prompt in place instead of copying it into a new turn.

Install

pi install npm:@hcflabs/pi-undo

Use

Run /undo with no arguments. It cancels active work, waits for it to stop, then returns to the undo target.

The command does not select prompts on other branches. If the current branch has no user message, Pi displays Nothing to undo.

Limits and recovery

Conversation rewind does not revert filesystem changes. Review or restore files separately before you resend the prompt.