{ "hooks": { "SessionStart": [ { "matcher": "startup|resume|compact", "hooks": [ { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/detect-project.sh\"", "shell": "bash", "timeout": 10, "async": false } ] } ], "PreToolUse": [ { "matcher": "Write|Edit", "hooks": [ { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/detect-file-type.sh\"", "shell": "bash", "timeout": 10 } ] } ] } }