@ryan_nookpi/pi-extension-setup-sh
Auto-run setup.sh extension for pi.
Package details
Install @ryan_nookpi/pi-extension-setup-sh from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@ryan_nookpi/pi-extension-setup-sh- Package
@ryan_nookpi/pi-extension-setup-sh- Version
0.1.1- Published
- Apr 27, 2026
- Downloads
- 221/mo · 221/wk
- Author
- ryan_nookpi
- License
- MIT
- Types
- extension
- Size
- 27.9 KB
- Dependencies
- 0 dependencies · 2 peers
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
@ryan_nookpi/pi-extension-setup-sh
Automatically runs setup.sh from the current pi working directory when a session starts.
This is useful for repositories that need a predictable bootstrap step before the agent starts editing, testing, or running commands.
Install
pi install npm:@ryan_nookpi/pi-extension-setup-sh
What it does
- looks for
setup.shonly in the current working directory - runs
setup.shautomatically on session startup - skips automatic reruns when the same
setup.shalready completed successfully - keeps a single
/setup-shcommand for manual control - shows running, pending, failed, cancelled, and stale states in the pi UI
- keeps per-project logs and state under pi's setup-sh state directory
- prevents duplicate setup runs with a lock file
Command
/setup-sh
/setup-sh is a toggle-style command:
- if no setup run exists yet, it starts
./setup.sh - if setup is currently running, it aborts the active run
- if setup already finished, it reruns
./setup.sh
No subcommands are registered.
Behavior
setup.shis executed with/bin/zshfrom the current working directory.- A successful automatic run is remembered by the script hash, so changing
setup.shallows it to run again. - Long-running setup output becomes
pendingin the UI when logs have been idle for a while. - Failed and stale states stay visible and can be rerun with
/setup-sh. - If the current directory does not contain
setup.sh,/setup-shreports that it was not found in the current folder.
Requirements
- pi
- a readable
setup.shfile in the current pi working directory