Cal. Penal Code § 987
(b) In a capital case, if the defendant appears for arraignment without counsel, the court shall inform the defendant that they shall be represented by counsel at all stages of the preliminary and trial proceedings and that the representation is at their expense if they are able to employ counsel or at public expense if they are unable to employ counsel, inquire of them whether they are able to employ counsel and, if so, whether they desire to employ counsel of their choice or to have counsel assigned, and allow them a reasonable time to send for their chosen or assigned counsel. If the defendant is unable to employ counsel, the court shall assign counsel to defend them. If the defendant is able to employ counsel and either refuses to employ counsel or appears without counsel after having had a reasonable time to employ counsel, the court shall assign counsel.
The court shall at the first opportunity inform the defendant’s trial counsel, whether retained by the defendant or court-appointed, of the additional duties imposed upon trial counsel in any capital case as set forth in paragraph (1) of subdivision (b) of Section 1240.1.