Skip to content

Commit f66ca72

Browse files
blafourcadeclaude
andcommitted
fix(aidd-context): correct hooks.json format for Claude Code and Copilot
Was using custom array format — correct format is object map keyed by event name. Use ${CLAUDE_PLUGIN_ROOT} (supported by both Claude Code and Copilot) to reference the hook script. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c64a2cb commit f66ca72

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
2-
"hooks": [
3-
{
4-
"event": "SessionStart",
5-
"matcher": "startup|resume",
6-
"command": "node",
7-
"args": ["./hooks/update_memory.js"]
8-
}
9-
]
2+
"hooks": {
3+
"SessionStart": [
4+
{
5+
"hooks": [
6+
{
7+
"type": "command",
8+
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/update_memory.js"
9+
}
10+
]
11+
}
12+
]
13+
}
1014
}

0 commit comments

Comments
 (0)