DiffCI
← All case studies

Case study · our own repositories

Two months of DiffCI on its own repositories

Both repositories are ours: DiffCI.com (this site and its product) and DentalPresence, a private application DiffCI was first built against. Neither is an outside user. DentalPresence is private, so only totals appear here, never its file or test names. In both, DiffCI ran in observe mode: it recorded what it would have run, and the full test suite still ran on every commit. That full run is what each skip decision below is checked against.
210 of 440commits narrowed to a subset of the tests
1.9% · 4.7%of test files run on a narrowed commit, DiffCI.com · DentalPresence
0 of 115checked skip decisions that missed a failing test
66% vs 36%of agent-written vs other commits narrowed

How much DiffCI would have skipped

Every push to either repository's main branch ran diffci observe in CI and sent its report to DiffCI's product. Across 440 commits, DiffCI chose a subset of the tests on 210 and the full suite on 230.

DiffCI.comDentalPresence
Commits analysed319 (Sep 25 – Nov 16)121 (Oct 1 – Nov 8)
Narrowed to a subset155 (49%)55 (45%)
Test files in the suite, mean258609
Test files run on a narrowed commit, mean4.8 (1.9%)29.1 (4.7%)

Counting every commit, full runs included, DiffCI would have run 84,224 of 155,857 test-file executions and skipped 71,633 (46%). The share is lower than the narrowed commits suggest because half of all commits ran everything.

Were the skips safe?

From November 2 to 16, every decision was written to an append-only, hash-chained log in DiffCI's product, and later matched with the repository's own full CI run of the same commit. A skip is only safe if no test it left out failed in that run.

DecisionChecked against CIRed builds among themFailing tests DiffCI keptMissed
Narrowed (skipped 36,220 of 37,596 test-file runs)11511 of 10
Full suite6587 of 7 that could be checked0

Zero misses is not proof of zero risk. Only one of the 115 narrowed commits went red, so this sample says little about how DiffCI behaves when a change breaks something. What it does bound is the rate: with 0 misses in 115 decisions, the per-commit miss rate is at most about 2.6% at 95% confidence (the rule of three). More red builds, not more green ones, will tighten that.

When DiffCI ran everything, and why

Of the 183 verification receipts from November 2 to 16, 122 narrowed and 61 fell back to the full suite. DiffCI falls back whenever it cannot trace a change to the tests it affects. These are the reasons the 61 receipts gave; one receipt can give several.

Reason for a full runReceipts
A CI workflow was edited28
A file DiffCI doesn't map to tests (manifests, configs, generated files)25
A configuration file was edited21
A static page of this site was edited17
A dependency or lockfile changed12
An infrastructure definition changed3
A source file was deleted1

Most of these are DiffCI being conservative rather than wrong: a static page or a workflow edit rarely breaks a unit test. They are also the main thing to improve, through declared inputs that tell DiffCI which tests a non-code file affects, rather than by relaxing the rule that an untraceable change runs everything.

Agent-written commits narrow more often

DiffCI records which commits a coding agent wrote. Of the 440 commits, 170 were written with Claude Code.

Agent-writtenOther
Commits170270
Files changed, mean5.815.9
Narrowed to a subset112 (66%)98 (36%)

Agents here commit in small steps, and small changes are the ones DiffCI can narrow. That is the case for running verification inside the agent's loop: the agent gets the affected tests in seconds and fixes a failure before it pushes. The catch replay measures how often that stops a red build on the same two repositories.

What this shows and what it doesn't

It shows that on two real, actively developed repositories, DiffCI narrows about half of all commits to a few percent of the tests, and that none of its 115 checked skips left out a failing test.

It doesn't show CI time or money saved: both repositories ran in observe mode, so nothing was actually skipped, and run durations were not measured. It doesn't show results on anyone else's repository; for that, see the LobeHub replay. The repositories are ours and were developed alongside DiffCI, so they may suit it better than an outside codebase would. The CI reports stopped on November 8 (DentalPresence) and November 16 (DiffCI.com), when our GitHub Actions spending limit stopped those jobs from starting, not because anything changed in DiffCI.

From CLI 0.3.62, a local diffci verify also counts broken changes that were fixed before push and how long the fix took. Those numbers will be added here once there are a few weeks of them.

Try it on your repository

The same observe mode is the safe way to start. npx @diffci.com/diffci observe analyses your latest change on your machine and reports which tests DiffCI would run, without running or changing anything, and the observe-only GitHub Action records the same on every push without changing your build. Setup is on the install page, or try it in a minute.

The CLI counts its runs by default, with the repository name and never its content; one environment variable turns that off. What it sends is listed in usage counting and on the data handling page. Questions and results are welcome on Discord or in GitHub issues.