CONFIDENCE_THRESHOLD: controls how strictly raw model candidates are filtered before surfacing them. A global setting that applies to every review.- Strictness: controls how strongly check rules penalize errors when scoring. Set per rule in frontmatter; see Strictness.
How the two levers differ
CONFIDENCE_THRESHOLD operates at the filtering stage. It determines whether a candidate violation gets surfaced at all. Lower it and more candidates pass through. Raise it and only the highest-confidence findings appear.
Strictness operates at the scoring stage. It determines how heavily a violation is penalized once it’s already been surfaced. Higher strictness means a given error density produces a lower score and triggers violations more readily.
They’re solving different problems. CONFIDENCE_THRESHOLD reduces noise from the model’s judgment. Strictness controls how demanding your quality bar is for a given rule.
When to tune CONFIDENCE_THRESHOLD
The default of0.75 is a reasonable starting point. Adjust it when the balance between findings and noise isn’t working for your team.
Set this in
~/.vectorlint/config.toml for a global default, or in a project .env file to override it for a specific project.
Tuning for CI environments
In CI, false positives block merges. A finding that a writer might reasonably dismiss becomes a pipeline failure that needs explaining. Two adjustments help: RaiseCONFIDENCE_THRESHOLD in CI. Set it higher in your CI environment’s .env than in local development. This means only the highest-confidence findings block a merge. Lower-confidence candidates still get caught locally where a writer can review them in context.
A practical starting point for teams
If you’re rolling VectorLint out across a team for the first time, start permissive and tighten over time. A workflow that generates too many findings on day one loses the team’s trust before it earns it.- Start with
CONFIDENCE_THRESHOLD=0.75andstandardstrictness - Run against your existing content library and review the findings as a team
- Raise strictness on your highest-stakes rules first
- Raise
CONFIDENCE_THRESHOLDonce your rules are stable and reviewed
Next steps
- LLM Providers: set
CONFIDENCE_THRESHOLDin your config - Strictness: set strictness per rule in frontmatter
- CI Integration: gate merges on content quality