They'll either move up the food chain to higher-touch work where AI can't compete, or they'll do other things.
Keep in mind that most devs aren't really all that good at their jobs, so it will probably be economically beneficial for them to do something else. I say this as a long-time hiring manager with many decades of experience in the field.
It can program in 15 different languages, 95% accuracy with almost no mistakes, can create entire applications in minutes
Only if you believe the hype. It can do that in best-case scenarios when the requirements are written as rigorously as code, or where it's replicating a common pattern.
Do they just become homeless?
During previous layoffs, a lot of them left the field, and some of the rest founded startups. It wasn't always the case that firms were founded by teenaged sociopaths with strong family connections to VC funding. There was a time when they were founded by people who knew how to do things.