This guide walks through installing codeint, initializing codeint.json, and running your first measurements.
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.jsonpinned to your installed version's JSON schema:codeint init
-
Measure the current working tree:
codeint check
-
Compare your branch against
mainand fail on any Regression:codeint diff main
-
Inspect how each Metric evolved over the latest 20 main-line commits:
codeint trend
-
Upgrade a standalone binary in place (and keep
codeint.json's$schematag in sync):codeint update
0: succeeded with no Budget or Regression failures.1: succeeded, and at least one Budget or Regression failed.2: operational error (invalidcodeint.json, 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).