Flags parsed at the dispatcher.
Override repo root (defaults to cwd).
Score the diff since a git ref (e.g., origin/main). Without it, risk scores the working-tree diff against HEAD.
Return the full JSON report instead of the compact terminal summary.
What goes into the 0–100 score.
Source: src/core/risk.js. The score combines changed-file weight, dependency fan-out, semantic centrality, impacted modules, and impacted-symbol surface — all clamped via clampScore.
None
No changed-file contribution detected. Not a guarantee that nothing matters outside the index.
Low
Changes look isolated or test-focused per the indexed graph and semantic facts.
Medium
Dependency, semantic, or module surface area suggests focused regression tests are warranted.
High
Diff likely touches shared code or fan-out across modules. Run prioritized tests and inspect impacts before review.
Fields returned by --json.
From src/core/risk.js:539. Tag schema_version identifies the report format.
RISK_SCHEMA_VERSION.
score and level from riskLevel(score).
Index must be fresh.
Risk reads .agentify/index.db. Run agentify scan or agentify up first; if no test command matches an impacted module, the report emits a note rather than claiming safety.