mufeedvh/code2prompt
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
Supports interactive TUI configuration, flexible Handlebars templating for prompt customization, and Git-aware features like diffs and branch comparisons. Built as a Rust core library with Python bindings and MCP server support, enabling integration across CLI workflows, agentic automation, and RAG pipelines while respecting `.gitignore` rules for secure traversal.
7,220 stars. Actively maintained with 7 commits in the last 30 days.
Stars
7,220
Forks
407
Language
Rust
License
MIT
Category
Last pushed
Mar 02, 2026
Commits (30d)
7
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/mufeedvh/code2prompt"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
shcherbak-ai/contextgem
ContextGem: Effortless LLM extraction from documents
ShahzaibAhmad05/gitree
An upgrade from "ls" for developers. An open-source tool to analyze folder structures and to...
nicepkg/ctxport
Copy AI conversations as clean Markdown Context Bundles — one click from ChatGPT, Claude,...
WecoAI/weco-cli
The Platform for Self-Improving Code. Ideal for GPU kernels, ML model development, feature...
mkorpela/kopipasta
`cat project | LLM | patch`. Transparent context control and interactive patching for...