Repository navigation
Expand file tree
/
Copy pathsettings.example.json
More file actions
91 lines (91 loc) · 2.43 KB
/
Copy pathsettings.example.json
File metadata and controls
91 lines (91 loc) · 2.43 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"$comment": "Starting point only. Deliberately conservative: permissions default to prompting, and the only hooks wired are the two the cross-thread work register needs to function at all. Read README.md before widening either. Merge into your own ~/.claude/settings.json \u2014 do not blindly overwrite it.",
"permissions": {
"defaultMode": "default",
"allow": [
"Bash(git status:*)",
"Bash(git diff:*)",
"Bash(git log:*)",
"Bash(git branch:*)",
"Bash(git add:*)",
"Bash(pnpm test:*)",
"Bash(pnpm lint:*)",
"Bash(pnpm typecheck:*)",
"Bash(pnpm build:*)"
],
"deny": [
"Bash(git push --force)",
"Bash(git push --force *)",
"Bash(git push * --force)",
"Bash(git push * --force *)",
"Bash(rm -rf /)",
"Bash(sudo rm *)",
"Bash(curl * | bash)",
"Bash(wget * | bash)",
"Read(node_modules/**)",
"Read(dist/**)",
"Read(.next/**)",
"Read(coverage/**)",
"Read(*.lock)"
]
},
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "f=\"$HOME\"/.claude/hooks/thread-register-identity.py; [ -f \"$f\" ] || exit 0; exec python3 \"$f\"",
"timeout": 10
}
]
}
],
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "f=\"$HOME\"/.claude/hooks/thread-register-gate.py; [ -f \"$f\" ] || exit 0; exec python3 \"$f\"",
"timeout": 10
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "f=\"$HOME\"/.claude/hooks/heavy-job-gate.py; [ -f \"$f\" ] || exit 0; exec python3 \"$f\"",
"timeout": 10
}
]
}
],
"PostToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "f=\"$HOME\"/.claude/hooks/thread-register-gate.py; [ -f \"$f\" ] || exit 0; exec python3 \"$f\"",
"timeout": 10
}
]
}
],
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "f=\"$HOME\"/.claude/hooks/thread-register-signoff.py; [ -f \"$f\" ] || exit 0; exec python3 \"$f\"",
"timeout": 10
}
]
}
]
}
}