Cursor CLI doesn't send all events defined in hooks

Hey! Yes, official hook support in the CLI is an active part of the team’s roadmap.

Current status:

  • Cursor CLI only supports the beforeShellExecution and afterShellExecution hooks
  • The config is the same as in the IDE. Use .cursor/hooks.json in your project, or ~/.cursor/hooks.json globally
  • Full support for all hook events, like in the IDE, is in development. There’s no ETA yet

The latest CLI announcement (Jan 8, 2026) included a hooks performance improvement, 10 to 20x faster with parallel execution: Cursor CLI (Jan 8, 2026): New commands and performance improvement

You can follow the discussion here: Hooks for Cursor CLI (aka cursor-agent)