If you're interested in reading the actual law in which the state of Alabama established pretrial diversion programs, here it is:
Alabama Code Title 12. Courts § 12-17-226.10
(a) In any case in which an offender is admitted into a pretrial diversion program established under this division, there shall be a written agreement between the district attorney and the offender. The agreement shall include the terms of the pretrial diversion program, the length of the program, as practicable as possible, the costs of the program to the offender, and the period of time after which the district attorney must dispose of the charges against the offender. If, as part of the pretrial diversion program, the offender agrees to plead guilty to a particular charge or charges and receives a specific sentence, an agreement concerning when the plea of guilt will occur, to what charges to which the offender will plead guilty, and any sentence to be imposed shall be approved by and submitted to an appropriate circuit or district court judge having jurisdiction over the offender within the judicial circuit prior to admission of the offender in the pretrial diversion program.
(b) As a condition of being admitted to the pretrial diversion program, the district attorney may require the offender to agree to any of the following terms or conditions:
(1) Pay restitution.
(2) Participate in an education setting to include, but not limited to, K-12, college, job training school, trade school, GED classes, adult basic education courses, or any other workforce development program approved by the district attorney.
(3) If appropriate, attempt to learn to read and write.
(4) Financially support his or her children or pay child support.
(5) Refrain from the use of alcohol or drugs or frequenting places where alcohol or drugs are sold or used.
(6) Refrain from contact with certain persons or premises.
(7) Maintain or seek employment.
(8) Attend individual, group, or family counseling.
(9) Pay court costs, fees, and fines.
(10) Be required to conduct himself or herself in an honorable manner as a good member of the community, and not endanger in any way the person, property rights, dignity, or morals of others or himself or herself.
(11) Be required to comply with all municipal, county, state, and federal law, ordinances, or orders.
(12) Be required to be absolutely truthful in any oral or written application or reports to the pretrial diversion program.
(13) Be required to pay supervision fees to the agency or entity responsible for monitoring and verifying the offender's compliance with the terms of the pretrial diversion program set forth by the district attorney. These fees shall be paid by the offender or the district attorney to the supervising agency or entity in a timely manner, pursuant to the agreement.
(14) Observe curfews, home detention, electronic monitoring, or travel constraints as set out in the offender's agreement.
(15) Enter into an agreement with the district attorney to have restitution, court costs, fines, fees, or child support withheld, accounts or assets forfeited, or wages or salary of the offender garnished.
(16) Complete approved community service.
(17) Agree to the terms and conditions of the pretrial diversion program established by the district attorney.
(18) Provide a statement admitting his or her participation in, and responsibility for, the offense which is the subject of the application for entry into the pretrial diversion program.
(19) Refrain from the possession of or use of any firearm.
(20) Pay the application fee pursuant to this division.
(21) Participate in and complete a certified drug court program, approved by the Administrative Office of Courts.
(22) Complete a certified drug or alcohol addiction evaluation and treatment program, which may also include services pursuant to Section 22-50-17 .
(23) Complete a certified mental health evaluation and treatment program.
(24) Abide by all conditions imposed for treatment by the United States Department of Veterans' Affairs and provide certified proof of completion to the district attorney.
(25) Not to leave the State of Alabama without prior written consent of the district attorney or supervising agency or personnel and to execute a waiver of extradition from any other jurisdiction outside the State of Alabama, to exist only during the term of the pretrial diversion program.
(26) For, but not limited to, offenses involving a violation of any provision of Section 32-5A-191 , be required to operate only a motor vehicle installed with an approved ignition interlock device for the duration of his or her time in the program.
(27) Agree to be subject to any other terms or conditions as required by the district attorney set out in the pretrial diversion agreement. The district attorney shall be given broad discretion in designing a program specifically for each offender and circumstances of the offender.
(c) Regardless of the ultimate disposition of the criminal charge, upon an offender's completion of the program, the district attorney shall notify the court that the offender has completed his or her obligations under the program. At that time, the court shall order the offender to pay any and all remaining unpaid restitution, court costs, fines, fees, or other monies that the offender is statutorily obligated to pay that would have been assessed or owed upon a conviction or adjudication for the underlying criminal offense. These shall include, but are not limited to, supervision or driver's license reinstatement fees or any statutory fees or assessments to the Alabama Department of Forensic Sciences.
(d) The offender shall further agree to the court's jurisdiction beyond the term of pretrial diversion, incarceration, probation, parole, or end of sentence for the purposes of the collection of court-ordered or agreed upon fines, fees, court costs, and restitution pursuant to Section 12-17-225, et seq.