目前我的完整~/.claude/settings.json
{
"permissions": {
"defaultMode": "bypassPermissions",
"allow": [
"Bash(*)",
"Read(*)",
"Edit(*)",
"Write(*)",
"WebFetch(*)",
"WebSearch(*)",
"Glob(*)",
"Grep(*)",
"NotebookEdit(*)",
"Agent(*)"
],
"deny": [
"Bash(rm -rf /)",
"Bash(rm -rf /*)",
"Bash(git push --force origin main)",
"Bash(git push --force origin master)"
]
},
"attribution": {
"commit": "",
"pr": ""
},
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/check-secrets.sh"
}
]
}
]
}
显示更多