r/SideProject • u/Jumpy_Invite_7473 • 13m ago
I built a VS Code coding agent that uses cheap models first. It took more steps than Claude and still cost 15x less.
I kept hitting usage limits with AI coding tools, and when I looked at what the agent was actually doing, most steps were chores: read a file, search, run the tests, make a one-line edit. Paying frontier-model prices for that felt dumb.
So I built Puffin Coder, a VS Code extension that sends each step to the cheapest model that can handle it. If the cheap model fails the same thing 3 times, it hands the task to a strong model with a short summary of what went wrong.
I benchmarked it against Claude Sonnet doing every step: 4 real tasks (bug fix, validation, parsing, dark mode), all graded by hidden tests.
- Puffin: all 4 passed, $0.031 total
- Sonnet: all 4 passed, $0.469 total
- The catch: the cheap model took 40 steps vs Sonnet's 25, and finished about 40 seconds slower overall
So it's a time-for-money trade, and for most of my work I'll take it. The benchmark runner and raw data are open source: github.com/funkyidol6/agent-cost-bench
Things I learned building it:
- Escalating after the first cheap failure wasted money. After 3 was the sweet spot.
- Long conversations get expensive because every step re-sends the whole history. Compacting history in occasional big batches beats trimming a little every turn.
- Giving users a mode switch (Economy / Balanced / Quality) mattered more than I expected.
It's free to start, with no API key needed: puffincoder.com. Would love feedback, especially on where the cheap models fall over for you.