Skip to content

codebase-memory graph it doesn't resolve TypeScript aliases like @packages/shared #730

Closed

Description

@juato

Version

codebase-memory-mcp 0.8.1

Platform

macOS (Apple Silicon)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

The codebase-memory graph resolves imports by direct file path, but it doesn't resolve TypeScript aliases like @packages/shared → ../../packages/shared/src/index.ts. This generates a massive amount of fake dead code for everything imported via alias. I did the tests using codebase-memory-mcp from opencode

Reproduction

The codebase-memory graph resolves imports by direct file path, but it doesn't resolve TypeScript aliases like @packages/shared → ../../packages/shared/src/index.ts. This generates a massive amount of fake dead code for everything imported via alias. I did the tests using codebase-memory-mcp from opencode

Logs


Diagnostics trajectory (memory / performance / leak issues)


Project scale (if relevant)

No response

Confirmations

  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.

Activity

  1. added
    parsing/qualityGraph extraction bugs, false positives, missing edges
    priority/normalStandard review queue; useful PR with ordinary maintainer urgency.
    on Jul 1, 2026
  2. DeusData commented on Jul 1, 2026

    @DeusData
    Owner

    Thanks. TypeScript path aliases/import maps need to resolve into the graph, otherwise alias-heavy repos will look like they have fake dead code. I’m tracking this under parsing/extraction quality. The smallest useful repro is a tsconfig paths alias plus one import through that alias, asserting the import resolves to the real target.

  3. sahil-mangla commented on Jul 2, 2026

    @sahil-mangla
    Contributor

    @DeusData Can i work on this task?

  4. apappas1129 commented on Jul 2, 2026

    @apappas1129
    Contributor

    related #308

  5. added a commit that references this issue on Jul 3, 2026
    8cc1d1e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparsing/qualityGraph extraction bugs, false positives, missing edgespriority/normalStandard review queue; useful PR with ordinary maintainer urgency.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions