{
  "$schema": "https://raw.githubusercontent.com/anthropics/claude-code/main/schemas/hooks.json",
  "description": "Aphoria hook configurations for Claude Code",
  "hooks": {
    "PreCommit": [
      {
        "command": "aphoria scan --format sarif --exit-code",
        "description": "Check for conflicts with authoritative sources before commit",
        "when": "always"
      }
    ],
    "PrePush": [
      {
        "command": "aphoria scan --strict --exit-code",
        "description": "Strict conflict check before pushing to remote",
        "when": "always"
      }
    ]
  },
  "notes": {
    "PreCommit": "Runs on every commit. Exit code 2 = BLOCK conflicts found, 1 = FLAG only",
    "PrePush": "Stricter thresholds (FLAG at 0.3, BLOCK at 0.5) for remote pushes",
    "installation": "Copy this to .claude/settings.json in your project or ~/.claude/settings.json for global"
  }
}
