Open-source test-impact analysis for faster CI, with conservative fallbacks and reproducible evidence
Verification for AI coding agents. DiffCI tells Claude Code, Codex, Cursor (or you) which tests and checks a change affects, runs them before the push instead of letting them fail at the full CI gate afterwards, and leaves a receipt of what ran and what was skipped. MIT licensed, runs locally, never uploads your code or reports unless you configure it (it does count runs by default: usage counting), and falls back to the full suite whenever the evidence is incomplete.
npx "@diffci.com/diffci@latest" check
Run it in any Git checkout with Node.js 22.5+. What the output means.
This repository's own CI runs only the tests DiffCI selects, with the full suite every night as the safety net. The badge above is the test-step runner time DiffCI has saved on Core and DiffCI.com since November 28, net of DiffCI's own planning and recomputed daily (how it's measured).
If DiffCI saves you CI time, a ⭐ helps others find it.
On every pull request, with no workflow file: install the DiffCI GitHub App. On each pull request of a public repository it posts one "DiffCI change impact" check listing the affected tests and why. The check is always neutral, so it never blocks a merge. The App reads code and Actions runs and its only write permission is that check run; it never skips tests or changes required checks. Data handling.
Or in your own workflow (including private repositories), add one job beside your existing CI. Its job summary shows which tests the change affects and why, or that the full suite is needed and why. It runs no tests and skips or changes nothing:
- uses: actions/checkout@v7
- uses: DiffCI/core@v0.3.77
Add with: comment: "true" (and pull-requests: write on the job) and the same answer appears on the pull request itself, updated in place on each push:
Full workflow · GitLab CI/CD component · Keeping it up to date
DiffCI doesn't replace your CI, your test runner or your required checks. It reads them.
verify runs the full suite and checks instead of guessing, and says why. Your CI keeps running everything unless you choose to run DiffCI's selection there yourself.diffci init, delete what it wrote: its section of AGENTS.md and CLAUDE.md, the diffci entries in the MCP configs, the diffci-verify skill folders, the stop hooks and the pre-push hook (what init writes).Coding agents pass the narrow check they picked and miss wider breakage, then rerun the whole suite when they are unsure. We measured this on our own agent-built production app (about 1,100 commits in two months, most of them co-authored by Claude):
verify: no output kept for a pre-existing failing check, so 'same failure at base' can't be checked
https://github.com/DiffCI/core/issues/407
Labels: enhancement
verify: the check-baseline rerun at the base commit has no time cap (Sanity: 44 min base rerun, verify slower than full)
https://github.com/DiffCI/core/issues/406
Labels: bug
Vitest: Sanity's three package configs are all non-static, so #390 never applies (7/8 FULL on 0.3.76)
https://github.com/DiffCI/core/issues/405
Labels: bug, javascript, area: vitest
Database-path detection is top-level only: nested Prisma/Drizzle schemas are not recognised
https://github.com/DiffCI/core/issues/402
Labels: None
diffci companion-scan: measure lockfile and schema-dump gaps in a repository's history
https://github.com/DiffCI/core/issues/394
Labels: enhancement
Companion checks phase 1: warn on stale lockfiles and Rails schema dumps in verify
https://github.com/DiffCI/core/issues/393
Labels: enhancement, javascript
UNSAFE fallback doesn't name the reason that decided it (sentry-mcp 14/30)
https://github.com/DiffCI/core/issues/392
Labels: enhancement, javascript
Scalar replay: Nuxt, nested Rust and Vue runtime blockers are not scoped (20/20 FULL)
https://github.com/DiffCI/core/issues/377
Labels: enhancement, adapter, javascript, area: rust
QM replay: nested Rust crate forces FULL; Node type stripping, spawned entry points and repo-wide readers
https://github.com/DiffCI/core/issues/363
Labels: bug, adapter, javascript, area: rust
E2E selection from an existing coverage map (design)
https://github.com/DiffCI/core/issues/359
Labels: enhancement
Start with a good first issue. A fixture, fallback explanation, or reproducible benchmark is a useful contribution without learning the whole engine.
good first issue is open to everyone, whether this is your first pull request or your tenth. If two people ask for the same one, it goes to the person making their first contribution. Once you have a few merged, a help wanted issue or a step in one of the adapter tracking issues is a good next step. Regular contributors can also ask for a new issue before it's labelled (see Contributor tiers).
Fork Core, clone your fork, and create a branch. A Node 22 development container is available in .devcontainer/devcontainer.json; alternatively install Node.js 22.5+ locally. npm ci installs dependencies and builds Core. Use the fixture checklist for regressions and the adapter tutorial for framework support.
In your PR, explain the changed behavior, include the reproducible fixture and validation results, and identify unsupported cases. Small documentation contributions do not need new tests. Safety and planning changes do.
Open an issue or pull request describing the behavior and a reproducible example. To ask before you start, use #contributing on the DiffCI Discord; decisions still get written down in the issue. Do not post credentials, customer source, private logs or other confidential data.
Use Node.js 22.5+ and run npm ci, npm run typecheck, npm test, npm run build, npm run audit:boundary and npm run agent:check, the checks Core CI's check job runs (it also runs npm run benchmark). On pushes and pull requests that job runs only the test files DiffCI selects for the change, and the full suite whenever DiffCI is unsure; a nightly scheduled run covers the full suite. agent:check fails when a version pinned in the agent plugins, the GitLab and Azure DevOps integrations or docs/agent-installation.md differs from the CLI package version. If it fails on a pull request that changes no version, the mismatch came from main, usually a release in progress, not from your change: rebase on the latest main and rerun it. If main fails the same way, say so in the pull request; you do not need to fix it there. Changes to safety or planning should include a regression test using a synthetic repository. Preserve full-run fallback on insufficient evidence; distinguish advisory selection from executable commands.
Contributions to this repository are made under the MIT License. Submit only work you are entitled to contribute and preserve third-party notices.
Sign off every commit to certify the Developer Certificate of Origin, using git commit -s. This adds a Signed-off-by: Your Name <you@example.com> line stating that you wrote the change or otherwise have the right to submit it under the MIT License.
Every merged contribution is credited by name: in the release notes of the version that ships it, in the Contributors list in the README, on diffci.com/contributors, and next to the feature in the docs when it adds one. The README and website entries are added automatically when your pull request merges, under your GitHub username and the PR title; a maintainer may reword them later. Tell us in your PR if you would like a different name or link used, or would rather not be listed on diffci.com.
Contributors who keep coming back get more say in DiffCI, not just more credit. There are three tiers. Each one includes everything in the tiers below it.
| Tier | How you get there | What it gives you |
|---|---|---|
| Contributor | One merged pull request. | Credit in the release notes, the README and the docs, as described above. |
| Regular contributor | Several merged pull requests over more than a few days, and an invitation from a maintainer. | Listed as a regular contributor in the README. First pick of new issues: you can ask for an issue to be assigned to you before it is labelled good first issue. Asked for input on design issues before work starts. A written reference or LinkedIn recommendation describing your DiffCI work, on request. |
| Area maintainer | Sustained work on one area, such as an adapter or the lockfile signals, and an invitation from a maintainer. | Named as the maintainer of that area in the README and the area's docs. You are consulted on design decisions in your area and requested as a reviewer on pull requests that touch it: you get the Triage role (review and label, no push or merge), and a scheduled job requests your review from the paths in .github/area-maintainers.json. Co-authorship, under your own name, of the write-up or benchmark when your area ships. First in line for paid milestone bounties once sponsorship funds them. |
Tiers are offered, not applied for. A maintainer will invite you when your work fits a tier, and you can decline or step back at any time without losing credit for what you did. Inactive maintainers move to an emeritus list and keep their credit. No tier comes with push or merge rights on the repository: those stay with the DiffCI maintainers. Area maintainers get the Triage role and nothing more.
Any collaborator access to DiffCI repositories, including the Triage role, requires two-factor authentication on your GitHub account. Any method works: an authenticator app, a passkey, a security key or SMS. If you don't have it yet, GitHub asks you to set it up when you accept the invitation.
Every tier works under the same rules: the stewardship commitments, the DCO sign-off and full-suite fallback on insufficient evidence.