Cursor CLI hooks

Feature request for product/service

Cursor CLI

Describe the request

It appears hooks (~/.cursor/hooks.json) only work with the IDE, not the CLI - even with the latest changelog which makes it sound like hooks came to CLI:

The CLI is where I need hooks most, to e.g. wire up a Discord notification for the stop event so I can flip to that terminal and tend to it when needed (I’ve hacked something here: GitHub - dnielbowen/cursor-notifier: Sends a Discord notification when Cursor CLI agent instances go idle).

The ~/.cursor/hooks.json I’ve configured works great for the Cursor IDE, but I don’t need it there since it already notifies me on idle (which is my CLI hooks use-case).

Also, assuming hooks support is eventually added for Cursor CLI, there should be a parameter or some way to distinguish that the event came from CLI, not the IDE, so I can filter out the IDE events.