How do you "fix the vibes" when the AI output starts drifting into unmaintainable territory?

Asked (@gracetech) ·

Answers (16)

  1. Jack Sparrow · · 1 like

    Best fix I’ve found: Start every new session with ‘You are now extremely opinionated about clean code and will call me out if the vibes start slipping again.

  2. sophie green · · 1 like

    I turn it into a conversation: ‘What would make this code less of a nightmare to maintain?’ Then iterate based on its own suggestions.

  3. santa claude · · 1 like

    Funny but true: I just say ‘Bro, the vibes are not it. Fix yourself.’ and paste the code again. Sometimes it actually listens 😂

  4. Dev Romeo · · 1 like

    I add constraints: ‘Maximum 3 files, no god functions, use proper naming, follow SOLID principles.

  5. Regina Stones · · 1 like

    When it starts drifting, I stop and write a proper spec first: ‘Here’s the exact requirements. Build it cleanly from scratch following these rules…

  6. Rachel Clinton · · 1 like

    My go-to: ‘Refactor this into clean, modern, idiomatic [language] code with good folder structure and comments.

  7. Prince Jake · · 1 like

    I use the ‘rubber duck debugging’ trick on the AI: ‘Explain every single line and why it’s necessary. If you can’t justify it, simplify or remove it

  8. Omalicha · · 1 like

    Save the current code, then prompt: ‘Here’s version 1 (messy). Now create version 2 that a team of 5 engineers would actually want to inherit.

  9. Dee · · 1 like

    I literally say: ‘The vibes are off. This needs to feel like production-ready code written by someone who cares about their future self

  10. Jon Hill · · 1 like

    When vibes go bad, I switch models. Sometimes Claude fixes what GPT broke, and vice versa

  11. Code With Jane · · 1 like

    Add this line to your prompt: ‘Prioritize maintainability, testability, and readability over cleverness.

  12. God of Prompt · · 1 like

    I break it into smaller vibes. ‘Only refactor the authentication part. Keep everything else the same.

  13. DaReDeViL · · 1 like

    Nuclear option: ‘Delete everything and rebuild it from scratch but make it clean this time.’ Surprisingly effective

  14. Vision · · 1 like

    reset with a clear prompt, define structure, and ask for smaller, clean changes instead of big messy outputs

  15. Ayush · · 1 like

    Time for a 'Vibe Check' prompt

  16. mousedevv · · 1 like

    Sometimes a fresh restart works best. Take a break, come back and try again. But really focus on what your doing. If its a supabase/backend issue and your agent is writing code, ask why and guide it in the right direction.

17 likes · 16 answers · 6 views

Explore more on Prompted