-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.example.json
More file actions
33 lines (33 loc) · 1.45 KB
/
Copy pathsettings.example.json
File metadata and controls
33 lines (33 loc) · 1.45 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
{
"_comment": "Example Claude Code hook wiring for claude-craft-kit. Copy the hooks block into your ~/.claude/settings.json and adjust paths if your CLAUDE_DIR differs. Brain-coupled hooks are listed but inert until BRAIN_ENABLED=true (see config.example.sh).",
"hooks": {
"SessionStart": [
{ "hooks": [
{ "type": "command", "command": "python3 ~/.claude/hooks/session_start.py" },
{ "type": "command", "command": "python3 ~/.claude/hooks/mcp_restore_guard.py" }
] }
],
"UserPromptSubmit": [
{ "hooks": [
{ "type": "command", "command": "python3 ~/.claude/hooks/track.py" },
{ "type": "command", "command": "python3 ~/.claude/hooks/consume_prompt.py" }
] }
],
"PreToolUse": [
{ "matcher": "Bash", "hooks": [
{ "type": "command", "command": "bash ~/.claude/hooks/gitleaks_guard.sh" },
{ "type": "command", "command": "bash ~/.claude/hooks/pr_security_scan.sh" },
{ "type": "command", "command": "python3 ~/.claude/hooks/ruff_workflow_guard.py" }
] },
{ "matcher": "Write|Edit", "hooks": [
{ "type": "command", "command": "bash ~/.claude/hooks/prd_guard.sh" }
] },
{ "matcher": "mcp__memory__remember", "hooks": [
{ "type": "command", "command": "python3 ~/.claude/hooks/memory_name_guard.py" }
] }
],
"Stop": [
{ "hooks": [ { "type": "command", "command": "python3 ~/.claude/hooks/stop_gate.py" } ] }
]
}
}