prompt-tower icon indicating copy to clipboard operation
prompt-tower copied to clipboard

Feature idea: Code packing

Open arthurwolf opened this issue 8 months ago • 2 comments

Saw this project with some similarities to prompt-tower, their idea of compacting the code before passing it to the LLM makes sense sense I think: https://github.com/codingworkflow/ai-code-fusion/

arthurwolf avatar Mar 31 '25 23:03 arthurwolf

An extension that seems to do something similar, just for reference: https://marketplace.visualstudio.com/items?itemName=lakpahana.export-to-llm-gitingest

arthurwolf avatar Apr 05 '25 20:04 arthurwolf

I don't see a "packing" feature there.

I do think I will add some quick wins like remove comments. Maybe tree-sitter large files.

Possibly soon have a "generate file summary tree" feature that generates summaries as best as possible (macro connected algo to ensure proper context for large codebases above 500k tokens).

A summary tree can be constructed and take place of the actual file contents. Ie a 5M tokens codebase could appear as much smaller using only the summary tree.

backnotprop avatar Jun 02 '25 19:06 backnotprop