CLI Tools Collection

A collection of CLI tools to combine multiple source code files into one for prompting.

Here are a collection of (mostly) CLI tools that help you copy your codebase into a custom prompt for AI models like ChatGPT and Claude, that I've found on Reddit and other places:

Dates are when the tools were shared online or when I found them.

⭐⭐⭐ indicates tools that are popular (> 1k stars on GitHub).

⭐⭐⭐ code2prompt

March 17, 2024

A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.

code2prompt

SnapSource for VS Code

July 13, 2024

SnapSource is a powerful Visual Studio Code extension that allows you to easily copy file and folder contents along with the project tree structure to your clipboard.

multi-file-code-to-ai

July 14, 2024

Select multiple files and convert them to a prompt for chatGPT, claude, or deepseek.

⭐⭐⭐ Repomix (formerly Repopack)

July 15, 2024

Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file.

It is perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, and Gemini.

Mify

July 15, 2024

LLM code generation paired with templates. Create backend service and update code via LLM.

ai-digest

July 16, 2024

A CLI tool to aggregate your codebase into a single Markdown file for use with Claude Projects or custom ChatGPTs.

Prelude

July 21, 2024

A very simple tool to build LLM prompts from your code repositories.

TxtRepo

July 21, 2024

TxtRepo is a powerful tool that allows users to interact with GitHub repositories using a simple API.

ContextForge

July 28, 2024

ContextForge

ContextForge is a powerful and flexible command-line tool designed to compile the contents of a development project into a single, well-structured file.

Repo-Documenter

August 4, 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.

Coding Context File Generator

August 8, 2024

Generate concise project context for AI analysis

CodeContext

CodeContext is an app for Mac & Windows to provide code context to Language Learning Models (LLMs).

llmcat - Copy Code from CLI to Claude

November 12, 2024

llmcat

Prepare files and directories for LLM consumption

Concat-Proj

November 18, 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.

copyall

December 2, 2024

CopyAll: Extract and Copy Directory Contents to Clipboard

dirscribe

December 5, 2024

A CLI tool that combines contents of files with specific extensions from a directory

gptree

December 19, 2024

A CLI tool to provide LLM context for coding projects by combining project files into a single text file (or clipboard text) with directory tree structure.

cargo-onefile

January 15, 2025

Cargo Onefile is a Rust tool that generates a single file containing all the source code of a Rust project, primarily designed for piping source code into Large Language Models (LLMs).

Yek

January 19, 2025

A fast tool to read text-based files in a repository or directory, chunk them, and serialize them for LLM consumption.

Files to LLM Prompt

February 11, 2025

Convert your workspace files into well-structured prompts for Large Language Models (LLMs), with special optimization for Claude's XML format.

CodeSelect

February 28, 2025

A simple, interactive tool to select and share code with AI assistants like Claude and ChatGPT. Analyzes file relationships and generates context-rich output.

Your Source to Prompt

March 12, 2025

Quickly and securely turn your code projects into LLM prompts, all locally on your own machine!

AI Code Fusion

March 14, 2025

A desktop application for preparing and optimizing code repositories for AI processing and analysis.

GUI tool

16x Prompt is a GUI tool that I built to make this process easier. It helps you manage source code context and generate optimized prompts for LLMs like ChatGPT and Claude.

16x Prompt

Download 16x Prompt

Join 7000+ users from tech companies, consulting firms, and agencies.