pi-stop

Adds /stop command to pi: aborts the current agent and reloads your last message for resending

Packages

Package details

extension

Install pi-stop from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-stop
Package
pi-stop
Version
1.1.1
Published
May 18, 2026
Downloads
not available
Author
whonixnetworks
License
MIT
Types
extension
Size
5 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions/stop.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-stop

Adds a /stop command to pi that aborts the current agent and loads your last message back into the editor for resending.

Install

pi install npm:pi-stop

Or install from git:

pi install git:github.com/whonixnetworks/pi-stop

Usage

While the agent is running (or after it finishes), type:

/stop

This will:

  1. Abort the current agent execution if it's still streaming
  2. Find your last user message on the current branch
  3. Load it into the input editor so you can edit and resend

If no previous user message exists, it just aborts with a notification.

Manual Install

Copy extensions/stop.ts to ~/.pi/agent/extensions/ and run /reload in pi.

License

MIT