Skip to content

Setup

Configuration for setup hooks with trigger-based command execution.

Commands run during Claude Code setup/initialization. Exit code 2 blocks the setup. The trigger value is used as the match query for pattern-based execution.

Map of trigger patterns to command configurations. Keys are glob patterns matching trigger values (e.g., “install”, ”*”).

AttributeValue
Typeobject
Default{}

This section uses the following nested type definitions:

Configuration for individual setup 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