# mufeedvh/code2prompt

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

Canonical: https://starboard.codevetter.com/explore/mufeedvh/code2prompt

[Back to Discover](https://starboard.codevetter.com/discover)

![mufeedvh](https://avatars.githubusercontent.com/u/26198477?v=4&s=40)

mufeedvh

# code2prompt

[View on GitHub
](https://github.com/mufeedvh/code2prompt)

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

ai
chatgpt
claude
cli
command\-line
command\-line\-tool
gpt
llm
prompt
prompt\-engineering
prompt\-generator
prompt\-toolkit
rust


7\.8k stars

Rust

Updated 19h ago

Created Mar 9, 2024

## Star history

\+403 stars
5\.5% growth


## Detected tools

No detected tools yet\.

## Similar projects

[![pemistahl](https://avatars.githubusercontent.com/u/1145043?v=4&s=24)

pemistahl/ grex

A command\-line tool and Rust library with Python bindings for generating regular expressions from user\-provided test cases

Rust 8\.3k 67%](https://starboard.codevetter.com/explore/pemistahl/grex)[![rtk\-ai](https://avatars.githubusercontent.com/u/258253854?v=4&s=24)

rtk\-ai/ rtk

CLI proxy that reduces LLM token consumption by 60\-90% on common dev commands\. Single Rust binary, zero dependencies

Rust 87k 62%](https://starboard.codevetter.com/explore/rtk-ai/rtk)[![1jehuang](https://avatars.githubusercontent.com/u/94247773?v=4&s=24)

1jehuang/ jcode

High performance coding agent harness written in Rust, built for heavy multi\-agent dev workflows

Rust 22k 66%](https://starboard.codevetter.com/explore/1jehuang/jcode)[![ynqa](https://avatars.githubusercontent.com/u/6745370?v=4&s=24)

ynqa/ jnv

Interactive JSON filter using jq

Rust 6\.1k 65%](https://starboard.codevetter.com/explore/ynqa/jnv)[![Codevetter](https://avatars.githubusercontent.com/u/305881863?v=4&s=24)

Codevetter/ codevetter

Verify AI\-generated code with execution evidence — deterministic, local\-first verification for coding\-agent changes via a macOS app, CLI, and MCP server\.

Rust 1 66%](https://starboard.codevetter.com/explore/Codevetter/codevetter)[![yamadashy](https://avatars.githubusercontent.com/u/5019072?v=4&s=24)

yamadashy/ repomix

📦 Repomix is a powerful tool that packs your entire repository into a single, AI\-friendly file\. Perfect for when you need to feed your codebase to Large Language Models \(LLMs\) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more\.

TypeScript 29k 63%](https://starboard.codevetter.com/explore/yamadashy/repomix)[![o2sh](https://avatars.githubusercontent.com/u/13710835?v=4&s=24)

o2sh/ onefetch

Command\-line Git information tool

Rust 12k 66%](https://starboard.codevetter.com/explore/o2sh/onefetch)[![sharkdp](https://avatars.githubusercontent.com/u/4209276?v=4&s=24)

sharkdp/ fd

A simple, fast and user\-friendly alternative to 'find'

Rust 45k 66%](https://starboard.codevetter.com/explore/sharkdp/fd)
