Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:36:20 +08:00
commit d7dbabd36a
6 changed files with 348 additions and 0 deletions

29
hooks/hooks.json Normal file
View File

@@ -0,0 +1,29 @@
{
"description": "Claude-Handoff: Intelligent context transfer via /compact detection",
"hooks": {
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/entrypoints/pre-compact.sh",
"description": "Save session state before compact for handoff generation"
}
]
}
],
"SessionStart": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/entrypoints/session-start.sh",
"description": "Generate and inject handoff context after /compact",
"timeout": 60
}
]
}
]
}
}