A pi extension that intercepts unknown slash commands and prevents them from being sent to the LLM.
When a user types a slash command that pi does not recognize, this extension:
- blocks the request before it reaches the model
- shows a warning notification
- allows known built-in and registered commands through normally
This helps avoid wasting requests on typos like /realod or nonexistent commands.
pi install git:github.com/hdkiller/pi-block-unknown-commandpi install ./pi-block-unknown-commandReload pi after installing:
/reload
No configuration is required.
Run pi with the local package:
pi -e ./pi-block-unknown-command