Skip to content
VacuumPrompts
HomeHow it worksFeaturesPrivacyInteractive examplesFAQ Help Center Download

GUIDE

How to reduce GitHub Copilot token usage

Last updated 2026-11-15

Since GitHub Copilot moved to usage-based billing on June 1, 2026, every chat and agent request draws tokens (input, output and cached) from your AI credits. Here is where those tokens go, how to see them, and how to use fewer without getting worse answers.

Why Copilot uses so many tokens

The message you type is usually a small part of what Copilot sends. Each request also carries Copilot's own instructions, your custom instructions file, open files and selected code, earlier turns of the chat, tool definitions, and in agent mode the output of every command it runs.

That context is re-sent on every turn. A long agent session that keeps reading files and terminal logs can send tens of thousands of tokens per step, even when your actual question is one line.

How to see how many tokens Copilot sends

  • Your GitHub billing page shows usage over time for your account or organization.
  • In VS Code, the Chat Debug view shows the requests behind a chat session, which is the most direct built-in way to inspect tokens.
  • VacuumPrompts shows every Copilot request on its Requests screen, broken into parts (instructions, history, files, logs, your prompt), with tokens and estimated cost per request and what was saved.

8 ways to reduce Copilot token usage

  • Start a new chat when you switch tasks. Old history is re-sent with every new message.
  • Attach only the files the task needs instead of asking about “the whole repo”.
  • Keep .github/copilot-instructions.md short. It is included in every request.
  • Break big jobs into small, specific steps so the agent does not wander through unrelated files.
  • Disable tools and MCP servers you are not using. Their definitions cost tokens too.
  • Pick a smaller model for simple edits and keep the large model for hard problems.
  • Paste the relevant part of a log or stack trace, not thousands of lines.
  • Use an automatic optimizer. VacuumPrompts trims repeated instructions, stale history and bulky logs from each Copilot request on your PC, and never changes your question or code.

Does trimming tokens make Copilot worse?

Not if it is done carefully. The goal is to remove what the model does not need, not what it does. VacuumPrompts checks proposed edits for protected context and skips risky trims. The prose you type can be trimmed or spell-corrected, and AI replies can vary. Prompt Review lets you compare the original and the trimmed version side by side.

Frequently asked questions

Why is Copilot using so many tokens?

Because each request includes much more than your message: instructions, open files, chat history, tool definitions and command output. That context is re-sent on every turn.

Is there a Copilot token usage tracker?

GitHub billing shows account-level usage. VacuumPrompts shows tokens and estimated cost for every individual Copilot request on your Windows PC, plus history charts over time.

How do I lower my Copilot bill under usage-based billing?

Keep chats short and focused, attach fewer files, trim instruction files, use smaller models for simple tasks, and let a tool like VacuumPrompts remove wasted tokens automatically.

Download VacuumPrompts free for Windows

More guides

  • Codex usage limit reached too fast? Here’s how to save tokens
  • How to save tokens in ChatGPT and reduce LLM costs
  • How to stop API keys and passwords leaking into ChatGPT and Copilot
  • PII redaction for ChatGPT and Copilot, including Aadhaar and PAN

All guides

About & contact · Privacy Policy · Terms of Use · Changelog

VacuumPrompts

The vacuum cleaner for AI prompts: no dust, no dirt, just the prompt. Free for Windows 10 & 11, runs entirely on your PC.

SOLUTIONS

  • Prompt optimizer
  • Token optimization
  • Prompt security
  • Prompt spelling corrector
  • Guides

PRODUCT

  • How it works
  • Features
  • Privacy
  • Interactive examples
  • Download
  • Benchmark
  • Changelog

HELP

  • FAQ
  • Help Center
  • Uninstall guide
  • Contact support privately
  • Report a bug publicly ↗

COMPANY

  • About & contact
  • Releases on GitHub ↗
  • Privacy Policy
  • Terms of Use

v0.1.50 Preview · Windows · © 2026 The VacuumPrompts team