Hooks
Hooks
~/.kimi-code/config.toml
Vendor docs
config
| name | type | required | meaning | concept | |
|---|---|---|---|---|---|
| command | string | yes |
The shell command to run when triggered
|
docs ↗ | |
| event | string | yes |
Trigger event name; must be one of the entries in the "Event Reference" table below
|
docs ↗ | |
| matcher | string |
A regular expression to filter event targets; if omitted, matches all
|
docs ↗ | ||
| timeout | string |
Timeout in seconds, range 1–600; defaults to 30 seconds
|
docs ↗ |
event
| name | type | required | meaning | concept | |
|---|---|---|---|---|---|
| Interrupt | event | docs ↗ | |||
| Notification | event | docs ↗ | |||
| PermissionRequest | event | docs ↗ | |||
| PermissionResult | event | docs ↗ | |||
| PostCompact | event | docs ↗ | |||
| PostToolUse | event | docs ↗ | |||
| PostToolUseFailure | event | docs ↗ | |||
| PreCompact | event | docs ↗ | |||
| PreToolUse | event | docs ↗ | |||
| SessionEnd | event | docs ↗ | |||
| SessionHeartbeat | event | docs ↗ | |||
| SessionStart | event | docs ↗ | |||
| Stop | event | docs ↗ | |||
| StopFailure | event | docs ↗ | |||
| SubagentStart | event | docs ↗ | |||
| SubagentStop | event | docs ↗ | |||
| TaskStarted | event | docs ↗ | |||
| TurnStarted | event | docs ↗ | |||
| UserPromptQueued | event | docs ↗ | |||
| UserPromptSubmit | event | docs ↗ |