Cursor has introduced a Hooks system in version 1.7 that allows developers to intercept and modify agent behavior at defined lifecycle events. Hooks can be used to block shell commands, run formatters ...