Programmable Hooks

Just saw in the AWS Kiro IDE hooks. Definitely want something like this in cursor. Ability to define what the agent should do when certain things happen in codebase. For example, every time I save a file it could automatically create a test for it and make the code conciser or add docs. It should be flexible enough to define any agentic workflow to run at any point something changes in codebase.

Hey, thanks for the feature request, we’ll consider it.

I see this was implemented in latest beta release, but I am not sure how to make these hooks.