pi-block-unknown-command

A pi extension that blocks unknown slash commands before they reach the LLM.

Package details

extension

Install pi-block-unknown-command from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-block-unknown-command
Package
pi-block-unknown-command
Version
0.1.0
Published
Apr 24, 2026
Downloads
125/mo · 125/wk
Author
hdkiller
License
MIT
Types
extension
Size
3.8 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

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

README

pi-block-unknown-command

A pi extension that intercepts unknown slash commands and prevents them from being sent to the LLM.

What it does

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.

Install

From GitHub

pi install git:github.com/hdkiller/pi-block-unknown-command

From local path

pi install ./pi-block-unknown-command

Usage

Reload pi after installing:

/reload

No configuration is required.

Development

Run pi with the local package:

pi -e ./pi-block-unknown-command