콘텐츠로 이동

safe-settings.json

예시 — 안전한 settings.json 시작 템플릿

섹션 제목: “예시 — 안전한 settings.json 시작 템플릿”
{
"permissions": {
"defaultMode": "default",
"allow": [
"Read(*)",
"Glob(*)",
"Grep(*)",
"Bash(git status:*)",
"Bash(git diff:*)",
"Bash(git log:*)",
"Bash(npm test:*)",
"Bash(pytest:*)"
],
"ask": [
"Edit(*)",
"Write(*)",
"Bash(git commit:*)",
"Bash(git push:*)",
"Bash(npm install:*)",
"Bash(pip install:*)",
"Bash(terraform plan:*)"
],
"deny": [
"Bash(rm -rf:*)",
"Bash(rm -fr:*)",
"Bash(sudo:*)",
"Bash(mkfs:*)",
"Bash(dd of=/dev/:*)",
"Bash(:(){ :|:& };:)",
"Bash(curl * | sh:*)",
"Bash(wget * | bash:*)",
"Bash(git push --force:*)",
"Bash(git push -f:*)",
"Bash(terraform destroy:*)",
"Bash(terraform apply:*)"
]
},
"additionalWorkingDirectories": []
}

이 템플릿은 시작점이다. 프로젝트에 맞춰 ask ↔ allow를 옮긴다. 정확한 키 이름과 패턴 문법은 buildmonth마다 바뀔 수 있으니 morphllm/claudefast 레퍼런스 확인.