repowisevxcontrol/pentagi

vxcontrol / pentagi

gotypescriptmain843dfeb261.4K linessynced 1w ago

Code health

7.5out of 10Good

This codebase scores 7.5 out of 10 for code health, which we rate good. It also scores maintainability 7.3 and static performance 9.8 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 113 of 1,475 files are git hotspots, and they average 6.0 — which is where the fixes pay off most.

Do next

3 suggested

5 things worth doing in the week to Oct 9, the last indexed commit, 2 of them now.

Worth planning

  • Break up determineCommonCharset (CCN 59, 95 lines)

    backend/pkg/providers/provider/agents.go:578

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

    gain
    up to +0.3 health on this file(inferred)
    finding
    Complex method
    size
    CCN 59, 95 lines, nests 4 deep
    severity
    critical
    worth a check
  • Break up FlowProvider (CCN 77, 469 lines)

    frontend/src/providers/flow-provider.tsx:522

    FlowProvider is long and branchy; easier to read and change once split, which also removes a duplicate; its file is imported by 16 files, changed 7 times in 90 days.

    gain
    up to +1.0 health on this file(inferred)
    finding
    Brain method
    size
    CCN 77, 469 lines, nests 3 deep
    severity
    critical
    worth a check
  • Break up SettingsPrompts (CCN 138, 761 lines)

    frontend/src/pages/settings/settings-prompts.tsx:168

    SettingsPrompts nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 2 files, changed 10 times in 90 days.

    gain
    up to +1.6 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 138, 761 lines, nests 6 deep
    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
Lines of code
261.4K

Recent activity

All commits

Everything we found

3,883 open
  • go54%
  • typescript44%
  • shell1%
  • javascript<1%
  • dockerfile<1%

Explore this codebase