AI & Machine Learning

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.

Things to watch:

7,768 GitHub stars · 9.9k downloads · 12 contributors.

Download Code2prompt

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

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).