mirror of
https://github.com/rtk-ai/rtk.git
synced 2026-09-19 07:33:17 +08:00
bd10b002d0
- 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
Cursor IDE Hooks
Part of
hooks/— see alsosrc/hooks/for installation code
Specifics
- Same delegating pattern as Claude Code hook but outputs Cursor's JSON format (
permission/updated_inputinstead ofhookSpecificOutput/updatedInput) - Returns
{}(empty JSON) when no rewrite applies -- Cursor requires JSON output for all code paths - Requires
jqandrtk >= 0.23.0