-
-
Notifications
You must be signed in to change notification settings - Fork 714
[Feature] Metadata-Only Output #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That would be very useful, and also a parsable json format to integrate with other tool (like repomix runner extension) maybe a |
@jlucaso1 cc: @massdo We actually already have boolean options like If We can also add a corresponding CLI flag |
The implementation has been merge into main. Please wait for the release. |
@jlucaso1 cc: @massdo Check it out here: Thanks again for the great suggestion! |
Nice! What is the repomix config file option for this? |
@iliakan {
"output": {
"fileSummary": true,
"directoryStructure": true,
"files": false
}
} |
Thanks! It worked! Great tool! If I might ask... Sometimes it's important to provide the full file structure, but only content some of the files to LLM. E.g. to debug a build system - let it see the full configuration & build system-related files and the overall file structure of the project. Is there a way to do so with the current config? If not, perhaps a feature request may be meaningful to allow providing 3 separate sets of files for: full content / compressed / directory-only files. This would allow us to flexibly decide on what to pack and how much detail to provide to satisfy task needs and keep LLM context length in check. |
Thanks for the question! Regarding compression, does With today’s features you can already do:
If this doesn’t quite cover your use case, please feel free to let me know! |
I think that's not it, unless I'm missing some of their functionality 😀 What I mean is the smart way to form the LLM-input by providing:
One can think of it as nested sets which describe not just the files, but the level of their detalization: [ File in directory structure] < [ Compressed file ] < [ Full file ] Use case: we need to improve build system.
Use case: we need to work on a module residing inside a certain folder:
We can invoke a packing scenario via MCP. |
@iliakan {
"output": {
// "full" | "compress" | "structure"
"mode": "compress"
}
} And on the CLI: repomix --mode compress That feels much more intuitive from a UX standpoint. This feature doesn’t exist yet, so if you’d like to see it, I’d really appreciate it if you could open an issue for it. Thanks! |
Okey-dokey! #608 |
An option (maybe --metadata-only) to output just the summary, directory structure, and file metrics without the content, useful for quick analysis.
The text was updated successfully, but these errors were encountered: