Answer: You can pass agent in the session config to pre-select which custom agent should be active when the session starts; the value must match the name of one of the agents defined in customAgents. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/select-agent-at-session-creation Revision: 3 Digest: sha256:1de6efe56d0f9f7f (changes whenever the content changes) Timeline: Created: 2026-11-13T03:27:56Z Last changed: 2026-11-19T13:01:48Z (example agent name: — → researcher) Last verified: 2026-11-20T13:08:11Z Next check: 2026-11-21T13:08:11Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config key | agent | [1] | 2026-11-20 value requirement | customAgents | [1] | 2026-11-20 example agent name | researcher | [1] | 2026-11-20 Sources: [1] GitHub. "Custom agents and sub-agent orchestration - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/features/custom-agents Role: primary. Accessed: 2026-11-20T13:08:11Z Quote: "You can pass agent in the session config to pre-select which custom agent should be active when the session starts." (Supports: config key) Quote: "The value must match the name of one of the agents defined in customAgents ." (Supports: value requirement) Quote: "agent : "researcher" , // Pre-select the researcher agent" (Supports: example agent name) Snapshot SHA-256: dfa87b471af31cfe91e44df0d4f4991f13666613d392decc2c5a7ec243956a07 (captured 2026-11-18T13:03:16Z) 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:03:15Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:08:11Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:08:11Z Last attempt: 2026-11-20T13:08:11Z Notes and limitations: Extracted automatically from a single official source (section "Selecting an agent at session creation"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/semantic-search-cloud-agent How does semantic code search work in the GitHub Copilot cloud agent? https://latestn.com/tool/github-copilot/agents-and-automation/send-errors-to-monitoring How do I send GitHub Copilot SDK errors to a monitoring service or alert on critical errors? https://latestn.com/tool/github-copilot/agents-and-automation/session-end-reasons What end reasons does the GitHub Copilot SDK session end hook receive? https://latestn.com/tool/github-copilot/agents-and-automation/schedule-prompts How do I schedule prompts in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/agents-and-automation/scope-tools-per-agent How do I scope tools to individual agents in the GitHub Copilot SDK? https://latestn.com/tool/github-copilot/agents-and-automation/seed-new-repository How do I seed a new repository with Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:01:48Z | changed | example agent name: — → researcher | [1] 2026-11-19T13:01:48Z | changed | value requirement: — → customAgents | [1] 2026-11-19T13:01:48Z | changed | config key: — → agent | [1] 2026-11-19T13:01:48Z | changed | Example agent name: researcher → — | [1] 2026-11-19T13:01:48Z | changed | Value requirement: customAgents → — | [1] 2026-11-19T13:01:48Z | changed | Config parameter: agent → — | [1] 2026-11-17T13:26:04Z | changed | Example agent name: — → researcher | [1] 2026-11-17T13:26:04Z | changed | Value requirement: — → customAgents | [1] 2026-11-17T13:26:04Z | changed | Config parameter: — → agent | [1] 2026-11-17T13:26:04Z | changed | example agent name: researcher → — | [1] 2026-11-17T13:26:04Z | changed | matching requirement: customAgents → — | [1] 2026-11-17T13:26:04Z | changed | config key: agent → — | [1] 2026-11-13T03:27:56Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/select-agent-at-session-creation/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/select-agent-at-session-creation POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/select-agent-at-session-creation with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/select-agent-at-session-creation?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I select a specific agent when creating a GitHub Copilot SDK session? Revision 3, last verified 2026-11-20T13:08:11Z. https://latestn.com/tool/github-copilot/agents-and-automation/select-agent-at-session-creation (accessed 2026-11-21T09:57:42Z). @misc{LatestN_tool_github_copilot_agents_and_automation_select_agent_at_session_creation_r3, title = {How do I select a specific agent when creating a GitHub Copilot SDK session?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/select-agent-at-session-creation}}, note = {Revision 3; digest sha256:1de6efe56d0f9f7f; last verified 2026-11-20T13:08:11Z; accessed 2026-11-21T09:57:42Z} } 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/select-agent-at-session-creation