Answer: Hook configuration files use JSON format with version 1. Command hooks use a "type": "command" object with bash, powershell, or command fields (or exec and args in Copilot CLI), HTTP hooks use a "type": "http" object with a url, and prompt hooks use a "type": "prompt" object with a prompt field. Status: Confirmed Entry: tool/github-copilot/settings/hook-configuration-format Revision: 3 Digest: sha256:b57ce71e498557b3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:32:35Z Last changed: 2026-11-19T13:08:05Z (prompt hook supported event: — → sessionStart) Last verified: 2026-11-20T13:14:21Z Next check: 2026-11-21T13:14:21Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of configuration format | JSON format with version 1 | | [1] | 2026-11-20 command hook type | "command" | | [1] | 2026-11-20 command hook timeout default | 30 | seconds | [1] | 2026-11-20 HTTP hook type | "http" | | [1] | 2026-11-20 HTTP hook url requirement | Must use http: or https: | | [1] | 2026-11-20 prompt hook type | "prompt" | | [1] | 2026-11-20 prompt hook supported event | sessionStart | | [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:21Z Quote: "Hook configuration files use JSON format with version 1 ." (Supports: configuration format) Quote: ""type" : "command" , "bash" : "YOUR_BASH_COMMAND"" (Supports: command hook type) Quote: "Timeout in seconds. Default: 30 ." (Supports: command hook timeout default) Quote: ""type" : "http" , "url" : "https://hooks.example.com/copilot"" (Supports: HTTP hook type) Quote: "Target URL. Must use http: or https: ." (Supports: HTTP hook url requirement) Quote: ""type" : "prompt" , "prompt" : "YOUR_PROMPT_TEXT_OR_SLASH_COMMAND"" (Supports: prompt hook type) Quote: "They are only supported on sessionStart ." (Supports: prompt hook supported event) 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:40Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:14:21Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:14:21Z Last attempt: 2026-11-20T13:14:21Z Notes and limitations: Extracted automatically from a single official source (section "Hook configuration format"). Related: 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/github-copilot/settings/hooks-locations Where can I place GitHub Copilot hook configuration files, including policy hooks and agent-scoped hooks? 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/exclude-content-repository How do I exclude content from GitHub Copilot for my repository? https://latestn.com/tool/github-copilot/settings/extension-location Where can I place a GitHub Copilot CLI extension file so it gets loaded? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:08:05Z | changed | prompt hook supported event: — → sessionStart | [1] 2026-11-19T13:08:05Z | changed | HTTP hook url requirement: — → Must use http: or https: | [1] 2026-11-19T13:08:05Z | changed | command hook timeout default: — → 30 | [1] 2026-11-19T13:08:05Z | changed | default timeout: 30 → — | [1] 2026-11-19T13:08:05Z | changed | prompt hook example fields: "prompt" : "YOUR_PROMPT_TEXT_OR_SLASH_COMMAND" → — | [1] 2026-11-19T13:08:05Z | changed | HTTP hook example fields: "url" : "https://hooks.example.com/copilot" , "headers" : { "X-Source" : "copilot-cli" } , "allowedEnvVars" : [ "GITHUB_TOKEN" ] , "timeoutSec" : 30 → — | [1] 2026-11-19T13:08:05Z | changed | command hook example fields: "bash" : "YOUR_BASH_COMMAND" , "powershell" : "YOUR_POWERSHELL_COMMAND" , "cwd" : "OPTIONAL/WORKING/DIRECTORY" , "env" : { "VAR" : "VALUE" } , "timeoutSec" : 30 → — | [1] 2026-11-17T13:34:04Z | changed | prompt hook example fields: — → "prompt" : "YOUR_PROMPT_TEXT_OR_SLASH_COMMAND" | [1] 2026-11-17T13:34:04Z | changed | HTTP hook example fields: — → "url" : "https://hooks.example.com/copilot" , "headers" : { "X-Source" : "copilot-cli" } , "allowedEnvVars" : [ "GITHUB_TOKEN" ] , "timeoutSec" : 30 | [1] 2026-11-17T13:34:04Z | changed | command hook example fields: — → "bash" : "YOUR_BASH_COMMAND" , "powershell" : "YOUR_POWERSHELL_COMMAND" , "cwd" : "OPTIONAL/WORKING/DIRECTORY" , "env" : { "VAR" : "VALUE" } , "timeoutSec" : 30 | [1] 2026-11-17T13:34:04Z | changed | prompt hook support: sessionStart → — | [1] 2026-11-17T13:34:04Z | changed | prompt hook type: prompt → "prompt" | [1] 2026-11-17T13:34:04Z | changed | HTTP hook type: http → "http" | [1] 2026-11-17T13:34:04Z | changed | command hook type: command → "command" | [1] 2026-11-13T03:32:35Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/settings/hook-configuration-format/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/hook-configuration-format POST: https://latestn.com/dispute/tool/github-copilot/settings/hook-configuration-format with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/settings/hook-configuration-format?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is the configuration format for GitHub Copilot command, HTTP, and prompt hooks? Revision 3, last verified 2026-11-20T13:14:21Z. https://latestn.com/tool/github-copilot/settings/hook-configuration-format (accessed 2026-11-21T09:52:17Z). @misc{LatestN_tool_github_copilot_settings_hook_configuration_format_r3, title = {What is the configuration format for GitHub Copilot command, HTTP, and prompt hooks?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/settings/hook-configuration-format}}, note = {Revision 3; digest sha256:b57ce71e498557b3; last verified 2026-11-20T13:14:21Z; accessed 2026-11-21T09:52:17Z} } 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/hook-configuration-format