> I can get near miraculous results from vibe coding, but it often gets stuck in weird “bug loops” where it goes back and forth between broken states, and I have to understand either like bracket formatting, or be able to research library failures and conflicts.
In my experience this is mainly caused by a lack of investment in tests.
Vibe-coding excels when paired with test-driven development, because TDD approaches serve as validators and problem constrains. Often coding agents get stuck on but loops because they have neither context nor feedback on what represents a broken state. Tests fix both problems, and if you stop to add one then your bug loops quickly vanish.
In my experience this is mainly caused by a lack of investment in tests.
Vibe-coding excels when paired with test-driven development, because TDD approaches serve as validators and problem constrains. Often coding agents get stuck on but loops because they have neither context nor feedback on what represents a broken state. Tests fix both problems, and if you stop to add one then your bug loops quickly vanish.