Answer: The number of assistant.turn_start / assistant.turn_end pairs in the event log equals the total number of LLM API calls made, with no hidden calls for planning, evaluation, or completion checking. You can inspect turn count for a session by counting turns in the session's event log with grep -c "assistant.turn_start" ~/.copilot/session-state//events.jsonl. Status: Confirmed Entry: tool/github-copilot/features/count-llm-calls Revision: 3 Digest: sha256:be79bb65a35bf865 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:27:46Z Last changed: 2026-11-19T13:01:36Z (Inspection command: — → grep -c "assistant.turn_start" ~/.copilot/session-state//events.jsonl) Last verified: 2026-11-20T13:07:59Z Next check: 2026-11-21T13:07:59Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Counting method | assistant.turn_start / assistant.turn_end pairs | [1] | 2026-11-20 Hidden calls | There are no hidden calls for planning, evaluation, or completion checking. | [1] | 2026-11-20 Inspection command | grep -c "assistant.turn_start" ~/.copilot/session-state//events.jsonl | [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:59Z Quote: "The number of assistant.turn_start / assistant.turn_end pairs in the event log equals the total number of LLM API calls made." (Supports: Counting method) Quote: "There are no hidden calls for planning, evaluation, or completion checking." (Supports: Hidden calls) Quote: "grep -c "assistant.turn_start" ~/.copilot/session-state//events.jsonl" (Supports: Inspection command) 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:03:00Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:07:59Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:07:59Z Last attempt: 2026-11-20T13:07:59Z Notes and limitations: Extracted automatically from a single official source (section "Counting LLM calls"). Related: https://latestn.com/tool/github-copilot/features/cover-edge-cases How can GitHub Copilot help cover edge cases in tests? https://latestn.com/tool/github-copilot/features/create-a-space How do I create a GitHub Copilot Space? https://latestn.com/tool/github-copilot/features/create-diagrams-with-copilot How do I use GitHub Copilot to create diagrams? https://latestn.com/tool/github-copilot/features/copilot-tools-for-reviews-testing-deployment Which GitHub Copilot AI tools are recommended for reviews, testing, deployment, and operations tasks? https://latestn.com/tool/github-copilot/features/copilot-vscode-benefits What are the benefits of using GitHub Copilot in VS Code? https://latestn.com/tool/github-copilot/features/copilot-vscode-features What can I do with GitHub Copilot in VS Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:01:36Z | changed | Inspection command: — → grep -c "assistant.turn_start" ~/.copilot/session-state//events.jsonl | [1] 2026-11-19T13:01:36Z | changed | Command: grep -c "assistant.turn_start" ~/.copilot/session-state//events.jsonl → — | [1] 2026-11-17T13:25:47Z | changed | Hidden calls: no hidden calls → There are no hidden calls for planning, evaluation, or completion checking. | [1] 2026-11-13T03:27:46Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/features/count-llm-calls/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/features/count-llm-calls POST: https://latestn.com/dispute/tool/github-copilot/features/count-llm-calls with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/features/count-llm-calls?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I count LLM calls in the GitHub Copilot SDK agent loop? Revision 3, last verified 2026-11-20T13:07:59Z. https://latestn.com/tool/github-copilot/features/count-llm-calls (accessed 2026-11-21T09:53:29Z). @misc{LatestN_tool_github_copilot_features_count_llm_calls_r3, title = {How do I count LLM calls in the GitHub Copilot SDK agent loop?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/features/count-llm-calls}}, note = {Revision 3; digest sha256:be79bb65a35bf865; last verified 2026-11-20T13:07:59Z; accessed 2026-11-21T09:53:29Z} } 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/features/count-llm-calls