Currently “AI” can do maybe 2% of what a reasonably skilled programmer can do. I doubt the horizon sits just a few years away.
I’d like to give you a real answer, but I can’t take the claims and hype seriously. I have the same plan for the AI coding apocalypse as I have for a giant asteroid strike or the rapture: no plan. If it actually happens I will adapt, until then it doesn’t warrant worrying about. I have survived a few supposedly existential threats to my programming career over the last several decades, this one looks even less likely to come true.