The existence of 32 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).
The reasons are compelling - as we explore in our article on why developers need context management tools, chat interfaces offer unique advantages for development work, but managing code context in these interfaces creates significant friction. Yet the continued emergence of new tools suggests two things: many developers aren't finding existing solutions, and those who do find them aren't fully satisfied with their capabilities.
Like others, we weren't satisfied with the available options when we developed LLM Context. We wanted to support rapid context switching during AI-assisted development, with configurable profiles for different types of code sharing and flexible file selection rules. The project evolved to include features like profile inheritance and Model Context Protocol support.
By sharing both our tool and this comprehensive list of alternatives, we hope to help developers discover existing solutions 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.
5287 | TypeScript Created: Jul 13, 2024 Updated: Dec 11, 2024 | 📦 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, and Gemini. |
2855 | Python Created: Mar 16, 2023 Updated: Mar 20, 2023 | Convert code repos into an LLM prompt-friendly format. Mostly built by GPT-4. |
2295 | Rust Created: Mar 9, 2024 Updated: Dec 11, 2024 | A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting. |
919 | JavaScript Created: Sep 23, 2024 Updated: Dec 6, 2024 | Web-based tool converts GitHub repository contents into a single formatted text file |
707 | Python Created: Mar 22, 2024 Updated: Oct 16, 2024 | Concatenate a directory full of files into a single prompt for use with LLMs |
618 | Python Created: Mar 17, 2023 Updated: Dec 11, 2024 | 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 |
355 | TypeScript Created: Jul 15, 2024 Updated: Nov 26, 2024 | A CLI tool to aggregate your codebase into a single Markdown file for use with Claude Projects or custom ChatGPTs. |
200 | Python Created: Sep 7, 2024 Updated: Sep 9, 2024 | Easily copy all relevant source files in a repository to clipboard. For use in LLM code understanding and generation workflows |
134 | Shell Created: Jul 19, 2024 Updated: Sep 21, 2024 | A very simple tool to build LLM prompts from your code repositories. |
125 | 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..) |
112 | 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. |
45 | 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 |
36 | Python Created: Apr 20, 2024 Updated: Dec 11, 2024 | Share code context with LLMs via MCP or clipboard |
31 | 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. |
30 | Python Created: Jul 26, 2024 Updated: Aug 6, 2024 | 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. |
28 | TypeScript Created: Jul 30, 2024 Updated: Dec 1, 2024 | CoPa: LLM Prompting Templating |
21 | TypeScript Created: Dec 29, 2023 Updated: Dec 9, 2024 | CLI tool for packing files into a prompt for LLM usage. |
15 | Shell Created: Nov 11, 2024 Updated: Nov 11, 2024 | Prepare files and directories for LLM consumption |
15 | C# Created: Aug 7, 2024 Updated: Nov 25, 2024 | Outputs a codebase to text for an LLM to see its context |
12 | TypeScript Created: Mar 12, 2024 Updated: Dec 5, 2024 | 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. |
11 | Python Created: Oct 7, 2024 Updated: Nov 17, 2024 | aicodeprep is a command-line tool designed to simplify the process of sharing your project's code with AI chatbots. |
11 | Python Created: Sep 30, 2024 Updated: Nov 10, 2024 | 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. |
11 | Python Created: Jul 14, 2024 Updated: Oct 19, 2024 | LLM code editor for backend services |
7 | TypeScript Created: Jul 6, 2024 Updated: Jul 7, 2024 | Merge your files into one for seamless AI prompting with this CLI |
7 | TypeScript Created: Jun 22, 2024 Updated: Jun 23, 2024 | Generate a prompt to your clipboard of multiple select files from your codebase |
6 | Python Created: Nov 4, 2024 Updated: Nov 4, 2024 | No description available |
3 | Rust Created: Nov 16, 2024 Updated: Nov 16, 2024 | A lightning fast tool that converts a directory into a single organized .txt file for LLM processing 🚀 |
2 | 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. |
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. |
1 | 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. |
1 | Python Created: Jul 9, 2024 Updated: Aug 18, 2024 | Tools for easily working with repositories (aimed at AI usage) |
0 | Python Created: Sep 5, 2024 Updated: Sep 18, 2024 | No description available |