Files
othmanadi__planning-with-files/hooks/hooks.json
2026-08-29 20:05:10 +02:00

102 lines
2.2 KiB
JSON

{
"description": "Planning with Files lifecycle integration for Claude Code",
"hooks": {
"SessionStart": [
{
"matcher": "startup|resume|clear|compact",
"hooks": [
{
"type": "command",
"command": "sh",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
"session-start"
],
"timeout": 10,
"statusMessage": "Restoring planning context"
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "sh",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
"user-prompt-submit"
],
"timeout": 10
}
]
}
],
"PreToolUse": [
{
"matcher": "Write|Edit|Bash|Read|Glob|Grep",
"hooks": [
{
"type": "command",
"command": "sh",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
"pre-tool-use"
],
"timeout": 10
}
]
}
],
"PostToolUse": [
{
"matcher": "Write|Edit|Bash",
"hooks": [
{
"type": "command",
"command": "sh",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
"post-tool-use"
],
"timeout": 10
}
]
}
],
"PreCompact": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "sh",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
"pre-compact"
],
"timeout": 10
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "sh",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
"stop"
],
"timeout": 10,
"statusMessage": "Checking planning completion"
}
]
}
]
}
}