advisor/hooks.json
Hooks that track file edits and responses for advisor mode, and record a consultation when the advisor subagent stops.
- Kind
- Hook
- Works with
- Cursor
- Source
- cursor/plugins @ 9580c23696ac
- Path
- advisor/hooks/hooks.json
- License
- MIT
- Jobs
- Guardrails
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
{
"version": 1,
"hooks": {
"afterFileEdit": [
{
"command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/mark-pending.sh\""
}
],
"afterAgentResponse": [
{
"command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/capture-response.sh\""
}
],
"subagentStop": [
{
"command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/record-consult.sh\"",
"matcher": "^advisor-subagent$"
}
],
"stop": [
{
"command": "bash \"${CURSOR_PLUGIN_ROOT}/hooks/stop-hook.sh\"",
"loop_limit": 3
}
]
}
}