Answer: To define a custom agent in the GitHub Copilot SDK, pass customAgents when creating a session; each agent needs at minimum a name and prompt. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/define-custom-agent Revision: 3 Digest: sha256:44197c53d9217f91 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:27:56Z Last changed: 2026-11-18T13:03:14Z (example agent display name: — → Research Agent) Last verified: 2026-11-20T13:08:10Z Next check: 2026-11-21T13:08:10Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of method | Pass customAgents when creating a session | [1] | 2026-11-20 required fields | a name and prompt | [1] | 2026-11-20 example model | gpt-5.4 | [1] | 2026-11-20 example agent name | researcher | [1] | 2026-11-20 example agent display name | Research Agent | [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:10Z Quote: "Pass customAgents when creating a session." (Supports: method) Quote: "Each agent needs at minimum a name and prompt ." (Supports: required fields) Quote: "model : "gpt-5.4"" (Supports: example model) Quote: "name : "researcher"" (Supports: example agent name) Quote: "displayName : "Research Agent"" (Supports: example agent display 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:14Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:08:10Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:08:10Z Last attempt: 2026-11-20T13:08:10Z Notes and limitations: Extracted automatically from a single official source (section "Defining custom agents"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/delegate-agent-work How do I choose and delegate work to GitHub Copilot agents? https://latestn.com/tool/github-copilot/agents-and-automation/delegate-parallelize-work How do I delegate and parallelize work with GitHub Copilot agents? https://latestn.com/tool/github-copilot/agents-and-automation/delegate-tasks-to-cloud-agent How do I delegate a task to the GitHub Copilot cloud agent from Copilot CLI? https://latestn.com/tool/github-copilot/agents-and-automation/customize-cloud-agent How do I customize the GitHub Copilot cloud agent? https://latestn.com/tool/github-copilot/agents-and-automation/customize-dependency-management How do I customize dependency management with GitHub Copilot? https://latestn.com/tool/github-copilot/agents-and-automation/deep-research-with-agents How do I perform deep research with GitHub Copilot agents before making code changes? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:03:14Z | changed | example agent display name: — → Research Agent | [1] 2026-11-18T13:03:14Z | changed | example agent name: — → researcher | [1] 2026-11-18T13:03:14Z | changed | example model: — → gpt-5.4 | [1] 2026-11-18T13:03:14Z | changed | discovery option: agentDirectories or Customization discovery locations → — | [1] 2026-11-16T12:52:04Z | changed | discovery option: — → agentDirectories or Customization discovery locations | [1] 2026-11-16T12:52:04Z | changed | example agent display name: Research Agent → — | [1] 2026-11-16T12:52:04Z | changed | example agent name: researcher → — | [1] 2026-11-16T12:52:04Z | changed | example model: gpt-5.4 → — | [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/define-custom-agent/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/define-custom-agent POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/define-custom-agent with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/define-custom-agent?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I define a custom agent in the GitHub Copilot SDK? Revision 3, last verified 2026-11-20T13:08:10Z. https://latestn.com/tool/github-copilot/agents-and-automation/define-custom-agent (accessed 2026-11-21T10:00:07Z). @misc{LatestN_tool_github_copilot_agents_and_automation_define_custom_agent_r3, title = {How do I define a custom agent in the GitHub Copilot SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/define-custom-agent}}, note = {Revision 3; digest sha256:44197c53d9217f91; last verified 2026-11-20T13:08:10Z; accessed 2026-11-21T10:00:07Z} } 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/define-custom-agent