Sub topic 5
Routines: the behavior itself
This chapter covers the middle part of the habit loop: the routine. It assumes you already know the loop has three parts (cue, routine, reward) and can spot a cue in a behavior you perform. No programming background is needed. The short Python snippets only make the structure of a habit easy to inspect.
What a routine is
A routine is the behavior that runs after a cue shows up. It is the part of the loop you can see from the outside: walking, snacking, checking a phone, opening a notebook. The cue starts the loop and the reward explains why it repeats. The routine is the action in between.
A routine can be physical, mental, or emotional. Examples:
- Physical: tying your running shoes, pouring a coffee, locking the door.
- Mental: replaying an argument, planning your day, worrying.
- Emotional: tensing up before a meeting, or snapping at someone when you are tired.
Mental and emotional routines are easy to miss because nobody else can see them. When you audit a habit, include them. The routine you want to change is sometimes a thought pattern, not an action.
Routines versus goal-directed actions
A goal-directed action is chosen for an outcome you are thinking about right now. A routine is run mostly because the context triggered it. The same behavior can be either, depending on how it is performed.
| Feature | Goal-directed action | Routine (habit) |
|---|---|---|
| What starts it | A decision to reach an outcome | A cue in a familiar context |
| Attention needed | High | Low |
| Effort to start | Needs deliberate choice | Starts almost on its own |
| Reaction to a changed goal | Adjusts quickly | Often continues anyway |
| Example | Choosing a route to a new office | Reaching for your phone when you sit on the sofa |
The last row of behavior matters most. If you stop wanting a result but the cue still appears, a well-learned routine can still run. This is why people sometimes find themselves doing something they no longer value.
Anatomy of a good routine description
Vague routines are hard to notice and hard to plan around. "Be healthier" is not a routine. "Walk around the block" is. A usable routine description has these properties:
- It is an observable action, so you can tell whether it happened.
- It has a clear start and a clear end.
- It is small enough to do in the context where the cue appears.
- It is specific about what, not only about how much.
Compare these pairs:
| Vague | Specific |
|---|---|
| Exercise more | Put on running shoes and jog for 10 minutes |
| Eat better | Eat one piece of fruit with breakfast |
| Be more organized | Write tomorrow's three tasks on a sticky note |
A routine as a named field
The first code example writes a loop as three named fields. Writing the routine as its own field forces you to state it concretely.
from dataclasses import dataclass
@dataclass
class HabitLoop:
cue: str
routine: str
reward: str
def describe(self) -> str:
return f"When {self.cue}, I {self.routine}, so that I get {self.reward}."
walk = HabitLoop(
cue="I finish my morning coffee",
routine="walk around the block",
reward="a few minutes of fresh air",
)
print(walk.describe())The output is:
When I finish my morning coffee, I walk around the block, so that I get a few minutes of fresh air.If you cannot fill in the routine field with a verb phrase you could film, the routine is still too vague.
The routine is the most changeable part
Of the three parts, the routine is usually the easiest to modify. Cues are often built into your life, such as a time of day or a feeling. Rewards meet real needs, such as rest, relief, or company. The routine is only one way of getting from the cue to the reward, and other ways may exist.
This idea underlies the habit-change strategy covered later: keep the cue and the reward, and replace the routine. For now, notice the two questions it raises about any routine:
- What need does this routine meet? (This points to the reward.)
- Is there another action that could meet the same need? (This points to a replacement.)
The next snippet shows the idea in code. replace makes a copy of the loop with only the routine changed.
from dataclasses import dataclass, replace
@dataclass
class HabitLoop:
cue: str
routine: str
reward: str
old = HabitLoop(
cue="it is 3 pm and I feel tired",
routine="buy a candy bar from the vending machine",
reward="a break and a quick energy lift",
)
# Keep the cue and the reward, change only the routine.
new = replace(old, routine="walk to the kitchen and make a cup of tea")
print(old)
print(new)Both versions share the same cue and reward. A replacement works best when it delivers something close to the original reward. If the new routine gives no break and no energy, the old one will keep pulling.
How routines change with repetition
Routines are not fixed. As you repeat one in the same context, it changes in several ways:
- It gets faster and smoother, because the steps are chunked into one unit.
- It needs less attention, so you can do it while thinking about something else.
- It becomes tied to its context, so the cue triggers it more reliably.
- It becomes harder to interrupt once started.
Chunking explains the last point. When you tie a shoelace, you do not decide on each loop. The whole sequence runs as one block once it begins. The same is true of larger routines, such as the sequence you follow when you arrive home: keys down, shoes off, phone on the charger.
Chunking has a downside. Because the routine runs as a block, you may not notice that you started it. Many people find a bag of snacks empty without remembering eating it. Noticing a routine that runs this way takes deliberate attention at the cue, not at the routine itself.
Size and difficulty of the routine
The routine's size affects how likely the habit is to survive. A large routine asks for more time, effort, and willpower each time the cue appears. A small one is easy to repeat, and repetition in a stable context is what builds automaticity.
Common mistakes:
- Starting with a routine that needs motivation. "Run five miles" works only on days you feel strong.
- Combining several actions into one routine. If any part fails, the whole thing feels broken.
- Choosing a routine that does not fit the cue's context. A cue at your desk cannot trigger a swim.
A useful rule is to shrink the routine until you could do it on your worst day. You can add to it later, once it runs on its own.
Making the routine the planned step
A plan that names the situation and the action is called an implementation intention. Later chapters cover it in depth. Here it helps to see how it uses the routine:
def if_then_plan(situation: str, action: str) -> str:
return f"If {situation}, then I will {action}."
print(if_then_plan("I sit down at my desk after lunch", "write for ten minutes"))The action argument is the routine. A routine written as a specific, observable action fits naturally into this format. A vague one produces a plan you cannot follow.
A diagram of the routine in the loop
Common errors when working with routines
| Error | Why it causes trouble | Fix |
|---|---|---|
| Describing the outcome, not the action | You cannot tell whether you did it | Write a verb phrase you could film |
| Ignoring mental routines | Rumination or worry goes unaddressed | List thoughts as well as actions |
| Making the routine too big | It fails on low-energy days | Shrink it to a version that is always possible |
| Treating the routine as the whole habit | You miss the cue and reward that sustain it | Always name all three parts |
| Assuming the routine is the "problem" | The routine may only be serving a real need | Identify the reward first |
Check your understanding
Exercise
A person says, "My habit is to eat healthier." Rewrite it as a routine that fits the loop, and explain which property of a good routine description the original lacks. Use the cue "I open the fridge after getting home from work".
Show answer
One possible rewrite is "When I open the fridge after getting home from work, I take out a piece of fruit and eat it." The original lacks an observable action with a clear start and end. "Eat healthier" describes a general aim, so you cannot tell on a given evening whether it happened. The rewrite names a specific behavior you could film.
Exercise
You notice that you scroll your phone every time you sit on the sofa after dinner. List the routine, then give one question you would ask to find the reward before choosing a replacement.
Show answer
The routine is "pick up the phone and scroll". A useful question is "What do I get from this, such as a break, entertainment, or contact with others?" The answer identifies the reward, so a replacement routine can deliver something similar.