---
slug: "smallbatchcode-pi-slash-command-guard"
source_type: "readme"
source_url: "https://cdn.jsdelivr.net/gh/travisp/pi-extensions@main/README.md"
repo: "https://github.com/travisp/pi-extensions"
source_file: "README.md"
branch: "main"
---
# Travis Pi Extensions

Small pi extensions that I use that don't deserve their own git repository.

Each extension is kept in its own directory and can be installed individually.

## Extensions

- [`slash-command-guard`](https://github.com/travisp/pi-extensions/tree/HEAD/extensions/slash-command-guard/) prevents mistyped or unknown slash commands from being sent as regular user messages. If there is a close known command, it includes a “Did you mean ...?” hint; otherwise it shows an unknown-command error.
- [`system-prompt-display`](https://github.com/travisp/pi-extensions/tree/HEAD/extensions/system-prompt-display/) records the initial system prompt and later changes.

## Usage

Install all extensions:

```bash
pi install /path/to/pi-extensions
```

Install one extension:

```bash
pi install /path/to/pi-extensions/extensions/slash-command-guard
pi install /path/to/pi-extensions/extensions/system-prompt-display
```
