pi-stop
v1.2.0
Published
Adds /stop command to pi: aborts the current agent and reloads your last message for resending
Downloads
559
Maintainers
Readme
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-stopOr install from git:
pi install git:github.com/whonixnetworks/pi-stopUsage
While the agent is running (or after it finishes), type:
/stopThis will:
- Abort the current agent execution if it's still streaming
- Wait for the agent, all subagents, ralph loops, and in-flight tools to fully stop
- Find your last user message on the current branch
- Load it into the input editor so you can edit and resend
Unlike a simple abort, /stop guarantees that no sub-processes continue running before your message is reloaded. This prevents the race condition where your edited message gets queued as a "steer" while the agent is still processing.
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
