llm-fragments-repomix
A plugin for LLM that loads repository contents as fragments using Repomix.
Installation
First, install the plugin:
pip install llm-fragments-repomix
Make sure you have repomix installed:
npm install -g repomix
Usage
Use the repomix: prefix with a full git repository URL:
llm -f repomix:https://git.sr.ht/~amolith/willow "Tell me about this project"
llm -f repomix:ssh://git.sr.ht:~amolith/willow "Analyze the code structure"
The plugin will:
- Clone the repository to a temporary directory
 - Run repomix on the cloned repository
 - Return the repomix output as a single fragment
 - Clean up the temporary directory
 
Requirements
- Python 3.9+
 gitcommand available in PATHrepomixcommand available in PATH
Future Work
Future versions may support:
- Passing repomix arguments (e.g., 
--compress,--ignore) - Integration with other fragment loaders for repository shortcuts
 - Configuration options for repomix behavior