User Prompt Expansion
User Prompt Expansion
Section titled “User Prompt Expansion”Configuration for user-prompt-expansion hooks with command-name-based command execution.
Commands run when a slash command or MCP prompt is expanded. Observational.
Configuration Properties
Section titled “Configuration Properties”commands
Section titled “commands”Map of command-name patterns to command configurations. Keys are glob patterns matched against the expanded command name (e.g., “commit”, ”*”).
| Attribute | Value |
|---|---|
| Type | object |
| Default | {} |
Nested Types
Section titled “Nested Types”This section uses the following nested type definitions:
UserPromptExpansionCommand Type
Section titled “UserPromptExpansionCommand Type”Configuration for individual user-prompt-expansion commands with optional messages.
Properties:
| Property | Type | Default | Description |
|---|---|---|---|
maxOutputLines | `integer | null` | null |
message | `string | null` | null |
notifyPerCommand | `boolean | null` | null |
run | string | - | The shell command to execute |
showCommand | `boolean | null` | true |
showStderr | `boolean | null` | null |
showStdout | `boolean | null` | null |
timeout | `integer | null` | null |
See Also
Section titled “See Also”- Configuration Overview - Complete reference for all configuration options