Home Projects code2prompt
code2prompt

code2prompt

by mufeedvh · GitHub

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

# ai# chatgpt# claude# cli
View on GitHub
⭐ Stars
7.5k
🍴 Forks
429
🔥 Trending
+13 this week
📜 License
MIT
Commercial use OK
📅 Created
2024
🔄 Last commit
22 days ago
🏷️ Category
ai
💻 Language
You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
code2prompt — GitHub preview card
📈 Star history
7.49k7.45k
2026-07-042026-07-22
📄 About

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

Frequently asked questions

What is code2prompt?

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

Is code2prompt open source?

code2prompt is an open-source project. It is released under the MIT license.

Is code2prompt free?

Yes. code2prompt is free and open source — you can use, modify and self-host it.

🏅 Maintainer of this project?
OpenSourceAI badge — code2prompt

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![OpenSourceAI](https://opensourceai.tech/badge.php?tool=mufeedvh-code2prompt)](https://opensourceai.tech/project/mufeedvh-code2prompt.html)
More badge options →
🧬 Related projects