Claude hook matchers for Skill, AskUserQuestion, CronCreate, and Monitor never fire

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

On Cursor CLI 2026.10.10-6b851c2 (lab channel; the prod build 2026.10.01-e373342 has the same hook-rewrite bytes), PreToolUse and PostToolUse matchers are split on | and tested with new RegExp(matcher) against the hook tool_name. The rewrite map matches the published table at https://cursor.com/docs/reference/third-party-hooks: Bash becomes Shell, Edit and Write become Write, Task stays Task, and Glob is dropped.

AskUserQuestion, CronCreate, and ask_user_question do not occur in that CLI bundle. Skill and Monitor are not hook toolName values. A Claude .claude/settings.json matcher for those tools therefore cannot fire. Task is documented as supported, and we have not observed a hook tool_name of Task on this CLI.

Could you document the tool_name values for Skill, AskUserQuestion, CronCreate, and Monitor, or emit those names so an existing Claude matcher can match?

Steps to Reproduce

  1. On Cursor CLI 2026.10.10-6b851c2 (lab channel) and prod build 2026.10.01-e373342, the hook-rewrite bytes are the same.
  2. PreToolUse and PostToolUse matchers are split on | and tested with new RegExp(matcher) against the hook tool_name.
  3. The rewrite map matches the published table at https://cursor.com/docs/reference/third-party-hooks: Bash becomes Shell, Edit and Write become Write, Task stays Task, and Glob is dropped.
  4. AskUserQuestion, CronCreate, and ask_user_question do not occur in that CLI bundle. Skill and Monitor are not hook toolName values.
  5. A Claude .claude/settings.json matcher for those tools therefore cannot fire.

Expected Behavior

Could you document the tool_name values for Skill, AskUserQuestion, CronCreate, and Monitor, or emit those names so an existing Claude matcher can match?

Operating System

Linux

Version Information

CLI:
CLI Version: 2026.10.10-6b851c2 (lab channel)
Prod build also measured: 2026.10.01-e373342
The hook-rewrite bytes are the same on both.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @deruelle, you’re right that only the mapped names get translated, so here’s what to match on the CLI today:

  • Task: use Task|Subagent|mcp_task. The subagent tool reports a different name depending on the model (for example, Subagent on GPT-5.6 Sol). Use PreToolUse for it. PostToolUse on the subagent call itself doesn’t fire in every setup right now, which is an issue we’re tracking.
  • Skill: match Read and check that tool_input.file_path ends in SKILL.md, since skills load by reading that file.
  • AskUserQuestion: no hook fires for it right now. This is something we’ve seen before, and you can follow this thread for updates.
  • CronCreate / Monitor: the CLI has no equivalent tool, so there’s nothing to match.

Hi! Wanted to note I’ve also been running into these issues. Specifically with matching PostToolUse on subagent calls and with running tool hooks on skill usage.

For the PostToolUse issue, I’ve been running into problems where a task successfully launches and completes but the hook seems to never catch the event. Would you be able to share what setups this hook currently fires in and if there’s a timeline for when this issue will get fixed?

For skills, ideally I don’t want to launch a hook on every Read and would rather either have matcher for tool hooks like Claude’s Skill matcher. Another alternative would be to have a matcher on beforeFileRead where it matches on file path. I was wondering if there’s any plans to add more matcher types for these hooks?

Thanks!

Hey @deruelle,

Quick update on the subagent hooks: PostToolUse on the subagent call itself now fires on the CLI (and postToolUseFailure fires when a subagent errors), and any additional_context your hook returns is passed back to the parent agent. This has been addressed on our side and will be rolled out soon if it hasn’t been already, so there’s nothing to update.

The subagent tool name still depends on the model, so keep using Task|Subagent|mcp_task as the matcher for both PreToolUse and PostToolUse. For skills, the Read matcher with a SKILL.md path check is still the way to catch them for now.

Could you give it another try and let me know if PostToolUse still misses a finished subagent?

cc @Adele_Chen

Hi @Colin , just tried postToolUse and can confirm it works on my end, thanks!