Workflow

Fix It by Hand or Regenerate? A Decision Guide

It's the vibe coder's most frequent decision, and almost nobody makes it deliberately: the generated code is wrong — do you fix it by hand or ask the model for a new version? Each is dramatically better in specific situations, and choosing on autopilot wastes hours in both directions.

Fix by hand when the change is small and local

A wrong color, a typo'd label, an off-by-one, a missing null check, a broken link. If you can point at the exact line and describe the fix in one sentence, editing directly is faster than any round-trip through a prompt — and it can't introduce new surprises elsewhere, which regeneration always can.

Hand-editing is also how you stay fluent in your own codebase. Small fixes are free lessons.

Regenerate when the approach is wrong

If the structure is fighting you — the data flows the wrong way, the component does five jobs, every fix creates two new problems — stop patching. Patching a wrong approach produces a wrong approach with patches. Write a better brief that includes what you learned ("the last version broke because…"), and generate fresh.

A reliable signal: you've fed the same error back twice and it's still broken. Third attempts on the same failure rarely converge. Regenerate with more context instead.

The middle path: regenerate one piece

Most real cases are mixed — the app is fine, one function or section is hopeless. Keep the whole, regenerate the part. Give the model the surrounding code as context and ask for a drop-in replacement with the same interface, so the rest of the app doesn't notice the swap.

Before any regeneration: save your state

Regeneration replaces working code along with broken code. Commit or copy first. The most painful vibe coding losses aren't bugs — they're the working version you no longer have.

A quick decision table

  • One line, obvious fix → by hand
  • Cosmetic changes, copy edits → by hand
  • A function that's wrong but well-scoped → regenerate that piece
  • Same error surviving two fix rounds → regenerate with a better brief
  • Architecture fighting you everywhere → regenerate the module, keep the lessons
Where Vibe Coder Playground fits: the by-hand path needs a tight loop — change, see, confirm. The Playground's edit-and-hot-reload is built exactly for that: fix markup, styles, or logic in place, watch it apply instantly, and export the change back to your files once it's right.

The skill here compounds. Developers who choose deliberately ship faster not because they type faster, but because they stop sinking time into the wrong repair strategy.

Related: 8 common bugs in AI-generated code →

Related: not sure what to do next? Get a free, personalized checklist →