Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:54:29 +08:00
commit cabaf61961
8 changed files with 360 additions and 0 deletions

47
hooks/hooks.json Normal file
View File

@@ -0,0 +1,47 @@
{
"description": "jjagent hooks for tracking Claude Code sessions as jj changes",
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "jjagent claude hooks UserPromptSubmit"
}
]
}
],
"PreToolUse": [
{
"matcher": "Edit|MultiEdit|Write",
"hooks": [
{
"type": "command",
"command": "jjagent claude hooks PreToolUse"
}
]
}
],
"PostToolUse": [
{
"matcher": "Edit|MultiEdit|Write",
"hooks": [
{
"type": "command",
"command": "jjagent claude hooks PostToolUse"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "jjagent claude hooks Stop"
}
]
}
]
}
}