1# llm-fragments-repomix
2
3A plugin for [LLM](https://llm.datasette.io/) that loads repository contents as fragments using [Repomix](https://github.com/yamadashy/repomix).
4
5## Installation
6
7First, install the plugin:
8
9```bash
10pip install llm-fragments-repomix
11```
12
13Make sure you have `repomix` installed:
14
15```bash
16npm install -g repomix
17```
18
19## Usage
20
21Use the `repomix:` prefix with a full git repository URL:
22
23```bash
24llm -f repomix:https://git.sr.ht/~amolith/willow "Tell me about this project"
25```
26
27```bash
28llm -f repomix:ssh://git.sr.ht:~amolith/willow "Analyze the code structure"
29```
30
31The plugin will:
321. Clone the repository to a temporary directory
332. Run repomix on the cloned repository
343. Return the repomix output as a single fragment
354. Clean up the temporary directory
36
37## Requirements
38
39- Python 3.9+
40- `git` command available in PATH
41- `repomix` command available in PATH
42
43## Future Work
44
45Future versions may support:
46- Passing repomix arguments (e.g., `--compress`, `--ignore`)
47- Integration with other fragment loaders for repository shortcuts
48- Configuration options for repomix behavior