Researchers have developed a framework for understanding and changing habits by leveraging the brain's automatic and goal-directed systems. Habits form when automatic responses overpower conscious control, leading to both everyday action slips and compulsive behaviors.