Skip to content

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.

Map of command-name patterns to command configurations. Keys are glob patterns matched against the expanded command name (e.g., “commit”, ”*”).

AttributeValue
Typeobject
Default{}

This section uses the following nested type definitions:

Configuration for individual user-prompt-expansion commands with optional messages.

Properties:

PropertyTypeDefaultDescription
maxOutputLines`integernull`null
message`stringnull`null
notifyPerCommand`booleannull`null
runstring-The shell command to execute
showCommand`booleannull`true
showStderr`booleannull`null
showStdout`booleannull`null
timeout`integernull`null