Prior to your detention hearing, the Pretrial Services Office do a brief investigation which typically includes an interview of you. Remember that the Pretrial Services Officer works for the court, not for your lawyer. It is your choice whether to be interviewed, but you should discuss this decision with your lawyer first. Also, you should always ask that your lawyer be present for the interview. The Pretrial Services officer will also speak a family member, employer, and/or a close friend to corroborate information provided in the interview. The officer will gather information about your background and personal circumstances and file a report with the judge, prosecutor, and defense counsel with recommendations about whether the judge should release you and under what conditions.
If a Pretrial Services Officer asks to talk to you before you have seen your lawyer, tell the Officer that you want to speak to your lawyer before you decide what to do. If you agree to an interview, be honest. You can refuse to answer any question, but any answer you do give must be the truth. Lying to a Pretrial Services Officer can be used against you at sentencing if you are later convicted, and is also a separate crime. Your lawyer will help you decide whether to be interviewed and what to discuss.
After the interview, the pretrial officer will prepare a report and make a recommendation to the judge regarding release or detention, and what conditions should be imposed if you are released. However, the judge is not required to follow this recommendation. The judge in your case is the ultimate decider of whether or not you will be released and what the conditions of your release should be.