code2prompt banner
mufeedvh mufeedvh

code2prompt

AI community intermediate

Description

```bash cargo install code2prompt ```

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Convert your codebase into a single LLM prompt.

Website β€’ Documentation β€’ Discord

[](https://github.com/mufeedvh/code2prompt/blob/master/LICENSE) [](https://crates.io/crates/code2prompt) [](https://pypi.org/project/code2prompt-rs/) [](https://github.com/mufeedvh/code2prompt/actions) [](https://discord.com/invite/ZZyBbsHTwH) [](https://docs.rs/code2prompt-core) [](https://crates.io/crates/code2prompt) [](https://github.com/mufeedvh/code2prompt)


**Code2Prompt** is a powerful context engineering tool designed to ingest codebases and format them for Large Language Models. Whether you are manually copying context for ChatGPT, building AI agents via Python, or running a MCP server, Code2Prompt streamlines the context preparation process.

⚑ Quick Install

Cargo

cargo install code2prompt 

To enable optional Wayland support (e.g., for clipboard integration on Wayland-based systems), use the `wayland` feature flag:

cargo install --features wayland code2prompt

Homebrew

brew install code2prompt

SDK with pip 🐍

pip install code2prompt-rs

πŸš€ Quick Start

Once installed, generating a prompt from your codebase is as simple as pointing the tool to your directory.

**Basic Usage**: Generate a prompt from the current directory and copy it to the clipboard.

code2prompt .

**Save to file**:

code2prompt path/to/project --output-file prompt.txt

🌐 Ecosystem

Code2Prompt is more than just a CLI tool. It is a complete ecosystem for codebase context.

| 🧱 Core Library | πŸ’» CLI Tool | 🐍 Python SDK

| πŸ€– MCP Server | | :---: | :---: | :---: | :---: |

...