Repository navigation
Expand file tree
/
Copy pathsettings.hooks.example.json
More file actions
42 lines (42 loc) · 1.59 KB
/
Copy pathsettings.hooks.example.json
File metadata and controls
42 lines (42 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"hooks": {
"SessionStart": [
{
"matcher": "compact",
"hooks": [
{ "type": "command", "command": "bash ~/.claude/hooks/post-compact-restore.sh" },
{ "type": "command", "command": "bash ~/.claude/hooks/post-compact-context.sh" }
]
},
{
"matcher": "",
"hooks": [
{ "type": "command", "command": "bash ~/.claude/hooks/session-start-project.sh" },
{ "type": "command", "command": "python ~/.claude/scripts/skillopt-ready.py --hook", "timeout": 10 },
{ "type": "command", "command": "python ~/.claude/scripts/harness-ready.py --hook", "timeout": 10 },
{ "type": "command", "command": "python ~/.claude/scripts/metrics.py --hook", "timeout": 20 },
{ "type": "command", "command": "python ~/.claude/scripts/check-agent-models.py --hook", "timeout": 15 },
{ "type": "command", "command": "python ~/.claude/scripts/outcome-due.py --hook", "timeout": 15 },
{ "type": "command", "command": "python ~/.claude/scripts/memory-doctor.py --hook", "timeout": 10 }
]
}
],
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{ "type": "command", "command": "bash ~/.claude/hooks/pre-commit-check.sh" },
{ "type": "command", "command": "bash ~/.claude/hooks/verification-gate.sh", "timeout": 120 }
]
}
],
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{ "type": "command", "command": "bash ~/.claude/hooks/lint-on-edit.sh", "timeout": 30 }
]
}
]
}
}