Blog

What to do while Claude Code is working (and Codex)

Most Claude Code turns are short. Anthropic measured a median of about 45 seconds, with a long tail that now runs past 45 minutes. A short wait fits one small exercise, a look at the diff or a draft of your next prompt; a long one fits a walk or a real review. The phone is the usual choice, and it costs you the context you need when the agent comes back.

You send a prompt, the agent starts thinking, and you have nothing to do. That gap now repeats dozens of times a day. In JetBrains’ 2026 survey, 68% of professional developers use an AI coding agent at work every day. So the question is a real one. What you do in the wait decides how much focus you keep, and how long you sit still.

This post starts with how long the wait really is, because the right answer depends on it.

How long is the wait, really

Most waits are short. In February 2026 Anthropic published Measuring AI agent autonomy in practice, which looked at how long Claude Code works before it stops. They call this a turn: it ends when Claude finishes, asks you a question or is interrupted. The median turn lasted around 45 seconds, and over the months they measured it moved only between 40 and 55 seconds.

Some waits are long. The same report says the 99.9th percentile turn nearly doubled between October 2025 and January 2026, from under 25 minutes to over 45 minutes. Anthropic links this to people trusting the agent with more ambitious tasks over time.

So the typical wait is under a minute, and once in a while you get a very long one. It helps to plan for three sizes.

What to do in a short wait, a few minutes, or ten

Match the activity to the wait. A short wait needs something you can finish and leave without a trace. A long wait can hold real work, but only if you can come back to the agent cleanly.

Wait What fits What to avoid
Under a minute (most turns) One short exercise. Read the agent’s output as it streams. Draft your next prompt. Look away from the screen. Your phone. Email. Opening a Slack thread.
1–5 minutes Review the last diff. Write the commit message or the test you’ll ask for next. Refill your water. Two or three exercises with a short pause between. Starting a second hard problem. Long reading.
10 minutes or more A short walk. Review a teammate’s pull request. Plan the next task in writing. Lunch, if it’s time. Starting a meeting you can’t leave. Letting the session sit for an hour after it finishes.

You don’t always know the size in advance. A rule that works: start with something small, and only move to the next row when the agent is clearly still busy. If the agent asks you something after 30 seconds, you’re back without losing anything.

The phone problem

The phone wins the wait because it’s the easiest thing in reach. It’s already in your hand or on the desk, it gives you something new in a second, and it fits any length of time. A feed also has no natural end. Nothing in it tells you to stop when the agent does, so a 45-second wait quietly becomes five minutes, and you come back to a finished task you no longer remember asking for.

Good intentions don’t do much here. What changes behaviour is a small obstacle at the moment you reach. A 2023 study in PNAS tested one sec, an app that shows a short pause before a chosen app opens, with the option to close it. In a six-week field experiment with 280 people, it reduced their actual opening of those apps by 57%. A second experiment in the same paper found that the option to back out had the strongest effect, and the reflective message alone did not work.

A notification is the opposite kind of design: it’s easy to dismiss. Before Spare Minute had its current form, its founder used an early version that sent him a notification during agent waits. He dismissed it about 72% of the time, in under 3 seconds. That’s one person on an early prototype, not a study, but it matches what break-reminder research keeps finding. There is more on that in why break reminders get ignored.

So the practical advice is about the environment, not willpower. Put the phone face down out of reach, or in another room. Decide in advance what the wait is for. And give yourself something easier to do than scrolling.

Moving in the wait

A short exercise fits a 45-second gap better than almost anything else. It takes 35 to 60 seconds. It needs no new information, so it doesn’t push your task out of your head. You stay at your desk and see the moment the agent needs you. And it breaks up a day spent mostly in a chair.

That sitting is felt. A 2025 meta-analysis in Scientific Reports pooled studies of computer workers in Ethiopia and found that about 2 in 3 (65.9%) reported musculoskeletal pain in the past year, including the lower back (44%) and the neck (38%). It covers one region, so treat it as a signal, not a number for everyone.

What the research says, honestly:

  • Small daily doses can count, when they are effortful. In a 2011 trial, office workers with frequent neck and shoulder pain did one band exercise for 2 minutes a day, close to fatigue. After 10 weeks their pain was about 1.4 points lower on a 0 to 10 scale than in a control group. Twelve minutes a day did only a little better.
  • Token movement may not be enough. In a 2003 study of 268 computer workers, adding two 15-second exercises every 45 minutes to break reminders gave no extra effect.
  • Extra breaks alone are uncertain. A Cochrane review from 2025 rated the evidence that more work breaks reduce neck or back pain as very uncertain.
  • Short breaks help how you feel. A 2022 meta-analysis found that micro-breaks gave a small rise in vigour and a small drop in fatigue, with no clear effect on performance.
  • Stretching adds up across the week. A 2018 review found that static stretching improved range of motion once it reached about 5 minutes a week per muscle, and the time per session did not matter.

No trial has tested exercises timed to agent waits. What the evidence does support is the shape: small doses can count when each one takes some effort, and a 2012 trial found that the same weekly amount of neck and shoulder training worked about as well split into nine 7-minute sessions as done in one hour. It doesn’t support promises about fixing posture or pain, so this post makes none.

Three exercises that fit a 45-second wait

All three need no equipment and work in an office. Go gently, and stop if anything hurts.

Seated chin tuck
Chin tucks6 slow holds of 5 secondsSit tall and look straight ahead. Draw your chin straight back, as if making a double chin, hold, then relax.Gently, chin straight back, eyes level.
Wall slides
Wall slides8 to 10 slow reps, 2 seconds at the topStand with your back and forearms against a wall. Slide your arms up as far as is comfortable, pause, and slide them down.Smaller range, shoulders down.
Squat to chair
Squat to your chair12 to 20 repsStand in front of your chair. Sit back until you just touch the seat, then stand up again without resting.Shallower, knees in line with your toes.

Pick one per wait and change it during the day: neck, upper back, legs. If you want more options for a stiff neck or back, see stretches for programmers.

The hard part is not knowing what to do. It’s doing it at the moment you’d usually reach for the phone. When the founder replaced notifications with a blurred screen and one exercise, his first month looked different: 91 prompts, 54 exercises done on the spot, 36 put off to the next prompt and 1 skipped. Counting each put-off exercise once when it came back, that’s 54 of 55 done. Again, one person on a prototype, not a study.

Keeping your context

The other good use of a short wait is to stay with the task. When the agent comes back, you need to judge its work, and that’s easier if the problem is still in your head.

Things that keep context:

  • Re-read your prompt. You will often spot a missing constraint while there’s still time to add it.
  • Draft the next prompt. You usually know what you’ll ask next. Writing it now makes the next turn faster.
  • Review the diff from the last turn, or watch the agent’s tool calls as they appear. Anthropic’s report found that experienced users interrupt more often than new ones (about 9% against 5%), because they watch and step in when something goes wrong.
  • Write down what you’ll check: the test to run, the edge case you’re worried about.

Things that destroy it: email, Slack threads and feeds. Each one brings a new problem, often someone else’s, into the space where your task was. A Slack thread can also pull you into a reply that takes longer than the agent did. If you need to check messages, do it in a long wait, and treat it as a switch to a different task, not a quick look.

Parallel sessions in other worktrees

Running a second agent session is the developer’s answer to the wait. With git worktrees, each session gets its own copy of the repository, so two agents don’t edit the same files.

It helps when the tasks are independent and well specified, and when they’re long. Two 20-minute refactors in two worktrees save real time. It also suits background work you don’t need to watch, such as a test-coverage pass or a dependency update you will review later.

It hurts when the turns are short. If each session’s turn takes about 45 seconds and you run three, one of them finishes roughly every 15 seconds on average (simple arithmetic, assuming similar tasks). At that point you’re not waiting any more, you’re supervising. Each switch means loading a different problem, and review gets shallower. You also lose the pause: no wait means no reason to stand up all afternoon.

A fair middle ground: one main session you work with closely, and at most one long-running task in another worktree that you check at natural breaks.

How to know when it’s done

You don’t need to watch the terminal to know when the agent stops. Claude Code has hooks that run a command at set moments: the Stop hook runs when Claude finishes responding, and the Notification hook runs when Claude Code sends a notification, for example when it needs your permission. Either can play a sound or show a desktop notification.

This matters for everything above. If you know you’ll hear when it’s done, you can turn away from the screen without checking back every ten seconds. The setup for Claude Code, Codex and Cursor is in our guide to agent hooks. Spare Minute uses the same official hooks to know when a prompt starts and when the agent stops.

One caution: a permission prompt also ends the wait. If the agent stops to ask whether it may run a command and you’re three videos into a feed, the task simply sits there. A notification for that case is worth more than one for “finished”.

Codex and Cursor

The same advice applies to OpenAI Codex, Cursor and GitHub Copilot’s agent mode. The wait has the same shape: you send a prompt, the agent reads files, runs tools and edits, and you have time with nothing to do.

What’s missing is the data. OpenAI and Cursor have not published wait-time numbers like Anthropic’s, as far as we can find, so we can’t tell you their median. From your own use you’ll know whether your waits are mostly short or long. Plan for the three sizes in the table, and adjust.

Questions

Why does Claude Code sometimes take so long?

Longer waits usually mean a bigger task: more files to read, more tool calls (searching, running tests, editing), and more context to work through before it answers. Anthropic’s autonomy report found the longest turns grew as people gave Claude Code more ambitious tasks. Most turns are still short, around 45 seconds at the median.

Should I run several Claude Code sessions at once?

For long, independent tasks in separate worktrees, often yes. For short back-and-forth work, usually not: with turns under a minute, several sessions keep you switching between problems all the time, and the quality of your reviews drops. Start with one main session plus, at most, one long background task.

Is it bad to check my phone while the agent works?

It’s not harmful in itself, but it’s the choice most likely to cost you time and focus. A feed has no end built in, so a short wait tends to grow, and the agent may sit idle waiting for you. A short exercise or a look at the diff keeps you close to the task and gets you out of the chair.

Sources

Spare Minute is a general wellness app and this is not medical advice. Go gently, and stop if anything hurts. If you have pain that lasts or an injury, check with a health professional.

Written by Enric Planas Mulet, who makes Spare Minute.