mufeedvh/code2prompt

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

About the project

Code2Prompt is a command-line tool that collects a codebase and formats it as one prompt containing source context, templates, and token information for a language model. Developers use it to prepare focused repository context for ChatGPT, Claude, coding agents, or programs that call an MCP server. The catalogue entries provide skills and an instruction for installing and using Code2Prompt to navigate repositories and gather scoped context.

This repository also configures its own agents. See what code2prompt tells them →

7.6kStars on the repository
8Mods indexed here, across every type
yesterdayLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

code2prompt

01

mufeedvh/code2prompt

Skill Claude CodeCodex

Explore codebases efficiently with code2prompt, using sem-backed entity maps and grouped source reads to reduce agent round trips. Use when understanding an unfamiliar repository, locating implementations, gathering context for changes or reviews, or installing code2prompt.

not rated 7.6k +11 yesterday A 51 tokens original MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: