Stop
Configuration for stop hook commands that run when Claude is about to stop
Configuration Properties
Section titled “Configuration Properties”commands
Section titled “commands”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.
| Attribute | Value |
|---|---|
| Type | array |
| Default | [] |
infinite
Section titled “infinite”Infinite mode - when enabled, allows Claude to continue automatically instead of ending the session after stop hook commands succeed. Default: false
| Attribute | Value |
|---|---|
| Type | boolean |
| Default | false |
infiniteMessage
Section titled “infiniteMessage”Message to send to Claude when infinite mode is enabled and stop hook commands succeed. Claude receives this message to continue working.
| Attribute | Value |
|---|---|
| Type | `string |
| Default | null |
Nested Types
Section titled “Nested Types”This section uses the following nested type definitions:
StopCommand Type
Section titled “StopCommand Type”Configuration for individual stop commands with optional messages
Properties:
| Property | Type | Default | Description |
|---|---|---|---|
maxOutputLines | `integer | null` | null |
message | `string | null` | null |
run | string | - | The shell command to execute |
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