Answer: The SDK is a transport layer that sends your prompt to the Copilot CLI over JSON-RPC and surfaces events back to your app, while the CLI is the orchestrator that runs the agentic tool-use loop, making one or more LLM API calls until the task is done. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/agent-loop-architecture Revision: 3 Digest: sha256:0037be5e075e9709 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:27:45Z Last changed: 2026-11-19T13:01:34Z (Loop behavior: — → one or more LLM API calls until the task is done) Last verified: 2026-11-20T13:07:57Z Next check: 2026-11-21T13:07:57Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of SDK role | transport layer | [1] | 2026-11-20 Protocol | JSON-RPC | [1] | 2026-11-20 Orchestrator | Copilot CLI | [1] | 2026-11-20 Loop behavior | one or more LLM API calls until the task is done | [1] | 2026-11-20 Sources: [1] GitHub. "The agent loop - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/features/agent-loop Role: primary. Accessed: 2026-11-20T13:07:57Z Quote: "The SDK is a transport layer—it sends your prompt to the Copilot CLI over JSON-RPC and surfaces events back to your app." (Supports: SDK role) Quote: "it sends your prompt to the Copilot CLI over JSON-RPC" (Supports: Protocol) Quote: "Copilot CLI over JSON-RPC and surfaces events back to your app. The CLI is the orchestrator that runs the agentic tool-use loop" (Supports: Orchestrator) Quote: "making one or more LLM API calls until the task is done" (Supports: Loop behavior) Snapshot SHA-256: 129044a79258fe797fb5da7932fffdc0f526cfae7016d0657fb724f66daad3fc (captured 2026-11-18T13:02:58Z) 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:02:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:07:57Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:07:57Z Last attempt: 2026-11-20T13:07:57Z Notes and limitations: Extracted automatically from a single official source (section "Architecture"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/agent-management-availability Who can use GitHub Copilot agent management features? https://latestn.com/tool/github-copilot/agents-and-automation/agent-merge-prerequisites-limitations What are the prerequisites and limitations for using Agent Merge in GitHub Copilot? https://latestn.com/tool/github-copilot/agents-and-automation/agent-merge-pull-requests How do I get pull requests ready to merge with GitHub Copilot Agent Merge? https://latestn.com/tool/github-copilot/agents-and-automation/add-custom-tools-maf How do I add custom tools to a GitHub Copilot SDK agent in the Microsoft Agent Framework? https://latestn.com/tool/github-copilot/agents-and-automation/add-third-party-skill How do I add a skill that someone else created to GitHub Copilot CLI? https://latestn.com/tool/github-copilot/agents-and-automation/agent-apps What are agent apps in GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:01:34Z | changed | Loop behavior: — → one or more LLM API calls until the task is done | [1] 2026-11-19T13:01:34Z | changed | Orchestrator: — → Copilot CLI | [1] 2026-11-19T13:01:34Z | changed | Protocol: — → JSON-RPC | [1] 2026-11-19T13:01:34Z | changed | loop behavior: making one or more LLM API calls until the task is done → — | [1] 2026-11-19T13:01:34Z | changed | protocol: JSON-RPC → — | [1] 2026-11-19T13:01:34Z | changed | CLI role: orchestrator → — | [1] 2026-11-17T13:25:44Z | changed | loop behavior: — → making one or more LLM API calls until the task is done | [1] 2026-11-17T13:25:44Z | changed | protocol: — → JSON-RPC | [1] 2026-11-17T13:25:44Z | changed | LLM API calls: one or more → — | [1] 2026-11-13T03:27:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/agent-loop-architecture/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/agent-loop-architecture POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/agent-loop-architecture with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/agent-loop-architecture?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How does the GitHub Copilot SDK agent loop work? Revision 3, last verified 2026-11-20T13:07:57Z. https://latestn.com/tool/github-copilot/agents-and-automation/agent-loop-architecture (accessed 2026-11-21T10:00:05Z). @misc{LatestN_tool_github_copilot_agents_and_automation_agent_loop_architecture_r3, title = {How does the GitHub Copilot SDK agent loop work?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/agent-loop-architecture}}, note = {Revision 3; digest sha256:0037be5e075e9709; last verified 2026-11-20T13:07:57Z; accessed 2026-11-21T10:00:05Z} } 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/agent-loop-architecture