repomix

repomix

16,238

Repomix is a powerful tool that transforms entire codebases into AI-friendly formats, simplifying their use with AI tools and LLMs. Designed with ease of use and security in mind, it formats repositories while providing useful metadata to ensure efficient AI processing.

Overview

Repomix is a tool designed to pack your entire codebase into a single, AI-friendly format. Key features include:

  • Formats codebases for easy AI processing.
  • Provides token counts to aid in LLMs context limits.
  • Easy to use with a single command.
  • Customizable and respects .gitignore files.
  • Security-focused with Secretlint integration.
  • Options for code compression using Tree-sitter.

Features

  • ‌AI-Optimized: Packages codebases for maximum AI compatibility.
  • ‌Token Counting: Offers token count details for files.
  • ‌Security-Focused: Provides security checks to prevent inclusion of sensitive information.
  • ‌Simple to Use: Facilitates easy repository packing with one command.

Quick Start

  • Run instantly in project directory with npx repomix or install globally with npm, yarn, or Homebrew.

Usage

Repomix supports packing entire repositories, specific directories/files, remote repositories, and more.