lee-xeo / claude-cage
Code health
Hotspots average 4.9, the place fixes pay off most.
Explore this codebase
- Code health map146hotspots across 2,668 files
- Ownership2,065sole-owned files: one author, no second reader
- Architecture13modules, 60 entry points
- Decisions6recorded, of which 0 in force and 6 background
- Refactoring405open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 5
6 things worth doing in the week to Nov 16, the last indexed commit, 1 of them now.
Worth planning
Start breaking up App (CCN 423, 1,168 lines): first lift lines 280-296
ui/src/main.jsx:280
App has many paths; easier to read and change once split, which also removes a duplicate; function changed in 31 commits; its file is imported by 1 file, changed 37 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 423, 1,168 lines
- severity
- high
Medium effort, worth a checkStart breaking up handler (CCN 92, 301 lines): first lift lines 337-506
internal/workbench/server.go:337
handler has many paths; easier to read and change once split; function changed in 27 commits; its file is imported by 196 files, changed 44 times in 90 days.
- gain
- up to +0.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 92, 301 lines
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 159 findings in 106 files
26 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
ui/src/main.jsx(7 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 159
- files
- 106
- commits
- 26
Large effortNo test reaches
ui/src/initialization.jsxin the code graph: confirm it is tested before its next changeChanged 15 times in 90 days, and 3 of those commits were bug fixes.
- commits in 90 days
- 15
- bug-fix commits
- 3
- line coverage
- Unknown, no report
- tests that reach it
- None in the code graph(inferred)
Medium effort, worth a checkStart breaking up runSafetyCheck (CCN 138, 442 lines): first lift lines 1001-1011
internal/workbench/safety.go:1001
runSafetyCheck has many paths; easier to read and change once split, which also removes a duplicate; function changed in 12 commits; its file is imported by 19 files, changed 24 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 138, 442 lines, nests 5 deep
- severity
- high
Medium effort, worth a check
Everything we found
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health5,363 open findingsCriticalChange entropy · scripts/guest-os/windows-browser.mjs78 findings · 11.7 deducted
- Refactoring405 open opportunitiesMediummain+1.3 health, M effort · scripts/guest-os/test-macos-claude-trial.py
- Decisions0 drifting from the codeMediumui/src/main.jsxHigh-churn file with no governing decision
- Ownership2,065 sole-owned filesMediuminternal/workbench/server.goOne author, no second reader