같은 설정이 여러 파일에 있을 때 Claude Code가 어느 값을 적용하는지에 대한 소개글입니다. 값이 하나인 키는 Managed, 명령줄, 프로젝트 로컬, 공유 프로젝트, 사용자 순으로 가장 높은 위치의 값 하나를 적용합니다. 권한 규칙 같은 목록 키는 모든 위치의 항목을 합친 뒤 deny, ask, allow 순서로 평가합니다. 그래서 어느 위치에서든 deny에 걸린 호출은 다른 위치의 allow로 풀 수 없습니다.This post introduces which value Claude Code applies when the same setting appears in several files. For a key that holds one value, the highest level wins, in the order managed, command line, project local, shared project, user. For a list key such as permission rules, Claude Code combines the entries from every level and evaluates them in deny, ask, allow order. So a call that a deny rule matches at any level cannot be released by an allow rule at another level.
--settings), 프로젝트 로컬, 공유 프로젝트, 사용자 순으로 가장 높은 위치의 값 하나를 적용합니다.Single-value keys: the highest level wins, in the order managed, command line (--settings), project local, shared project, user.allow는 폴더를 신뢰한 뒤에 적용되고 deny와 ask는 바로 적용됩니다.Workspace trust: allow rules in the shared project file apply after you trust the folder, while deny and ask apply right away.first-wins에서는 정책 키가 있는 가장 높은 소스 하나만 사용하고 나머지는 무시합니다.Managed sources: under the default first-wins, only the highest-ranked source that carries a policy key is used and the rest are ignored.Claude Code의 설정은 한 파일에만 있지 않습니다. 홈 디렉터리의 사용자 설정, 저장소에 커밋하는 프로젝트 설정, 나만 보는 로컬 설정, 조직이 배포하는 Managed 설정(managed settings)이 따로 있고 명령줄에서 한 세션에만 적용하는 값도 있습니다. 같은 키가 두 곳 이상에 있으면 어느 값이 적용되는지 헷갈리기 쉽습니다. 분명히 허용해 둔 명령을 Claude Code가 계속 묻는 이유도 여기에 있습니다.
이 글은 그 순서를 정리합니다. 설명은 2026년 11월 16일에 확인한 Claude Code v2.1.325의 공식 문서를 기준으로 합니다.
회사 규정으로 보면 Managed는 전사 규정이고 --settings는 오늘 하루만 유효한 작업 지시서입니다. 프로젝트 로컬은 이 팀 사무실의 내 책상에 붙여 둔 메모, 공유 프로젝트는 팀 규칙, 사용자 설정은 어느 팀에 가든 따라오는 내 업무 습관입니다. 출근 시각처럼 답이 하나여야 하는 항목은 지금 적은 순서에서 가장 위 문서의 값을 따릅니다. 금지 목록은 다르게 다룹니다. 모든 문서의 금지 조항을 한 장에 모아 놓고 보기 때문에, 팀 규칙이 허용해도 전사 규정이 금지한 일은 할 수 없습니다.
01
설정이 놓이는 위치는 다섯 곳입니다. 위치마다 그 설정이 적용되는 사람과 프로젝트의 범위(scope)가 다릅니다.
| 위치 | 파일 | 적용 대상 | 주 용도 |
|---|---|---|---|
| Managed | managed-settings.json, MDM, 서버 관리 설정 | 조직이 배포한 모든 머신 | 보안 정책, 컴플라이언스 |
| 명령줄 | claude --settings <file 또는 JSON> | 해당 세션 한 번 | 일회성 테스트 |
| 프로젝트 로컬 | .claude/settings.local.json | 나만, 해당 프로젝트에서만 | 개인 예외, 공유 전 테스트 |
| 공유 프로젝트 | .claude/settings.json | 저장소를 clone한 모든 팀원 | 팀 권한, hooks, plugins |
| 사용자 | ~/.claude/settings.json | 나만, 이 머신의 모든 프로젝트 | 개인 기본값 |
표 1. 설정 위치 다섯 곳. 위에서 아래로 우선순위가 낮아집니다
settings.local.json이 저장되는 곳: 권한 프롬프트에서 "Yes, and don't ask again"을 고르면 그 승인이 allow 규칙으로 이 파일에 저장됩니다. git 저장소 안에서는 하위 디렉터리에서 시작해도 저장소 루트의 .claude/settings.local.json에 저장하고 worktree에서는 main checkout 루트의 파일을 사용합니다. 저장소 밖이나 Windows에서는 .claude/settings.json과 같은 폴더에 둡니다.**/.claude/settings.local.json을 추가하므로 커밋에 들어가지 않습니다. 직접 만든 파일은 .gitignore에 따로 추가해야 합니다.settings.json을 읽는 곳: 세션의 primary working directory에서 읽습니다. 저장소 루트에 커밋한 파일을 적용하려면 루트에서 Claude Code를 시작합니다.02
같은 키가 여러 위치에 있으면 Claude Code는 그 키를 설정한 위치 가운데 가장 높은 곳의 값을 사용합니다. 순서는 표 1의 위에서 아래입니다.
--settings 어느 것도 Managed가 설정한 키를 덮어쓰지 못합니다. --model 같은 플래그도 조직이 허용한 모델 안에서만 고릅니다.--settings: 해당 세션에만 적용되고 파일은 바꾸지 않습니다.공식 문서는 스피너 아래에 팁을 보여 주는 spinnerTipsEnabled 키로 이 순서를 설명합니다. 사용자 설정에서 false로 꺼 두었더라도 팀의 공유 프로젝트 파일이 true로 설정하면 그 프로젝트에서는 팁이 보입니다. 그 프로젝트의 로컬 파일에 false를 넣으면 내 세션에서만 다시 꺼집니다. 조직의 Managed가 true로 정했다면 어느 파일로도, --settings로도 끌 수 없습니다.
환경 변수는 스택의 한 단계가 아닙니다. 셸 변수와 설정 키가 짝을 이루는 경우 어느 쪽을 적용하는지는 짝마다 정해져 있습니다. 셸에서 export한 ANTHROPIC_MODEL은 어느 파일의 model 키보다 우선합니다. 반면 ANTHROPIC_DEFAULT_MODEL은 어떤 파일도 model을 설정하지 않았을 때만 적용됩니다. 설정 파일 안의 env 블록은 일반 키여서 위 순서를 그대로 따릅니다.
permissions.allow 같은 목록 키를 여러 파일이 설정하면 Claude Code는 한 파일의 목록을 고르지 않고 모든 목록을 합칩니다. 각 파일은 항목을 더할 수만 있고 다른 파일의 항목을 지우지 못합니다.

모델과 관련된 목록 키 네 개(fallbackModel, modelPicker, availableModels, modelSettings)는 이 규칙을 따르지 않습니다. 키마다 동작이 따로 정해져 있고 그림 1의 아래쪽에 요약했습니다.
03
권한 규칙은 모든 위치의 것을 합친 뒤 deny, ask, allow 순서로 평가합니다. 이 순서에서 처음 일치한 규칙이 결과를 정하고 규칙이 얼마나 구체적인지는 순서를 바꾸지 않습니다.

Bash(aws *) deny가 있으면 Bash(aws s3 ls) allow가 있어도 막힙니다. allow 규칙으로 deny 안에 예외를 만들 수 없습니다.Bash처럼 도구 이름만 적은 deny는 그 도구를 Claude의 컨텍스트에서 제거합니다. Bash(rm *)처럼 범위를 지정한 deny는 도구를 남겨 두고 일치하는 호출만 막습니다.규칙이 어느 파일에서 왔는지는 평가 순서에 영향을 주지 않습니다. 표 2는 자주 만나는 조합과 결과입니다.
| 상황 | 결과 |
|---|---|
| 사용자 allow, 프로젝트 deny | 막힘 |
| 프로젝트 allow, 사용자 deny | 막힘 |
Managed deny, --allowedTools로 허용 시도 | 막힘 |
Managed 규칙에 --disallowedTools 추가 | 제한이 추가됨 |
| 로컬에 "don't ask again"으로 저장된 allow, 프로젝트나 Managed에 ask | 계속 프롬프트 |
| 조직의 allow와 개인의 allow | 둘 다 적용 (allowManagedPermissionRulesOnly가 없을 때) |
표 2. 서로 다른 위치의 권한 규칙이 만났을 때의 결과
가장 자주 혼동하는 경우는 다섯째 줄입니다. 프롬프트에서 "Yes, and don't ask again"을 골랐는데 같은 도구에서 다시 묻는다면, 로컬 파일에 저장된 allow가 프로젝트나 Managed 파일의 ask를 넘지 못하기 때문입니다. CLI는 이 승인을 로컬 파일에만 저장합니다. VS Code 확장에서는 승인 카드에서 저장할 파일을 고를 수 있고 공유 프로젝트 파일을 고르면 팀 전체의 규칙이 바뀝니다.
PreToolUse hook이 "allow"를 반환해도 deny와 ask 규칙은 그대로 평가됩니다. 반대로 exit code 2로 끝나는 차단 hook은 권한 규칙을 평가하기 전에 호출을 멈추므로 allow 규칙보다 우선합니다. 그래서 Bash 전체를 allow하고 일부 명령만 hook으로 차단하는 구성을 만들 수 있습니다.
이 우선순위는 설정 파일과 명령줄 인자 사이의 규칙입니다. 설치한 mod가 도구 호출을 승인하는 경우는 따로 정해져 있습니다. Managed 설정과 managed-mcp.json이 없고 Team이나 Enterprise 로그인도 사용하지 않는 환경에서는 mod가 deny 규칙이 거부한 호출을 승인할 수 있습니다.
Bash 규칙은 Claude가 작성한 명령 문자열과 맞춰 봅니다. 같은 프로그램을 다른 형태로 호출하면 규칙과 일치하지 않습니다. 표 3은 공식 문서가 드는 예입니다.
| deny 또는 ask 규칙 | 막는 호출 | 막지 못하는 호출 |
|---|---|---|
Bash(curl *) | curl https://example.com | /usr/bin/curl https://example.com, sh -c 'curl https://example.com' |
Bash(git push *) | git push origin main | git -C . push origin main, git -c push.default=current push origin main |
표 3. Bash 규칙이 막는 호출과 막지 못하는 호출. 마지막 열의 호출은 다른 규칙과 권한 모드가 결정합니다
파일 시스템과 네트워크 접근을 명령 문자열과 무관하게 OS 수준에서 강제하려면 sandbox를 함께 사용합니다.
04
같은 키라도 어느 파일에 두었는지에 따라 적용되지 않거나 적용 시점이 늦어지는 경우가 있습니다.
permissions.defaultMode의 auto와 bypassPermissions는 프로젝트나 로컬 파일에 두어도 적용되지 않습니다. 사용자나 Managed 설정에 두거나 세션마다 --permission-mode로 지정합니다. v2.1.257 이전에는 bypassPermissions가 어느 파일에서든 적용됐습니다.
설정 레퍼런스의 Scope가 User, local, or managed, User or managed, User, Managed, Global config인 키도 공유 프로젝트 파일에서는 적용되지 않습니다.
공유 프로젝트 파일의 permissions.allow와 permissions.additionalDirectories는 권한을 넓히는 설정입니다. 그래서 그 폴더의 신뢰 대화상자(workspace trust dialog)를 수락한 뒤에만 적용됩니다. 대화상자는 그 폴더가 부여하려는 규칙과 디렉터리를 보여 주므로 수락하기 전에 검토할 수 있습니다. deny와 ask는 제한만 하므로 신뢰와 관계없이 바로 적용됩니다.
claude -p와 SDK 세션: 신뢰 대화상자를 띄우지 않습니다. 신뢰한 적 없는 폴더에서는 프로젝트의 allow 규칙을 적용하지 않고 stderr에 경고를 남깁니다. 반면 설정 파일의 hooks, env 블록, apiKeyHelper 같은 helper는 이 경우에도 실행됩니다.-p를 실행할 때: 실행하기 전에 --setting-sources user, --bare, --settings '{"disableAllHooks": true}'를 검토합니다. 첫째는 프로젝트의 설정 파일과 .mcp.json을 읽지 않게 하고 셋째는 그 실행에서 hooks를 끕니다..claude/settings.local.json은 git이 추적하지 않는 동안에는 내 파일로 보고 신뢰 단계 없이 allow 규칙을 적용합니다. git이 추적 중이거나 .claude가 symlink라면 저장소가 제공한 파일로 보고 폴더를 신뢰할 때까지 규칙을 보류합니다.Read와 Edit 규칙의 /path 패턴은 규칙을 정의한 설정 위치를 기준으로 해석합니다. 파일 시스템 루트 기준이 아닙니다. 공유 프로젝트와 로컬 파일, CLI 플래그, 세션 규칙은 primary working directory가 기준입니다. 사용자 설정의 규칙은 ~/.claude, --settings로 넘긴 파일의 규칙은 그 파일이 있는 디렉터리가 기준입니다.
사용자 설정에 Read(/secrets/**) deny를 넣으면 프로젝트의 secrets가 아니라 ~/.claude/secrets/**를 막습니다. 모든 프로젝트에 적용하려면 //로 시작하는 절대 경로나 ~/로 시작하는 홈 기준 경로를 사용합니다.
05
한 머신에 Managed 소스가 여러 개 있으면 Claude Code는 서버 관리 설정(server-managed settings), MDM이나 OS 정책, 파일, HKCU 레지스트리 순으로 확인합니다. 기본값인 managedSourcesBehavior: "first-wins"에서는 정책 키를 하나라도 가진 가장 높은 소스 하나만 사용하고 나머지는 병합하지 않고 무시합니다. 무시할 때 경고는 없고 /status의 Skipped sources 줄에만 나타납니다.
소스를 결합하는 "merge" 설정과 전달 방식별 동작은 Deploy managed settings 문서에서 확인합니다.
06
Claude Code는 설정 파일을 지켜보다가 바뀌면 다시 읽으므로 대부분의 수정은 재시작 없이 실행 중인 세션에 반영됩니다. 표 4는 대상별 반영 시점입니다.
| 대상 | 반영 시점 |
|---|---|
| 사용자, 프로젝트, 로컬 파일과 파일로 배포한 Managed | 저장하면 실행 중인 세션에 반영. permissions, hooks, apiKeyHelper 포함 |
| MDM, OS 정책 | 30분마다 변경 확인 |
| 서버 관리 설정 | 1시간마다 확인 |
model, effortLevel, modelSettings | 세션을 시작할 때 한 번만 읽음. 세션 중에는 /model과 /effort로 변경 |
requiredMinimumVersion | 다음 세션 시작부터 |
표 4. 설정 변경이 반영되는 시점
적용 상태는 명령 세 가지로 확인합니다.
/status: Setting sources 줄이 이 세션에 로드된 설정 파일을 보여 줍니다. Managed가 적용 중이면 Enterprise managed settings 뒤 괄호에 선택된 출처가 표시됩니다. Skipped sources 줄에는 머신에 있지만 선택되지 않은 소스가 나옵니다./permissions: 모든 권한 규칙과 각 규칙이 온 설정 파일을 나열합니다. 규칙이 적용되는 이유를 추적할 때 가장 빠릅니다.claude doctor: 거부되거나 잘못된 항목을 출처와 필드별로 보여 주고 서버 관리 설정을 가져온 결과도 알려 줍니다./status의 줄은 어떤 파일을 읽었는지만 알려 줍니다. 키마다 어느 파일의 값이 적용됐는지는 보여 주지 않습니다.
07
일반적인 구성에서는 조직이 Managed에 deny와 잠금을 둡니다. 팀은 공유 프로젝트 파일에 작업용 allow를 두고 개인은 로컬 파일에 예외를 둡니다. 설정 파일은 엄격한 JSON이어서 // 주석이나 마지막 쉼표가 있으면 문법 오류가 됩니다. 아래 예시에서 파일 이름을 코드 밖에 적은 이유입니다.
조직이 배포하는 /etc/claude-code/managed-settings.json입니다.
{
"permissions": {
"deny": ["Read(./.env)", "Read(./secrets/**)", "Bash(git push *)"],
"disableBypassPermissionsMode": "disable"
}
}팀이 커밋하는 .claude/settings.json입니다.
{
"permissions": {
"allow": ["Bash(npm run lint)", "Bash(npm run test *)"],
"ask": ["Bash(git commit *)"]
}
}개인이 두는 .claude/settings.local.json입니다. git이 추적하지 않는 파일입니다.
{
"permissions": {
"allow": ["Bash(git commit *)", "Bash(git push *)"]
}
}이 구성에서 호출 네 가지의 결과입니다.
npm run test -- --watch: 팀 allow와 일치해 프롬프트 없이 실행됩니다. 팀원이 폴더를 신뢰한 뒤부터 적용됩니다.git commit -m ...: 개인 allow가 있어도 팀 ask를 먼저 평가하므로 계속 묻습니다.git push origin main: 개인 allow가 있어도 Managed deny가 먼저 일치해 막힙니다..env 읽기: Managed deny로 막힙니다. Read deny 규칙은 같은 경로의 Edit와 Write도 함께 막습니다.여기에 allowManagedPermissionRulesOnly: true를 추가하면 팀과 개인 파일의 allow, ask, deny 규칙이 모두 무시되고 Managed 규칙만 남습니다. 팀의 npm allow도 Managed 쪽으로 옮겨야 프롬프트 없이 실행됩니다.
08
설정한 값이 적용되지 않는 것처럼 보이면 아래 순서로 확인합니다.
/status의 Setting sources 줄에 그 파일이 있는지 봅니다. JSON이 깨진 파일은 통째로 건너뜁니다.--settings, Managed 소스를 확인합니다. 플래그나 환경 변수가 그 키만 따로 덮어쓰는 경우도 있습니다.defaultMode: "auto"처럼 파일 위치 때문에 적용되지 않는 값이 있습니다./permissions에서 같은 호출과 일치하는 규칙을 찾습니다.additionalDirectories가 적용되지 않습니다./status의 Skipped sources와 claude doctor로 선택된 소스와 버려진 항목을 확인합니다.Claude Code settings do not live in one file. There are user settings in your home directory, project settings you commit to the repository, local settings only you see, and managed settings your organization deploys. You can also pass values on the command line for a single session. When the same key appears in two or more of these places, it is easy to lose track of which value applies. This is also why Claude Code sometimes keeps asking about a command you clearly allowed.
This post sorts out that order. It is based on the official documentation of Claude Code v2.1.325, checked on November 16, 2026.
In a company's rulebooks, managed settings are the company-wide policy, and --settings is a work order that is valid for today only. Project local settings are a note stuck on my desk in this team's office, shared project settings are the team rules, and user settings are my own working habits that follow me to any team. For an item that needs exactly one answer, such as the time work starts, the highest document in the order just listed decides. The list of prohibited things is handled differently. Every document's prohibitions are gathered onto one sheet, so something the company-wide policy prohibits stays prohibited even when the team rules allow it.
01
Settings can sit in five locations. Each location has a different scope: the set of people and projects its settings apply to.
| Location | File | Who it affects | Use it for |
|---|---|---|---|
| Managed | managed-settings.json, MDM, server-managed settings | Every machine the organization deploys to | Security policy, compliance |
| Command line | claude --settings <file or JSON> | That one session | One-off tests |
| Project local | .claude/settings.local.json | Only you, only in that project | Personal overrides, testing before sharing |
| Shared project | .claude/settings.json | Every teammate who clones the repository | Team permissions, hooks, plugins |
| User | ~/.claude/settings.json | Only you, in every project on this machine | Personal defaults |
Table 1. The five settings locations. Precedence decreases from top to bottom
settings.local.json is saved: when you choose "Yes, and don't ask again" on a permission prompt, the approval is saved to this file as an allow rule. Inside a git repository Claude Code saves it to .claude/settings.local.json at the repository root even when you start in a subdirectory, and in a worktree it uses the file at the main checkout's root. Outside a repository and on Windows, the file stays in the same folder as .claude/settings.json.**/.claude/settings.local.json to your global git excludes, so the file stays out of your commits. If you create the file by hand, add it to .gitignore yourself.settings.json is read from: the session's primary working directory. To apply a file committed at the repository root, start Claude Code at the root.02
When the same key appears in several locations, Claude Code uses the value from the highest location that sets it. The order is Table 1 from top to bottom.
--settings overrides a key that managed settings set. A flag such as --model also picks only from the models your organization allows.--settings: applies to that session only and changes no file.The official documentation explains this order with spinnerTipsEnabled, the key that shows a tip under the spinner. Even if you turn it off with false in your user settings, the tips appear in a project whose shared project file sets it to true. Put false in that project's local file and the tips go away again in your sessions only. If your organization's managed settings set it to true, no file and no --settings value turns it off.
Environment variables are not a level in the stack. When a shell variable and a settings key form a pair, which one applies is decided pair by pair. ANTHROPIC_MODEL exported in your shell applies over the model key from any file. ANTHROPIC_DEFAULT_MODEL, in contrast, applies only when no file sets model. An env block inside a settings file is an ordinary key and follows the order above.
When several files set a list key such as permissions.allow, Claude Code does not pick one file's list. It combines all of them. Each file can only add entries and cannot remove another file's entries.

Four list keys related to models (fallbackModel, modelPicker, availableModels, modelSettings) do not follow this rule. Each has its own behavior, summarized in the bottom row of Figure 1.
03
Permission rules from every location are combined and then evaluated in deny, ask, allow order. The first rule that matches in that order decides the outcome, and how specific a rule is does not change the order.

Bash(aws *) deny rule, the call is blocked even when a Bash(aws s3 ls) allow rule exists. An allow rule cannot carve an exception out of a deny rule.Bash, removes that tool from Claude's context. A scoped deny rule such as Bash(rm *) leaves the tool available and blocks only matching calls.Which file a rule came from does not affect the evaluation order. Table 2 lists common combinations and their outcomes.
| Situation | Outcome |
|---|---|
| User allow, project deny | Blocked |
| Project allow, user deny | Blocked |
Managed deny, an attempt to allow with --allowedTools | Blocked |
--disallowedTools added on top of managed rules | Restriction added |
| An allow saved locally with "don't ask again", an ask in project or managed settings | Still prompts |
| The organization's allow and your own allow | Both apply (without allowManagedPermissionRulesOnly) |
Table 2. Outcomes when permission rules from different locations meet
The fifth row is the one people confuse most. If you chose "Yes, and don't ask again" on a prompt and the same tool asks again, the allow saved in your local file does not outrank an ask in a project or managed file. The CLI saves this approval only to your local file. In the VS Code extension the approval card lets you pick the destination file, and picking the shared project file changes the rule for the whole team.
Even when a PreToolUse hook returns "allow", deny and ask rules are still evaluated. In the other direction, a blocking hook that exits with code 2 stops the call before permission rules are evaluated, so it takes precedence over allow rules. That makes it possible to allow all of Bash and block a few commands with a hook.
This precedence is between settings files and command line arguments. Whether a mod you install can approve a tool call is decided separately. In a setup with no managed settings and no managed-mcp.json, and without a Team or Enterprise login, a mod can approve a call that a deny rule refuses.
A Bash rule is matched against the command text Claude writes. The same program invoked in a different form does not match the rule. Table 3 shows the examples the official documentation gives.
| Deny or ask rule | Stops | Does not stop |
|---|---|---|
Bash(curl *) | curl https://example.com | /usr/bin/curl https://example.com, sh -c 'curl https://example.com' |
Bash(git push *) | git push origin main | git -C . push origin main, git -c push.default=current push origin main |
Table 3. Calls a Bash rule stops and calls it does not. Your other rules and the permission mode decide the calls in the last column
To enforce filesystem and network access at the OS level regardless of the command text, use the sandbox as well.
04
The same key can fail to apply, or apply later, depending on which file it is in.
The auto and bypassPermissions values of permissions.defaultMode do not take effect from project or local files. Set them in user or managed settings, or pass --permission-mode for one session. Before v2.1.257, bypassPermissions took effect from any file.
Keys whose Scope in the settings reference is User, local, or managed, User or managed, User, Managed, or Global config do not apply from the shared project file either.
permissions.allow and permissions.additionalDirectories in the shared project file are settings that grant capability. So they apply only after you accept the workspace trust dialog for that folder. The dialog lists the rules and directories the folder would grant, so you can review them before accepting. deny and ask only restrict, so they apply right away regardless of trust.
claude -p and SDK sessions: they do not show the trust dialog. In a folder you never trusted, Claude Code does not apply the project's allow rules and prints a warning to stderr. Hooks in settings files, the env block, and helpers such as apiKeyHelper still run in that case.-p in a repository you did not write: before you run it, consider --setting-sources user, --bare, and --settings '{"disableAllHooks": true}'. The first keeps Claude Code from reading the project's settings files and .mcp.json, and the third turns hooks off for that run..claude/settings.local.json, Claude Code treats it as your own file and applies its allow rules without the trust step. When git tracks the file, or .claude is a symlink, Claude Code treats it as supplied by the repository and holds its rules until you trust the folder.A /path pattern in a Read or Edit rule is resolved against the settings location that defines the rule. It does not anchor at the filesystem root. Rules in the shared project and local files, CLI flags, and session rules anchor at the primary working directory. A rule in user settings anchors at ~/.claude, and a rule in a file passed with --settings anchors at that file's directory.
A Read(/secrets/**) deny rule in user settings blocks ~/.claude/secrets/**, not a secrets directory in your project. To make a rule apply in every project, use an absolute path that starts with // or a home-relative path that starts with ~/.
05
When one machine has several managed sources, Claude Code checks them in the order server-managed settings, MDM or OS-level policy, file, HKCU registry. Under the default managedSourcesBehavior: "first-wins", Claude Code uses only the highest-ranked source that carries at least one policy key and ignores the rest without merging them. It shows no warning for what it ignores, and the skipped sources appear only on the Skipped sources line in /status.
For the "merge" setting that combines sources and for how each delivery mechanism behaves, see the Deploy managed settings documentation.
06
Claude Code watches your settings files and reloads them when they change, so most edits reach the running session without a restart. Table 4 shows when each kind of change takes effect.
| What changed | When it takes effect |
|---|---|
| User, project, and local files, and file-based managed settings | Reaches the running session on save, including permissions, hooks, and apiKeyHelper |
| MDM or OS-level policy | Checked for changes every 30 minutes |
| Server-managed settings | Checked every hour |
model, effortLevel, modelSettings | Read once at session start. Use /model and /effort to change them mid-session |
requiredMinimumVersion | From the next session start |
Table 4. When a settings change takes effect
Three commands show what is in force.
/status: the Setting sources line lists the settings files loaded for this session. When managed settings are in effect, the selected source appears in parentheses after Enterprise managed settings. The Skipped sources line names sources that are on the machine but were not selected./permissions: lists every permission rule and the settings file each rule comes from. It is the fastest way to trace why a rule applies.claude doctor: lists rejected or invalid entries by source and field, and reports the outcome of fetching server-managed settings.The line in /status tells you only which files were read. It does not show which file supplied each key.
07
In a typical setup the organization puts deny rules and locks in managed settings. The team puts allow rules for its work in the shared project file, and each developer puts exceptions in the local file. Settings files are strict JSON, so a // comment or a trailing comma is a syntax error. That is why the examples below carry their file names outside the code.
The /etc/claude-code/managed-settings.json the organization deploys.
{
"permissions": {
"deny": ["Read(./.env)", "Read(./secrets/**)", "Bash(git push *)"],
"disableBypassPermissionsMode": "disable"
}
}The .claude/settings.json the team commits.
{
"permissions": {
"allow": ["Bash(npm run lint)", "Bash(npm run test *)"],
"ask": ["Bash(git commit *)"]
}
}The .claude/settings.local.json a developer keeps. Git does not track this file.
{
"permissions": {
"allow": ["Bash(git commit *)", "Bash(git push *)"]
}
}These are the outcomes of four calls in this setup.
npm run test -- --watch: matches the team's allow rule and runs without a prompt. It applies once the teammate has trusted the folder.git commit -m ...: keeps prompting, because the team's ask rule is evaluated before the developer's allow rule.git push origin main: blocked, because the managed deny rule matches before the developer's allow rule..env: blocked by the managed deny rule. A Read deny rule also blocks Edit and Write on the same path.Add allowManagedPermissionRulesOnly: true to this and the allow, ask, and deny rules in the team's and the developer's files are all ignored, leaving only the managed rules. The team's npm allow rules have to move into managed settings to run without a prompt.
08
When a value you set does not seem to apply, check in this order.
Setting sources line in /status. A file with broken JSON is skipped as a whole.--settings, and the managed sources. A flag or an environment variable can also override that one key on its own.defaultMode: "auto" in a project file./permissions.additionalDirectories do not apply.Skipped sources in /status and with claude doctor.| No. | 출처Source | 종류Kind | 확인한 날Checked |
|---|---|---|---|
| 1 | Settings files and precedence - Anthropic, Claude Code Docs | 공식 문서Official docs | 2026-11-16 |
| 2 | Configure permissions - Anthropic, Claude Code Docs | 공식 문서Official docs | 2026-11-16 |
| 3 | Deploy managed settings - Anthropic, Claude Code Docs | 공식 문서Official docs | 2026-11-16 |
| 4 | All settings - Anthropic, Claude Code Docs | 공식 문서Official docs | 2026-11-16 |
| 5 | Claude Code CHANGELOG - anthropics/claude-code | ChangelogChangelog | 2026-11-16 |