Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:51:50 +08:00
commit 13ef82d93b
5 changed files with 268 additions and 0 deletions

59
hooks/hooks.json Normal file
View File

@@ -0,0 +1,59 @@
{
"description": "Automatically manage sgrep watch during Claude Code sessions",
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start.sh",
"timeout": 30
}
]
},
{
"matcher": "resume",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start.sh",
"timeout": 30
}
]
},
{
"matcher": "clear",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start.sh",
"timeout": 30
}
]
},
{
"matcher": "compact",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start.sh",
"timeout": 30
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-stop.sh",
"timeout": 10
}
]
}
]
}
}