This guide walks through installing codeint, initializing codeint.jsonc, and running your first measurements, diagnostics, and codebase queries.
Install the standalone binary on macOS or Linux:
curl -fsSL https://github.com/avidianity/codeint/releases/latest/download/install.sh | bashInstall the standalone binary on Windows (PowerShell):
irm https://github.com/avidianity/codeint/releases/latest/download/install.ps1 | iexOr run directly through npm without a global install:
npx codeint check-
Create a starter
codeint.jsoncpinned to your installed version's JSON schema (never overwriting an existingcodeint.jsonorcodeint.jsonc):codeint init
-
Verify your repository setup, config validity, detected languages, Workspace packages, and external Plugins offline:
codeint doctor
-
Inspect the effective active configuration and where each setting comes from (
default,file, orcli):codeint config --resolved
-
Measure the current working tree:
codeint check
-
Compare your branch against
mainand fail on any Budget failure or Regression:codeint diff main
-
Save a JSON report once and re-render it losslessly into Markdown, SARIF, or TOON without re-scanning:
codeint diff main --format json --output diff.json codeint report diff.json --format markdown codeint report diff.json --format sarif --output codeint.sarif
-
Inspect how each Metric evolved over the latest 20 main-line commits:
codeint trend
Use codeint before editing or refactoring to understand architectural rules and blast radius:
-
Check architectural boundary zones and allowed imports for an existing or planned file:
codeint guard src/domain/order.ts
-
Find the shortest runtime import path between two modules:
codeint trace src/routes/checkout.ts src/db/pool.ts
-
Compute the transitive reverse-dependency blast radius of files or everything changed since
main:codeint impact src/domain/order.ts codeint impact --changed main
-
Rank eroded and duplicated files alongside their Git commit churn independently per Metric:
codeint churn --since 90d
-
Find pairs of files that repeatedly change together in the same commits:
codeint coupling --since 90d
-
Upgrade a standalone binary in place (and keep your configuration file's
$schematag in sync):codeint update
0: succeeded with no Budget, Regression, or blockingcodeint doctorerror.1: succeeded, and at least one Budget, Regression, or blockingcodeint doctorerror failed.2: operational error (invalidcodeint.jsonc/codeint.json, both config files present at once, missing folder, unknown option, or not inside a Git repository).
See docs/reference.md for every command flag and output format (toon, json, sarif, markdown, text).