← Catalog

@firstpick/pi-extension-reverse-last

Session-aware undo for Pi write/edit tool changes via /reverse-last.

Extension

Install

Install with PiG

pig install npm:@firstpick/pi-extension-reverse-last

Install with Pi

pi install npm:@firstpick/pi-extension-reverse-last
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": [
    "./index.ts"
  ]
}

README

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

Reverse Last for Pi

Undo the most recent changes made through Pi’s write and edit tools.

What you can do

  • Tracks changes made through Pi’s write and edit tools.
  • Shows which recent change can be undone.
  • Restores one or several recent change steps.
  • Keeps undo limited to changes it can safely identify.

Install

Install it through Pi:

pi install npm:@firstpick/pi-extension-reverse-last

Restart Pi if the package does not appear in your current session.

How to use it

Run /reverse-last to preview and undo the latest Pi file change. Add a number when you need to reverse several recent change steps together.

  • /reverse-last [count] — undo last successful file changes in current session.

Before you start

No setup is required. Undo history is kept only for the current Pi session unless you configure another state directory.

Technical details

See TECHNICAL.md for complete commands, configuration, compatibility, security, and troubleshooting information.