| name | better-prompt |
| description | Pi Agent extension that intercepts user input, cancels the original message, sends a hidden analysis to the LLM to analyze the project, and returns an optimized prompt in the editor. Enter to send, Escape to cancel. |
BetterPrompt
Intercepts your input, cancels it, and uses Pi's LLM to analyze your project and generate an optimized prompt. The result appears in your editor for review.
How It Works
/better activates enhancement mode (or use auto-mode via /better-auto)
- Your message is cancelled (never reaches the LLM directly)
- A hidden analysis request is sent to the LLM with project context
- The LLM uses
read, find, and grep_search to explore the project
- The optimized prompt appears in your editor
- Enter to send | Escape for options (edit/feedback/bypass/cancel)
Usage
/better
Create a user authentication module
Commands
| Command | Description |
|---|
/better | Activate optimization for the next prompt |
/better-model | Select model to use for enhancement (default: inherit) |
/better-auto | Toggle auto-mode (optimise every prompt) |
/better-prefix | Set silent prefix to exclude certain inputs |
/pe | Show configuration and status |