Skip to content

Review Findings ​

Categories and severity levels for AI code review findings.

Finding Structure ​

Each finding returned by Claude is a JSON object:

json
{
  "category": "security",
  "severity": "high",
  "title": "Hardcoded API key detected",
  "description": "An API key is hardcoded in src/config.ts line 42",
  "file": "src/config.ts",
  "line": 42,
  "suggestion": "Move the API key to an environment variable"
}

Categories ​

CategoryConfig FlagDefaultWhat It Detects
Logiccheck_logictrueRace conditions, null refs, off-by-one
Securitycheck_securitytrueHardcoded secrets, injection, XSS
Architecturecheck_architecturetrueLayer violations, circular deps
Costcheck_cost_leakstrueUnbounded queries, resource leaks
Testscheck_teststrueMissing tests, test quality
Docscheck_docsfalseMissing public API docs

Severity Levels ​

SeverityImpactAction
criticalSecurity vulnerability or data loss riskAlways blocks merge
highSignificant bug or architectural issueBlocks if block_on_verdict includes it
mediumNon-critical but should be addressedWarning only
lowStyle, minor improvementsInformational
infoSuggestions, best practicesInformational

Verdict Logic ​

The review verdict is determined by:

if any finding severity >= "high" → "request_changes"
if any finding severity >= "medium" → "needs_discussion"
else → "approved"

This can be customized per repo via block_on_verdict and min_confidence_to_block.

Files Reviewed ​

ConfigDefaultDescription
max_files_to_review30Maximum files per review
max_lines_to_review2000Maximum total lines to analyze
ignore_patterns["*.lock", "package-lock.json", ...]Files to skip

Confidence Levels ​

LevelCriteria
highClear, unambiguous findings
mediumLikely correct but context-dependent
lowPossible issue, needs human judgment

→ Audit Trail

Released under the MIT License.