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

View all comments

6

u/atkr 24d ago

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