settings.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. {
  2. "cleanupPeriodDays": 30,
  3. "permissions": {
  4. "allow": [
  5. "Bash(git status)",
  6. "Bash(git log*)",
  7. "Bash(git diff*)",
  8. "Bash(git branch*)",
  9. "Bash(git fetch*)",
  10. "Bash(git pull*)",
  11. "Bash(git add *)",
  12. "Bash(git commit*)",
  13. "Bash(git checkout *)",
  14. "Bash(git switch *)",
  15. "Bash(git stash)",
  16. "Bash(git stash push*)",
  17. "Bash(git stash list*)",
  18. "Bash(git stash show*)",
  19. "Bash(git tag*)",
  20. "Bash(git show*)",
  21. "Bash(ls *)",
  22. "Bash(ls)",
  23. "Bash(find *)",
  24. "Bash(cat *)",
  25. "Bash(head *)",
  26. "Bash(tail *)",
  27. "Bash(grep *)",
  28. "Bash(rg *)",
  29. "Bash(fd *)",
  30. "Bash(wc *)",
  31. "Bash(echo *)",
  32. "Bash(pwd)",
  33. "Bash(which *)",
  34. "Bash(type *)",
  35. "Bash(whoami)",
  36. "Bash(uname *)",
  37. "Bash(mkdir -p *)",
  38. "Bash(touch *)",
  39. "Bash(cp *)",
  40. "Bash(mv *)",
  41. "Bash(jq *)",
  42. "Bash(yq *)",
  43. "Bash(awk *)",
  44. "Bash(sort *)",
  45. "Bash(uniq *)",
  46. "Bash(tr *)",
  47. "Bash(cut *)",
  48. "Bash(diff *)",
  49. "Read(**/*.md)",
  50. "Read(**/*.txt)",
  51. "Read(**/*.json)",
  52. "Read(**/*.yaml)",
  53. "Read(**/*.yml)",
  54. "Read(**/*.toml)",
  55. "Read(**/*.lock)",
  56. "Read(**/*.gitignore)",
  57. "Read(**/*.dockerignore)",
  58. "Read(**/.claudeignore)",
  59. "Read(**/Makefile)",
  60. "Read(**/Dockerfile*)",
  61. "Read(**/docker-compose*)"
  62. ],
  63. "deny": [
  64. "Bash(rm -rf *)",
  65. "Bash(rm -rf /*)",
  66. "Bash(rmdir *)",
  67. "Bash(git push --force*)",
  68. "Bash(git push -f*)",
  69. "Bash(git reset --hard*)",
  70. "Bash(git clean -fd*)",
  71. "Bash(sudo rm*)",
  72. "Bash(sudo chmod*)",
  73. "Bash(sudo chown*)",
  74. "Bash(sudo dd*)",
  75. "Bash(su *)",
  76. "Bash(curl * | bash)",
  77. "Bash(wget * | bash)",
  78. "Bash(curl * | sh)",
  79. "Bash(wget * | sh)",
  80. "Bash(chmod 777 *)",
  81. "Bash(chmod -R 777 *)",
  82. "Bash(ssh *)",
  83. "Bash(scp *)",
  84. "Bash(rsync *)",
  85. "Bash(nc *)",
  86. "Bash(netcat *)",
  87. "Bash(kill -9 *)",
  88. "Bash(killall *)",
  89. "Bash(pkill *)",
  90. "Bash(crontab *)",
  91. "Bash(systemctl *)",
  92. "Bash(service *)",
  93. "Bash(npm install -g *)",
  94. "Read(**/.env)",
  95. "Read(**/.env.*)",
  96. "Read(**/secrets/**)",
  97. "Read(**/*.pem)",
  98. "Read(**/*.key)",
  99. "Read(**/*.p12)",
  100. "Read(**/*.pfx)",
  101. "Read(**/id_rsa*)",
  102. "Read(**/id_ed25519*)",
  103. "Read(**/.ssh/**)",
  104. "Read(**/credentials)",
  105. "Read(**/credentials.json)",
  106. "Read(**/.aws/credentials)",
  107. "Read(**/.azure/**)",
  108. "Write(**/.env)",
  109. "Write(**/.env.*)",
  110. "Write(**/secrets/**)",
  111. "Write(**/*.pem)",
  112. "Write(**/*.key)",
  113. "Bash(bash -c *)",
  114. "Bash(eval *)",
  115. "Bash(exec *)",
  116. "Bash(find * -delete*)",
  117. "Bash(find * -exec rm*)",
  118. "Bash(find * -execdir rm*)",
  119. "Bash(perl -e *)",
  120. "Bash(ruby -e *)",
  121. "Bash(cat .env)",
  122. "Bash(cat .env.*)",
  123. "Bash(cat */.env)",
  124. "Bash(cat */.env.*)",
  125. "Bash(cat */secrets/*)",
  126. "Bash(cat */*.pem)",
  127. "Bash(cat */*.key)",
  128. "Bash(cat */id_rsa*)",
  129. "Bash(cat */id_ed25519*)",
  130. "Bash(cat */.aws/credentials)",
  131. "Bash(head .env)",
  132. "Bash(head .env.*)",
  133. "Bash(tail .env)",
  134. "Bash(tail .env.*)",
  135. "Bash(less .env)",
  136. "Bash(less .env.*)",
  137. "Bash(more .env)",
  138. "Bash(more .env.*)",
  139. "Bash(grep * .env)",
  140. "Bash(grep * .env.*)",
  141. "Bash(env)",
  142. "Bash(printenv)",
  143. "Bash(printenv *)",
  144. "Bash(export *)",
  145. "Bash(cp .env*)",
  146. "Bash(cp **/.env*)",
  147. "Bash(cp **/secrets/*)",
  148. "Bash(mv .env*)",
  149. "Bash(mv **/.env*)",
  150. "Bash(mv **/secrets/*)",
  151. "Bash(git add .env*)",
  152. "Bash(git add **/.env*)",
  153. "Bash(cp **/id_rsa*)",
  154. "Bash(cp **/id_ed25519*)",
  155. "Bash(cp **/.ssh/*)",
  156. "Bash(source /dev/stdin)",
  157. "Bash(mkfifo *)",
  158. "Bash(node -e *)",
  159. "Bash(xargs * .env*)",
  160. "Bash(tar * .env*)",
  161. "Bash(zip * .env*)",
  162. "Bash(base64 .env*)"
  163. ],
  164. "ask": [
  165. "Bash(git push *)",
  166. "Bash(git push)",
  167. "Bash(docker run *)",
  168. "Bash(docker exec *)",
  169. "Bash(docker-compose up*)",
  170. "Bash(docker compose up*)",
  171. "Bash(brew install *)",
  172. "Bash(apt install *)",
  173. "Bash(apt-get install *)",
  174. "Bash(dnf install *)",
  175. "Bash(pacman -S *)",
  176. "WebSearch",
  177. "WebFetch",
  178. "Bash(xargs *)",
  179. "Bash(sed *)",
  180. "Bash(python3 -c *)",
  181. "Bash(git stash pop*)",
  182. "Bash(git stash drop*)",
  183. "Bash(git stash clear)"
  184. ],
  185. "defaultMode": "default",
  186. "disableBypassPermissionsMode": "disable",
  187. "disableAutoMode": "disable",
  188. "additionalDirectories": []
  189. },
  190. "model": "opus",
  191. "hooks": {
  192. "SessionStart": [
  193. {
  194. "hooks": [
  195. {
  196. "type": "command",
  197. "command": "bash ~/.claude/hooks/session-start.sh"
  198. }
  199. ]
  200. }
  201. ],
  202. "PreToolUse": [
  203. {
  204. "matcher": "Bash",
  205. "hooks": [
  206. {
  207. "type": "command",
  208. "command": "bash ~/.claude/hooks/rtk-rewrite.sh"
  209. }
  210. ]
  211. }
  212. ]
  213. },
  214. "statusLine": {
  215. "type": "command",
  216. "command": "bash ~/.claude/hooks/statusline.sh"
  217. },
  218. "extraKnownMarketplaces": {
  219. "claude-code-plugins": {
  220. "source": {
  221. "source": "github",
  222. "repo": "anthropics/claude-code"
  223. }
  224. },
  225. "superpowers-marketplace": {
  226. "source": {
  227. "source": "github",
  228. "repo": "obra/superpowers-marketplace"
  229. }
  230. },
  231. "ui-ux-pro-max-skill": {
  232. "source": {
  233. "source": "github",
  234. "repo": "nextlevelbuilder/ui-ux-pro-max-skill"
  235. }
  236. }
  237. }
  238. }