Skip to content
63 changes: 61 additions & 2 deletions chezmoi/.chezmoitemplates/claude-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,82 @@
"autoCompactEnabled": true,
"awaySummaryEnabled": true,
"fileCheckpointingEnabled": true,
"outputStyle": "Proactive",
"preferredNotifChannel": "terminal_bell",
"permissions": {
"defaultMode": "auto",
"disableBypassPermissionsMode": "disable"
"disableBypassPermissionsMode": "disable",
"ask": [
"Edit(~/.claude/settings.json)",
"Edit(/.claude/settings.json)",
"Edit(/.claude/settings.local.json)",
"Read(**/.env)",
"Edit(**/.env)",
"Read(**/.env.*)",
"Edit(**/.env.*)"
],
"deny": [
"Read(**/credentials*)",
"Edit(**/credentials*)",
"Read(**/secrets*)",
"Edit(**/secrets*)",
"Read(~/.aws/**)",
"Edit(~/.aws/**)",
"Read(~/.gcp/**)",
"Edit(~/.gcp/**)",
"Read(~/.azure/**)",
"Edit(~/.azure/**)",
"Read(~/.ssh/**)",
"Edit(~/.ssh/**)",
"Read(~/.gnupg/**)",
"Edit(~/.gnupg/**)",
"Read(~/.netrc)",
"Edit(~/.netrc)",
"Read(~/.docker/config.json)",
"Edit(~/.docker/config.json)",
"Read(~/.kube/**)",
"Edit(~/.kube/**)"
]
Comment thread
yxtay marked this conversation as resolved.
Resolved
},
"sandbox": {
"enabled": true,
"enableWeakerNetworkIsolation": true,
Comment thread
yxtay marked this conversation as resolved.
Resolved
"credentials": {
"files": [
{ "path": "~/.aws", "mode": "deny" },
{ "path": "~/.azure", "mode": "deny" },
{ "path": "~/.docker/config.json", "mode": "deny" },
{ "path": "~/.gcp", "mode": "deny" },
{ "path": "~/.gnupg", "mode": "deny" },
{ "path": "~/.kube", "mode": "deny" },
{ "path": "~/.netrc", "mode": "deny" },
{ "path": "~/.ssh", "mode": "deny" }
]
},
Comment thread
yxtay marked this conversation as resolved.
Resolved
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
"excludedCommands": ["docker"],
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
"filesystem": {
"allowWrite": [
"~/.cargo",
"~/.gradle",
"~/.m2",
"~/.npm",
"~/Library/pnpm",
"~/Library/Python",
"~/.yarn",
"~/.cache",
"~/Library/Caches"
"~/Library/Caches",
"~/go/pkg"
]
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
},
"network": {
"allowedDomains": [
"*.ai",
Comment thread
yxtay marked this conversation as resolved.
Resolved
"*.co",
"*.com",
"*.dev",
"*.io",
"*.net",
"*.org"
Comment thread
yxtay marked this conversation as resolved.
Resolved
]
}
},
Expand Down