# Repomix Package selected repository files into a single AI-readable document with file filtering, token counts, and optional structural compression. - Findings24: - Website: - Pricing: Free - Categories: AI Developer Tools ## What is Repomix? Repomix prepares source code and documentation for use with an AI assistant. It gathers selected files from a repository into a single structured output that a developer can inspect and pass to another tool. The packaging step is useful when a question depends on several files and the receiving assistant needs a single piece of context. ## What can Repomix do? ### Repository packing Bundle a local repository or a subset of it into one file such as the default XML output. ### File filters Respect repository ignore files and use include or ignore patterns to narrow the bundle to the relevant part of a project. ### Token counts Review counts for individual files and the whole bundle to locate large files and decide what fits the intended model context. ### Structural compression Use the optional Tree-sitter workflow to preserve signatures and structure while omitting implementation details where supported. ## Use Cases ### Review a proposed service refactor Pack the service, its interfaces, and relevant tests so an assistant can examine the same paths the developer is working on. ### Onboard to a large repository Create a compressed structural snapshot for questions about where components live, then add full file contents for implementation-level questions. ### Build a documentation bundle Select only the public documentation and examples that belong in a package for a documentation assistant. ## Frequently Asked Questions ### Does Repomix answer questions about my code? Repomix prepares context. Use a separate assistant to interpret the packed output and answer questions. ### Can I exclude internal files from the package? Yes. Use repository ignore files and explicit patterns, then inspect the generated file to confirm what it contains before sharing it. ### When should I avoid compression? Use full content when the question depends on the logic inside a function. Compression is intended for a structural view of the code. ## Quick Facts - **Interface**: Command line and web interface - **Primary input**: Repository files - **Primary output**: Structured context bundle