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

Velocity · 7d
+2.4
★ / day
Trend
→steady
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.6k stars on GitHub and is currently holding steady.
- Where can I find code2prompt?
- mufeedvh/code2prompt is on GitHub at https://github.com/mufeedvh/code2prompt.