Mealworm larvae learned where food was, then changed course when it turned bitter. Their tiny test suggests flexible thinking in a very small animal.