External Publication
Visit Post

Merge multiple files for custom GPTs

OpenAI Developer Community March 31, 2026
Source

This is a solid workaround and the delimiter approach works well. One thing I’d add for anyone hitting this at scale: the manual assembly step (combining files into knowledge.txt, keeping the markers in sync when files change) gets painful fast if your knowledge base evolves.

I ran into the same problem and ended up creating a desktop tool called Riflet to handle the merging step. It lets you pull from multiple local folders, GitHub repos, PDFs, Word docs, whatever, and combines everything into a single text export. You can filter files out with right-click patterns before exporting, and it shows a live token estimate so you know if you’re about to blow past the file size limit before you upload.

The output is just a plain text file (.txt or .md), so it works perfectly with the delimiter structure you described.

Discussion in the ATmosphere

Loading comments...