← all repositories

mufeedvh/code2prompt

A Rust-based CLI tool that ingests a codebase and produces a structured, token-counted prompt for use with LLMs.

7.5k stars Rust Coding Assistants
code2prompt
Not currently ranked — collecting fresh signals.
star history

Code2Prompt is a context engineering tool that walks a source tree, formats code files into a single prompt, and supports templating for customization. It includes token counting to help manage context window limits when feeding code to language models.

Frequently asked

What is mufeedvh/code2prompt?
A Rust-based CLI tool that ingests a codebase and produces a structured, token-counted prompt for use with LLMs.
Is code2prompt open source?
Yes — mufeedvh/code2prompt is open source, released under the MIT license.
What language is code2prompt written in?
mufeedvh/code2prompt is primarily written in Rust.
How popular is code2prompt?
mufeedvh/code2prompt has 7.5k stars on GitHub.
Where can I find code2prompt?
mufeedvh/code2prompt is on GitHub at https://github.com/mufeedvh/code2prompt.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.