A chemical genetic approach using genetically encoded reporters to detect and assess the toxicity of plant secondary metabolites against bacterial pathogens.