Agreed that refactoring is often needed - my go-to refactoring LLM is Gemini 2.5 Pro, but Claude and o3 also do well for me.
I find that the context engineering, planning and documenting is crucial, but sometimes I like to let the vibes lead the way.