mufeedvh/code2prompt

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

61
/ 100
Established

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.

No Package No Dependents
Maintenance 17 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 18 / 25

How are scores calculated?

Stars

7,220

Forks

407

Language

Rust

License

MIT

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.