{"repo":"mufeedvh/code2prompt","free":true,"listed":false,"github":"https://github.com/mufeedvh/code2prompt","clone":"git clone https://github.com/mufeedvh/code2prompt.git","description":"A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.","language":"Rust","stars":7599,"topics":["ai","chatgpt","claude","cli","command-line","command-line-tool","gpt","llm","prompt","prompt-engineering"],"license":"MIT","category":"cli-tools","readme_excerpt":"Convert your codebase into a single LLM prompt. Website • Documentation • Discord --- 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 To enable optional Wayland support (e.g., for clipboard integration on Wayland-based systems), use the wayland feature flag: Homebrew SDK with pip 🐍 🚀 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. Save to file : 🌐 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 :---: :---: :---: :---: The internal, high-speed library responsible for secure file traversal, respecting .gitignore rules, and structuring Git metadata. Designed for humans, featuring both a minimal CLI and an interactive TUI. Generate formatted prompts, track token usage, and outputs the result to your clipboard or stdout. Provides fast Python bindings to the Rust Core. Ideal for AI Agents, automation scripts, or deep integration into RAG pipelines. Available on PyPI. Run Code2Prompt as a local service, enabling agentic applications to read your local code","default_branch":null,"files":null,"tree":[],"storefront":"/r/mufeedvh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mufeedvh/code2prompt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}