Skip to content

Commit 6fa2971

Browse files
committed
Add more general permissions allow list
1 parent 16e5620 commit 6fa2971

3 files changed

Lines changed: 150 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.config/gcloud
2+
.config/iterm2
3+
.config/dnd-lore-review

claude_settings.json

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(basename:*)",
5+
"Bash(brew --version)",
6+
"Bash(brew config)",
7+
"Bash(brew info:*)",
8+
"Bash(brew list:*)",
9+
"Bash(brew search:*)",
10+
"Bash(cargo --version)",
11+
"Bash(cargo doc:*)",
12+
"Bash(cargo info:*)",
13+
"Bash(cargo search:*)",
14+
"Bash(cat:*)",
15+
"Bash(cksum:*)",
16+
"Bash(cmp:*)",
17+
"Bash(comm:*)",
18+
"Bash(curl:*)",
19+
"Bash(cut:*)",
20+
"Bash(date)",
21+
"Bash(df:*)",
22+
"Bash(diff:*)",
23+
"Bash(dig:*)",
24+
"Bash(dirname:*)",
25+
"Bash(du:*)",
26+
"Bash(dune --version)",
27+
"Bash(echo:*)",
28+
"Bash(env)",
29+
"Bash(file:*)",
30+
"Bash(find:*)",
31+
"Bash(gh --version)",
32+
"Bash(gh auth status)",
33+
"Bash(gh issue list:*)",
34+
"Bash(gh issue view:*)",
35+
"Bash(gh label list:*)",
36+
"Bash(gh pr check:*)",
37+
"Bash(gh pr diff:*)",
38+
"Bash(gh pr list:*)",
39+
"Bash(gh pr view:*)",
40+
"Bash(gh release list:*)",
41+
"Bash(gh release view:*)",
42+
"Bash(gh repo view:*)",
43+
"Bash(gh run list:*)",
44+
"Bash(gh run view:*)",
45+
"Bash(gh run watch:*)",
46+
"Bash(gh search:*)",
47+
"Bash(gh status)",
48+
"Bash(gh workflow list:*)",
49+
"Bash(gh workflow view:*)",
50+
"Bash(git blame:*)",
51+
"Bash(git branch)",
52+
"Bash(git branch --list:*)",
53+
"Bash(git cat-file:*)",
54+
"Bash(git config --get:*)",
55+
"Bash(git config --list)",
56+
"Bash(git describe:*)",
57+
"Bash(git diff:*)",
58+
"Bash(git fetch:*)",
59+
"Bash(git grep:*)",
60+
"Bash(git log:*)",
61+
"Bash(git ls-files:*)",
62+
"Bash(git ls-tree:*)",
63+
"Bash(git reflog:*)",
64+
"Bash(git remote -v)",
65+
"Bash(git remote get-url:*)",
66+
"Bash(git rev-list:*)",
67+
"Bash(git rev-parse:*)",
68+
"Bash(git shortlog:*)",
69+
"Bash(git show:*)",
70+
"Bash(git stash list:*)",
71+
"Bash(git status:*)",
72+
"Bash(git submodule status:*)",
73+
"Bash(git tag)",
74+
"Bash(git tag --list:*)",
75+
"Bash(git worktree list:*)",
76+
"Bash(grep:*)",
77+
"Bash(head:*)",
78+
"Bash(host:*)",
79+
"Bash(hostname)",
80+
"Bash(id)",
81+
"Bash(jq:*)",
82+
"Bash(lake --version)",
83+
"Bash(lean --version)",
84+
"Bash(ls:*)",
85+
"Bash(md5:*)",
86+
"Bash(md5sum:*)",
87+
"Bash(node --version)",
88+
"Bash(npm --version)",
89+
"Bash(npm audit:*)",
90+
"Bash(npm list:*)",
91+
"Bash(npm view:*)",
92+
"Bash(nslookup:*)",
93+
"Bash(opam --version)",
94+
"Bash(opam info:*)",
95+
"Bash(opam list:*)",
96+
"Bash(opam show:*)",
97+
"Bash(ping:*)",
98+
"Bash(pip --version)",
99+
"Bash(pip list:*)",
100+
"Bash(pip show:*)",
101+
"Bash(printenv:*)",
102+
"Bash(pwd)",
103+
"Bash(python3 --version)",
104+
"Bash(realpath:*)",
105+
"Bash(rustc --version)",
106+
"Bash(rustup show:*)",
107+
"Bash(sha256sum:*)",
108+
"Bash(shasum:*)",
109+
"Bash(sort:*)",
110+
"Bash(stat:*)",
111+
"Bash(tail:*)",
112+
"Bash(tar -t:*)",
113+
"Bash(tr:*)",
114+
"Bash(traceroute:*)",
115+
"Bash(uname:*)",
116+
"Bash(uniq:*)",
117+
"Bash(unzip -l:*)",
118+
"Bash(uptime)",
119+
"Bash(wc:*)",
120+
"Bash(which:*)",
121+
"Bash(whoami)",
122+
"Bash(whois:*)",
123+
"Bash(z3 --version)",
124+
"Fetch",
125+
"Read(/private/tmp/**)",
126+
"Read(/private/var/folders/**)",
127+
"Read(/tmp/**)",
128+
"WebFetch(domain:docs.rs)",
129+
"WebFetch(domain:github.com)",
130+
"WebFetch(domain:opam.ocaml.org)",
131+
"WebFetch(domain:raw.githubusercontent.com)",
132+
"WebSearch"
133+
]
134+
},
135+
"model": "opus[1m]",
136+
"enabledPlugins": {
137+
"rust-analyzer-lsp@claude-plugins-official": true
138+
},
139+
"effortLevel": "high",
140+
"fileCheckpointingEnabled": false
141+
}

link.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ echo Created Emacs settings link
2929

3030
ConfigSettings=$PWD/.config
3131
ln -sf "$ConfigSettings" ~
32-
echo Created general config directory link
32+
echo Created general config directory link
33+
34+
ClaudeSettings=$PWD/claude_settings.json
35+
mkdir -p ~/.claude
36+
ln -sf "$ClaudeSettings" ~/.claude/settings.json
37+
echo Created Claude Code settings link

0 commit comments

Comments
 (0)