Scan your whole stack
Are you using checkchange?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.7
checkchange was last scanned on 23 Nov 2026 at version 0.5.7. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.5.7 LATEST | 23 Nov 2026 | No rules fired |
| 0.5.6 | 11 Nov 2026 | No rules fired |
| 0.5.5 | 11 Nov 2026 | No rules fired |
| 0.5.4 | 11 Nov 2026 | Not shown |
| 0.5.3 | 9 Nov 2026 | Not shown |
Findings for v0.5.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.5.7; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Independent, deterministic evidence for AI-assisted software development.
AI coding tools can make a lot of software changes very quickly. That's useful, but it also creates a new question:
How do we independently check the change without simply asking another AI what it thinks?
That's what CheckChange is for.
CheckChange looks at the functions changed in a Git repository and uses measurable evidence such as complexity, test coverage, coverage attribution, and deterministic CRAP calculations to produce evidence about the change.
It is not trying to decide whether the code is correct. It is not another AI code reviewer. It gives developers, CI systems, and other tools something concrete to look at.
At a high level:
Git change
↓
Changed functions
↓
Complexity + coverage
↓
Coverage attribution
↓
CRAP calculation
↓
Deterministic rules
↓
Evidence
The result tells you what CheckChange was able to establish about the change, rather than pretending that missing evidence is the same thing as good evidence.
For example, a changed function might produce:
Complexity
12 → 17
Coverage
84% → 61%
CRAP
increased
Result
WARN
That does not mean the function is defective. It means there is evidence worth looking at.
CheckChange is intended to be used as:
The important part is the separation:
AI coding agent
|
| makes a change
v
CheckChange
|
| produces evidence
v
Human / CI / downstream system
|
v
decision
The system that made the change does not get to decide whether the evidence is sufficient.
CheckChange does not claim to:
A PASS means the available evidence satisfied the applicable deterministic rules.
A WARN means the evidence crossed a condition worth investigating.
An INCOMPLETE or NOT_EVALUATED result means CheckChange could not establish everything needed for a meaningful evaluation.
Those are evidence states, not judgments about whether the software is ultimately good or bad.
The package is published on npm as checkchange. Check the current published
version with npm view checkchange version.
npm install -g checkchange
checkchange --help
Or use it without installing globally:
npx checkchange check --base main --json
pnpm add -g checkchange
Or:
pnpm dlx checkchange check --base main --json
git clone https://github.com/victor-petropoulos/CheckChange.git
cd CheckChange
corepack enable
pnpm install --frozen-lockfile
pnpm run build
node dist/cli.js check --base main --json
To get the latest released version:
npm install -g checkchange@latest # global install
npm install checkchange@latest # project-local dependency
Check what you have and what is available:
checkchange --version
npm view checkchange version
If you need a pinned version for reproducibility, use checkchange@<version>
with the version you want (list available versions with
npm view checkchange versions).
The repository includes an .nvmrc and the required pnpm version is specified in package.json.
For repositories using the Python analysis path, Python 3 plus the relevant testing/coverage tooling may also be required. For C# repositories, the .NET SDK is optional — without it, CheckChange analyses .cs files via a pure-TypeScript fallback parser in degraded mode rather than failing.
If you are working from a source checkout:
pnpm install
pnpm run build
Then run:
node dist/cli.js check --base main --json
If CheckChange is installed globally:
checkchange check --base main --json
You can also run the project's own test suite with:
pnpm exec vitest run --coverage
For Bun test projects:
bun test --coverage --coverage-reporter=lcov
This writes coverage/lcov.info, which CheckChange reads directly (it can also
run this command for you via --auto-coverage). Bare bun test --coverage
prints a coverage table but writes no artifact on disk; the
--coverage-reporter=lcov flag is required.
The three most common starting points are:
checkchange check --base main --json
Analyze the changes relative to main and produce machine-readable evidence.
checkchange check --crap-threshold 25 --format github
Run the analysis with a custom CRAP threshold and GitHub-oriented output.
checkchange check --auto-coverage --verbose
Allow CheckChange to detect/configure the appropriate coverage path and show additional diagnostic information.
| Command | Purpose |
|---|---|
check |
Analyze changed functions and produce evidence |
doctor |
Check runtime and repository prerequisites |
prepare-repo |
Detect, plan, approve, install, and verify test/coverage tooling |
explain |
Explain the rationale behind a result |
trace |
Show the evidence trace for a function |
delta |
Compare evidence between two states |
Run:
checkchange --help
for the current command and option list.
Some of the most useful options are:
| Option | Description | Default |
|---|---|---|
--base <ref> |
Git base reference for the change | auto-detect |
--crap-threshold <n> |
CRAP warning threshold | 30 |
--coverage-file <path> |
Explicit coverage file | auto-detect |
--format <github\|junit\|sarif> |
CI output format | none |
--json |
Produce machine-readable evidence | off |
--verbose |
Show additional diagnostics | off |
--auto-coverage |
Attempt automatic coverage setup (vitest, jest, pytest, dotnet, or bun) | off |
Flags are per-command: checkchange check --help lists --format, --base,
--json; every subcommand lists its own flags. Unknown flags are rejected
with Error: Unknown option <arg> (exit 1) rather than silently ignored.
The base reference is automatically detected when --base is not supplied.
Provider configuration can be supplied explicitly or discovered from the repository.
The current implementation supports analysis for:
Coverage can be supplied through the supported coverage paths, including Istanbul-compatible coverage, LCOV, and Coverlet Cobertura XML.
CheckChange also supports CI-oriented output formats:
github
junit
sarif
The supported provider/configuration surface is intentionally narrower than "anything that can produce a coverage report." Check the current documentation before assuming a particular repository or coverage setup is supported.
The current pipeline is roughly:
Git diff\ Determine what changed relative to the selected base.
Changed functions\ Identify the functions affected by the change.
Complexity\ Measure complexity using the appropriate provider.
Coverage\ Find available test-coverage evidence.
Attribution\ Associate coverage evidence with the changed functions.
CRAP calculation\ Combine complexity and coverage into the deterministic CRAP signal.
Rules\ Apply the project's deterministic rules and thresholds.
Evidence\ Produce the structured evidence result.
Output\ Present the result for a developer, CI system, or another machine.
The evidence output includes information about completeness and provenance so that a number is not presented without context.
A typical machine-readable result looks roughly like:
{
"schemaVersion": "0.5",
"analysis": {
"base": "<resolved-base-sha>",
"target": "current"
},
"changedFunctions": [],
"ruleResults": [],
"policy": {
"crapThreshold": 30
},
"analysisStatus": "UNSUPPORTED",
"gate": "NOT_EVALUATED",
"completeness": "INCOMPLETE"
}
The exact output depends on the repository and evidence available.
For example, a clean checkout may have no changed functions. In that case there is nothing to evaluate and NOT_EVALUATED is a valid result.
You can use:
checkchange doctor
to see why a repository is or is not ready for analysis.
Example:
gitExecutable: ok
gitRepo: ok
defaultBase: ok (origin/main)
providerAvailability: no-changed-files
↳ no changed files detected against the base
coverageArtifact: present
The gate field of the evidence output is never null (as of 0.5.0). It is one
of four values:
gate |
Meaning |
|---|---|
PASS |
No rule violations and coverage sufficient. |
WARN |
At least one rule violated (e.g. CRAP above threshold). |
NOT_EVALUATED |
Nothing to evaluate (unsupported source, empty intervals, absent coverage). |
FAILED |
Analysis could not complete (coverage missing/malformed, complexity failed). |
gateReason (optional) explains why a non-PASS gate was emitted, e.g.
no-supported-file-extensions, complexity-analysis-failed, the coverage
error reason (missing / malformed / failed), or a generated-file
exclusion: all-files-generated when every changed file is excluded, or
test-files-excluded when only test files are.
Explicit-file malformed taxonomy. When --coverage-file <path> points to
an extension-gated LCOV artifact (*.info or *.lcov) that parses to an empty
map and carries neither SF: nor DA: tokens anywhere in the file, the guard
classifies it as malformed → analysisStatus FAILED, gate FAILED,
completeness INCOMPLETE, coverageErrorReason: "malformed", stderr
Error: coverage artifact malformed, exit 1. This catches garbage or
JSON-renamed-.info/.lcov inputs up front rather than silently treating them as
valid zero-record artifacts. Lenient boundary preserved: a valid LCOV artifact
that contains SF: (even when it has zero DA: lines) continues through as
lenient SUCCESS/NOT_EVALUATED, since the token proves the artifact originated
from a real LCOV-producing toolchain. Invalid JSON (all explicit paths), size
breaches (>100 MB), and unconvertible Python-binary lanes still return malformed
via the existing throw/catch path.
Exit codes:
| Condition | Exit code |
|---|---|
FAILED analysisStatus or gate === 'FAILED' |
1 |
gate === 'WARN' |
1 |
PASS / NOT_EVALUATED |
0 |
--json may include an optional top-level diagnostics object. Existing fields
(lineage, quality, fingerprints) carry provenance, quality scores, and
per-function hashes. functionCoverage is emitted only when the coverage
artifact is LCOV and contains FN/FNDA records. excludedGeneratedFiles lists
every changed file skipped by the generated-file filter.
diagnostics.functionCoverageWhat it is: For each changed function that has an LCOV FN record whose
declaration line matches the function's lineStart, one entry carrying the
function-hit count observed in the coverage artifact:
{
"file": "src/adapters/typescript/collector.ts",
"method": "visit",
"line": 488,
"hits": 4166
}
When present: coverageArtifact is LCOV (--coverage-file *.info) AND
at least one changed function's declaration line appears in an FN record. The
field is omitted entirely for Istanbul JSON or Cobertura XML — those formats
carry no per-function hit counts.
When absent: No LCOV FN data matched any attributed method (including cases
where only anonymous (anonymous_N) FN entries exist — see below), or the
artifact is not LCOV.
Does NOT affect gate decisions. Function-hit counts are diagnostic-only.
CRAP derives from statement + branch coverage only (coverageNormalization.js:1-9);
changedFunctions shape ({file, method, lineStart, ..., crap, coverage, coverageKind})
is unchanged; gate, threshold, and completeness are unaffected. This is a
YAGNI-boundary decision recorded in the
coverage-path-normalization spike: Option A (parallel side-channel, zero gate impact) was chosen
over Option B (injecting FN spans into attribution, which would break statement
coverage via single-line synthesized spans).
Anonymous functions. Bun-produced LCOV emits FN entries named
(anonymous_0), (anonymous_1), etc. for unnamed arrow/expression functions.
The core parseFileMethods skips these descriptors, so anonymous FN entries
cannot be matched to changed methods and surface as orphan hits in the raw
CoverageResult.functionCoverage map but do NOT appear in the diagnostics
array (matching is keyed by info.file + info.lineStart against attributed
methods only).
diagnostics.excludedGeneratedFilesWhat it is: Machine-generated changed files are excluded from CRAP analysis
by default. The filter runs on every changed file before complexity collection:
minified bundles (*.min.js), source-map sidecars (*.js.map), raw source maps
(*.map), files whose first 8 KB carry a generated header marker, and files
under core-delegated path segments (/dist/, /node_modules/, …) are skipped,
as are test files (*.test.*, *.spec.*) under their own reason. Each
exclusion is recorded as { "file": ..., "reason": ... }; the array is empty
when nothing was excluded.
When every changed file is excluded the gate returns NOT_EVALUATED with
gateReason: 'all-files-generated' (or 'test-files-excluded' when only test
files were), never a vacuous PASS.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.