A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
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.
Latest release v4.2.0 — Release refs/tags/v4.2.0 · 11 Dec 2025
7 files for Claude Code, Codex and OpenCode: code2prompt-conventions, documentation, verify-cli, verify-core and 3 more — 299 tokens loaded in every session.
AGENTS.md A 299 tok .agents/skills/code2prompt-conventions/SKILL.md A 20 tok .agents/skills/documentation/SKILL.md A 14 tok .agents/skills/verify-cli/SKILL.md A 15 tok .agents/skills/verify-core/SKILL.md A 12 tok .agents/skills/verify-python/SKILL.md A 13 tok .agents/skills/verify-website/SKILL.md A 9 tok These files are mufeedvh/code2prompt's own configuration — they tell Claude Code, Codex and OpenCode how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.