Hospitals have used genomics to explain outbreaks after they happen. Falling sequencing costs now make it possible to catch outbreaks before they go beyond two patients.