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.
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.