Code health
This codebase scores 6.6 out of 10 for code health, which we rate fair. It also scores maintainability 8.1 and static performance 9.8 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 1,306 of 12,578 files are git hotspots, and they average 5.4 — which is where the fixes pay off most.
4 things worth doing in the week to Sep 28, the last indexed commit, 4 of them now.
Clean up what this week's commits left: 6 serious findings in 5 files
4 commits in the last 7 days added or worsened them, and they are still open. Start with packages/core/agent-loop/src/agent.ts, which has 2 critical.
Start breaking up ModelSelect (CCN 103, 405 lines): first lift lines 101-106
packages/client/ui-model-selection/src/client/ModelSelect.tsx:101
ModelSelect is long, branchy and widely depended on; 2 files import it, changed 20 times in 90 days.
Start breaking up SidebarRoot (CCN 41, 183 lines): first lift lines 122-132
packages/client/ui-sidebar/src/client/SidebarRoot.tsx:122
SidebarRoot is long, branchy and widely depended on, and part of it is duplicated, so splitting it also removes a copy; 3 files import it, changed 41 times in 90 days.
Start breaking up Loaded (CCN 69, 406 lines): first lift lines 327-340
packages/client/ui-settings-models/src/client/ModelsSection.tsx:327
Loaded is complex and keeps changing, and part of it is duplicated, so splitting it also removes a copy; 4 files import it, changed 21 times in 90 days.
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.