Answer: The available session hooks are the Session lifecycle hooks, which trigger on Session begins, Session ends, and when the Top-level agent naturally stops. They are used to add context and configure the session, perform cleanup and analytics, and validate completion or request another turn. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/available-session-hooks Revision: 2 Digest: sha256:18728261927be910 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:30Z Last changed: 2026-11-17T13:27:05Z (Agent stops hook: — → Top-level agent naturally stops) 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 Session begins hook | Session begins | [1] | 2026-11-20 Session ends hook | Session ends | [1] | 2026-11-20 Agent stops hook | Top-level agent naturally stops | [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: "Session lifecycle hooks Session begins Add context, configure session" (Supports: Session begins hook) Quote: "Session lifecycle hooks Session ends Cleanup, analytics" (Supports: Session ends hook) Quote: "Session lifecycle hooks Top-level agent naturally stops Validate completion or request another turn" (Supports: Agent stops hook) 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:08Z, 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 "Available hooks"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/block-user-prompt-hook How do I block a user prompt in the GitHub Copilot SDK user prompt submitted hook? https://latestn.com/tool/github-copilot/agents-and-automation/bug-fix-teammate-agent-profile What does the GitHub Copilot bug fix teammate agent profile include? https://latestn.com/tool/github-copilot/agents-and-automation/built-in-agents What are the built-in agents in GitHub Copilot? https://latestn.com/tool/github-copilot/agents-and-automation/automation-quickstart How do I get started automating with GitHub Copilot CLI? https://latestn.com/tool/github-copilot/agents-and-automation/automation-triggers What triggers can start a GitHub Copilot automation? https://latestn.com/tool/github-copilot/agents-and-automation/autopilot-considerations What should I consider before letting GitHub Copilot Autopilot work autonomously? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T13:27:05Z | changed | Agent stops hook: — → Top-level agent naturally stops | [1] 2026-11-17T13:27:05Z | changed | Top-level agent stops hook: Top-level agent naturally stops → — | [1] 2026-11-13T03:28:30Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/available-session-hooks/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/available-session-hooks POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/available-session-hooks with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/available-session-hooks?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What session hooks are available in the GitHub Copilot SDK? Revision 2, last verified 2026-11-20T13:08:57Z. https://latestn.com/tool/github-copilot/agents-and-automation/available-session-hooks (accessed 2026-11-21T10:01:06Z). @misc{LatestN_tool_github_copilot_agents_and_automation_available_session_hooks_r2, title = {What session hooks are available in the GitHub Copilot SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/available-session-hooks}}, note = {Revision 2; digest sha256:18728261927be910; last verified 2026-11-20T13:08:57Z; accessed 2026-11-21T10:01:06Z} } 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/available-session-hooks