Repository intelligence

Health Report: zed

2026-08-12T16:26:56.782905Z all history
B
81
Overall health score
Declining
-0.47 pts/mo
1996
Files Analyzed
526
Hotspot Files
48
Critical Issues
6.6%
Duplication

Quick Insights

Key findings from the analysis - prioritized by impact

Technical Debt Hotspot

Found 48 critical and 115 high-priority debt items. These are areas where the team has explicitly noted problems. Consider scheduling time to address the most impactful items.

Low Cohesion Classes

Detected 9 classes with low cohesion (LCOM > 50). These classes may be doing too many unrelated things. Consider splitting them into more focused components.

Code Duplication

6.6% of code is duplicated across 511 clone groups. Bugs fixed in one location may need fixing in others. Consider extracting shared functionality.

Active Development

70090 commits across 1955 files.

Healthy Codebase

Overall health score of 81 indicates a well-maintained codebase. Continue current practices and address issues as they arise.

Hotspots

Files with both high complexity and frequent changes - highest risk for bugs

526
Hotspot Files
1.0
Highest Risk
0.63
Average Risk

Risk Landscape

Files in the upper-right are both complex and frequently changed -- the most likely sources of bugs. Bubble size reflects overall risk score. Green is low risk, yellow moderate, red high.

FileLangRiskChangesComplexity

Low Cohesion Classes

Classes doing too many unrelated things - candidates for splitting

ClassFileLanguageLCOMWMCCBO

Architectural Smells

Structural problems that make the codebase harder to change safely

4
Total Smells
3
Cyclic Dependencies
0
Hub Dependencies
0
Unstable Dependencies
TypeSeverityFiles InvolvedSuggestion
Cyclic DependencyCriticalcrates/call/src/call_impl/room.rs, crates/call/src/call_impl/diagnostics.rsBreak the cycle by introducing an interface or restructuring the dependency direction
Cyclic DependencyCritical.../s/editor/src/display_map/inlay_map.rs, .../es/editor/src/display_map/fold_map.rsBreak the cycle by introducing an interface or restructuring the dependency direction
Cyclic DependencyCriticalcrates/project/src/debugger/dap_store.rs, crates/project/src/debugger/session.rs, .../ject/src/debugger/breakpoint_store.rsBreak the cycle by introducing an interface or restructuring the dependency direction
Central ConnectorCriticalcrates/gpui/src/gpui.rsDecompose into smaller components with single responsibility; extract interfaces for consumers

Dependency Structure

Import graph analysis - cycles, bottlenecks, and instability

1996
Modules
529
Dependencies
0.5
Avg Degree
3
Dependency Cycles

Detected Cycles

Cycle (2 files)
crates/call/src/call_impl/room.rscrates/call/src/call_impl/diagnostics.rscrates/call/src/call_impl/room.rs
Cycle (2 files)
crates/editor/src/display_map/inlay_map.rscrates/editor/src/display_map/fold_map.rscrates/editor/src/display_map/inlay_map.rs
Cycle (3 files)
crates/project/src/debugger/dap_store.rscrates/project/src/debugger/session.rscrates/project/src/debugger/breakpoint_store.rscrates/project/src/debugger/dap_store.rs
FileLangPageRankBetweennessInOutInstability

Known Issues

Problems the team has documented but not yet fixed (TODO, FIXME, HACK)

1028
Total Issues
48
Critical
115
High
245
Medium

By Severity

By Category

SeverityCategoryFileLangLineComment

Duplicated Code

Code that appears in multiple places - bugs fixed in one spot may need fixing elsewhere

6.6%
Duplication Rate
511
Clone Groups
28872
Duplicate Lines
437731
Total Lines

Duplication Level

Technical Debt Gradient

Per-file debt scores - prioritize cleanup where it matters most

1996
Files Scored
62.7
Average Score
D
Average Grade
602
Failing Files

Grade Distribution

FileLangScoreGradeStructuralSemanticDuplicationCoupling

Change Activity

How frequently code is being modified

70090
Total Changes
1955
Files Changed
2447538
Lines Added
1239012
Lines Deleted
FileLangChangesContributorsChurn Score

Code Ownership

How knowledge is distributed - concentrated knowledge is a risk

13
Bus Factor
370
Knowledge Silos
1995
Total Files
18.5%
Files at Risk

Top Contributors

Temporal Coupling

Files that frequently change together - reveals hidden dependencies not in the import graph

164
Coupled Pairs
32
Strong Couplings
0.28
Avg Strength
1.0
Max Strength
File AFile BCo-changesStrength

Score Breakdown

How the health score is calculated from individual components

Complexity25%
97
Duplication20%
84
Cohesion15%
77
Debt Gradient15%
63
Known Debt10%
65
Coupling10%
74
Code Smells5%
98

Glossary

Definitions for the quality and risk terminology used in this report

Glossary of Terms

Health Score

A weighted composite metric (0-100) measuring overall code quality. Above 80 is good, 60-80 needs attention, below 60 is concerning.

Hotspot

A file that is both complex AND frequently changed. These are the highest-risk areas because they're hard to change safely but get changed often.

Bus Factor

The minimum number of people who would need to leave before critical knowledge is lost. Higher is better; 1 is a serious risk.

Knowledge Silo

A file that only one person has ever touched. If that person leaves, the knowledge goes with them.

Cyclomatic Complexity

The number of independent paths through code. More paths means more test cases needed and more ways things can go wrong.

Cognitive Complexity

How hard code is to understand. Accounts for nesting, breaks in flow, and things that make humans struggle to follow the logic.

LCOM (Cohesion)

How well a class's methods work together. High LCOM means methods don't share data - the class is probably doing too many unrelated things.

CBO (Coupling)

How many other classes a class depends on. High coupling means changes ripple through the codebase - everything is connected to everything.

Churn Rate

How frequently a file changes. High churn indicates instability - the code may be unclear, have bugs, or be undergoing active development.

Self-Admitted Technical Debt (SATD)

Code issues the team has documented (TODO, FIXME, HACK, XXX). These represent known shortcuts that need eventual attention.

Code Clone / Duplicate

Similar code appearing in multiple places. When a bug is fixed in one spot, it may need fixing elsewhere. Candidates for refactoring into shared functions.

Technical Debt Gradient

Per-file quality score (0-100) combining complexity, duplication, coupling, and other factors. Lower scores mean more accumulated debt.

Temporal Coupling

Files that frequently change together in the same commits. High temporal coupling suggests hidden dependencies not visible in the import graph.

Architectural Smell

A structural pattern that violates design principles: cyclic dependencies, hub-like modules, or stable code depending on unstable code.

Instability

Ratio of outgoing to total dependencies. 0 = maximally stable (many things depend on it), 1 = maximally unstable (depends on many things).

PageRank

Importance of a file in the dependency graph. Files with high PageRank are depended on by many other important files.