backnotprop / plannotator
Code health
Hotspots average 6.0, the place fixes pay off most.
Explore this codebase
- Code health map612hotspots across 6,428 files
- Ownership5,410sole-owned files: one author, no second reader
- Architecture7modules, 25 entry points
- Decisions156recorded, of which 0 in force and 156 background
- Refactoring327open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 9
11 things worth doing in the week to Nov 17, the last indexed commit, 2 of them now.
Worth planning
Start breaking up ThreadPane (CCN 1270, 3,195 lines): first lift lines 267-279
packages/inbox/components/Thread.tsx:267
ThreadPane has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 67 files, changed 477 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 1270, 3,195 lines, nests 4 deep
- severity
- high
Medium effort, worth a checkStart breaking up App (CCN 1403, 5,456 lines): first lift lines 1566-1601
packages/editor/App.tsx:1566
App has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 36 files, changed 124 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 1403, 5,456 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 35 findings in 17 files
16 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
scripts/ci-affected.ts(10 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 35
- files
- 17
- commits
- 16
Large effortSimplify
Inboxinpackages/inbox/App.tsx: tests reach it, and fixes keep landingChanged 500 times in 90 days, and 85 of those commits were bug fixes.
- commits in 90 days
- 500
- bug-fix commits
- 85
- line coverage
- Unknown, no report
- tests that reach it
- 64 test files, call graph(inferred)
Large effort, worth a checkSimplify
listRowinpackages/shared/inbox/store.ts: tests reach it, and fixes keep landingChanged 276 times in 90 days, and 43 of those commits were bug fixes.
- commits in 90 days
- 276
- bug-fix commits
- 43
- line coverage
- Unknown, no report
- tests that reach it
- 316 test files, call graph(inferred)
Large effort, worth a check
Everything we found
6 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health9,636 open findingsCriticalPrior defects · packages/core/shape.ts73 findings · 11.5 deducted
- Refactoring327 open opportunitiesMediumconfigurePlannotatorUI+2.4 health, S effort · packages/ui/configure.ts
- Doc drift38Mediumdocs/agent-guides/inbox-compose.mdLink points at #thread=msg_…&mention, which docs/agent-guides/inbox-compose.md no longer declares.
- Decisions0 drifting from the codeMediumpackages/inbox/components/Thread.tsxHigh-churn file with no governing decision
- Ownership5,410 sole-owned filesMediumpackages/inbox/App.tsxOne author, no second reader
- Dead code2LowapplierFallbacksUnreachable function (3 lines)