r/vibecoding • • 21h ago

Help/Question Techniques to improve your codebase?

I've now vibe-coded several apps that I'm generally happy with. But I still get the occasional glitches and errors. Once in a while I learn that something I thought I'd implemented is not actually working. If I were to show the repo to a software engineer, I bet they'd be horrified.

Also, I usually use Deepseek and GLM...not sure if that results in substandard code compared to using Claude.

So (besides hiring someone competent or just asking your agent to check), what are some methods to make your codebase more robust and verify that features are implemented in an optimal way?

18 Upvotes

40 comments sorted by

View all comments

9

u/vpanyushenko 21h ago

- keep issues small
- run implementation and review agent loops with models across different vendors
- run refactor audits every n PRs (try 50 and adjust) to make sure code is It the style you want and old code has been cleaned up
- run security audits every n PRs
- run lots of tets
- for UI work have agents take screenshots before and after and review them

1

u/SanitateCfresi 13h ago

for the refactor audit at 50 PRs, do you feed the whole repo into the context window or go module by module

1

u/vpanyushenko 12h ago

I think the important part as these model get smarter you should do less and less handholding and instead just explain rules. For example, it should audit tests that don't make sense, tests that are missing, look at code structure that doesn't fit your patterns, look for performance issues, and TODOs or FIXME comments in the code.

As the models get better they are better able to use the tools and do detailed work without you specifying exactly what they should do. The smarter the model the less specific you want to be and the grander you want to make your goal.

1

u/vigilant_allocation 11h ago

whole repo never fits for me. i break it into modules and still miss half teh bugs