Elon takes an active hand in all of the engineering discussions and contributes heavily to design deicions. Of course he doesn't write code or machine parts himself, that would be a really poor use of his time-- that's what he's hired thousands of engineers for, so that he can be head engineer overseeing the countless moving parts involved in manufacturing both rockets and cars simultaneously.