Answer: You add project context at session start by defining an onSessionStart hook that returns an additionalContext string, as shown in the TypeScript example using onSessionStart and the Python example using on_session_start. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/session-start-add-project-context Revision: 3 Digest: sha256:6e29562907b94926 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:36Z Last changed: 2026-11-18T13:04:19Z (Python returned field: — → additionalContext) Last verified: 2026-11-20T13:09:06Z Next check: 2026-11-21T13:09:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of TypeScript hook name | onSessionStart | [1] | 2026-11-20 Python hook name | on_session_start | [1] | 2026-11-20 Returned field | additionalContext | [1] | 2026-11-20 Python returned field | additionalContext | [1] | 2026-11-20 Sources: [1] GitHub. "Session lifecycle hooks - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/hooks/session-lifecycle Role: primary. Accessed: 2026-11-20T13:09:06Z Quote: "onSessionStart : async (input, invocation) =>" (Supports: TypeScript hook name) Quote: ""on_session_start" : on_session_start" (Supports: Python hook name) Quote: "return { additionalContext :" (Supports: Returned field) Quote: ""additionalContext" : f"""" (Supports: Python returned field) Snapshot SHA-256: c3b2940e63c2d5b4375f09e3c10e3dbeda70a4f09f16d8e5858af613f941621b (captured 2026-11-18T13:04:20Z) 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:19Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:09:06Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:09:06Z Last attempt: 2026-11-20T13:09:06Z Notes and limitations: Extracted automatically from a single official source (section "Add project context at start"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/set-repository-automation-level How do I set my repository's automation level for GitHub Copilot issue suggestions? https://latestn.com/tool/github-copilot/agents-and-automation/set-up-recurring-work How do I set up recurring work in the GitHub Copilot app? https://latestn.com/tool/github-copilot/agents-and-automation/stacking-prerequisites What are the prerequisites for stacking AI-generated code in pull requests with GitHub Copilot? https://latestn.com/tool/github-copilot/agents-and-automation/session-idle-vs-task-complete What is the difference between session.idle and session.task_complete in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/agents-and-automation/session-lifecycle-hooks-best-practices What are the best practices for using GitHub Copilot SDK session lifecycle hooks? https://latestn.com/tool/github-copilot/agents-and-automation/session-resume-persistence How do I resume a GitHub Copilot SDK session and keep it persistent? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:04:19Z | changed | Python returned field: — → additionalContext | [1] 2026-11-18T13:04:19Z | changed | Python hook name: — → on_session_start | [1] 2026-11-18T13:04:19Z | changed | TypeScript hook name: — → onSessionStart | [1] 2026-11-18T13:04:19Z | changed | Context content: This is a ${projectInfo. type } project. Main language: ${projectInfo.language} Package manager: ${projectInfo.packageManager} → — | [1] 2026-11-18T13:04:19Z | changed | Hook name (Python): on_session_start → — | [1] 2026-11-18T13:04:19Z | changed | Hook name (TypeScript): onSessionStart → — | [1] 2026-11-16T12:53:04Z | changed | Context content: — → This is a ${projectInfo. type } project. Main language: ${projectInfo.language} Package manager: ${projectInfo.packageManager} | [1] 2026-11-16T12:53:04Z | changed | Hook name (Python): — → on_session_start | [1] 2026-11-16T12:53:04Z | changed | Hook name (TypeScript): — → onSessionStart | [1] 2026-11-16T12:53:04Z | changed | Python returned field: additionalContext → — | [1] 2026-11-16T12:53:04Z | changed | Python hook name: on_session_start → — | [1] 2026-11-16T12:53:04Z | changed | TypeScript hook name: onSessionStart → — | [1] 2026-11-13T03:28:36Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/session-start-add-project-context/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/session-start-add-project-context POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/session-start-add-project-context with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/session-start-add-project-context?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add project context when a GitHub Copilot SDK session starts? Revision 3, last verified 2026-11-20T13:09:06Z. https://latestn.com/tool/github-copilot/agents-and-automation/session-start-add-project-context (accessed 2026-11-21T09:57:13Z). @misc{LatestN_tool_github_copilot_agents_and_automation_session_start_add_project_context_r3, title = {How do I add project context when a GitHub Copilot SDK session starts?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/session-start-add-project-context}}, note = {Revision 3; digest sha256:6e29562907b94926; last verified 2026-11-20T13:09:06Z; accessed 2026-11-21T09:57:13Z} } 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/session-start-add-project-context