Not all habits are bad. Some are even necessary. It's a good thing, for example, that we can find our way home on "autopilot" or wash our hands without having to ponder every step. But inability to switch from acting habitually to acting in a deliberate way can underlie addiction and obsessive compulsive disorders.
...
The study provides the strongest evidence to date [sciencedaily.com], Gremel said, that the brain's circuits for habitual and goal-directed action compete for control -- in the orbitofrontal cortex, a decision-making area of the brain -- and that neurochemicals called endocannabinoids allow for habit to take over, by acting as a sort of brake on the goal-directed circuit.Endocannabinoids are a class of chemicals produced naturally by humans and other animals. Receptors for endocannabinoids are found throughout the body and brain, and the endocannabinoid system is implicated in a variety of physiological processes -- including appetite, pain sensation, mood and memory. It is also the system that mediates the psychoactive effects of cannabis.
...
In the current study, since endocannabinoids are known to reduce the activity of neurons in general, the researchers hypothesized that endocannabinoids may be quieting or reducing activity in the OFC and, with it, the ability to shift to goal-directed action. They focused particularly on neurons projecting from the OFC into the dorsomedial striatum.They trained mice to perform the same lever-pressing action for the same food reward but in two different environments that differentially bias the development of goal-directed versus habitual actions. Like humans who don't suffer from neuropsychiatric disorders, healthy mice will readily shift between performing the same action using a goal-directed versus habitual action strategy. To stick with the earlier example of getting home, we can switch the homing autopilot off and shift to goal-directed behavior when we need to get to a new or different location.
To test their hypothesis on the role played by endocannabinoids, the researchers then deleted a particular endocannabinoid receptor, called cannabinoid type 1, or CB1, in the OFC-to-striatum pathway. Mice missing these receptors did not form habits -- showing the critical role played by the neurochemicals as well as that particular pathway.
Presumably, suppressing the body's ability to form habits by blocking the body's endocannabinoid receptors [wikipedia.org] would also neutralize the effects of external cannabinoids.