All Insights
#SundayCoffeeAndCode
November 2026

Sunday Coffee & Code: The code isn't the bottleneck any more - stop optimising the machine, start optimising the flow

I asked Claude to analyse the logs from a five-hour autonomous spec-kit run. 44% of the time went on waiting for CI. The biggest fix: keep working while CI runs, with safeguards so nothing builds on a broken base.

By Steve Harris

โ˜• ๐—ฆ๐˜‚๐—ป๐—ฑ๐—ฎ๐˜† ๐—–๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ & ๐—–๐—ผ๐—ฑ๐—ฒ: ๐—ง๐—ต๐—ฒ ๐—ฐ๐—ผ๐—ฑ๐—ฒ ๐—ถ๐˜€๐—ปโ€™๐˜ ๐˜๐—ต๐—ฒ ๐—ฏ๐—ผ๐˜๐˜๐—น๐—ฒ๐—ป๐—ฒ๐—ฐ๐—ธ ๐—ฎ๐—ป๐˜† ๐—บ๐—ผ๐—ฟ๐—ฒ - ๐˜€๐˜๐—ผ๐—ฝ ๐—ผ๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜€๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—บ๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ฒ, ๐˜€๐˜๐—ฎ๐—ฟ๐˜ ๐—ผ๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜€๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—ณ๐—น๐—ผ๐˜„.

My GitHub spec-kit harness has reached an interesting point. Writing code no longer limits how fast I can build new features - itโ€™s now the throughput (think factory flow-line): how much work the whole system can move from spec to merged PR.

As the test suite has grown, Iโ€™ve tuned my CI pipeline twice, each time bringing it back down from 12โ€“15 minutes to about 7. This time I looked at the harness itself.

๐—ง๐—ต๐—ฒ ๐—ฟ๐˜‚๐—ป

A recent harness ran a full feature chain autonomously overnight: 8 implementation phases (50 tasks) and a converge step, just over 5hrs. It finished cleanly: 755 tool calls, 309 minutes of time.

I log everything: every tool call, every timestamp, and the time Claude spends thinking. So I asked Claude to analyse the logs and tell me where the five hours went.

  • 44% waiting for CI
  • 31% the model actually thinking and writing code
  • 16% local tests and gates
  • The rest: reading files, edits etc.

Every push set off a full 47-job CI run, and the session idled until it finished. That happened 16 times - a good target.

๐—ง๐—ต๐—ฒ ๐—ฝ๐—ฟ๐—ผ๐—ฝ๐—ผ๐˜€๐—ฎ๐—น๐˜€

Claude came back with five changes, and I asked it to assess the risk of each:

  • Locally, run only the Playwright specs a change touches. CI still runs everything.
  • When a test has been deliberately broken to prove it can fail, put it back as part of the next taskโ€™s push instead of in a push of its own.
  • A one-job CI run for those planned failures, with the full 47-job run still required before merge.
  • Fewer, bigger phases. This means more context in one session and more lost if a phase stops.
  • Keep working while CI runs - the biggest opportunity.

๐—ง๐—ต๐—ฒ ๐—ถ๐—ป๐˜๐—ฒ๐—ฟ๐—ฒ๐˜€๐˜๐—ถ๐—ป๐—ด ๐—ผ๐—ป๐—ฒ: ๐˜€๐˜๐—ผ๐—ฝ ๐—ฏ๐—น๐—ผ๐—ฐ๐—ธ๐—ถ๐—ป๐—ด ๐—ฝ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฒ๐˜€๐˜€ ๐—ผ๐—ป ๐—–๐—œ

  • Today: push task 1 โ†’ wait about 9 minutes โ†’ read the results โ†’ start task 2.
  • Proposed: push task 1 โ†’ start task 2 straight away โ†’ when CI for task 1 finishes, read it โ†’ only then push task 2.

Thatโ€™s how we work anyway - you donโ€™t sit watching the pipeline. The risk is building on a broken base - low/med risk.

The safeguards are what make it work:

  1. Never push again until the previous run has been read.
  2. A planned failure always goes in a push of its own - no mistaken failures.
  3. Every phase still ends on a green full run.

The trade is occasional rework in exchange for about an hour saved per chain. Current estimate is a 20โ€“25% cut in end-to-end time and a 10โ€“15% cut in cost.

Once AI writes the code, development looks more like a factory flow-line: queueing work, waiting, batch sizes, work in progress. In my recent SDD talk I described the shift from โ€œhuman routerโ€ to โ€œsoftware factory.โ€

๐—ง๐—ต๐—ถ๐˜€ ๐—ถ๐˜€ ๐˜„๐—ต๐—ฎ๐˜ ๐—ฟ๐˜‚๐—ป๐—ป๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—ณ๐—ฎ๐—ฐ๐˜๐—ผ๐—ฟ๐˜† ๐—น๐—ผ๐—ผ๐—ธ๐˜€ ๐—น๐—ถ๐—ธ๐—ฒ - ๐˜†๐—ผ๐˜‚ ๐˜€๐˜๐—ผ๐—ฝ ๐—ผ๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜€๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—บ๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ฒ ๐—ฎ๐—ป๐—ฑ ๐˜€๐˜๐—ฎ๐—ฟ๐˜ ๐—ผ๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜€๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—ณ๐—น๐—ผ๐˜„, ๐—ฎ๐—ป๐—ฑ ๐˜†๐—ผ๐˜‚ ๐—น๐—ผ๐—ด ๐—ฒ๐˜ƒ๐—ฒ๐—ฟ๐˜†๐˜๐—ต๐—ถ๐—ป๐—ด.

Want to Discuss This Topic?

Steve is always happy to have a direct conversation.