This doesn't get you out of zoning restrictions but could allow you to recover from their historical effects more quickly after zoning reform is achieved.
That said, some assemblies have become pretty common, I think preassembled roofing trusses are frequently used in favor of framing on site.
This gives me a different idea and I wonder if it's worthwhile.
There are industrial robots that e.g. mass produce cars. Suppose you make one to mass produce housing, but instead of putting it in the factory you put it on the truck. Put it on the construction site. It takes a pile of lumber, cuts it to length and turns it into walls, puts the pipes and wires through the walls etc. This is the kind of thing that existing industrial robots can actually do if you program them appropriately.
Then you send it across the street to put together another building. Assembly line, but the products are big so instead of moving the products to the next station you move the robots.
Houses are made out of wood and tolerances are measured in centimeters if not inches.
The key here is to make sure that automation and cost efficiencies make it through to the production of necessities, and we don't prop up artificial scarcity.
There are an effectively unlimited number of jobs that employers would pay someone $0.01/hour to do. Not as many that employers would pay $100/hour to do. So if you need to make $100/hour to afford housing and medicine, that's a problem. But if we reduce the artificial scarcity and regulatory overhead in these industries, so you only have to make $5/hour to afford them, we're in a much better place. And all the better if lower costs allow someone to make a living at $2/hour.
AI and automation can help to reduce those costs. As long as they're in the right places (i.e. production of necessities) and we don't have regulatory capture preventing it from happening there.