Hooks Settings

Hooks Settings

{
  "disableAllHooks": false,
  "allowedHttpHookUrls": [
    "https://hooks.internal.company.com/*"
  ],
  "httpHookAllowedEnvVars": ["HOOK_SECRET", "AUDIT_TOKEN"],
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "echo \"$(date): Bash tool used\" >> ~/.claude/audit.log"
          }
        ]
      }
    ]
  }
}

Related: Hooks, Notification Hooks, Claude Code Settings