Home Projects code2prompt
code2prompt
Rust

code2prompt

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

by mufeedvh · GitHub
Stars
Forks
License
Created
Last commit
Category
Language
aichatgptclaudeMITRust
View on GitHub
In plain words

Transform your code into a single prompt for AI models, making it easier to work with large codebases.

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
8k7k
2026-07-042026-08-31
📈 Track code2prompt

Get an email alert on its next release or when it starts trending — never miss the moment.

Free · no card · unsubscribe anytime
Get email alerts →
📄 About

A 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.

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.

What license does code2prompt use?

code2prompt is available under the MIT license.

What language is code2prompt written in?

code2prompt is written mainly in Rust.

🏅 Maintainer of this project?
olud.ai badge — code2prompt

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

[![olud.ai](https://olud.ai/badge.php?tool=mufeedvh-code2prompt)](https://olud.ai/project/mufeedvh-code2prompt.html)
More badge options →
🧬 Shares DNA with🧬 View the DNA map →

Measured from GitHub topics shared by both projects, weighted by how rare each topic is.