Answer: To get started using hooks in the GitHub Copilot SDK, create a session with a hooks object that defines callbacks such as onPreToolUse, onPostToolUse, and onSessionStart. The quick start shows this in TypeScript, Python, Go, .NET, and Java. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/hooks-quick-start Revision: 1 Digest: sha256:c6a986b2c7f7f850 (changes whenever the content changes) Timeline: Created: 2026-11-18T13:04:09Z Last changed: 2026-11-18T13:04:09Z Last verified: 2026-11-20T13:08:57Z Next check: 2026-11-21T13:08:57Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of TypeScript hook setup | hooks : { onPreToolUse : async (input) => { | [1] | 2026-11-20 Pre-tool-use hook | onPreToolUse | [1] | 2026-11-20 Post-tool-use hook | onPostToolUse | [1] | 2026-11-20 Session-start hook | onSessionStart | [1] | 2026-11-20 Python hook setup | hooks={ "on_pre_tool_use" : on_pre_tool_use, | [1] | 2026-11-20 Go hook setup | Hooks: &copilot.SessionHooks{ | [1] | 2026-11-20 .NET hook setup | Hooks = new SessionHooks { | [1] | 2026-11-20 Java hook setup | var hooks = new SessionHooks () | [1] | 2026-11-20 Sources: [1] GitHub. "Session hooks - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/hooks/hooks-overview Role: primary. Accessed: 2026-11-20T13:08:57Z Quote: "hooks : { onPreToolUse : async (input) => {" (Supports: TypeScript hook setup) Quote: "onPreToolUse : async (input) => {" (Supports: Pre-tool-use hook) Quote: "onPostToolUse : async (input) => {" (Supports: Post-tool-use hook) Quote: "onSessionStart : async (input) => {" (Supports: Session-start hook) Quote: "hooks={ "on_pre_tool_use" : on_pre_tool_use," (Supports: Python hook setup) Quote: "Hooks: &copilot.SessionHooks{" (Supports: Go hook setup) Quote: "Hooks = new SessionHooks {" (Supports: .NET hook setup) Quote: "var hooks = new SessionHooks ()" (Supports: Java hook setup) Snapshot SHA-256: 0d279d9e576a983d3a2eef1c9e5138cc225c4dcabb793cb545c1ba9a764fb490 (captured 2026-11-18T13:04:08Z) 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:04:09Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:08:57Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:08:57Z Last attempt: 2026-11-20T13:08:57Z Notes and limitations: Extracted automatically from a single official source (section "Quick start"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/how-agents-coordinate How do GitHub Copilot agents coordinate work with each other? https://latestn.com/tool/github-copilot/agents-and-automation/implement-feature-from-issue How do I use GitHub Copilot to implement a feature from a GitHub Issue? https://latestn.com/tool/github-copilot/agents-and-automation/implement-feature-from-issue-2 How do I implement a feature from a GitHub Issue using GitHub Copilot? https://latestn.com/tool/github-copilot/agents-and-automation/fleet-command-delegate-parallelize How do I use the /fleet command in GitHub Copilot to delegate and parallelize work across agents? https://latestn.com/tool/github-copilot/agents-and-automation/fleet-subagents-and-monitoring How do I assign specialized subagents and monitor progress in GitHub Copilot CLI fleet mode? https://latestn.com/tool/github-copilot/agents-and-automation/hook-invocation-context What context is passed to a GitHub Copilot SDK hook when it is invoked? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:04:09Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/hooks-quick-start/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/agents-and-automation/hooks-quick-start POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/hooks-quick-start with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/hooks-quick-start?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I get started using hooks in the GitHub Copilot SDK? Revision 1, last verified 2026-11-20T13:08:57Z. https://latestn.com/tool/github-copilot/agents-and-automation/hooks-quick-start (accessed 2026-11-21T10:00:00Z). @misc{LatestN_tool_github_copilot_agents_and_automation_hooks_quick_start_r1, title = {How do I get started using hooks in the GitHub Copilot SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/hooks-quick-start}}, note = {Revision 1; digest sha256:c6a986b2c7f7f850; last verified 2026-11-20T13:08:57Z; accessed 2026-11-21T10:00:00Z} } 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/agents-and-automation/hooks-quick-start