pingdotgg / t3code
Code health
Hotspots average 2.4, the place fixes pay off most.
Explore this codebase
- Code health map123hotspots across 28,663 files
- Ownership905sole-owned files: one author, no second reader
- Architecture13modules, 261 entry points
- Decisions27recorded, of which 0 accepted and 27 awaiting review
- Refactoring571open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 9
20 things worth doing in the week to Nov 13, the last indexed commit, 10 of them now.
Worth planning
Start breaking up ChatComposer (CCN 503, 3,144 lines): first lift lines 765-786
apps/web/src/components/chat/ChatComposer.tsx:765
ChatComposer has many paths; easier to read and change once split; its file is imported by 13 files, changed 9 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 503, 3,144 lines
- severity
- high
Medium effort, worth a checkStart breaking up ChatView (CCN 594, 3,473 lines): first lift lines 498-507
apps/web/src/components/ChatView.tsx:498
ChatView has many paths; easier to read and change once split; its file is imported by 7 files, changed 12 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 594, 3,473 lines
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 53 findings in 40 files
27 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx(2 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 53
- files
- 40
- commits
- 27
Large effortSimplify
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: tests reach it, and fixes keep landingChanged 15 times in 90 days, and 13 of those commits were bug fixes.
- commits in 90 days
- 15
- bug-fix commits
- 13
- line coverage
- Unknown, no report
- tests that reach it
- 9 test files, call graph(inferred)
Large effort, worth a checkSimplify
apps/server/src/vcs/GitVcsDriverCore.ts: tests reach it, and fixes keep landingChanged 13 times in 90 days, and 10 of those commits were bug fixes.
- commits in 90 days
- 13
- bug-fix commits
- 10
- line coverage
- Unknown, no report
- tests that reach it
- 3 test files, call graph(inferred)
Large effort, worth a check
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health19,239 open findingsCriticalChange entropy · apps/server/src/orchestration-v2/Orchestrator.ts242 findings · 15.8 deducted
- Refactoring571 open opportunitiesMediumtoCreateBody+1.8 health, M effort · .repos/alchemy-effect/packages/gcp/src/OracleDatabase/CloudVmCluster.ts
- Doc drift19Medium.repos/effect/migration/schema.mdLink points at #declare, which .repos/effect/migration/schema.md no longer declares.
- Decisions27 to reviewMediumapps/server/src/orchestration-v2/ProjectionStore.test.ts27 awaiting review, 0 drifting from the code
- Ownership905 sole-owned filesMediumapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsOne author, no second reader