Identify the pattern when you go on automatic pilot. Then figure out what is the one thing that happens before you go unconscious. Once you have that create a “pattern interrupt”.
I learned this trick from Anthony Robbins. When you find yourself at that point before you go unconscious do something that shocks you into going “Oh, I’m about to go unconscious again. I chose to do something different.”
For Tony Robbins, he’d pinch his thigh before he’d start arguing with his wife. For myself, it was automatically going for that 2nd cup of coffee in the morning. The thing I identified before I went unconscious was trying to take.a sip from an empty cup while working at my computer. Now instead of walking to the coffee machine, I go to the sink, wash the cup and instead grab a cold bottle of water out of the refrigerator.
I learned from the famed magician Penn Gilette, of the Penn and Teller duo, that when he lost 100lbs he learned that all eating is habit. The key is replacing “bad” habits with “good” ones.
Hope this helps!