Load repository contents as LLM fragments using Repomix
Project description
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"
llm -f repomix:git@github.com:user/repo.git "Review this codebase"
Arguments
You can pass arguments to repomix using colon-separated syntax:
# Basic compression
llm -f repomix:https://git.sr.ht/~amolith/willow:compress "Tell me about this project"
# Include specific file patterns
llm -f repomix:https://git.sr.ht/~amolith/willow:include=*.go,*.md "Analyze the Python and documentation files"
# Multiple arguments
llm -f repomix:https://git.sr.ht/~amolith/willow:compress:include=*.go:ignore=tests/ "Analyze Python files but skip tests"
Supported Arguments
compress- Compress output to reduce token countinclude=pattern- Include files matching pattern (comma-separated)ignore=pattern- Ignore files matching pattern (comma-separated)style=type- Output style (xml, markdown, plain)remove-comments- Remove comments from coderemove-empty-lines- Remove empty linesoutput-show-line-numbers- Add line numbers to outputno-file-summary- Disable file summary sectionno-directory-structure- Disable directory structure sectionno-files- Disable file content outputheader-text=text- Custom header textinstruction-file-path=path- Path to instruction fileinclude-empty-directories- Include empty directories in outputno-git-sort-by-changes- Don't sort files by git changesinclude-diffs- Include git diffs in outputno-gitignore- Ignore .gitignore filesno-default-patterns- Don't use default ignore patternsno-security-check- Disable security checkstoken-count-encoding=encoding- Token count encodingtop-files-len=N- Number of top files to showverbose- Verbose outputquiet- Quiet mode
For a complete list of supported arguments, refer to the Repomix documentation.
How It Works
The plugin will:
- Parse the repository URL and any arguments
- Clone the repository to a temporary directory
- Run repomix on the cloned repository with the specified arguments
- Return the repomix output as a single fragment
- Clean up the temporary directory
Requirements
- Python 3.9+
gitcommand available in PATHrepomixcommand available in PATH- LLM CLI tool installed
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_fragments_repomix-0.1.0.tar.gz.
File metadata
- Download URL: llm_fragments_repomix-0.1.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b706363380ae3a1344e68d65f24955f82c6a709953d729a7ff84aff10fe06c5d
|
|
| MD5 |
9d308d9966a80875b1a63e8ff8a9b941
|
|
| BLAKE2b-256 |
2c4d7bf035888eec4549f09fc1dbd6e4f502577bc2a0085a0083530cac906965
|
File details
Details for the file llm_fragments_repomix-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llm_fragments_repomix-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbb629ef6bc61e38bee318b68b1e37b9a43ea6e0fe450d521f5e8d42641b5462
|
|
| MD5 |
68423ff5732c42d794de91bf2b71c305
|
|
| BLAKE2b-256 |
d2caabc327f5dee570d4fdddc88839fa52d949d616ee65fe754269fc4f97e192
|