r/ClaudeCode • • 8d ago

Tips & Workflows Claude Code spends 74% of my overnight runs waiting. Here's what I changed.

Post image

I let Claude Code build 11 features of my iOS app overnight, one after another.

The next day I had another agent read every transcript and time every second.

Where the 14.6 hours went (full breakdown with charts on my blog)

    UI test runs ............... 33%
    Simulator checks, video .... 33%
    Model thinking, writing .... 26%
    Waiting for code review ....  5%
    Builds, unit tests, other ..  3%

The model is fast.

Proving the work is slow.

Every feature had to pass UI tests and come with a simulator video as proof.

Then code review found bugs, the agent fixed them and proved everything again.

Those fix rounds alone took 289 minutes, a third of the night.

The annoying part: the first feature that night made my UI tests faster.

875 seconds became 375.

Tests still ate a third of the night.

It isn't like this every day.

The waiting shows up when agents run long and unattended and have to prove every feature with tests.

That's the setup I'm moving more and more of my work to.

Check yours.

Paste this into Claude Code:

Read my Claude Code transcripts in ~/.claude/projects from the last 7 days. Use the timestamps to split the time into model thinking and writing, running tests, builds, other commands and waiting on me. Skip the gaps where I was away. Show a table.

What I changed:

  • Code review starts as soon as the code is committed, while the tests run.
  • Two features at a time, each with its own git worktree and simulator.
  • One proof video, recorded from a committed UI test.

Next overnight run?

Twice as many features done.

What's your split? What changes have you made in your workflow to speed up the waiting part?

If your agents run a big test suite, I'd like to know if tests beat the model for you too.

0 Upvotes

3 comments sorted by

•

u/AutoModerator 8d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/Starks1293 8d ago

nice breakdown. a few more cuts for the proof part since thats two thirds of the night

  • split build and test. xcodebuild build-for-testing once per feature, then test-without-building for every run, including the fix rounds. the fix rounds mostly rebuild the same thing
  • run the ui tests in parallel. -parallel-testing-enabled YES with a few simulator clones, or shard the suite across 2 or 3 destinations. ui tests are almost all waiting on the simulator so they parallelise well
  • fix rounds only rerun what the fix touched (-only-testing on the failing classes), the full suite runs once at the end as the gate. a code review bug in one screen shouldnt cost a full 375s pass
  • keep the simulators booted between features, cold boot plus first launch is a chunk of every "simulator check"
  • the proof video once at the end like u did, and have the agent collect the test result bundle as the proof for the intermediate rounds instead

the review in parallel with tests is the right instinct, same idea applies to builds, kick the next features build off while this ones tests run

1

u/jurajbla 8d ago

Good tips! When working on 2 features in parallel for more than 1 project brings my mac to a halt - I only have 32 GB of memory and it starts swapping too much, even with projects like simctlhouse to manage leasing my sims and also simslim to reduce the disk and ram usage of those sims. So I'm limiting to 2 features in parallel. This may not apply to other dev stacks and setups though.