The existence of 37 different command-line tools for packing repository files into LLM prompts tells us something: it's important! Developers everywhere are trying to solve this problem (with AI assistance, surprise, surprise).
These tools deliver two critical benefits. First, they make chat interfaces practical for development work by solving the context-sharing friction. This allows developers to leverage chat's unique advantages, which we have explored in our article on using vanilla chat for development. Second, they enable full context awareness. When AI comprehends your entire project at once, development transforms from fragmented explanations into fluid collaboration. We demonstrate this transformation in our article Full Context Magic.
The proliferation of these tools underscores the value of both benefits. Developers clearly recognize the dramatic productivity boost that comes from eliminating repetitive context-setting and giving AI a complete project understanding. Yet new tools continue to emerge, suggesting both discovery challenges and capability gaps in existing solutions.
We experienced these limitations firsthand before developing LLM Context. Our focus was enabling rapid context switching with configurable rules for different code sharing scenarios and flexible file selection patterns. As our understanding of context sharing evolved, so did our project, expanding to include features like rule inheritance and Model Context Protocol support.
By sharing both our tool and this comprehensive list of alternatives, we hope to help developers discover existing projects and find the one that best matches their workflow. These tools are primarily command-line based and focus on injecting code and text into LLM conversations. They are listed in order of GitHub stars.
14505 | TypeScript Created: Jul 13, 2024 Updated: Apr 6, 2025 | 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more. |
5358 | Rust Created: Mar 9, 2024 Updated: Apr 11, 2025 | A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting. |
2962 | Python Created: Mar 16, 2023 Updated: Mar 20, 2023 | Convert code repos into an LLM prompt-friendly format. Mostly built by GPT-4. |
1930 | Rust Created: Jan 11, 2025 Updated: Apr 10, 2025 | A fast Rust based tool to serialize text-based files in a repository or directory for LLM consumption |
1502 | Python Created: Mar 22, 2024 Updated: Feb 19, 2025 | Concatenate a directory full of files into a single prompt for use with LLMs |
1226 | JavaScript Created: Sep 23, 2024 Updated: Dec 6, 2024 | Web-based tool converts GitHub repository contents into a single formatted text file |
1064 | Python Created: Mar 17, 2023 Updated: Mar 30, 2025 | Specify a github or local repo, github pull request, arXiv or Sci-Hub paper, Youtube transcript or documentation URL on the web and scrape into a text file and clipboard for easier LLM ingestion |
738 | Python Created: Mar 11, 2024 Updated: Mar 13, 2024 | Automate the analysis of GitHub repositories for LLMs with RepoToTextForLLMs. Fetch READMEs, structure, and non-binary files efficiently. Outputs include analysis prompts to aid in comprehensive repo evaluation |
497 | TypeScript Created: Jul 15, 2024 Updated: Feb 1, 2025 | A CLI tool to aggregate your codebase into a single Markdown file for use with Claude Projects or custom ChatGPTs. |
484 | JavaScript Created: Nov 21, 2024 Updated: Nov 22, 2024 | CLI tool to convert GitHub repositories to text files for LLMs |
212 | Python Created: Sep 7, 2024 Updated: Feb 19, 2025 | Easily copy all relevant source files in a repository to clipboard. For use in LLM code understanding and generation workflows |
203 | Python Created: Sep 7, 2024 Updated: Oct 21, 2024 | 🗜️ Codebase-digest is your AI-friendly codebase packer and analyzer. Features 60+ coding prompts and generates structured overviews with metrics. Ideal for feeding projects to LLMs like GPT-4, Claude, PaLM, and Gemini for code analysis and understanding. |
182 | Python Created: Apr 20, 2024 Updated: Apr 9, 2025 | Share code with LLMs via Model Context Protocol or clipboard. Rule-based customization enables easy switching between different tasks (like code review and documentation). Includes smart code outlining. |
178 | Python Created: Sep 8, 2024 Updated: Sep 8, 2024 | Dump selected files from your repo into single file to easily use in LLMs (Claude, Openai, etc..) |
149 | Shell Created: Jul 19, 2024 Updated: Feb 18, 2025 | A very simple tool to build LLM prompts from your code repositories. |
92 | Python Created: Nov 16, 2023 Updated: Nov 20, 2023 | A helper script collecting contents of a repo and placing it in one text file. |
69 | Python Created: Apr 10, 2024 Updated: Sep 14, 2024 | For GenAI and LLM usage. This package converts codebase (folder structure with files) into a single text file or a Microsoft Word document (.docx), preserving folder structure and file contents. The tool extracts file contents from various file types, including text files, documents, and more, while retaining their formatting for easy readability. |
56 | Shell Created: Nov 11, 2024 Updated: Mar 11, 2025 | Prepare files and directories for LLM consumption |
48 | Python Created: May 28, 2024 Updated: Jul 6, 2024 | Dump an entire github repository inside a descriptive file to be used as llm input or training data |
46 | Python Created: Jul 26, 2024 Updated: Jan 26, 2025 | ContextForge is a powerful and flexible command-line tool designed to compile the contents of a development project into a single, well-structured file. This compiled output is ideal for use as input to large language models (LLMs) like GPT, making it easier to provide comprehensive project context in a single prompt. |
38 | TypeScript Created: Dec 29, 2023 Updated: Dec 30, 2024 | CLI tool for packing files into a prompt for LLM usage. |
36 | TypeScript Created: Jul 30, 2024 Updated: Apr 10, 2025 | CoPa: LLM Prompting Templating |
22 | Rust Created: Nov 16, 2024 Updated: Apr 6, 2025 | A lightning fast tool that converts a directory into a single organized .txt file for LLM processing 🚀 |
21 | Python Created: Oct 7, 2024 Updated: Jan 25, 2025 | aicodeprep is a command-line tool designed to simplify the process of sharing your project's code with AI chatbots. |
17 | Python Created: Sep 30, 2024 Updated: Mar 20, 2025 | A tool for extracting and formatting repositories as plain text to share with Large Language Models in chat interfaces without direct repo access or API integration. |
16 | C# Created: Aug 7, 2024 Updated: Nov 25, 2024 | Outputs a codebase to text for an LLM to see its context |
16 | Rust Created: Mar 12, 2024 Updated: Mar 9, 2025 | CodeMerge is useful for consolidating code from various files into a single file that can be used as context for AI code generation models. By merging relevant code and passing it to an LLM, the model can generate more accurate and contextually relevant code snippets. |
14 | Python Created: Jul 14, 2024 Updated: Oct 19, 2024 | LLM code editor for backend services |
10 | TypeScript Created: Jun 22, 2024 Updated: Jun 23, 2024 | Generate a prompt to your clipboard of multiple select files from your codebase |
8 | Python Created: Nov 4, 2024 Updated: Nov 4, 2024 | No description available |
7 | TypeScript Created: Jul 6, 2024 Updated: Jul 7, 2024 | Merge your files into one for seamless AI prompting with this CLI |
4 | PowerShell Created: Aug 3, 2024 Updated: Aug 5, 2024 | Repo-Documenter is a PowerShell script that generates comprehensive documentation for a repository, including a tree view of the repository structure and the contents of specified files. The aggregated file is useful for code review, documentation, or use by an AI assistant. |
3 | Python Created: Nov 17, 2024 Updated: Nov 21, 2024 | A utility tool designed to help developers provide code context to AI chat assistants (like ChatGPT, Claude, etc.) by combining multiple project files into a single, well-formatted text file. |
3 | Python Created: Jul 9, 2024 Updated: Aug 18, 2024 | Tools for easily working with repositories (aimed at AI usage) |
2 | JavaScript Created: Jul 6, 2024 Updated: Aug 14, 2024 | Get context from your code! Give it to an LLM (or your friends) - zig version located at https://github.com/AdjectiveAllison/cocoz |
1 | Python Created: Sep 14, 2024 Updated: Sep 14, 2024 | CodePack is a simple yet powerful Python tool that packs a directory of code files into a single, well-structured Markdown file. It's perfect for uploading your codebase into AI language models like ChatGPT, Claude, etc. |
0 | Python Created: Sep 5, 2024 Updated: Sep 18, 2024 | No description available |
Credits
@restlessronin curated links found using google search, perplexity.ai and @gpt-4o and @deepseek (both with search enabled)
Github refresh script, and article table implementation by @claude-sonnet-3.5-new