Warns once before a message that will cost far more than usual: a large your AI Code context whose prompt cache has expired, or a model or effort change that resets it.
Shows the estimated cost, and offers a handoff file written by a cheap model in the background so you can /clear instead.
1 in the Claude listing