r/SideProject • • 2h ago

I built a VS Code coding agent that uses cheap models for easy steps and only calls the expensive ones when needed

I kept hitting usage limits on AI coding tools, and when I looked at what was actually eating my budget, most of it was simple stuff: reading files, small edits, renaming things. All of it was running on the most expensive model.

So I built Puffin Coder, a VS Code extension that routes each step of a task to a model that fits it:

  • Easy steps (exploring the codebase, small edits) go to fast, cheap models
  • Hard steps (tricky bugs, bigger refactors) go to a strong model
  • It carries context between models, so switching mid-task doesn't lose track of what it's doing

You can bring your own API keys from 16 providers (OpenAI, Claude, Gemini, DeepSeek, Grok, Mistral, OpenRouter, Groq and more), or use the managed models on the free Starter plan without setting up any keys.

It's still early and I'm a solo dev, so I'd really like honest feedback:

  • Does routing between models feel useful, or would you rather pick the model yourself?
  • What would make you switch from what you're using now?

Free to try: https://puffincoder.com (it's also on the VS Code Marketplace and Open VSX)

1 Upvotes

3 comments sorted by

1

u/Legitimate_Cherry593 1h ago

the routing usually breaks on consequence, not difficulty. a cheap model reading files is free money. a cheap model making an edit that the strong model then has to debug costs more than calling the strong one first. so route on what happens if the step is wrong, not how hard it looks.also measure cost per finished task, not per call. mine looked great until i counted the retries. if you dont already, run a syntax check or the tests after every cheap edit and escalate on failure, that one rule catches most of it

1

u/Jumpy_Invite_7473 1h ago

Really useful, thanks. Two of these are already in: every edit gets a syntax check, and cost is tracked per finished task including retries (agreed, per-call numbers lie). On consequence vs difficulty, I think you're right for any single task, but it flips over many tasks. Rough math, saying a strong call costs 10x a cheap one: running 10 tasks all on the strong model costs about 100. Going cheap first, say 6 succeed outright and 4 fail and escalate. Even if cleaning up after the cheap model costs 1.5x a clean strong call, that's 10 for the cheap attempts plus 60 for the four escalations, so 70 total. You lose on every task that fails but still come out about 30% ahead overall. It only breaks even if cleaning up costs over 2x a fresh strong call or the cheap model's success rate drops a lot. That's where your point really bites, and why I'm switching to escalating on the first failed check after a cheap edit instead of letting it retry, so the cheap model gets one shot, not three. Out of curiosity, do you weight "consequence" by something concrete, like files touched or shared modules, or is it more of a judgment call per step type?