Skip to content

Stop

Configuration for stop hook commands that run when Claude is about to stop

List of commands to execute when Claude is about to stop. Commands run in order and can provide custom error messages and control output display.

AttributeValue
Typearray
Default[]

Infinite mode - when enabled, allows Claude to continue automatically instead of ending the session after stop hook commands succeed. Default: false

AttributeValue
Typeboolean
Defaultfalse

Message to send to Claude when infinite mode is enabled and stop hook commands succeed. Claude receives this message to continue working.

AttributeValue
Type`string
Defaultnull

This section uses the following nested type definitions:

Configuration for individual stop commands with optional messages

Properties:

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