-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.json
More file actions
49 lines (49 loc) · 1.21 KB
/
settings.json
File metadata and controls
49 lines (49 loc) · 1.21 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
{
"permissions": {
"allow": [
"Bash(*)",
"Read(*)",
"Edit(*)",
"Write(*)",
"mcp__claude_ai_Linear__*",
"mcp__linear__*"
],
"deny": [
"Bash(rm -rf /)",
"Bash(rm -rf ~)",
"Bash(rm -rf /*)",
"Bash(sudo rm *)",
"Bash(chmod 777 *)",
"Bash(git push --force*)",
"Bash(git push * --force*)",
"Read(~/.ssh/id_*)",
"Read(~/.aws/credentials)",
"Read(~/.aws/config)",
"Read(/etc/shadow)"
]
},
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "file=$(jq -r '.tool_input.file_path' 2>/dev/null); if [ -n \"$file\" ] && command -v prettier >/dev/null 2>&1; then prettier --write \"$file\" 2>/dev/null || true; fi"
}
]
}
],
"Notification": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"' 2>/dev/null || notify-send 'Claude Code' 'Needs your attention' 2>/dev/null || true"
}
]
}
]
}
}