The Focus Loop
A methodology that treats focus as an engineering problem, not a willpower problem, using AI to hold task state so restarting costs almost nothing.
Ibrahim AbuAlhaol, PhD, P.Eng., SMIEEE
AI Technical Lead
Most focus advice treats attention like a muscle: build discipline, cut distractions, push through the urge to check your phone. That model gets the mechanism wrong. The real cost of an interruption is not the interruption itself. It is the price of restarting afterward, and that price is mostly a tooling problem, not a willpower problem.
Knowledge workers do not get long uninterrupted stretches by default. A message arrives, a meeting starts, a colleague stops by a desk. None of that is new. What has changed is how much it now costs to get back to where you were, because most work today lives in half-finished documents, open browser tabs, and a mental model of a problem that nobody wrote down. When the interruption ends, you do not resume. You reconstruct.
Why focus breaks down: the restart tax
Organizational psychologist Sophie Leroy named this effect attention residue: part of your attention stays attached to the task you left, even after you start the next one, because your brain has not finished processing it. Her 2009 study found that people who switched tasks without finishing the first one performed worse on the second, and the gap grew with how unresolved the first task felt when they left it.
Gloria Mark's research at UC Irvine puts a number on the recovery. In her book Attention Span, she reports that it takes an average of about 23 minutes to fully return to a task after a switch. That is not 23 minutes of idle time. It is 23 minutes of degraded output: slower typing, more errors, more re-reading of what you already wrote, because you are rebuilding a mental model that a slide deck or an inbox will not hand back to you.
The real lever is not blocking interruptions. It is collapsing the cost of the next restart back toward zero, so a broken session becomes a minor tax instead of a lost hour.
Figure 1 makes the comparison concrete. The gap between the two rows is not attention span or discipline. It is whether something outside your head held the state of the task while you were gone.
Borrowing from habit science, not app gamification
Most focus apps copy the wrong half of habit science. They borrow the reward loop (streaks, badges, weekly summaries) and skip the part that actually predicts behavior. BJ Fogg's Tiny Habits model states it plainly: a behavior happens when motivation, ability, and a prompt converge at the same moment. Miss the prompt, or leave the ability bar too high, and motivation alone will not carry you across.
Psychologist Peter Gollwitzer found the same thing from a different angle. His research on implementation intentions, plans in the form "when X happens, I will do Y," showed that people who wrote a specific if-then plan followed through far more often than people who just intended to act. The plan removes a decision at the exact moment willpower is weakest: the first thirty seconds after you sit back down.
A habit app can supply the prompt. It cannot lower the ability bar, because it does not know what you were doing. It can only ask if you did the thing. This is where an AI system that can read a document, a codebase, or a running conversation earns its place: it can restate exactly where a task stood and hand you a next step small enough to start in under two minutes, the ability half of Fogg's model that a static app can never fill in.
Designing the AI-held loop
The system worth building has four stages, and the AI's job changes at each one. A trigger, usually a calendar block or a recurring cue, starts the session. The AI proposes a micro-task, sized from what actually happened last time rather than from a fixed plan. A work block runs on a timer, one task, one window. At the end, the AI captures state: what got done, what is blocked, and what the very next step is.
The adaptive part is the sizing. If the last two or three blocks ended unfinished, the next micro-task should shrink, not repeat at the same size. If blocks have been finishing early, it should grow. A streak counter cannot do this because it only knows whether you showed up, not whether the step you were given fit the time you had. An AI that reads your session-end notes can adjust the next prompt on that signal instead of on a fixed rule someone wrote into the app a year ago.
Building your own resume prompt
You do not need a custom tool to test this. Two prompts, one at the start of a session and one at the end, are enough to run the loop with any AI assistant you already use.
SESSION START (paste at the top of a fresh chat)
Task: [one line, the actual next deliverable]
Last state: [paste what the AI wrote at your last session end]
Give me exactly one next action I can start in under two minutes.
SESSION END (paste before you close the chat or step away)
Summarize where this task stands in three lines: what's done,
what's blocked, what the very next step is when I come back.
Flag if the last two sessions ended incomplete, so the next
micro-task starts smaller.
Run it for two weeks and read your own session-end notes back. You will see the pattern Leroy and Mark describe from the inside: sessions that start from a restated state feel almost like you never left, and sessions that start cold burn the first ten minutes rebuilding context you already had yesterday.
What this does not fix
None of this repairs a calendar that resets a team's attention every fifty minutes. A single person running a tight resume loop still loses the afternoon if four separate meetings each interrupt a different piece of work. The loop reduces the tax on each individual restart. It does not remove the restarts a badly designed schedule keeps generating.
That is the actual argument for treating this as infrastructure rather than a personal productivity trick. If an AI system can hold task state well enough that a restart costs seconds instead of minutes, the constraint on deep work shifts from "protect long uninterrupted blocks at all costs" to "make every interruption cheap to recover from." That is a more realistic thing to design a workday around, and it changes what a manager should measure.
What leaders should do
- Measure restart cost, not just meeting count. Ask a few teams to note how long it actually takes to get back to real output after a meeting ends, and track that number the way you would track cycle time or defect rate.
- Standardize a one-line session-end note as a team habit: what's done, what's blocked, what's next. It costs under a minute to write and it is the one input that makes an AI resume prompt work.
- Stop funding focus tools that optimize for streaks. Ask vendors and internal tool owners whether the system adjusts task size from actual completion data, or just counts consecutive days.
- Audit recurring meetings for restart cost, not just calendar cost. A 15-minute status meeting landing in the middle of someone's deep work block can cost 40 minutes once residue is counted, and moving it to the edge of a block is often free.
Related Articles
References & Extended Literature
- Leroy, S. (2009). "Why is it so hard to do my work? The challenge of attention residue when switching between work tasks." Organizational Behavior and Human Decision Processes, 109(2), 168-181. https://doi.org/10.1016/j.obhdp.2009.04.002
- Mark, G. (2023). Attention Span: A Groundbreaking Way to Restore Balance, Happiness and Productivity. Hanover Square Press.
- Fogg, B. J. (2019). Tiny Habits: The Small Changes That Change Everything. Houghton Mifflin Harcourt.
- Gollwitzer, P. M. (1999). "Implementation intentions: Strong effects of simple plans." American Psychologist, 54(7), 493-503. https://doi.org/10.1037/0003-066X.54.7.493
- Anthropic. "Building effective agents." Anthropic Engineering. https://www.anthropic.com/engineering/building-effective-agents