r/GithubCopilot • • 22d ago

Discussions GitHub's own docs: switching models mid-session throws away your prompt cache, and cached tokens are typically billed at 10% of normal. Where do you draw the line?

Quick summary of what GitHub's "Optimize AI usage" guide says about the prompt cache, because it changes how the model picker is worth using:

- Cached input tokens are typically billed at 10% of the normal input price.

- Switching models mid-session invalidates the cache. A different model can't reuse another model's cache, so the next request rebuilds it and is billed as fresh input.

- Changing the reasoning level, context size, or the set of enabled tools/MCP servers does the same.

- Auto only switches at natural cache boundaries: a new session, or after /compact.

So a mid-session switch has a price, and GitHub's own routing is built to avoid it.

That is the cost side. The handoff side is a different question: when you do switch, the new model only knows what you carry across. A summary? A notes file? Nothing?

Answer whichever you have an opinion on:

  1. Do you ever switch mid-session, and for what? (The guide suggests reasoning models for architecture and hard debugging, mid-tier models once the plan is clear.)
  2. Do you switch at /compact or a new session instead?
  3. What do you carry over?

If you have compared your AI usage page before and after a switch, I would like to see the numbers.

12 Upvotes

9 comments sorted by

4

u/ombre-ai 22d ago

Sources: GitHub Docs, 'Optimize AI usage' (https://docs.github.com/en/enterprise-cloud@latest/copilot/tutorials/optimize-ai-usage) and the GitHub Blog post 'Getting more from each token' (https://github.blog/ai-and-ml/github-copilot/getting-more-from-each-token-how-copilot-improves-context-handling-and-model-routing/).

If you do switch at a boundary, this is the shape of handoff note I would try (untested, my suggestion, not from the docs):

Decided: Ruled out (and why): Constraints: Next step:

Caveat: this describes Copilot. Other tools cache differently, so the numbers may not carry over.

6

u/atkr 22d ago

1 -> use subagents or have your first agent dump to markdown then switch in a new session

2

u/WordWithinTheWord 22d ago

Just create a new session. I’ve only “escalated” a model a handful of times and in those cases I just /compact first.

1

u/ChemicalExcellent463 22d ago

I switch in a new session when I hit a limit on Claude or Codex, and pick up from a handover file written after every task. What do you put in your handover notes?

1

u/Dazzling_Seesaw_7879 22d ago

auto mode is just a way to avoid paying for cache invalidation. If you switch models, dump the entire context window to a markdown file and open a fresh session. Rebuilding the cache on an existing thread burns 10x more tokens than starting clean

1

u/Inner-Lawfulness9437 21d ago

It costs more because it has more details. Might be redundant, unnecessary, useless details, but might be useful ones too.

0

u/Beedux 22d ago

My experience is that changing models mid session doesn’t do anything, it just uses the model of the original prompt