-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.json
More file actions
166 lines (166 loc) · 5.4 KB
/
settings.json
File metadata and controls
166 lines (166 loc) · 5.4 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"includeCoAuthoredBy": false,
"permissions": {
"allow": [
"Read(/tmp/claude/**)",
"Edit(/tmp/claude/**)",
"Write(/tmp/claude/**)",
"Bash(mkdir -p /tmp/claude*)",
"Bash(claude:*)",
"Bash(sed -n:*)",
"Bash(grep:*)",
"Bash(mcpl:*)",
"Bash(git -C:*)",
"Bash(prek:*)",
"Bash(~/.claude/scripts/session-start-check.sh:*)",
"Bash(~/.claude/scripts/my-notifier.sh:*)",
"Bash(uv run ~/.claude/scripts/rule-injector.py:*)",
"Bash(uv run ~/.claude/scripts/rule-enforcer.py:*)",
"Bash(uv run ~/.claude/scripts/git-protection.py:*)",
"Grep",
"Bash(myk-claude-tools:*)"
]
},
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "~/.claude/scripts/my-notifier.sh"
}
]
}
],
"PreToolUse": [
{
"matcher": "TodoWrite|Bash",
"hooks": [
{
"type": "command",
"command": "uv run ~/.claude/scripts/rule-enforcer.py"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "uv run ~/.claude/scripts/git-protection.py"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "prompt",
"prompt": "You are a security gate protecting against catastrophic OS destruction. Analyze: $ARGUMENTS\n\nBLOCK if the command would:\n- Delete system directories: /, /boot, /etc, /usr, /bin, /sbin, /lib, /var, /home\n- Write to disk devices: dd to /dev/sda, /dev/nvme, etc.\n- Format filesystems: mkfs on any device\n- Remove critical files: /etc/fstab, /etc/passwd, /etc/shadow, kernel/initramfs\n- Recursive delete with sudo or as root\n- Chain destructive commands after safe ones using &&, ;, |, ||\n\nASK (requires user confirmation) if:\n- Command uses sudo but is not clearly destructive\n- Deletes files outside system directories but looks risky\n\nALLOW all other commands - this gate only guards against OS destruction.\n\nIMPORTANT: Use your judgment. If a command seems potentially destructive even if not explicitly listed above, ASK the user for confirmation.\n\nRespond with JSON: {\"decision\": \"approve\" or \"block\" or \"ask\", \"reason\": \"brief explanation\"}",
"timeout": 10000
}
]
}
],
"UserPromptSubmit": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "uv run ~/.claude/scripts/rule-injector.py"
}
]
}
],
"SessionStart": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "~/.claude/scripts/session-start-check.sh",
"timeout": 5000
}
]
}
]
},
"statusLine": {
"type": "command",
"command": "bash ~/.claude/statusline.sh",
"padding": 0
},
"enabledPlugins": {
"pyright-lsp@claude-plugins-official": true,
"jdtls-lsp@claude-plugins-official": true,
"lua-lsp@claude-plugins-official": true,
"github@claude-plugins-official": true,
"myk-review@myk-org": true,
"myk-github@myk-org": true,
"code-simplifier@claude-plugins-official": true,
"playground@claude-plugins-official": true,
"frontend-design@claude-plugins-official": true,
"code-review@claude-plugins-official": true,
"superpowers@claude-plugins-official": true,
"feature-dev@claude-plugins-official": true,
"commit-commands@claude-plugins-official": true,
"security-guidance@claude-plugins-official": true,
"claude-md-management@claude-plugins-official": true,
"pr-review-toolkit@claude-plugins-official": true,
"claude-code-setup@claude-plugins-official": true,
"gopls-lsp@claude-plugins-official": true,
"coderabbit@claude-plugins-official": true,
"cli-anything@cli-anything": true,
"worktrunk@worktrunk": true,
"myk-acpx@myk-org": true
},
"extraKnownMarketplaces": {
"cli-anything": {
"source": {
"source": "github",
"repo": "HKUDS/CLI-Anything"
}
},
"worktrunk": {
"source": {
"source": "github",
"repo": "max-sixty/worktrunk"
}
}
},
"alwaysThinkingEnabled": true,
"skipDangerousModePermissionPrompt": true,
"autoDreamEnabled": true,
"_scriptsNote": "Script entries must be duplicated in both permissions.allow and allowedTools arrays. When adding new scripts, update BOTH locations.",
"allowedTools": [
"Edit(/tmp/claude/**)",
"Write(/tmp/claude/**)",
"Read(/tmp/claude/**)",
"Bash(mkdir -p /tmp/claude*)",
"Bash(claude:*)",
"Bash(sed -n:*)",
"Bash(grep:*)",
"Bash(mcpl:*)",
"Bash(git -C:*)",
"Bash(prek:*)",
"Grep",
"Bash(~/.claude/scripts/session-start-check.sh:*)",
"Bash(~/.claude/scripts/my-notifier.sh:*)",
"Bash(uv run ~/.claude/scripts/rule-injector.py:*)",
"Bash(uv run ~/.claude/scripts/rule-enforcer.py:*)",
"Bash(uv run ~/.claude/scripts/git-protection.py:*)",
"Bash(myk-claude-tools:*)"
],
"env": {
"DISABLE_TELEMETRY": "1",
"DISABLE_ERROR_REPORTING": "1",
"CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY": "1"
},
"feedbackSurveyRate": 0,
"feedbackSurveyState": {
"lastShownTime": 1754082998309
}
}