Over time, the rising cost of living will at some point drive people to want to live elsewhere, and then companies will be under less pressure to purchase expensive office space in SF. But believe me, it's not some irrational desire to make less money that causes tech companies to "insist" on leasing office space in the SF market rather than in the cheaper markets in other parts of the bay.
The real problem here is that programming is driven by the young, and they generally don't have the same demand for cheap housing as those who are starting families. Generally speaking, people move out of SF when they have kids and are looking for good schools and more affordable housing. So I guess the cost of providing the more expensive office space for the cheaper (younger) worker works out for tech.
So what you need is a sea change in the desirability of living in SF on the part of the younger/cheaper recruits that tech companies need. This is just a business decision at the end of the day.
It's more accurate to say “south of SF” instead of “in the peninsula south of SF”. Apple, Cisco, Intel, Netflix, Adobe and eBay are in the Santa Clara Valley. Generally, people say the peninsula starts at Mountain View and Los Altos.
It's tech companies who keep insisting that they must have their headquaters in SF. Even YC who should care about giving their founders maximum runway insist to force them upon valley and bleed money on rents while eating ramen. Why? Software does not have any need or reason to be only built in the valley. Sure, you come to valley to hire, get funding but then you should leave! Run away to cheaper places and work from there! There are large number of people in SV exceedingly frustrated by home prices, school situation and commute and they will be more then happy to move out to Austin or wherever else.
In fact I would say doing a startup these days in SV is almost brain dead. You would burn too much of your funding in high salaries, office rents and all kind of taxes. Virtually every talented person I know outside of valley does not want to move in to valley because of CoL. If you are startup in valley you are closing door to large pool of these talent while exposing yourself to local talent that is actually non-existent at startup level salaries and have huge attrition anyway.