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?

17 Upvotes

40 comments sorted by

View all comments

2

u/mbtonev 19h ago

The model matters less than the guardrails.

  1. Add tests for your core flows (even 5–10 end-to-end tests with Playwright) and make the agent run them before it calls a task done. That catches the "I thought it worked" features.
  2. Add a linter and type checker (TypeScript strict, ruff, etc.) to a pre-commit hook.
  3. Every few features, do a cleanup pass: ask the agent to list dead code, duplicated logic and missing error handling, then fix them one at a time.
  4. Keep a short FEATURES.md with each feature and how to verify it, and check it after big changes.

I built VibeCoder Planner to bake this in: each task comes with its own prompt and checks, and project memory keeps the structure consistent. Your first project is free: vibecoderplanner.com