README.md

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:

  1. Clone the repository to a temporary directory
  2. Run repomix on the cloned repository
  3. Return the repomix output as a single fragment
  4. Clean up the temporary directory

Requirements

  • Python 3.9+
  • git command available in PATH
  • repomix command 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