@mrclrchtr/supi-bash-timeout
v1.7.0
Published
SuPi bash-timeout extension — injects default timeout on bash tool calls
Maintainers
Readme
@mrclrchtr/supi-bash-timeout
Adds one small safety feature to the pi coding agent: if the model calls bash without a timeout, this package fills one in.
Install
pi install npm:@mrclrchtr/supi-bash-timeoutFor local development:
pi install ./packages/supi-bash-timeoutAfter editing the source, run /reload.
What you get
After install, every bash tool call is checked before execution:
- if the model already set
timeout, that value is kept - if
timeoutis missing, this package injects a default value - other tools are untouched
Default timeout: 120 seconds
This is useful when you want a guardrail against hung commands in long or unattended sessions.
Settings
This package registers a Bash Timeout section in /supi-settings.
Available setting:
defaultTimeout— default timeout forbashtool calls, in seconds
Config is stored in the standard SuPi config files:
- global:
~/.pi/agent/supi/config.json - project:
.pi/supi/config.json
Example:
{
"bash-timeout": {
"defaultTimeout": 300
}
}Invalid values are ignored and fall back to the built-in default of 120.
Source
src/bash-timeout.ts— interceptsbashtool calls and injects missing timeoutssrc/config.ts— config loading and default valuessrc/settings-registration.ts—/supi-settingsregistration
