A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
Transform your code into a single prompt for AI models, making it easier to work with large codebases.
Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.
Get an email alert on its next release or when it starts trending — never miss the moment.
Free · no card · unsubscribe anytimeA CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
code2prompt has 7.6k stars on GitHub. It has been forked 437 times. code2prompt is written mainly in Rust. It has been in active development since 2024. code2prompt is available under the MIT license. Its main topics are ai, chatgpt, claude, cli.
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
code2prompt is an open-source project. It is released under the MIT license.
Yes. code2prompt is free and open source — you can use, modify and self-host it.
code2prompt is available under the MIT license.
code2prompt is written mainly in Rust.
Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.
[](https://olud.ai/project/mufeedvh-code2prompt.html)
Measured from GitHub topics shared by both projects, weighted by how rare each topic is.