Antibody shapers optimized using opponent shaping principles can effectively limit viral escape by anticipating and influencing the evolutionary trajectories of viruses.