#1904·repomix

Improve split packing

Author: dpwardCreated Sep 26, 2026Updated Sep 26, 2026
Labelsenhancementtriage

Description

When repomix itself is split into 1.1mb files, here is the current result:

bash
$ repomix --split-output=1.1mb --remote https://github.com/yamadashy/repomix.git
$ du -b repomix-output.* | numfmt --padding=9
   612368 repomix-output.1.xml
   671905 repomix-output.2.xml
  1020801 repomix-output.3.xml
   229919 repomix-output.4.xml
     3261 repomix-output.5.xml
   251566 repomix-output.6.xml
  1009356 repomix-output.7.xml
   989041 repomix-output.8.xml
  1147795 repomix-output.9.xml

This doesn't need to produce 9 files. If repomix-output.1.xml and repomix-output.6.xml were combined, the resulting file would still be well under the split size; the same is true for repomix-output.2.xml and repomix-output.4.xml. What stands out here though is that repomix-output.5.xml can be combined with almost any other file.

There is a comment about this in the code that acknowledges that this is not straightforward; but consider how this might be done differently to improve the results.