Skip to content

Feature: Add --max-file-size flag to limit indexing by file size #369

@fuleinist

Description

@fuleinist

Problem

Large binary files or non-text assets can inflate the knowledge graph and waste tokens during indexing.

Solution

Add a --max-file-size flag (default: 1MB) to skip files exceeding the threshold during codegraph init. Accept human-readable values: 500kb, 2mb, 1gb.

Use case

CI pipelines indexing only source code, avoiding media files that would otherwise be included.

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