Imagine a virus that could save your life by eating the bacteria making you sick. Sounds like science fiction, right? But at Stanford University, scientists are turning this idea into reality.

Brian Hie and Samuel King have built an AI tool called Evo 2 that can design brand-new viruses from scratch. These viruses, called bacteriophages, are tiny predators that naturally hunt and kill bacteria. In lab tests, Evo 2 designed nearly 300 new phages that attack E. coli, a dangerous bacterium that can cause deadly infections when it spreads in the body. Sixteen of these AI-created phages proved exceptionally good at killing E. coli.

The team started with a tiny virus called ΦX174, whose entire genetic code fits into just 5,400 characters. Compare that to the 3 billion characters in human DNA, and you can see why scientists chose it as a test case. Hie, a chemical engineering professor at Stanford, fed snippets of this virus's DNA into Evo 2, which then wrote entirely new genetic blueprints for phages. In the lab, the team built these phages from scratch and watched them attack E. coli.

The real goal here is fighting antibiotic resistance. When people overuse antibiotics, bacteria evolve to survive the drugs. Eventually, medications stop working. But here's the clever part: by creating many different phages and mixing them together in a "cocktail," scientists can attack bacteria from multiple angles at once. If bacteria develop resistance to one phage, the others keep working.

"We have a proof of concept in the paper, where we show that this cocktail of 16 phages rapidly overcomes resistance in E. coli that is immune to native ΦX174," Hie explained. This means if bacteria learn to dodge one phage, the whole mixture still wipes them out.

King, who led the project as first author, developed computer programs to help evaluate thousands of possible genomes and pick the most promising ones for lab testing. The work was detailed in a paper published in Nature Biotechnology.

The implications stretch far beyond E. coli. Scientists believe similar AI-designed phage cocktails could target other dangerous bacteria, including MRSA (a drug-resistant germ that spreads in hospitals), tuberculosis, and Pseudomonas aeruginosa, a common cause of hospital-acquired infections. With antibiotic resistance rising worldwide, these engineered viruses could become powerful new weapons in the fight against superbugs.

It's a striking example of AI moving from computer screens into the real world, where it might one day help patients whose infections no longer respond to traditional medicine.