Skip to content

Feature Request: --data-dir flag to decouple index storage from project root #452

@wk19921225

Description

@wk19921225

Problem
Having .codegraph/ created inside the project root pollutes the repository. Even with .gitignore, it's an unexpected directory that appears in the project tree and can cause confusion for teams.

Request
Add an optional --data-dir flag so the data directory can be stored anywhere:

codegraph init <projectRoot> --data-dir /some/external/path
codegraph index <projectRoot> --data-dir /some/external/path
codegraph serve --mcp --path <projectRoot> --data-dir /some/external/path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions