TLDR: Make sure v0 maintains folder structure when creating complex “Features / Components”. This will reduce output tokens because it won’t have to rewrite 100s of lines of code
Recently I’ve come across that v0 will create a feature as a single component.
Rather than creating a component folder, where we have sub-components, it tries to one-shot every single part in one file. Therefore whenever you make small changes, even if you are on the smaller model, it will rewrite the entire code just to fix the single error.
This keeps your output tokens high even if your input prompt is small & context window is small.
also, doing a regular cull of unused code / features is good.
a new thing I have added to my settings / prompt is for v0 to describe each change to any file it edits so that if it does make a change somewhere without me asking I know I don’t discover it 10 versions later and need to revert. also I think it’s making it less likely to delete random files.
Great tips here so far! I always recommend features like design mode, inline code generation, and forks to keep context laser-focused on the change you want to make.
Folks have shared some of their own experiences an advice in other posts too. This one is a recent favorite: