Answer: Hooks can be configured in `~/.claude/settings.json` (all your projects, local to your machine), `.claude/settings.json` (single project, can be committed to the repo), `.claude/settings.local.json` (single project, gitignored), managed policy settings (organization-wide), plugin `hooks/hooks.json`, and skill or subagent frontmatter. Status: Confirmed Entry: tool/claude-code/settings/hook-locations Revision: 1 Digest: sha256:9d215255c6a5be01 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:24Z Last changed: 2026-11-13T03:04:24Z Last verified: 2026-11-20T12:21:22Z Next check: 2026-11-21T12:21:22Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of User settings file | ~/.claude/settings.json | [1] | 2026-11-20 Project settings file | .claude/settings.json | [1] | 2026-11-20 Local project settings file | .claude/settings.local.json | [1] | 2026-11-20 Managed policy settings | Managed policy settings | [1] | 2026-11-20 Plugin hooks file | hooks/hooks.json | [1] | 2026-11-20 Skill frontmatter | Skill | [1] | 2026-11-20 Subagent frontmatter | Subagent | [1] | 2026-11-20 Sources: [1] Anthropic. "Hooks reference". https://code.claude.com/docs/en/hooks.md Role: primary. Accessed: 2026-11-20T12:21:22Z Quote: "| `~/.claude/settings.json` | All your projects | No, local to your machine |" (Supports: User settings file) Quote: "| `.claude/settings.json` | Single project | Yes, can be committed to the repo |" (Supports: Project settings file) Quote: "| `.claude/settings.local.json` | Single project | No, gitignored when Claude Code saves a setting to it |" (Supports: Local project settings file) Quote: "| Managed policy settings | Organization-wide | Yes, admin-controlled |" (Supports: Managed policy settings) Quote: "| [Plugin](https://code.claude.com/docs/en/plugins/overview.md) `hooks/hooks.json` | When plugin is enabled | Yes, bundled with the plugin |" (Supports: Plugin hooks file) Quote: "| [Skill](https://code.claude.com/docs/en/skills.md) frontmatter | The rest of the session once the skill is invoked." (Supports: Skill frontmatter) Quote: "| [Subagent](https://code.claude.com/docs/en/sub-agents.md) frontmatter | While that subagent is running | Yes, defined in the subagent file |" (Supports: Subagent frontmatter) Published: 2026-11-20T10:20:03Z Snapshot SHA-256: d55a7aff8ea51f8313b678ce1156d51dc20d90b11795b6c43c3e90f98b939727 (captured 2026-11-20T12:21:23Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:21:22Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:21:22Z Last attempt: 2026-11-20T12:21:22Z Notes and limitations: Extracted automatically from a single official source (section "Hook locations"). Related: https://latestn.com/tool/claude-code/settings/inspect-effective-config How do I inspect the defaults and my effective auto mode config in Claude Code? https://latestn.com/tool/claude-code/settings/list-of-env-vars Which environment variables does Claude Code read to control model selection, authentication, and request routing? https://latestn.com/tool/claude-code/settings/load-plugin-every-session How do I make a Claude Code plugin load in every session? https://latestn.com/tool/claude-code/settings/env-var-precedence When an environment variable and a settings file both set the same Claude Code behavior, which value takes precedence? https://latestn.com/tool/claude-code/settings/ghes-plugin-marketplaces How do I add or pre-register a plugin marketplace hosted on GitHub Enterprise Server in Claude Code? https://latestn.com/tool/claude-code/settings/gitlab-cicd-variables What CI/CD variables and parameters can I configure for Claude Code in GitLab? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:04:24Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/hook-locations/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/hook-locations POST: https://latestn.com/dispute/tool/claude-code/settings/hook-locations with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/hook-locations?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Where can I configure hooks in Claude Code (which settings files and locations)? Revision 1, last verified 2026-11-20T12:21:22Z. https://latestn.com/tool/claude-code/settings/hook-locations (accessed 2026-11-21T09:53:15Z). @misc{LatestN_tool_claude_code_settings_hook_locations_r1, title = {Where can I configure hooks in Claude Code (which settings files and locations)?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/hook-locations}}, note = {Revision 1; digest sha256:9d215255c6a5be01; last verified 2026-11-20T12:21:22Z; accessed 2026-11-21T09:53:15Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/hook-locations