Andrew discusses the cognitive mechanisms behind rewiring habits, specifically in the context of anorexia. He explains how teaching individuals to register their internal state and notice cues that lead to their habits can help them intervene and rewire their behavior. Additionally, he highlights the two main features of thinking that go into anorexic habits: weak central coherence and hyper focus on details within a given environment.