Skip to content

Persistent source code graph for semantic tools #700

Description

@screenfluent

Hi @yogthos,

Dirge already has useful semantic tools based on tree-sitter. Would it make sense to extend them with a persistent source code graph?

The idea is similar to https://github.com/DeusData/codebase-memory-mcp

The graph could store symbols and relations directly from source code, for example:

  • functions, classes and files
  • calls between functions
  • imports and module dependencies
  • definitions and references

This could improve:

  • callers and callees accuracy
  • tracing a path between functions
  • impact analysis before changing code
  • architecture overview
  • incremental indexing after file changes

I saw #393, but I think this is a different graph. #393 stores information from sessions and tool outputs. This proposal is about a graph built directly from the source code.

Later it could also support data flow, Git history relations and cross-repository analysis, but these do not need to be part of the first version.

Do you think this direction fits Dirge?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions