r/GithubCopilot • • 27d 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

10 comments sorted by

View all comments

1

u/Dazzling_Seesaw_7879 27d 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 25d ago

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