Challenges with Coding Models and Cost Efficiency
These days, I do my code work in Cursor with Anthropic models in a Plan-Do-Check-Act cycle.
I tried experimenting with using Haiku for some of my implementation (Do) tasks after using Sonnet for planing. The hope was to bring down cost per token on my work. But I didn’t have much luck. The results are quite understandably very poor. Despite detailed tasking from higher models, Haiku is too likely to do things like duplicate code instead of re-use it, hard code values instead of use properties, etc. etc. Too many poor patterns to enumerate. Cleaning that up exceeds any savings I’d get. I’ll wait for a model update.
In fact, I’ve started doing some of the more complicated analysis and planning with Opus. So cost per token is going up. The hope is that better analysis and planning leads to a cleaner, shorter coding cycle but I won’t have enough data and experience to establish that for a bit.
Is anyone else having luck with lower cost models for some aspects of their coding process?