What works for me:
- Small, well-described edits (copy change, CSS, add a prop, rename): the fast in-house model. It's cheap and honestly just as good when the task fits in one file.
- Planning the refactor: the strongest model, once, in a chat where it may not write code. Ask for a step-by-step plan with file names.
- Executing the plan: mid-tier model, one step per message, run your tests between steps.
The expensive part is not the model choice, it's letting a big model loop on a vague task for 25 tool calls.