The program will coordinate with prosecutors and mental health professionals to avoid a situation from becoming violent.