Files
cursor__plugins/advisor/hooks/hooks.json
Eric Zakariasson 93b00b89ef fix(advisor): address hook scripts via CURSOR_PLUGIN_ROOT (#315)
Plugin hooks do not run from the plugin directory, so ./hooks/... paths
fail with exit 127 from any other cwd. Use bash "${CURSOR_PLUGIN_ROOT}/hooks/..."
like continual-learning, which indexes and runs cleanly. Also scopes the
briefing's transcript_path line to the bound conversation, completing the
one-off-consult fix from #314.
2026-09-04 12:37:48 +00:00

28 lines
580 B
JSON

{
"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
}
]
}
}