@tombell/pi-exit
Quick command to exit Pi cleanly
Package details
Install @tombell/pi-exit from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@tombell/pi-exit- Package
@tombell/pi-exit- Version
0.0.5- Published
- Jun 14, 2026
- Downloads
- 565/mo · 30/wk
- Author
- tombell
- License
- BSD-3-Clause
- Types
- extension
- Size
- 2.8 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
@tombell/pi-exit
Quick command to exit Pi cleanly.
Features
- Adds an
/exitcommand that callsctx.shutdown(). - Hooks the
inputevent so typingexitor:qexits immediately in interactive mode.
Commands
/exit— exit Pi
Install
- From npm:
pi install npm:@tombell/pi-exit - Local/quick test:
pi -e path/to/pi-exit