Demo, all content is generated
Question

Which model in Windsurf for a big refactor vs small fixes? I'm burning credits

Open · 525 views · asked by ben_ts · edited

I always leave it on the most expensive model because I'm scared the cheaper ones break stuff. My credits for the month are gone after 11 days.

What do people actually use for what? I have a refactor coming up (split one 900-line API file into modules) and lots of small UI tweaks.

What I’ve tried

Tried the cheaper in-house model for a CSS change, it was fine. Haven't dared to use it for anything bigger.

Comment
What's the refactor exactly? Moving code or changing behavior? That changes the answer. sergio_ruiz · edited
Just moving. The endpoints should behave the same after. ben_ts · edited

3 answers

gus_fullstack · edited

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.

Comment
The plan-then-execute split makes sense. Will try it on the API file. ben_ts · edited
sergio_ruiz · edited

I'd push back a little on mid-tier for the refactor execution. Splitting a 900-line file is where the cheaper models tend to "helpfully" rewrite logic while moving it, and you only notice in production.

For moves specifically I use the strong model but with a tight prompt: "move functions X, Y, Z verbatim to api/users.ts, update imports, change nothing else". That's short output, so it's not that expensive. Credits go on long outputs and long loops, not on the model name alone.

Comment
Fair. 'verbatim' is doing a lot of work in that prompt, and the cheap ones don't always respect it. gus_fullstack · edited
Did the split with the strong model and the verbatim prompt, 6 messages, maybe 5% of my monthly credits. Small fixes on the cheap one. Way better. ben_ts · edited
leo_prompts · edited

What nobody tells you: the cheaper models are fine for more than people think, as long as the task is small. Most of my credit waste was vague prompts, not model choice. 'Make the dashboard better' costs 10x more than 'move the filter bar above the table'.

Comment