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.
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.
Answers (16)
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.
I turn it into a conversation: ‘What would make this code less of a nightmare to maintain?’ Then iterate based on its own suggestions.
Funny but true: I just say ‘Bro, the vibes are not it. Fix yourself.’ and paste the code again. Sometimes it actually listens 😂
I add constraints: ‘Maximum 3 files, no god functions, use proper naming, follow SOLID principles.
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…
My go-to: ‘Refactor this into clean, modern, idiomatic [language] code with good folder structure and comments.
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
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.
I literally say: ‘The vibes are off. This needs to feel like production-ready code written by someone who cares about their future self
When vibes go bad, I switch models. Sometimes Claude fixes what GPT broke, and vice versa
Add this line to your prompt: ‘Prioritize maintainability, testability, and readability over cleverness.
I break it into smaller vibes. ‘Only refactor the authentication part. Keep everything else the same.
Nuclear option: ‘Delete everything and rebuild it from scratch but make it clean this time.’ Surprisingly effective
reset with a clear prompt, define structure, and ask for smaller, clean changes instead of big messy outputs
Time for a 'Vibe Check' prompt
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.