settings.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. {
  2. "cleanupPeriodDays": 30,
  3. "permissions": {
  4. "defaultMode": "default",
  5. "disableBypassPermissionsMode": "disable",
  6. "disableAutoMode": "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. "Bash(env)",
  86. "Bash(printenv)",
  87. "Bash(printenv *)",
  88. "Bash(export *)",
  89. "Bash(cp .env*)",
  90. "Bash(cp **/.env*)",
  91. "Bash(cp **/secrets/*)",
  92. "Bash(mv .env*)",
  93. "Bash(mv **/.env*)",
  94. "Bash(mv **/secrets/*)",
  95. "Bash(git add .env*)",
  96. "Bash(git add **/.env*)",
  97. "Bash(cp **/id_rsa*)",
  98. "Bash(cp **/id_ed25519*)",
  99. "Bash(cp **/.ssh/*)",
  100. "Bash(source /dev/stdin)",
  101. "Bash(mkfifo *)",
  102. "Bash(python3 -c *)",
  103. "Bash(node -e *)",
  104. "Bash(xargs * .env*)",
  105. "Bash(tar * .env*)",
  106. "Bash(zip * .env*)",
  107. "Bash(base64 .env*)"
  108. ],
  109. "ask": [
  110. "Bash(git push *)",
  111. "Bash(git push)",
  112. "Bash(docker run *)",
  113. "Bash(docker exec *)",
  114. "Bash(docker-compose up*)",
  115. "Bash(docker compose up*)",
  116. "Bash(brew install *)",
  117. "Bash(apt install *)",
  118. "Bash(apt-get install *)",
  119. "Bash(dnf install *)",
  120. "Bash(pacman -S *)",
  121. "WebSearch",
  122. "WebFetch",
  123. "Bash(xargs *)",
  124. "Bash(sed *)",
  125. "Bash(git stash pop*)",
  126. "Bash(git stash drop*)",
  127. "Bash(git stash clear)"
  128. ],
  129. "allow": [
  130. "Bash(git status)",
  131. "Bash(git log*)",
  132. "Bash(git diff*)",
  133. "Bash(git branch*)",
  134. "Bash(git fetch*)",
  135. "Bash(git pull*)",
  136. "Bash(git add *)",
  137. "Bash(git commit*)",
  138. "Bash(git checkout *)",
  139. "Bash(git switch *)",
  140. "Bash(git stash)",
  141. "Bash(git stash push*)",
  142. "Bash(git stash list*)",
  143. "Bash(git stash show*)",
  144. "Bash(git tag*)",
  145. "Bash(git show*)",
  146. "Bash(ls *)",
  147. "Bash(ls)",
  148. "Bash(find *)",
  149. "Bash(cat *)",
  150. "Bash(head *)",
  151. "Bash(tail *)",
  152. "Bash(grep *)",
  153. "Bash(rg *)",
  154. "Bash(fd *)",
  155. "Bash(wc *)",
  156. "Bash(echo *)",
  157. "Bash(pwd)",
  158. "Bash(which *)",
  159. "Bash(type *)",
  160. "Bash(whoami)",
  161. "Bash(uname *)",
  162. "Bash(mkdir -p *)",
  163. "Bash(touch *)",
  164. "Bash(cp *)",
  165. "Bash(mv *)",
  166. "Bash(jq *)",
  167. "Bash(yq *)",
  168. "Bash(awk *)",
  169. "Bash(sort *)",
  170. "Bash(uniq *)",
  171. "Bash(tr *)",
  172. "Bash(cut *)",
  173. "Bash(diff *)",
  174. "Read(**/*.md)",
  175. "Read(**/*.txt)",
  176. "Read(**/*.json)",
  177. "Read(**/*.yaml)",
  178. "Read(**/*.yml)",
  179. "Read(**/*.toml)",
  180. "Read(**/*.lock)",
  181. "Read(**/*.gitignore)",
  182. "Read(**/*.dockerignore)",
  183. "Read(**/.claudeignore)",
  184. "Read(**/Makefile)",
  185. "Read(**/Dockerfile*)",
  186. "Read(**/docker-compose*)"
  187. ],
  188. "additionalDirectories": []
  189. },
  190. "hooks": {
  191. "SessionStart": [
  192. {
  193. "hooks": [
  194. {
  195. "type": "command",
  196. "command": "bash ~/.claude/hooks/session-start.sh"
  197. }
  198. ]
  199. }
  200. ],
  201. "PreToolUse": [
  202. {
  203. "matcher": "Bash",
  204. "hooks": [
  205. {
  206. "type": "command",
  207. "command": "bash ~/.claude/hooks/rtk-rewrite.sh"
  208. }
  209. ]
  210. }
  211. ]
  212. },
  213. "extraKnownMarketplaces": {
  214. "claude-code-plugins": {
  215. "source": {
  216. "source": "github",
  217. "repo": "anthropics/claude-code"
  218. }
  219. },
  220. "superpowers-marketplace": {
  221. "source": {
  222. "source": "github",
  223. "repo": "obra/superpowers-marketplace"
  224. }
  225. },
  226. "ui-ux-pro-max-skill": {
  227. "source": {
  228. "source": "github",
  229. "repo": "nextlevelbuilder/ui-ux-pro-max-skill"
  230. }
  231. }
  232. },
  233. "model": "opus",
  234. "statusLine": {
  235. "type": "command",
  236. "command": "bash ~/.claude/hooks/statusline.sh"
  237. }
  238. }