PALO ALTO — From 2009 to 2012, Tesla Motors CEO Elon Musk sped through three general counsel. Almost a year later, the office is still empty.

But Musk appears to be keeping at least one attorney close: Last month, his divorce lawyer joined the company—as, at least for now, its top attorney.