Skip to content

Commit 703c0af

Browse files
Add tty for lefthook, and allow local bindings for clippy --fix (wtf?)
1 parent 4d8f8c1 commit 703c0af

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

claude/roles/base.jsonc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@
9999
// Permits git commit signing, git fsmonitor, Docker socket, etc.
100100
"allowAllUnixSockets": true,
101101
"allowedHosts": ["api.anthropic.com", "code.claude.com"],
102+
// local dev servers, and other things that are weird and listen (clippy
103+
// --fix for some reason??)
104+
"allowLocalBinding": true
102105
},
106+
"filesystem": {
107+
"allowWrite": [
108+
// interactive terminals for things like lefthook interactive
109+
"/dev/ptmx",
110+
"/dev/ttys*"
111+
]
112+
}
103113
},
104114
}

claude/stacks/rust.jsonc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Rust ecosystem
33
"permissions": {
44
"allow": [
5+
"Read(~/.cargo/registry/)",
56
"Bash(cargo bench:*)",
67
"Bash(cargo build:*)",
78
"Bash(cargo check:*)",
@@ -32,8 +33,10 @@
3233
"sandbox": {
3334
"network": {
3435
"allowedHosts": [
36+
"crates.io",
3537
"index.crates.io",
3638
"static.crates.io",
39+
"docs.rs"
3740
]
3841
},
3942

0 commit comments

Comments
 (0)