It depends on what kind of matter is being brought whether or not a prosecutor is present in the initial stage of the court process.

If a matter has gotten to the point where a prosecutor is involved, then you've already relinquished jurisdiction.

For example, in most victimless traffic court situations, one's first "appearance" in court will be only with a judge in attendance. There is no prosecutor needed until the court gains jurisdiction. That is, until there has been established a "defendant" in the case. They need the person's consent to be the "defendant." And these quasi-military administrative "courts-martial" operate on the judge's ability to draw people into his jurisdiction without their being aware that this has occurred.

If one is so naive as to think he is going to out smart one of these judges in his own court, he is operating under a false assumption. That is, unless he is properly prepared and has done his homework, and knows how to bait, steer, and corner the judge into dismissing the case.