Hey all - was wondering if there are any plans to support something like Hooks - Anthropic in Claude Code?
I’ve been building an extension to git blame that lets enterprises track the code in their repositories that was generated by AI vs Humans. It needs to be triggered after your fast apply step runs and a few of the early users have been asking me for Cursor support. I tried building a VSCode extension but none of the Cursor specific events seem accessible.
Hooks would go a long way towards this (and other) use cases.
Here’s an example of what they do with Claude Code
{
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "git-ai checkpoint"
}
]
}
],
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "git-ai checkpoint --author \"Claude Code\""
}
]
}
]
}
}