aannoo / hcom
Code health
Hotspots average 3.6, the place fixes pay off most.
Explore this codebase
- Code health map54hotspots across 242 files
- Ownership110sole-owned files: one author, no second reader
- Architecture4modules, 6 entry points
- Decisions49recorded, of which 0 accepted and 49 awaiting review
- Refactoring87open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
4 things worth doing this week, 1 of them now.
Worth planning
Break up run (CCN 114, 516 lines)
src/pty/mod.rs:1191
run nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 23 commits; its file is imported by 4 files, changed 16 times in 90 days.
- gain
- up to +1.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 114, 516 lines, nests 8 deep
- severity
- high
Medium effort, worth a checkBreak up run (CCN 54, 218 lines)
src/relay/client.rs:423
run nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 9 commits; its file is imported by 5 files, changed 6 times in 90 days.
- gain
- up to +1.2 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 54, 218 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkStart breaking up run_delivery_loop (CCN 125, 889 lines): first lift lines 1759-1769
src/delivery.rs:1759
run_delivery_loop nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 6 files, changed 34 times in 90 days.
- gain
- up to +2.5 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 125, 889 lines, nests 10 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 health1,506 open findingsCriticalCo-change scatter · src/hooks/claude.rs68 findings · 8.0 deducted
- Refactoring87 open opportunitiesMediumAgent+1.2 health, M effort · src/tui/model.rs
- Decisions49 to reviewMediumsrc/launcher.rs49 awaiting review, 0 drifting from the code
- Ownership110 sole-owned filesMediumsrc/integration_spec.rsOne author, no second reader