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
- Jobs
- Guardrails
Credit
- Made by
- cursor
- Original
- github.com/cursor/plugins/blob/9580c23696ac8d7abed0c166f2f991…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- Entries under `hooks` in .claude/settings.json
- Hook on afterFileEdit
- Hook on afterAgentResponse
- Hook on subagentStop
- Hook on stop
- Runs scripts
- Yes
- ${CURSOR_PLUGIN_ROOT}/hooks/mark-pending.sh
- ${CURSOR_PLUGIN_ROOT}/hooks/capture-response.sh
- ${CURSOR_PLUGIN_ROOT}/hooks/record-consult.sh
- ${CURSOR_PLUGIN_ROOT}/hooks/stop-hook.sh
- Uses the network
- None found
- Needs secrets
- None found
- Reads environment variables
- CURSOR_PLUGIN_ROOT
- Source revision
- 9580c23696ac
- Licence
- MIT
- Last activity
- 26 Nov 2026
- Source changed after the scan
- Yes
- Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
{
"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
}
]
}
}