settings.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. {
  2. "_readme": "Global user settings \u2014 place at ~/.claude/settings.json. Applies to ALL projects. Never commit this file.",
  3. "cleanupPeriodDays": 30,
  4. "permissions": {
  5. "defaultMode": "default",
  6. "disableBypassPermissionsMode": "disable",
  7. "deny": [
  8. "Bash(rm -rf *)",
  9. "Bash(rm -rf /*)",
  10. "Bash(rmdir *)",
  11. "Bash(git push --force*)",
  12. "Bash(git push -f*)",
  13. "Bash(git reset --hard*)",
  14. "Bash(git clean -fd*)",
  15. "Bash(sudo rm*)",
  16. "Bash(sudo chmod*)",
  17. "Bash(sudo chown*)",
  18. "Bash(sudo dd*)",
  19. "Bash(su *)",
  20. "Bash(curl * | bash)",
  21. "Bash(wget * | bash)",
  22. "Bash(curl * | sh)",
  23. "Bash(wget * | sh)",
  24. "Bash(chmod 777 *)",
  25. "Bash(chmod -R 777 *)",
  26. "Bash(ssh *)",
  27. "Bash(scp *)",
  28. "Bash(rsync *)",
  29. "Bash(nc *)",
  30. "Bash(netcat *)",
  31. "Bash(kill -9 *)",
  32. "Bash(killall *)",
  33. "Bash(pkill *)",
  34. "Bash(crontab *)",
  35. "Bash(systemctl *)",
  36. "Bash(service *)",
  37. "Bash(npm install -g *)",
  38. "Read(**/.env)",
  39. "Read(**/.env.*)",
  40. "Read(**/secrets/**)",
  41. "Read(**/*.pem)",
  42. "Read(**/*.key)",
  43. "Read(**/*.p12)",
  44. "Read(**/*.pfx)",
  45. "Read(**/id_rsa*)",
  46. "Read(**/id_ed25519*)",
  47. "Read(**/.ssh/**)",
  48. "Read(**/credentials)",
  49. "Read(**/credentials.json)",
  50. "Read(**/.aws/credentials)",
  51. "Read(**/.azure/**)",
  52. "Write(**/.env)",
  53. "Write(**/.env.*)",
  54. "Write(**/secrets/**)",
  55. "Write(**/*.pem)",
  56. "Write(**/*.key)"
  57. ],
  58. "ask": [
  59. "Bash(git push *)",
  60. "Bash(git push)",
  61. "Bash(docker run *)",
  62. "Bash(docker exec *)",
  63. "Bash(docker-compose up*)",
  64. "Bash(docker compose up*)",
  65. "Bash(brew install *)",
  66. "Bash(apt install *)",
  67. "Bash(apt-get install *)",
  68. "Bash(dnf install *)",
  69. "Bash(pacman -S *)",
  70. "WebSearch",
  71. "WebFetch"
  72. ],
  73. "allow": [
  74. "Bash(git status)",
  75. "Bash(git log*)",
  76. "Bash(git diff*)",
  77. "Bash(git branch*)",
  78. "Bash(git fetch*)",
  79. "Bash(git pull*)",
  80. "Bash(git add *)",
  81. "Bash(git commit*)",
  82. "Bash(git checkout *)",
  83. "Bash(git switch *)",
  84. "Bash(git stash*)",
  85. "Bash(git tag*)",
  86. "Bash(git show*)",
  87. "Bash(ls *)",
  88. "Bash(ls)",
  89. "Bash(find *)",
  90. "Bash(cat *)",
  91. "Bash(head *)",
  92. "Bash(tail *)",
  93. "Bash(grep *)",
  94. "Bash(rg *)",
  95. "Bash(fd *)",
  96. "Bash(wc *)",
  97. "Bash(echo *)",
  98. "Bash(pwd)",
  99. "Bash(which *)",
  100. "Bash(type *)",
  101. "Bash(env)",
  102. "Bash(printenv *)",
  103. "Bash(whoami)",
  104. "Bash(uname *)",
  105. "Bash(mkdir -p *)",
  106. "Bash(touch *)",
  107. "Bash(cp *)",
  108. "Bash(mv *)",
  109. "Bash(jq *)",
  110. "Bash(yq *)",
  111. "Bash(sed *)",
  112. "Bash(awk *)",
  113. "Bash(sort *)",
  114. "Bash(uniq *)",
  115. "Bash(xargs *)",
  116. "Bash(tr *)",
  117. "Bash(cut *)",
  118. "Bash(diff *)",
  119. "Read(**/*.md)",
  120. "Read(**/*.txt)",
  121. "Read(**/*.json)",
  122. "Read(**/*.yaml)",
  123. "Read(**/*.yml)",
  124. "Read(**/*.toml)",
  125. "Read(**/*.lock)",
  126. "Read(**/*.gitignore)",
  127. "Read(**/*.dockerignore)",
  128. "Read(**/.claudeignore)",
  129. "Read(**/Makefile)",
  130. "Read(**/Dockerfile*)",
  131. "Read(**/docker-compose*)"
  132. ],
  133. "additionalDirectories": []
  134. },
  135. "hooks": {
  136. "SessionStart": [
  137. {
  138. "hooks": [
  139. {
  140. "type": "command",
  141. "command": "bash ~/.claude/hooks/session-start.sh"
  142. }
  143. ]
  144. }
  145. ]
  146. }
  147. }