settings.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. {
  2. "_readme": "Global user settings — 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. "Bash(bash -c *)",
  58. "Bash(eval *)",
  59. "Bash(exec *)",
  60. "Bash(find * -delete*)",
  61. "Bash(find * -exec rm*)",
  62. "Bash(find * -execdir rm*)",
  63. "Bash(perl -e *)",
  64. "Bash(ruby -e *)",
  65. "Bash(cat .env)",
  66. "Bash(cat .env.*)",
  67. "Bash(cat */.env)",
  68. "Bash(cat */.env.*)",
  69. "Bash(cat */secrets/*)",
  70. "Bash(cat */*.pem)",
  71. "Bash(cat */*.key)",
  72. "Bash(cat */id_rsa*)",
  73. "Bash(cat */id_ed25519*)",
  74. "Bash(cat */.aws/credentials)",
  75. "Bash(head .env)",
  76. "Bash(head .env.*)",
  77. "Bash(tail .env)",
  78. "Bash(tail .env.*)",
  79. "Bash(less .env)",
  80. "Bash(less .env.*)",
  81. "Bash(more .env)",
  82. "Bash(more .env.*)",
  83. "Bash(grep * .env)",
  84. "Bash(grep * .env.*)"
  85. ],
  86. "ask": [
  87. "Bash(git push *)",
  88. "Bash(git push)",
  89. "Bash(docker run *)",
  90. "Bash(docker exec *)",
  91. "Bash(docker-compose up*)",
  92. "Bash(docker compose up*)",
  93. "Bash(brew install *)",
  94. "Bash(apt install *)",
  95. "Bash(apt-get install *)",
  96. "Bash(dnf install *)",
  97. "Bash(pacman -S *)",
  98. "WebSearch",
  99. "WebFetch",
  100. "Bash(xargs *)",
  101. "Bash(sed -i *)",
  102. "Bash(sed -i'' *)"
  103. ],
  104. "allow": [
  105. "Bash(git status)",
  106. "Bash(git log*)",
  107. "Bash(git diff*)",
  108. "Bash(git branch*)",
  109. "Bash(git fetch*)",
  110. "Bash(git pull*)",
  111. "Bash(git add *)",
  112. "Bash(git commit*)",
  113. "Bash(git checkout *)",
  114. "Bash(git switch *)",
  115. "Bash(git stash*)",
  116. "Bash(git tag*)",
  117. "Bash(git show*)",
  118. "Bash(ls *)",
  119. "Bash(ls)",
  120. "Bash(find *)",
  121. "Bash(cat *)",
  122. "Bash(head *)",
  123. "Bash(tail *)",
  124. "Bash(grep *)",
  125. "Bash(rg *)",
  126. "Bash(fd *)",
  127. "Bash(wc *)",
  128. "Bash(echo *)",
  129. "Bash(pwd)",
  130. "Bash(which *)",
  131. "Bash(type *)",
  132. "Bash(env)",
  133. "Bash(printenv *)",
  134. "Bash(whoami)",
  135. "Bash(uname *)",
  136. "Bash(mkdir -p *)",
  137. "Bash(touch *)",
  138. "Bash(cp *)",
  139. "Bash(mv *)",
  140. "Bash(jq *)",
  141. "Bash(yq *)",
  142. "Bash(sed *)",
  143. "Bash(awk *)",
  144. "Bash(sort *)",
  145. "Bash(uniq *)",
  146. "Bash(tr *)",
  147. "Bash(cut *)",
  148. "Bash(diff *)",
  149. "Read(**/*.md)",
  150. "Read(**/*.txt)",
  151. "Read(**/*.json)",
  152. "Read(**/*.yaml)",
  153. "Read(**/*.yml)",
  154. "Read(**/*.toml)",
  155. "Read(**/*.lock)",
  156. "Read(**/*.gitignore)",
  157. "Read(**/*.dockerignore)",
  158. "Read(**/.claudeignore)",
  159. "Read(**/Makefile)",
  160. "Read(**/Dockerfile*)",
  161. "Read(**/docker-compose*)"
  162. ],
  163. "additionalDirectories": []
  164. },
  165. "hooks": {
  166. "SessionStart": [
  167. {
  168. "hooks": [
  169. {
  170. "type": "command",
  171. "command": "bash ~/.claude/hooks/session-start.sh"
  172. }
  173. ]
  174. }
  175. ]
  176. }
  177. }