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-11-09
📈 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.8k stars on GitHub. It has been forked 458 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 →
chatgpt_system_prompt
A collection of GPT system prompts and various prompt injection/leaking knowledge.
★ 10.7k · gpt
sharespromptprompt-engineering
hear
Command line interface for the built-in speech recognition and transcription capabilities in ma…
★ 667 · command-line
sharescommand-line-toolcommand-line
PromptHub
一款包含了 Prompt管理,Skill管理,Agent管理的一站式AI工具箱,助你高效管理提示词,一键分发skills ,一站式管理Agent资产,并实现云同步,备份,版本管理 | An…
★ 1.8k · agent
sharesprompt-toolkitprompt
prompt-optimizer
An AI prompt optimizer for writing better prompts and getting better AI results.
★ 40.9k · ai-prompts
sharesprompt-toolkitprompt
promptflow
Build high-quality LLM apps - from prototyping, testing to production deployment and monitoring…
★ 11.3k · ai
sharespromptprompt-engineering
comfyui-prompt-reader-node
The ultimate solution for managing image metadata and multi-tool compatibility. ComfyUI node ve…
★ 460 · comfyui
sharesprompt-toolkitprompt-engineering
awesome-gpt-prompt-engineering
A curated list of awesome resources, tools, and other shiny things for LLM prompt engineering.
★ 1.6k · awesome
sharesprompt-generatorprompt
rea
Reverse engineer anything with agents, from app behavior down to native binaries.
★ 441k · agent-skills
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
★ 383k · ai
superpowers
An agentic skills framework & software development methodology that works.
★ 314k · ai

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