Files
Nicolas Le Cam bd10b002d0 Follow up on #2609:
- Fix documentation, Cursor now uses native rust binary hook
- Fix rtk-rewrite.sh shell script to fail on any exit code except 0 and 3
- Test that "continue": true is also present for "permission": "ask" and sync shell rewrite hook
2026-06-30 22:18:39 +02:00
..
2026-06-30 22:18:39 +02:00

Cursor IDE Hooks

Part of hooks/ — see also src/hooks/ for installation code

Specifics

  • Same delegating pattern as Claude Code hook but outputs Cursor's JSON format (permission/updated_input instead of hookSpecificOutput/updatedInput)
  • Returns {} (empty JSON) when no rewrite applies -- Cursor requires JSON output for all code paths
  • Requires jq and rtk >= 0.23.0