repomix
repomix is hosted online, so all tools can be tested directly either in theInspector tabor in theOnline Client.
If you are the rightful owner of repomix and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Repomix is a tool that packs your codebase into AI-friendly formats, making it easier to use with AI tools like LLMs.
Repomix is a powerful tool designed to package entire code repositories into a single, AI-friendly file. This is particularly useful for developers who need to feed their codebases to Large Language Models (LLMs) or other AI tools such as ChatGPT, Claude, and more. Repomix supports various output formats including XML, Markdown, and plain text, and offers features like token counting, code compression, and security checks. It is highly customizable, allowing users to configure what to include or exclude, and respects .gitignore files. Repomix can be used via CLI, a web interface, browser extensions, or as a library in Node.js applications. It also supports integration with GitHub Actions for automated workflows.
Features
- AI-Optimized: Formats codebases for easy AI processing.
- Token Counting: Provides token counts for files and repositories.
- Simple to Use: One command to pack entire repositories.
- Customizable: Configure inclusions and exclusions easily.
- Security-Focused: Uses Secretlint for security checks.
Tools
pack_codebase
Package a local code directory into a consolidated XML file for AI analysis. This tool analyzes the codebase structure, extracts relevant code content, and generates a comprehensive report including metrics, file tree, and formatted code content. Supports Tree-sitter compression for efficient token usage.
pack_remote_repository
Fetch, clone, and package a GitHub repository into a consolidated XML file for AI analysis. This tool automatically clones the remote repository, analyzes its structure, and generates a comprehensive report. Supports various GitHub URL formats and includes security checks to prevent exposure of sensitive information.
read_repomix_output
Read the contents of a Repomix-generated output file. Supports partial reading with line range specification for large files. This tool is designed for environments where direct file system access is limited (e.g., web-based environments, sandboxed applications). For direct file system access, use standard file operations.
grep_repomix_output
Search for patterns in a Repomix output file using grep-like functionality with JavaScript RegExp syntax. Returns matching lines with optional context lines around matches.
file_system_read_file
Read a file from the local file system using an absolute path. Includes built-in security validation to detect and prevent access to files containing sensitive information (API keys, passwords, secrets).
file_system_read_directory
List the contents of a directory using an absolute path. Returns a formatted list showing files and subdirectories with clear [FILE]/[DIR] indicators. Useful for exploring project structure and understanding codebase organization.