repowiseanthropics/claude-code

Code health of anthropics/claude-code

Repowise scores anthropics/claude-code at 7.6 out of 10 for code health, which reads as good, alongside maintainability 8.2 and static performance 9.7 on the same scale. There are 398 open findings across the three pillars, and the lowest-scoring file is register.ts at 3.6. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

46 critical, 52 high, 139 medium, 111 low.

Hotspots

33 files are flagged as hotspots. The top 5:

  • mods/types/claude-code.d.ts: 14 commits in the last 90 days from 2 contributors
  • mods/diff/hooks/register.ts: 33 commits in the last 90 days from 2 contributors with 1 recent bug fix
  • mods/telemetry/hooks/register.ts: 6 commits in the last 90 days from 2 contributors
  • mods/telemetry/types/index.d.ts: 4 commits in the last 90 days from 2 contributors
  • mods/telemetry/hooks/telemetry-of/telemetry-of.ts: 6 commits in the last 90 days from 2 contributors

Lowest-scoring files

  • mods/diff/hooks/register.ts: 3.6 out of 10 with 1 bug fix in the last 180 days
  • mods/diff/hooks/views/pane-actions/pane-actions.ts: 4.5 out of 10
  • mods/diff/hooks/host/host.ts: 4.5 out of 10
  • mods/diff/hooks/views/detail/sub-hunks-of/sub-hunks-of.ts: 4.5 out of 10
  • mods/telemetry/hooks/telemetry-of/telemetry-of.ts: 4.5 out of 10

Checked against bug fixes

Of the 20 files Repowise scores lowest, 2 had a bug fix in the last 180 days. Across all 960 scored files, 1.4% had a bug fix in that window.

Dead code and refactoring

Repowise found 1 unused export. 21 refactoring targets across 21 files would raise the score.

More on claude-code: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language