Skip to content

StructuralCollapse could merge consecutive import blocks across files #101

@trasfre

Description

@trasfre

When compressing multi-file tool output (e.g. from grep across a project), each file has its own import block. StructuralCollapse merges imports within a file, but not across files.

For a grep result showing 10 Python files that all import the same packages, the import blocks are highly redundant. Cross-file import dedup could save significant tokens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions