{
  "_description": "BurningTimes 조직 공용 Claude Code permission + hook 설정 (SOT). PD님 일괄 승인 원칙 + 자동 동기화 hook. 단일 세션 + Agent 병렬 호출 구조. 모든 PC 동일 적용. 루트 단일 관리.",
  "permissions": {
    "defaultMode": "acceptEdits",
    "allow": [
      "Read",
      "Glob",
      "Grep",
      "TodoWrite",
      "ToolSearch",
      "Agent",
      "Edit",
      "Write",
      "MultiEdit",
      "NotebookEdit",
      "Skill",
      "Bash",
      "Bash(git *)",
      "Bash(ls *)",
      "Bash(cat *)",
      "Bash(echo *)",
      "Bash(mkdir *)",
      "Bash(pwd)",
      "Bash(which *)",
      "Bash(bash *)",
      "Bash(powershell *)",
      "Bash(node *)",
      "Bash(npm *)",
      "Bash(npx *)",
      "Bash(python *)",
      "Bash(python3 *)",
      "Bash(pip *)",
      "Bash(uv *)",
      "Bash(uvx *)",
      "Bash(dotnet *)",
      "WebFetch",
      "WebSearch",
      "mcp__unity-mcp__*",
      "mcp__filesystem__*",
      "mcp__memory__*",
      "mcp__sqlite__*",
      "mcp__scheduled-tasks__*",
      "mcp__Claude_Preview__*"
    ],
    "deny": [
      "Bash(rm:*)",
      "Bash(rmdir:*)",
      "Bash(sudo:*)",
      "Bash(dd:*)",
      "Bash(mkfs:*)",
      "Bash(format:*)",
      "Bash(chmod 777:*)",
      "Bash(chown:*)",
      "Bash(shutdown:*)",
      "Bash(reboot:*)",
      "Write(/etc/**)",
      "Write(/System/**)",
      "Write(C:/Windows/**)",
      "Write(C:\\Windows\\**)",
      "Edit(/etc/**)",
      "Edit(/System/**)",
      "Edit(C:/Windows/**)",
      "Edit(C:\\Windows\\**)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "bash scripts/auto_approve.sh"
          },
          {
            "type": "command",
            "command": "bash scripts/auditor_gate.sh"
          }
        ]
      },
      {
        "matcher": "Edit|Write|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "bash scripts/pm_implicit_check.sh 2>/dev/null || true"
          }
        ]
      }
    ],
    "SessionStart": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "git fetch origin 2>/dev/null; CHANGES=$(git log --oneline HEAD..origin/main 2>/dev/null | head -10); if [ -n \"$CHANGES\" ]; then echo '📌 [SessionStart] origin/main 변경 검출 — 자동 병합 중:'; echo \"$CHANGES\"; git merge origin/main --no-edit 2>/dev/null && echo '✅ 자동 병합 완료' || echo '⚠️ 자동 병합 실패 (충돌 발생 — 수동 해결 필요)'; else echo '✅ [SessionStart] main 동기화 상태'; fi"
          },
          {
            "type": "command",
            "command": "bash scripts/unity_project_sync.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/inbox_scan.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/change_digest.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/live_session_load.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/pm_context_restore.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/recent_feedback_brief.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/audit_pattern_analyzer.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/verify_log_paths.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "git config core.hooksPath scripts/git-hooks 2>/dev/null || true"
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "bash scripts/sync_signal.sh check 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/git_fetch_throttle.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/hold_watch.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/live_inject.sh 2>/dev/null || true"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|Write|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "bash scripts/postuse_log_reminder.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/c9_2_block.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/fact_first_check.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/identity_guard.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/hardboiled_empathy_check.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/proactive_inference_check.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/skill_trigger_audit.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/c35_obligation_check.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/filler_word_check.sh 2>/dev/null || true"
          }
        ]
      },
      {
        "matcher": "Task",
        "hooks": [
          {
            "type": "command",
            "command": "bash scripts/auditor_call_log.sh 2>/dev/null || true"
          }
        ]
      }
    ],
    "SessionEnd": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "bash scripts/session_end_audit.sh 2>/dev/null || true"
          },
          {
            "type": "command",
            "command": "bash scripts/verify_references.sh 2>/dev/null || true"
          }
        ]
      }
    ]
  }
}
