Skip to content

Commit 702698a

Browse files
committed
docs: clarify emitted CLI hook events
1 parent 69ab972 commit 702698a

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

docs/cli/hooks.mdx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ An empty matcher, omitted matcher, or `"*"` matches everything.
8080

8181
## Event types
8282

83-
These are the event names currently supported by the CLI hooks system:
83+
Continue accepts the Claude Code-compatible hook schema, but the CLI only
84+
emits a smaller set of events today.
85+
86+
These are the event names currently emitted by the CLI hooks system:
8487

8588
| Event | Matcher runs against |
8689
|-------|----------------------|
@@ -93,14 +96,13 @@ These are the event names currently supported by the CLI hooks system:
9396
| `SessionEnd` | `reason` |
9497
| `Stop` | No matcher support |
9598
| `Notification` | `notification_type` |
96-
| `SubagentStart` | `agent_type` |
97-
| `SubagentStop` | `agent_type` |
9899
| `PreCompact` | `trigger` |
99-
| `ConfigChange` | `source` |
100-
| `TeammateIdle` | No matcher support |
101-
| `TaskCompleted` | No matcher support |
102-
| `WorktreeCreate` | No matcher support |
103-
| `WorktreeRemove` | No matcher support |
100+
101+
The hook schema also includes additional Claude-compatible event names such as
102+
`PermissionRequest`, `SubagentStart`, `SubagentStop`, `ConfigChange`,
103+
`TeammateIdle`, `TaskCompleted`, `WorktreeCreate`, and `WorktreeRemove`.
104+
Those names are reserved for future support, but the Continue CLI does not emit
105+
them yet, so configuring handlers for them will currently have no effect.
104106

105107
Hook handlers receive a JSON payload on stdin or in the HTTP request body. Every event includes common context such as:
106108

0 commit comments

Comments
 (0)