Case study · our own repositories
Two months of DiffCI on its own repositories
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.com | DentalPresence | |
|---|---|---|
| Commits analysed | 319 (Sep 25 – Nov 16) | 121 (Oct 1 – Nov 8) |
| Narrowed to a subset | 155 (49%) | 55 (45%) |
| Test files in the suite, mean | 258 | 609 |
| Test files run on a narrowed commit, mean | 4.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.
| Decision | Checked against CI | Red builds among them | Failing tests DiffCI kept | Missed |
|---|---|---|---|---|
| Narrowed (skipped 36,220 of 37,596 test-file runs) | 115 | 1 | 1 of 1 | 0 |
| Full suite | 65 | 8 | 7 of 7 that could be checked | 0 |
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 run | Receipts |
|---|---|
| A CI workflow was edited | 28 |
| A file DiffCI doesn't map to tests (manifests, configs, generated files) | 25 |
| A configuration file was edited | 21 |
| A static page of this site was edited | 17 |
| A dependency or lockfile changed | 12 |
| An infrastructure definition changed | 3 |
| A source file was deleted | 1 |
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-written | Other | |
|---|---|---|
| Commits | 170 | 270 |
| Files changed, mean | 5.8 | 15.9 |
| Narrowed to a subset | 112 (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.