repowiseyc-software/qm

yc-software / qm

typescriptmain888ad52487.2K linessynced on Nov 3, 2026

Code health

7.2out of 10Good

Hotspots average 5.5, the place fixes pay off most.

Explore this codebase

Do next · 4

8 things worth doing in the week to Nov 3, the last indexed commit, 4 of them now.

Worth planning

  • Break up handleTurn (CCN 1059, 3,324 lines)

    src/core/orchestrator.ts:1445

    handleTurn has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 52 files, changed 101 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Complex method
    size
    CCN 1059, 3,324 lines, nests 5 deep
    severity
    high
    worth a check
  • Start breaking up buildApp (CCN 391, 2,502 lines): first lift lines 555-563

    src/wiring.ts:555

    buildApp has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 81 files, changed 102 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Complex method
    size
    CCN 391, 2,502 lines
    severity
    high
    worth a check
  • Tidy the code shape this week's commits left: 38 findings in 28 files

    15 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with src/agent/agent-run.ts (3 findings): tidying it while the change is fresh costs less than after the next one.

    code-shape findings
    38
    files
    28
    commits
    15
  • Break up runTurn (CCN 174, 568 lines)

    src/agent/agent-run.ts:1292

    runTurn has many paths; easier to read and change once split; function changed in 7 commits; its file is imported by 28 files, changed 48 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Complex method
    size
    CCN 174, 568 lines
    severity
    high
    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

Everything we found

5 areas