Skip to main content

Module scan

Module scan 

Source
Expand description

Project-wide code-health scan — the shared report behind lean-ctx health, the ctx_quality tool, and the dashboard.

Walks the repo once, analyzes each source file with the engine, and aggregates into a NavigabilityScore plus focused per-file detail. The “quality tax” is grounded in real data: the token count of the function bodies that exceed the threshold — the tokens an agent must read in full because the code cannot be navigated by signature.

Structs§

FileReport
Per-file health detail (only files with findings are retained in a report).
ProjectHealth
Aggregated project health.

Functions§

scan_project
Scan root for code-health, pricing the quality tax with model (or the blended fallback when None). top_n bounds the hotspot list in the score.