"Ninety-nine hundredths of our activity is purely automatic," the psychologist and philosopher William James famously wrote. "All of our life is nothing but a mass of habits."

James was pointing out that, though we give habits little thought, they define our lives: how much we eat, save or spend, how often we trek to the gym and what we say to our kids each night.

But...