Vibe Coding Lesson: AI Built It in 2 Weeks, One Dark-Mode Feature Took 4 Days to Refactor
dotey · x · 2026-08-18
- Cautionary tale: a developer used Codex's goal mode to build a complex client app in two weeks. Without architectural constraints, multiple sub-agents scattered hardcoded color values across modules. Adding dark mode — a cross-cutting concern that should take 20 minutes with proper design tokens — now demands a 3-4 day refactor.
- StephanTalk's take: AI cannot know what you didn't tell it — expected maintenance horizon, how requirements will evolve. Absent constraints, it defaults to minimal, non-over-engineered code.
- Recommendation: overall architecture, table schemas, data structures, and interface design should not be fully delegated to AI; pair with it explicitly. One-off prototypes can still go straight to /goal.
- On rewriting: when a throwaway project becomes long-term, start a fresh, well-architected rewrite rather than carrying baggage. "When to refactor" is a matter of taste and smell, but refactoring remains essential throughout the software lifecycle.
More from coding & agent
- Cursor releases Origin: a Git version optimized for AI agents — nicolascraske · 2026-08-18
- Build a small internal AI team running six months ahead of everyone else — VibeMarketer_ · 2026-08-18
- Jozu launches zero-trust AI runtime; case study shows agent bypassing guardrails — Arindam_1729 · 2026-08-18
- Agent utility increases as manual context input decreases — flavioAd · 2026-08-18
- Discussion: Running bots locally on Linux VMs — Daniel_Farinax · 2026-08-18
- Cursor launches Origin code hosting with Vercel, Buildkite and Depot integrations — nicolascraske · 2026-08-18