Repogather – copy relevant files to clipboard for LLM coding workflows

repogather is a powerful command-line tool that copies relevant code files in a repository to the clipboard for analysis or generation. It utilizes OpenAI’s GPT models to determine file relevance, but can also function without LLM analysis. Unique features include excluding test and config files by default, filtering out ecosystem-specific files (like node_modules), respecting .gitignore rules, and estimating token count and API usage cost. Users can customize inclusion/exclusion options, specify the OpenAI model to use, and set a relevance threshold for file selection. The tool is versatile, user-friendly, and can handle repositories of any size efficiently. It requires an active OpenAI API key for LLM analysis but is free to use with the –all option.

https://github.com/gr-b/repogather

To top