pi-exit-resume

Pi extension that copies the resume command when Pi exits.

Packages

Package details

extension

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

$ pi install npm:pi-exit-resume
Package
pi-exit-resume
Version
0.1.1
Published
May 16, 2026
Downloads
not available
Author
pyronaur
License
MIT
Types
extension
Size
4.3 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

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

README

pi-exit-resume

pi-exit-resume copies a Pi resume command to your clipboard when the current Pi session shuts down with reason: "quit".

Install

pi install npm:pi-exit-resume

Or add it directly to Pi settings:

{
  "packages": ["npm:pi-exit-resume"]
}

What it does

On session_shutdown with reason: "quit", it copies:

pi --session <session-id>

The session id comes from Pi's current ctx.sessionManager. If no resume command can be built, nothing is copied.

Disable

Remove pi-exit-resume from Pi packages.

Development

npm run typecheck
npm run lint
npm run format:check