Bacteria may build a memory of herbivore attack in the soil and coax new plants to attract wasps to rein in destructive pests.