deepseek-ai / deepseek-harness
Code health
Hotspots average 6.7, the place fixes pay off most.
Explore this codebase
- Code health map684hotspots across 17,318 files
- Ownership3,182sole-owned files: one author, no second reader
- Architecture11modules, 380 entry points
- Decisions60recorded, of which 0 in force and 60 background
- Refactoring406open 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 23, the last indexed commit.
Worth planning
Break up main (CCN 370, 978 lines)
apps/desktop/src/main.ts:501
main has many paths; easier to read and change once split; function changed in 85 commits; its file is imported by 2 files, changed 130 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 370, 978 lines, nests 3 deep
- severity
- high
Medium effort, worth a checkStart breaking up InputBar (CCN 164, 369 lines): first lift lines 111-133
packages/client/ui-conversation/src/client/skeleton/InputBar.tsx:111
InputBar has many paths; easier to read and change once split; function changed in 74 commits; its file is imported by 5 files, changed 126 times in 90 days.
- gain
- up to +1.0 health on this file(inferred)
- finding
- Complex method
- size
- CCN 164, 369 lines
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 25 findings in 15 files
15 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
packages/client/ui-conversation/src/client/skeleton/InputBar.tsx(3 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 25
- files
- 15
- commits
- 15
Large effortBreak up TextPreview (CCN 104, 317 lines)
packages/client/ui-sidebar-documentpreview/src/client/TextPreview.tsx:145
TextPreview has many paths; easier to read and change once split, which also removes a duplicate; function changed in 32 commits; its file is imported by 8 files, changed 39 times in 90 days.
- gain
- up to +1.8 health on this file(inferred)
- finding
- Complex method
- size
- CCN 104, 317 lines
- 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
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health12,942 open findingsCriticalPrior defects · packages/typert/generator/src/analyzer.ts94 findings · 14.2 deducted
- Refactoring406 open opportunitiesMediumvalidateInvocation+1.5 health, M effort · packages/typert/registry/src/service.ts
- Doc drift257Medium.agents/notes/archived/feature/2026-07-07-plan-mode.zh.mdLink points at #faq, which .agents/notes/archived/feature/2026-07-07-plan-mode.zh.md no longer declares.
- Decisions0 drifting from the codeMediumpackages/extensions/tool-cordis/src/api-catalog.tsHigh-churn file with no governing decision
- Ownership3,182 sole-owned filesMediumpackages/experimental/ptc-runtime-python/tests/runtime.spec.tsOne author, no second reader