copilotkit / opendots
Code health
Hotspots average 5.3, the place fixes pay off most.
Explore this codebase
- Code health map2hotspots across 122 files
- Ownership99sole-owned files: one author, no second reader
- Architecture4modules, 3 entry points
- Decisions10recorded, of which 0 in force and 10 background
- Refactoring10open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 4
4 things worth doing in the week to Oct 2, the last indexed commit.
Worth planning
Break up ComputerPanel (CCN 103, 661 lines)
src/client/ComputerPanel.tsx:73
ComputerPanel nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 1 file, changed 1 time in 90 days.
- gain
- up to +0.7 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 103, 661 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkBreak up App (CCN 98, 856 lines)
src/client/App.tsx:119
App nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 1 file, changed 2 times in 90 days.
- gain
- up to +0.5 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 98, 856 lines, nests 4 deep
- severity
- medium
Medium effort, worth a checkTidy the code shape this week's commits left: 56 findings in 30 files
6 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/server/dot-agent.ts(3 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 56
- files
- 30
- commits
- 6
Large effortBreak up run (CCN 48, 309 lines)
src/server/dot-agent.ts:342
run has many paths; easier to read and change once split; function changed in 5 commits; its file is imported by 4 files, changed 5 times in 90 days.
- gain
- up to +0.7 health on this file(inferred)
- finding
- Complex method
- size
- CCN 48, 309 lines, nests 4 deep
- severity
- high
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health137 open findingsCriticalCompound condition · src/server/dot-agent.ts9 findings · 7.5 deducted
- Refactoring10 open opportunitiesLowcreateApp+0.5 health, M effort · src/server/app.ts
- Decisions0 drifting from the codeMediumsrc/server/dot-agent.tsHigh-churn file with no governing decision
- Ownership99 sole-owned filesMediumsrc/client/Chat.tsxOne author, no second reader