Skip to content
Arxo Arxo

Presets

Presets are named analysis profiles that select a fixed set of metrics and defaults. They let you switch between “quick check,” “CI gate,” “risk audit,” and “full” without editing a long metric list.

  • Selects metrics — Replaces the config’s metrics list at run time with the preset’s list (e.g. quick → SCC + L1 overview; full → all 50+ metrics).
  • Does not define policy — You still configure invariants in policy.invariants; presets only control which metrics run and thus which metric keys exist for policy.
PresetTypical useSpeed
quickDev loop, pre-commitVery fast (1–5 s)
ciCI/CD gatesFast (10–30 s)
riskTech debt, refactor planningMedium (30–60 s)
couplingDependency analysisMedium
securitySecurity reviewMedium
runtimeOperational analysis (needs telemetry)Medium
aiAI/LLM appsMedium
fullFull auditSlow (2–5 min)

CLI:

Terminal window
arxo analyze --preset quick
arxo analyze --preset ci --fail-fast

Config:

metric_preset: ci # or quick, risk, full, etc.
policy:
invariants:
- metric: scc.max_cycle_size
op: "=="
value: 0
  • Preset — Choose a name; metrics are fixed for that preset.
  • Custom config — List metrics explicitly in YAML (and optionally use a preset as a base in separate configs). You cannot add metrics into a preset from config; you can only override the whole run with a different preset or a full metrics list.

For “preset plus a few more metrics,” use a config file that lists all desired metrics (e.g. copy the preset’s list and append), or run with a preset for one use and a custom list for another.