milind-soni / openmausbot
Code health
Hotspots average 6.2, the place fixes pay off most.
Explore this codebase
- Code health map813hotspots across 7,465 files
- Ownership3,017sole-owned files: one author, no second reader
- Architecture20modules, 16 entry points
- Decisions126recorded, of which 0 in force and 126 background
- Refactoring337open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 9
14 things worth doing in the week to Nov 16, the last indexed commit, 5 of them now.
Worth planning
Start breaking up callTool (CCN 443, 753 lines): first lift lines 290-301
server/drivers/agents-call.ts:290
callTool has many paths; easier to read and change once split; function changed in 86 commits; its file is imported by 29 files, changed 110 times in 90 days.
- gain
- up to +0.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 443, 753 lines
- severity
- high
Medium effort, worth a checkStart breaking up handleRequest (CCN 1300, 2,395 lines): first lift lines 12616-12634
server/index.ts:12616
handleRequest nests deeply; easier to read and change once split; its file is imported by 125 files, changed 500 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 1300, 2,395 lines, nests 7 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 28 findings in 20 files
5 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
server/index.ts(4 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 28
- files
- 20
- commits
- 5
Large effortSimplify
reducerinsrc/state/store.tsx: tests reach it, and fixes keep landingChanged 500 times in 90 days, and 105 of those commits were bug fixes.
- commits in 90 days
- 500
- bug-fix commits
- 105
- line coverage
- Unknown, no report
- tests that reach it
- 124 test files, call graph(inferred)
Large effort, worth a checkSimplify
sendTurninserver/drivers/claude.ts: tests reach it, and fixes keep landingChanged 235 times in 90 days, and 94 of those commits were bug fixes.
- commits in 90 days
- 235
- bug-fix commits
- 94
- line coverage
- Unknown, no report
- tests that reach it
- 20 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 health12,561 open findingsCriticalChange entropy · server/index.ts420 findings · 14.0 deducted
- Refactoring337 open opportunitiesMediumsurfacePrompt+2.5 health, S effort · server/surface.ts
- Doc drift185Mediumdocs/verification/browser-steps.mdLink points at #7-page-health-and-recorded-browser-steps-implemented, which ../plans/browser-engine.md no longer declares.
- Decisions0 drifting from the codeMediumserver/index.test.tsHigh-churn file with no governing decision
- Ownership3,017 sole-owned filesMediumsrc/components/CloudAddDialog.test.tsOne author, no second reader
- Dead code5LowDECIDER_KEY_REJECTEDUnreachable constant (7 lines)