repowisemem0ai/mem0

mem0ai / mem0

typescriptpythonmain001c235228.5K linessynced on Aug 18, 2026

Code health

7.1out of 10Good

Hotspots average 4.3, the place fixes pay off most.

Explore this codebase

Do next · 3

38 things worth doing in the week to Aug 14, the last indexed commit, 35 of them now.

Worth planning

  • Start breaking up addToVectorStore (CCN 72, 381 lines): first lift lines 1066-1270

    mem0-ts/src/oss/src/memory/index.ts:1066

    addToVectorStore nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 8 commits; its file is imported by 18 files, changed 22 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 72, 381 lines, nests 7 deep
    severity
    high
    worth a check
  • Start breaking up _add_to_vector_store (CCN 65, 257 lines): first lift lines 1045-1192

    mem0/memory/main.py:1045

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

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 65, 257 lines, nests 7 deep
    severity
    high
    worth a check
  • Start breaking up registerHooks (CCN 107, 474 lines): first lift lines 678-1056

    integrations/openclaw/index.ts:678

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

    gain
    up to +0.9 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 107, 474 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

Everything we found

5 areas