Why can't AI refactor my code? Why is it that AI really struggles to refactor my code? AI has been great a generating new code, especially in green-field projects, but for existing code it has been a headache to use it for refactors. A simple example I ran into this week was trying to use AI to address some ESlint errors I had. I was merging one mono-repo into another and I needed to run lint to…