Answer: The runtime emits a session.usage_info event whenever the context-window size changes; you subscribe to it (e.g., session.on("session.usage_info", ...)) and read currentTokens and tokenLimit from the event data to compute live usage. Status: Confirmed Entry: tool/github-copilot/features/live-usage-updates Revision: 3 Digest: sha256:5bf793a7d3bf13dc (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:25Z Last changed: 2026-11-19T13:02:24Z (tokenLimit field: — → tokenLimit) Last verified: 2026-11-20T13:08:49Z Next check: 2026-11-21T13:08:49Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of event name | session.usage_info | [1] | 2026-11-20 trigger | whenever the context-window size changes | [1] | 2026-11-20 currentTokens field | currentTokens | [1] | 2026-11-20 tokenLimit field | tokenLimit | [1] | 2026-11-20 currentTokens description | Tokens currently in the context window | [1] | 2026-11-20 tokenLimit description | Maximum tokens for the model's context window | [1] | 2026-11-20 Sources: [1] GitHub. "Usage and billing metrics - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/features/usage-and-billing Role: primary. Accessed: 2026-11-20T13:08:49Z Quote: "The runtime emits a session.usage_info event whenever the context-window size changes." (Supports: event name, trigger) Quote: "The example uses currentTokens and tokenLimit" (Supports: currentTokens field, tokenLimit field) Quote: "currentTokens number Tokens currently in the context window" (Supports: currentTokens description) Quote: "tokenLimit number Maximum tokens for the model's context window" (Supports: tokenLimit description) Snapshot SHA-256: cb0242d1279dd59e34e0fb4befc4aebfcebcc228ef72f5e1fcaa30c9c94a9fc6 (captured 2026-11-18T13:03:59Z) 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:59Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:08:49Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:08:49Z Last attempt: 2026-11-20T13:08:49Z Notes and limitations: Extracted automatically from a single official source (section "Live updates with session.usage_info"). Related: https://latestn.com/tool/github-copilot/features/lsp-server-benefits What are the benefits of using LSP servers with GitHub Copilot CLI? https://latestn.com/tool/github-copilot/features/lsp-server-capabilities What can GitHub Copilot CLI do with LSP servers? https://latestn.com/tool/github-copilot/features/maintain-plugin-marketplace How do I review and maintain a GitHub Copilot plugin marketplace? https://latestn.com/tool/github-copilot/features/integration-benefits What are the benefits of using GitHub Copilot integrations? https://latestn.com/tool/github-copilot/features/iterate-and-improve-project How do I iterate on changes and improve my project after the first version with GitHub Copilot? https://latestn.com/tool/github-copilot/features/learn-about-new-features-and-models How do I find out about new GitHub Copilot features and models? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:02:24Z | changed | tokenLimit field: — → tokenLimit | [1] 2026-11-19T13:02:24Z | changed | currentTokens field: — → currentTokens | [1] 2026-11-19T13:02:24Z | changed | field: tokenLimit: tokenLimit → — | [1] 2026-11-19T13:02:24Z | changed | field: currentTokens: currentTokens → — | [1] 2026-11-17T13:26:53Z | changed | field: tokenLimit: — → tokenLimit | [1] 2026-11-17T13:26:53Z | changed | field: currentTokens: — → currentTokens | [1] 2026-11-17T13:26:53Z | changed | trigger: — → whenever the context-window size changes | [1] 2026-11-17T13:26:53Z | changed | event name: — → session.usage_info | [1] 2026-11-17T13:26:53Z | changed | Field: tokenLimit: tokenLimit → — | [1] 2026-11-17T13:26:53Z | changed | Field: currentTokens: currentTokens → — | [1] 2026-11-17T13:26:53Z | changed | Trigger: whenever the context-window size changes → — | [1] 2026-11-17T13:26:53Z | changed | Event name: session.usage_info → — | [1] 2026-11-13T03:28:25Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/features/live-usage-updates/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/live-usage-updates POST: https://latestn.com/dispute/tool/github-copilot/features/live-usage-updates with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/features/live-usage-updates?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I get live usage updates with session.usage_info in the GitHub Copilot SDK? Revision 3, last verified 2026-11-20T13:08:49Z. https://latestn.com/tool/github-copilot/features/live-usage-updates (accessed 2026-11-21T09:50:49Z). @misc{LatestN_tool_github_copilot_features_live_usage_updates_r3, title = {How do I get live usage updates with session.usage_info in the GitHub Copilot SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/features/live-usage-updates}}, note = {Revision 3; digest sha256:5bf793a7d3bf13dc; last verified 2026-11-20T13:08:49Z; accessed 2026-11-21T09:50:49Z} } 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/live-usage-updates