Code2prompt
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
By mufeedvh. Free and open source for Windows. Latest version v4.2.0, released 2025-12-11.
Is Code2prompt safe?
Trust score 59/100: Use caution. Some warning signs. Read the notes, check the reviews, and verify the file before you run it.
- Established community: 7,768 GitHub stars
- Actively developed: code changed in the last 30 days
- Downloads come straight from the project's own GitHub releases
Things to watch:
- No OpenSSF Scorecard report yet, so security practices are unverified
- No checksums or signatures published: you can't verify the download
7,768 GitHub stars · 9.9k downloads · 12 contributors.
Download Code2prompt
- code2prompt-x86_64-pc-windows-msvc.exe (Windows, 12.2 MB)
Downloads come straight from github.com/mufeedvh/code2prompt.
About Code2prompt
To enable optional Wayland support (e.g., for clipboard integration on Wayland-based systems), use the wayland feature flag:
Once installed, generating a prompt from your codebase is as simple as pointing the tool to your directory.
Teach your coding agent to install and use code2prompt for repository navigation and scoped context gathering with the Skills CLI:
The code2prompt skill helps agents reduce exploration round trips: inspect a compact map of functions and classes using sem-core, then read relevant source files and tests together. It includes a map template and installation instructions for the optional entity-map feature, with a directory map fallback for standard builds. The code2prompt CLI is installed separately.
Similar apps
- smartcat (sc): Putting a brain behind `cat`🐈⬛ Integrating language models in the Unix commands ecosystem through text streams. (Use caution, 43/100)
- jcode: High performance coding agent harness written in Rust, built for heavy multi-agent dev workflows (Good, 68/100)
- Dayflow: The automatic work journal/time tracker. Privately turns your screen into a timeline of what you actually accomplished. Open-source and loca (Good, 69/100)
- AI Gist: ✨ AI Gist 是一款隐私优先的 AI 提示词管理工具,致力于让个人收藏的 AI 提示词能够发挥最大价值。支持变量替换、Jinja 模板、AI 生成与调优、历史版本记录、云端备份等核心功能。 (Use caution, 59/100)
- patent: A prior-art search for your code ideas — has this dev tool already been shipped? (Good, 62/100)
- Oh My Openagent: OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering. (Good, 68/100)
Questions
Is Code2prompt safe to download?
Code2prompt has an OpenShelf trust score of 59/100 (Use caution). Some warning signs. Read the notes, check the reviews, and verify the file before you run it. Main thing to watch: No OpenSSF Scorecard report yet, so security practices are unverified.
Is Code2prompt free?
Yes. Code2prompt is free and open source under the MIT license. The source code is public at github.com/mufeedvh/code2prompt.
Does Code2prompt work on Windows?
Code2prompt is available for Windows. Ready-made downloads exist for Windows.
How do I install Code2prompt?
Download the official file from the project's GitHub releases (for example code2prompt-x86_64-pc-windows-msvc.exe) and run it.
What are alternatives to Code2prompt?
Similar open-source apps: smartcat (sc) (trust 43/100), jcode (trust 68/100), Dayflow (trust 69/100), AI Gist (trust 59/100).