repowiselibracoder/kiri

libracoder / kiri

rustjavascriptmainac8258193.6K linessynced on Nov 21, 2026

Code health

6.2out of 10Fair

Hotspots average 4.9, the place fixes pay off most.

Explore this codebase

Do next · 4

4 things worth doing in the week to Nov 20, the last indexed commit.

Worth planning

  • Start breaking up serve_loop (CCN 196, 596 lines): first lift lines 186-205

    crates/kiri-init/src/linux/agent.rs:186

    serve_loop has many paths; easier to read and change once split, which also removes a duplicate; function changed in 17 commits; its file is imported by 4 files, changed 20 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Complex method
    size
    CCN 196, 596 lines, nests 8 deep
    severity
    high
    worth a check
  • Start breaking up handle (CCN 189, 733 lines): first lift lines 2166-2220

    crates/kiri/src/ui/mod.rs:2166

    handle has many paths; easier to read and change once split, which also removes a duplicate; function changed in 8 commits; its file is imported by 7 files, changed 14 times in 90 days.

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

    13 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with crates/kiri/src/daemon/engine.rs (10 findings): tidying it while the change is fresh costs less than after the next one.

    code-shape findings
    30
    files
    11
    commits
    13
  • Start breaking up start_on_vm (CCN 85, 300 lines): first lift lines 2857-2873

    crates/kiri/src/daemon/engine.rs:2857

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

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Complex method
    size
    CCN 85, 300 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