clawdbod ~ $ time npm run build

What to do while your code compiles or your agent runs

Updated , 5 min read

There is a famous comic about programmers sword-fighting on office chairs because their code is compiling. The joke has aged well. Compilers got faster, but we replaced the wait with new ones: test suites, container builds, deploys, and now AI agents that go away for five minutes to refactor something while you watch a spinner.

Those waits are too short to start anything real and too long to stare through. Most of us fill them with a second screen. This guide makes the case for filling them with your legs instead, and gives you something specific to do for each length of wait.

Know how long you actually have

The first step is boring: find out how long your common waits are. Guessing leads to either starting a workout you cannot finish or standing around feeling silly.

terminal
time npm run build
time npm test

Run each a few times and write down the rough numbers. For agent work the answer is fuzzier, but you learn the pattern quickly: a single-file edit is under a minute, a multi-file refactor with tests is several minutes, and a task fanned out across subagents can be ten or more.

Then match the wait to a plan.

Wait What fits Example
Under 1 minute Nothing structured. Stand up and stretch. Neck rolls, wrist circles
1 to 2 minutes One set of one exercise 15 push-ups or 20 squats
3 minutes A three-move circuit Squats, push-ups, plank
5 minutes A short interval workout 5 rounds, 40 seconds on, 20 off
10 minutes or more A longer interval workout 10 rounds with warm-up and cool-down

One to two minutes: a single set

This is the most common wait and the easiest to use. Pick one exercise and do one honest set of it.

  • Push-ups, as many as you can with good form. Desk push-ups if the floor is not an option.
  • Air squats, 20 of them, slow on the way down.
  • Lunges, 10 per leg.
  • Plank, held for as long as the build takes. It is a surprisingly good progress bar.
  • Calf raises, 25, for when you are on a call and can only move from the knees down.

One set takes 30 to 60 seconds. You will be back before the terminal prints its last line, slightly out of breath and noticeably more awake.

Three minutes: a mini circuit

With three minutes you can do three moves back to back, one each for legs, upper body and core:

  1. 20 air squats
  2. 10 to 15 push-ups
  3. A 40-second plank

Rest for whatever is left. If that is too easy, go around twice. If it is too hard, swap in chair squats and desk push-ups from the desk exercises list.

Five minutes: intervals

Five minutes is enough for a real, if tiny, workout. The standard format is 40 seconds of work followed by 20 seconds of rest, repeated five times with a different exercise each round. A full routine with quieter substitutions is in the 5-minute desk HIIT guide.

If you use ClawdBod, you do not need to plan it:

terminal
/clawdbod:fitness hiit 5

Claude lays out five rounds from the exercise pool, and afterwards asks how many rounds you finished so it can log them.

Ten minutes or more: the long wait

Full CI runs, big migrations, and agents working through a long plan can leave you with ten minutes or more. That is long enough for ten rounds that alternate upper body, lower body and core, with a minute of easy movement at each end.

terminal
/clawdbod:fitness hiit 10

Ten minutes of intervals is real exercise. You will sweat. Decide in advance whether that is compatible with the rest of your day, and if it is not, do the five-minute version at an easier pace instead.

Being realistic about it

A few things make this work in practice.

Start the workout after the wait starts. Kick off the build, then move. Doing it the other way round turns a break into procrastination.

Stop when the task finishes. The point of an agent is that it hands you something to review. When it is done, finish the round you are in and go and read the diff. An unfinished workout still counts for every round you did, and ClawdBod only logs the rounds you completed.

Keep a quiet list. Burpees are a poor choice in an open office or above a neighbor. Squats, lunges, wall sits, planks, calf raises and desk push-ups make almost no noise.

Do not exercise through a failing deploy. If something is on fire, deal with the fire. Movement breaks are for the dull waits, not the tense ones.

Mind the screen. If you are waiting on an agent, glance at it between rounds. Agents sometimes stop to ask a question, and a permission prompt that sits unanswered for five minutes is a wait you created yourself.

How this fits with automatic breaks

ClawdBod's automatic breaks are triggered by prompt count and elapsed time, and they appear after Claude finishes a reply. They are not triggered by a build starting, so the plugin will not jump in mid-task on its own. For waits, you ask for a workout with /clawdbod:fitness, and it starts immediately.

The two cover different gaps. Automatic breaks catch the long stretches where you are prompting steadily and never pause. On-demand workouts turn dead time you already have into movement. Either way the set lands in the same local log, so your history and calorie totals reflect both. Setup for the automatic side is in the install and configuration guide.

FAQ

What can I do while waiting for code to compile?

For a wait of a minute or two, do one set of a bodyweight exercise: push-ups, squats, lunges or a plank. For five minutes, do five rounds of 40 seconds of work and 20 seconds of rest. Both leave you more alert than scrolling does.

Is it worth exercising for only one minute?

Yes. A single set breaks up a long stretch of sitting, raises your heart rate briefly, and adds up over a day. Six one-minute sets is six more minutes of movement than you would otherwise have had.

Does ClawdBod start a workout automatically when a build is running?

No. Automatic breaks follow your prompt count and a time gap, and appear when Claude finishes responding. To use a build or agent wait, run /clawdbod:fitness, or /clawdbod:fitness hiit 5 for a timed workout.

What if the build finishes before my workout does?

Finish the round you are on and go back to work. Log the rounds you completed and skip the rest.

Install ClawdBod

ClawdBod is a free, open-source Claude Code plugin that turns these breaks into a habit. Run this inside Claude Code:

install
$ /plugin install clawdbod --marketplace khur/clawdbod
$ /reload-plugins

No account, no telemetry, MIT licensed. Update and uninstall commands are on the home page, and the source is on GitHub.