Same 240 test files. Two machines.
On the 32-class runner: $1.152 and 17 minutes 54 seconds. On the 16-class runner: $0.672 and 20 minutes 51 seconds.
That is 41.7% cheaper and 16.5% slower. One job, same tests, same known failure in both.
Vincent Koc opens his CI write-up by acknowledging people laughed when he talked about agents building software with other agents. Then OpenClaw hit a limit nobody plans for: not tokens, not memory, but tests.
Agents write code faster, so they write more tests, start more jobs, and trigger more retries. The queue grows. And about 89% of the code is TypeScript, which means every one of those tests wants a runner.
The headline is 95.5% less estimated compute value. What makes the post worth reading is that Koc spends most of it arguing with his own number.
What the numbers actually say
Between the September peak week and the latest week, OpenClaw's Blacksmith runners logged 158,546 hours, then 21,395. That is 86.5% less runtime and 79.7% fewer jobs.
At published prices, that peak week sustained for 30 days is about $1.27 million of compute. The latest week is $57,324.
And then the line that earns my trust:
Blacksmith sponsored the capacity. We did not pay those dollar amounts.
He also notes indexed commits fell about 44% across the same weeks. So it is not the same work on a cheaper setup. It is less work on a cheaper setup, and he says so before anyone in the comments can.
A savings claim that volunteers its own confound is a different kind of document.
Delete before you optimize
The first move is not a faster machine. It is fewer tests.
Koc's default assumption is that most tiny unit tests in an agent-grown suite are noise until they prove an independent contract. Noise means tests that restate the implementation, break on harmless refactors, or stay green while the behavior they claim to protect is broken.
Models are excellent at adding. Deleting looks like admitting the earlier work was wasted, so nothing gets removed unless someone asks.
They put the pressure in a guard. A test-line ratchet: once the suite hits a ceiling, new test lines must be offset by deletion or consolidation. The rule evolved by November to allow 400 net new lines per change without an allocation record, with larger additions needing a justified allowance.
The census is the part I did not expect. At the November checkpoint, tests were 56.5% of core source lines. Test support added 6.7%. Implementation was 36.8%.
Tests peaked at 68.9% of core code on 28 September. Between then and 13 November, test files dropped by 417,906 lines net.
Peter Steinberger's summary of an earlier round was blunter: OpenClaw deleted around 400k lines of its own tests with little change in coverage.
The audit rule that actually works
The cleanup method is simple enough to steal whole.
Read the production code before the tests. Name the contract. Find the strongest test that proves it. Then remove duplication.
One example does the job. A test checked that a result was a valid SHA-256 string, then separately checked it did not contain the word "synthetic."
The format check already ruled that word out. The second assertion could never fail.
They removed it, then deliberately broke the code to confirm the remaining guard still caught the bug. All 12 test cases stayed. What went was duplicate work inside a test, not independent protection.
That is the difference between cleanup and vandalism, and it is why the rule is "name the behavior" and not "delete the slow ones."
Stop paying for setup
A test that runs in seconds can sit behind minutes of preparation. Once selection shrinks a job, the fixed cost becomes the whole job.
Their fixes are ordinary and effective:
- Blobless checkouts, keeping history but fetching file contents on demand
- Splitting one 55.1 MB archive into a 30.0 MB runtime package and a 0.48 MB tooling package
-
isolate: falsein selected Vitest lanes, so a worker gets reused: 174.2s down to 97.1s - Narrower fixtures: 99.5s down to 62.1s
But then the tooling. They swapped tsgo for tsrs and a full local typecheck went from 447 seconds to 64. They kept tsgo for fallback and release validation, which is the right instinct.
A faster tool belongs on the checks humans wait for, not automatically on the ones that gate a release.
Choose the tests, not the whole repo
This is the piece with the biggest visible effect and the most careful caveats.
Adaptive testing starts from the diff. A changed file selects its owning test, then tests of the code that imports it. Change a shared retry helper and you run the retry tests plus the sender tests. An unrelated profile component does not become relevant because it lives in the same repo.
Three completed PR runs show the scale: 4,018 entries down to 159. 4,480 down to 169. 6,895 down to 97.
They also repaired an accidental fanout where a Windows test-list edit was pulling in unrelated SDK suites. Fixing the boundary took selected targets from 2,962 to 181.
The design choice I respect: no LLM in the selection path.
Our live path is ordinary code: the same revision, diff and rules produce the same selection.
They did train a small decision tree. It scores 0.98276 AUC on their dataset, and the article immediately undercuts it. That measures ranking on controlled mutations, not bug-catching in production. The source audit found no evidence the model beat the plain dependency graph.
So the model runs in shadow mode. It proposes 20 tests from a group of 1,000. All 1,000 still run. A failure outside the 20 is a miss worth studying.
They pay the full cost to learn whether the shortcut would have been safe.
Small tangent. I have written exactly one test-line ratchet in my life, for a side project, and it lasted four days before I raised the ceiling and forgot to write down why.
The ratchet is the right idea and the hardest thing to keep honest. It needs someone to hold the line at 2am when a fix "just needs a couple more tests." OpenClaw got it to work by making the exception a written record instead of a silent default, and by pointing an agent at the cleanup so the boring part stopped needing human willpower.
And that is a more interesting artifact than the CI config.
The real talk
The cost cut is real. But the speedup is not established, and Koc says so.
Read the timing section twice. Median PR CI time was 6m41s in June, 12m10s in September, and 9m18s in the November sample. That is not a steady improvement. It got worse before it got better, and the final point is a partial day.
The delivery number is better but narrower: a median of 25.3 minutes from PR creation to merge once draft intervals are removed, across 1,714 merged PRs.
Both of those predate the adaptive-selection rollout. So the honest position is that the bill fell a lot and the waiting improved somewhat, and nobody has proven which change did what.
If you want the one-sentence version: this is a post about measurement discipline that happens to contain a cost win.
Do not copy the numbers. Copy the ledger. Every figure has a defined scope, a window, and a stated limitation, including the ones that make the author look worse.
One last thing
The 41.7% cheaper, 16.5% slower job is still the thing I think about.
It is the cleanest possible demonstration that "cheaper CI" and "faster CI" are two different projects. You can win one and lose the other in a single pull request.
Most teams measure the bill because the bill arrives monthly and looks like a verdict. The clock that decides whether agents can work is the one between opening a PR and merging it, and that one does not send you an invoice.
Top comments (0)