Juraj Blahunka

My AI coding agents spend most of their time waiting

6 min read

A bored orange cartoon creature sits on top of a Claude Code terminal whose status line reads Waiting… 74% of the night, next to a stopwatch showing 14.6 h

I timed every second of an overnight run where my Claude Code agents built features for Note to Self, my iOS app for texting yourself notes.

The setup

One Claude Code session is the manager. It doesn’t write code. For each feature it starts a fresh agent and takes it through the same steps:

  1. The agent writes a plan, and the manager approves it.
  2. It builds the feature, with UI tests and a screen recording of the simulator as proof.
  3. Two reviewers check the change at the same time: a fresh Claude Opus agent and GPT running in Codex.
  4. The agent fixes what they found and proves the feature again.
  5. The manager merges it and starts the next one.

Nothing ran in parallel. One agent and one simulator, for 14.6 hours.

How I measured it

The analysis agent got every transcript from the night: the 11 feature agents, the 11 Opus reviews, the 11 Codex logs, the manager’s own session and the git log. It split the night into phases from the manager’s transcript (plan, build, review, fixes), and then put every second of each phase into one bucket:

It expects about 10% of the time to land in the wrong bucket at the edges, mostly between UI tests and simulator checks. Their total barely moves.

Where the time went

All 11 features, minutes of wall clock
UI test runs 292 min · 33%
Simulator checks, video 287 min · 33%
Model thinking, writing 227 min · 26%
Waiting for code review 47 min · 5%
Unit tests 13 min · 1%
The manager 9 min · 1%
Builds 8 min · 1%

Two thirds of the night was the simulator. The model is fast. Proving the work is slow.

The details were more interesting than the totals:

Per feature, the fix rounds and the one oversized feature stand out:

Minutes per feature, in the order they ran
  • Plan
  • Model
  • Tests and builds
  • Simulator checks, video
  • Review wait
  • Fix round
UI test speed-up 79
Keyboard on launch 29
Share extension 67
Links and previews 63
Siri shortcut 38
Spotlight 64
New Note control 45
8 platform items 241
Paste pictures 69
Navigation 115
Recently Deleted 64+
Table
PlanModelTests and buildsSimulator checks, videoReview waitFix roundTotal
UI test speed-up203.143.8048.279
Keyboard on launch1.23.512.51.44.46.329
Share extension3.112.213.555.328.567
Links and previews3.812.110.45.14.427.863
Siri shortcut1.46.93.513.93.98.738
Spotlight2.58.94.632.14.411.864
New Note control1.466.38.74.219.845
8 platform items1.240.236.675.56.182.6241
Paste pictures210.41019.65.821.969
Navigation2.98.930.77.94.660.5115
Recently Deleted2.912.95.3254.413.364+

The last feature’s fix round was still running when the analysis started, so its bar stops early.

The reviews were worth it. They raised 127 findings, and about 36 of them were real bugs. What they cost is the proof that has to run again after every fix.

I had already made the tests faster

The first of the 11 features was the UI test suite itself. 45 tests became 12 user journeys, each launching the app once and starting from seeded data instead of typing its own. The suite went from 875 seconds to 375, all green.

Two ideas from that feature didn’t make it:

And UI tests still took a third of the night. A suite that takes 57% less time helps less than you’d think when it runs 20 times a night, on top of 191 runs of single classes.

What I changed

The analysis ranked the causes by minutes lost. These are the ones I acted on:

  1. Two features at a time, each in its own git worktree with its own simulator, paired so they touch different parts of the app. It is the only change that goes after the simulator share as a whole, because one feature’s tests no longer hold up the next one.
  2. Reviews start the moment the code is committed, while the tests run, so review fixes and test fixes land in one round.
  3. One proof video per feature, recorded around a committed UI test. The one feature that already did this needed 0.8 minutes for its video.
  4. The full UI suite once per feature, after the last commit, and only the affected tests while iterating.
  5. A fresh build before every test run. One agent lost two video attempts to test-without-building running a stale build.
  6. Nits skip the fix round. 56 of the 127 findings were nits, and each one got its own cycle of reproduce, fix and rerun. Now they wait for one polish pass at the end.

What it should buy

The analysis estimates that two features at a time roughly doubles how many fit in a night, and that the other changes cut 30 to 40 minutes off an average 80-minute feature. Next overnight run? Twice as many features done. I’ll measure it the same way.

Measure your own

Paste this into Claude Code:

Read my Claude Code transcripts in ~/.claude/projects from the last 3 days. Use the tool call timestamps to split the wall-clock time into model, builds, tests, checks and waiting. Show a table.

If your agents build, run tests or drive a browser, I bet the model isn’t your biggest slice.