repowisemilind-soni/openmausbot

milind-soni / openmausbot

typescriptmain57405b51.1M linessynced on Nov 17, 2026

Code health

7.4out of 10Good

Hotspots average 6.2, the place fixes pay off most.

Explore this codebase

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
    worth a check
  • Start 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
    worth a check
  • Tidy 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
  • Simplify reducer in src/state/store.tsx: tests reach it, and fixes keep landing

    Changed 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)
    worth a check
  • Simplify sendTurn in server/drivers/claude.ts: tests reach it, and fixes keep landing

    Changed 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)
    worth a check

Everything we found

6 areas