@j1nn0/pi-exit

Guarded /exit command for Pi that confirms before interrupting a running agent

Packages

Package details

extension

Install @j1nn0/pi-exit from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@j1nn0/pi-exit
Package
@j1nn0/pi-exit
Version
0.1.0
Published
Oct 8, 2026
Downloads
439/mo · 13/wk
Author
j1nn0
License
MIT
Types
extension
Size
8.2 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

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

README

@j1nn0/pi-exit

A guarded /exit command for Pi. When an agent run is in progress, /exit asks before interrupting it. If dialog UI is unavailable or confirmation fails, it exits anyway.

Install

pi install npm:@j1nn0/pi-exit

Usage

Command Behavior
/exit Exit now; asks for confirmation while the agent is running.
/exit --force Exit without confirmation.
/exit --wait Wait for the agent to finish, then exit.
/exit --help Show command help.

Differences from pi-exit

The default now confirms before interrupting a running agent. Use --force to restore unconditional exit behavior.

Pi 1.0 ships /quit; this extension provides a guarded /exit command for muscle memory.

Migrating from npm:pi-exit

Do not load both packages at the same time. If the original npm:pi-exit is still configured, Pi may namespace this package's command as exit:1 instead of binding it to /exit, so /exit would keep running the old extension.

Remove the old npm:pi-exit package from your Pi configuration before installing @j1nn0/pi-exit.