Answer: Policy hooks are stored as JSON files in the platform-appropriate policy directory (Linux/macOS: /etc/github-copilot/policy.d/*.json; Windows: C:\ProgramData\GitHub\Copilot\policy.d\*.json) or in Windows Registry values under HKLM\Software\Policies\GitHub\Copilot. Agent-scoped hooks are declared in a custom agent's frontmatter as a hooks event map. Status: Confirmed Entry: tool/github-copilot/settings/hooks-locations Revision: 3 Digest: sha256:eb5c9081d80e0263 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:32:35Z Last changed: 2026-11-18T13:10:39Z (User-level hook files (default): — → ~/.copilot/hooks/) Last verified: 2026-11-20T13:14:20Z Next check: 2026-11-21T13:14:20Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Policy hooks (Linux/macOS) | /etc/github-copilot/policy.d/*.json | [1] | 2026-11-20 Policy hooks (Windows) | C:\ProgramData\GitHub\Copilot\policy.d\*.json | [1] | 2026-11-20 Policy hooks (Windows Registry) | HKLM\Software\Policies\GitHub\Copilot | [1] | 2026-11-20 Agent-scoped hooks | Declare a hooks event map in a custom agent's frontmatter | [1] | 2026-11-20 Repository-level hook files | .github/hooks/*.json | [1] | 2026-11-20 User-level hook files (default) | ~/.copilot/hooks/ | [1] | 2026-11-20 Sources: [1] GitHub. "GitHub Copilot hooks reference - GitHub Docs". https://docs.github.com/en/copilot/reference/hooks-reference Role: primary. Accessed: 2026-11-20T13:14:20Z Quote: "Linux/macOS: /etc/github-copilot/policy.d/*.json" (Supports: Policy hooks (Linux/macOS)) Quote: "Windows: C:\ProgramData\GitHub\Copilot\policy.d\*.json" (Supports: Policy hooks (Windows)) Quote: "Values under HKLM\Software\Policies\GitHub\Copilot" (Supports: Policy hooks (Windows Registry)) Quote: "Declare a hooks event map in a custom agent's frontmatter to run command or HTTP hooks only while that agent is selected." (Supports: Agent-scoped hooks) Quote: "Repository-level hook files — .github/hooks/*.json in the repository root." (Supports: Repository-level hook files) Quote: "By default this is ~/.copilot/hooks/ on macOS and Linux, or %USERPROFILE%\.copilot\hooks\ on Windows." (Supports: User-level hook files (default)) Snapshot SHA-256: c60690ab8fd7c0d15b60aa21ab606f7ecfd6196c8d51389b5743141a6a5600fa (captured 2026-11-18T13:10:39Z) 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]. On this check the text of [1] was unchanged since 2026-11-18T13:10:39Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:14:20Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:14:20Z Last attempt: 2026-11-20T13:14:20Z Notes and limitations: Extracted automatically from a single official source (section "Hooks locations"). Related: https://latestn.com/tool/github-copilot/settings/install-custom-certificates How do I install custom certificates for GitHub Copilot? https://latestn.com/tool/github-copilot/settings/kerberos-proxy-authentication How do I set up Kerberos authentication for GitHub Copilot's proxy? https://latestn.com/tool/github-copilot/settings/lsp-configuration-fields What configuration fields are available when defining an LSP server in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/settings/find-and-store-skills How do I find and store agent skills for GitHub Copilot? https://latestn.com/tool/github-copilot/settings/hook-configuration-format What is the configuration format for GitHub Copilot command, HTTP, and prompt hooks? https://latestn.com/tool/github-copilot/settings/hooks-additional-directories How do I load GitHub Copilot repository hooks from additional directories? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:10:39Z | changed | User-level hook files (default): — → ~/.copilot/hooks/ | [1] 2026-11-18T13:10:39Z | changed | Agent-scoped hooks: — → Declare a hooks event map in a custom agent's frontmatter | [1] 2026-11-18T13:10:39Z | changed | Policy hooks (Windows Registry): — → HKLM\Software\Policies\GitHub\Copilot | [1] 2026-11-18T13:10:39Z | changed | Policy hooks (Windows): — → C:\ProgramData\GitHub\Copilot\policy.d\*.json | [1] 2026-11-18T13:10:39Z | changed | Policy hooks (Linux/macOS): — → /etc/github-copilot/policy.d/*.json | [1] 2026-11-18T13:10:39Z | changed | Policy directory (Windows): C:\ProgramData\GitHub\Copilot\policy.d\*.json → — | [1] 2026-11-18T13:10:39Z | changed | Policy directory (Linux/macOS): /etc/github-copilot/policy.d/*.json → — | [1] 2026-11-18T13:10:39Z | changed | Inline hooks block in repository settings: .github/copilot/settings.json → — | [1] 2026-11-18T13:10:39Z | changed | Default user-level hooks directory (Windows): %USERPROFILE%\.copilot\hooks\ → — | [1] 2026-11-18T13:10:39Z | changed | Default user-level hooks directory (macOS/Linux): ~/.copilot/hooks/ → — | [1] 2026-11-18T13:10:39Z | changed | User-level hook files: *.json files in the user-level hooks directory → — | [1] 2026-11-18T13:10:39Z | changed | Policy-level hook files: JSON files in the platform-appropriate policy directory → — | [1] 2026-11-16T12:58:44Z | changed | Policy directory (Windows): — → C:\ProgramData\GitHub\Copilot\policy.d\*.json | [1] 2026-11-16T12:58:44Z | changed | Policy directory (Linux/macOS): — → /etc/github-copilot/policy.d/*.json | [1] 2026-11-16T12:58:44Z | changed | Inline hooks block in repository settings: — → .github/copilot/settings.json | [1] 2026-11-16T12:58:44Z | changed | Default user-level hooks directory (Windows): — → %USERPROFILE%\.copilot\hooks\ | [1] 2026-11-16T12:58:44Z | changed | Default user-level hooks directory (macOS/Linux): — → ~/.copilot/hooks/ | [1] 2026-11-16T12:58:44Z | changed | User-level hook files: — → *.json files in the user-level hooks directory | [1] 2026-11-16T12:58:44Z | changed | Policy-level hook files: — → JSON files in the platform-appropriate policy directory | [1] 2026-11-16T12:58:44Z | changed | User-level hooks directory (Windows): %USERPROFILE%\.copilot\hooks\ → — | [1] 2026-11-16T12:58:44Z | changed | User-level hooks directory (macOS/Linux): ~/.copilot/hooks/ → — | [1] 2026-11-16T12:58:44Z | changed | Agent-scoped hooks location: frontmatter → — | [1] 2026-11-16T12:58:44Z | changed | Policy hooks Windows Registry location: HKLM\Software\Policies\GitHub\Copilot → — | [1] 2026-11-16T12:58:44Z | changed | Policy hooks Windows location: C:\ProgramData\GitHub\Copilot\policy.d\*.json → — | [1] 2026-11-16T12:58:44Z | changed | Policy hooks Linux/macOS location: /etc/github-copilot/policy.d/*.json → — | [1] 2026-11-13T03:32:35Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/settings/hooks-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/github-copilot/settings/hooks-locations POST: https://latestn.com/dispute/tool/github-copilot/settings/hooks-locations with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/settings/hooks-locations?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Where can I place GitHub Copilot hook configuration files, including policy hooks and agent-scoped hooks? Revision 3, last verified 2026-11-20T13:14:20Z. https://latestn.com/tool/github-copilot/settings/hooks-locations (accessed 2026-11-21T09:52:41Z). @misc{LatestN_tool_github_copilot_settings_hooks_locations_r3, title = {Where can I place GitHub Copilot hook configuration files, including policy hooks and agent-scoped hooks?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/settings/hooks-locations}}, note = {Revision 3; digest sha256:eb5c9081d80e0263; last verified 2026-11-20T13:14:20Z; accessed 2026-11-21T09:52:41Z} } 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/github-copilot/settings/hooks-locations