Skip to main content

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 count
  • include=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 code
  • remove-empty-lines - Remove empty lines
  • output-show-line-numbers - Add line numbers to output
  • no-file-summary - Disable file summary section
  • no-directory-structure - Disable directory structure section
  • no-files - Disable file content output
  • header-text=text - Custom header text
  • instruction-file-path=path - Path to instruction file
  • include-empty-directories - Include empty directories in output
  • no-git-sort-by-changes - Don't sort files by git changes
  • include-diffs - Include git diffs in output
  • no-gitignore - Ignore .gitignore files
  • no-default-patterns - Don't use default ignore patterns
  • no-security-check - Disable security checks
  • token-count-encoding=encoding - Token count encoding
  • top-files-len=N - Number of top files to show
  • verbose - Verbose output
  • quiet - Quiet mode

For a complete list of supported arguments, refer to the Repomix documentation.

How It Works

The plugin will:

  1. Parse the repository URL and any arguments
  2. Clone the repository to a temporary directory
  3. Run repomix on the cloned repository with the specified arguments
  4. Return the repomix output as a single fragment
  5. Clean up the temporary directory

Requirements

  • Python 3.9+
  • git command available in PATH
  • repomix command available in PATH
  • LLM CLI tool installed

License

Apache-2.0

Metadata

Release files for llm-fragments-repomix 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-fragments-repomix 0.1.0
File Size Uploaded Provenance
llm_fragments_repomix-0.1.0.tar.gz 11.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-fragments-repomix 0.1.0
File Interpreter ABI Platform
llm_fragments_repomix-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / llm_fragments_repomix-0.1.0.tar.gz

Download URL llm_fragments_repomix-0.1.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b706363380ae3a1344e68d65f24955f82c6a709953d729a7ff84aff10fe06c5d
BLAKE2b-256 checksum
How to use checksums
2c4d7bf035888eec4549f09fc1dbd6e4f502577bc2a0085a0083530cac906965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.16

Release files / llm_fragments_repomix-0.1.0-py3-none-any.whl

Download URL llm_fragments_repomix-0.1.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbb629ef6bc61e38bee318b68b1e37b9a43ea6e0fe450d521f5e8d42641b5462
BLAKE2b-256 checksum
How to use checksums
d2caabc327f5dee570d4fdddc88839fa52d949d616ee65fe754269fc4f97e192
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.16

Security for llm-fragments-repomix 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page