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§
- File
Report - Per-file health detail (only files with findings are retained in a report).
- Project
Health - Aggregated project health.
Functions§
- scan_
project - Scan
rootfor code-health, pricing the quality tax withmodel(or the blended fallback whenNone).top_nbounds the hotspot list in the score.