What to do while Claude Code is working: 8 good uses of the wait
You type a prompt, Claude Code starts reading files and editing, and you have somewhere between thirty seconds and ten minutes with nothing to do. It happens dozens of times a day. Here’s how to use those minutes without losing your place in the work.
Why the wait is tricky
A coding agent’s run is too long to sit and stare at, and too short for real work. That middle length is the problem. If you open something absorbing, you come back late, and you come back distracted.
Researchers call that leftover distraction attention residue. In Sophie Leroy’s 2009 experiments, people who switched away from an unfinished task kept thinking about it, and they did worse on the next one. A run you’re waiting on is exactly that kind of unfinished task. So the best uses of the wait are either about the same work, or small and easy to drop the moment the agent finishes.
1. Write the next prompt now
You usually know what comes after this task: the tests, the edge case, the second screen. Draft that prompt in a scratch file while the agent works. When the run ends, you paste it and the next run starts within seconds instead of after a minute of thinking.
2. Read the changes as they land
Claude Code shows each edit as it makes it. Read along. You’ll catch a wrong turn early (a file it shouldn’t touch, a library you don’t want), and pressing Escape to stop and redirect costs far less than undoing a finished run.
3. Write down how you’ll check the result
Before the run ends, write two or three things you’ll check: “the empty state shows the right text”, “the old API still works”, “no new warnings”. Checking against a list you wrote in advance is faster and more honest than poking around afterwards.
4. Run a second task, on its own copy of the code
Two agents editing the same files will step on each other. If you want parallel work, give the second one its own working copy with git worktree add ../my-app-docs and start a separate Claude Code session there. Keep the second task unrelated (docs, a script, a test file), so you aren’t holding two designs in your head at once.
Many people find two sessions comfortable and three tiring. Start with two.
5. Let your laptop tell you when it’s done
Much of the wait is spent watching for the end. Claude Code’s hooks can run a command when a task finishes or when it needs your permission, so you can get a sound or a notification instead of watching the terminal. Once you trust that signal, you can look away.
6. Take a real micro-break
Stand up, drink water, look out of the window. A 2022 meta-analysis in PLOS ONE (Albulescu and colleagues) found that breaks of ten minutes or less give a small but real boost in energy and reduce fatigue. A break that doesn’t involve another screen is also the easiest to drop when the run ends.
7. Learn something in small pieces
Some learning works best in exactly these gaps. Vocabulary is the classic case: memory research shows that short sessions spread over the day beat one long session (the spacing effect). A few flashcards per wait add up. At about 9 seconds a card, a three-minute run is room for about 20 cards, and a day of runs can be a few hundred.
It has to be something you can stop mid-card, though. Anything that needs 20 minutes of focus belongs elsewhere.
8. Tidy the small stuff
Keep a short list of two-minute jobs: answer one message, rename a branch, close stale tabs, update a ticket. Do one per wait. They stay small, they don’t pull you into a new problem, and they’d otherwise eat a whole half-hour later.
What not to do
- Open a feed. Social media and video are built to keep you. The run finishes, and you notice ten minutes later.
- Start a hard problem. Real debugging in another project leaves you with two half-solved problems, and plenty of attention residue.
- Answer the agent half-asleep. When it asks for permission to run a command, read the command. That one’s about safety, not speed.
Match the use to the length of the wait
| Wait | Good fit |
|---|---|
| Under 1 minute | Read the changes; a few flashcards |
| 1 to 5 minutes | Draft the next prompt; write the checks; a set of flashcards; one two-minute job |
| 5 minutes or more | A second session in its own worktree; a real break away from the screen |
The short version
Use the wait for things that are either part of the same work (next prompt, review, checks) or small enough to drop instantly (a break, flashcards, a tiny job). Avoid anything built to hold your attention. And let a notification watch the terminal for you, so the wait is actually free.
Sources
- 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.
- Albulescu, P., et al. (2022). “Give me a break!” A systematic review and meta-analysis on the efficacy of micro-breaks for increasing well-being and performance. PLOS ONE, 17(8), e0272460.
- Cepeda, N. J., et al. (2006). Distributed practice in verbal recall tasks: A review and quantitative synthesis. Psychological Bulletin, 132(3), 354–380.