[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5573":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":15,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":16,"starSnapshotCount":16,"syncStatus":41,"lastSyncTime":42,"discoverSource":43},5573,"code2prompt","mufeedvh\u002Fcode2prompt","mufeedvh","A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.","https:\u002F\u002Fcode2prompt.dev",null,"Rust",7398,423,40,4,0,1,12,61,77.98,"MIT License",false,"main",[25,26,27,28,29,30,31,32,33,34,35,36,37],"ai","chatgpt","claude","cli","command-line","command-line-tool","gpt","llm","prompt","prompt-engineering","prompt-generator","prompt-toolkit","rust","2026-06-12 04:00:25","\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fcode2prompt.dev\">\n    \u003Cimg align=\"center\" width=\"550px\" src=\"https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt\u002Fblob\u002Fmain\u002F.assets\u002Flogo_dark_v0.0.2.svg?raw=true\" alt=\"Code2prompt\"\u002F>\n  \u003C\u002Fa>\n  \u003Cbr>\n  \u003Ch3>Convert your codebase into a single LLM prompt.\u003C\u002Fh3>\n\u003C\u002Fdiv>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fcode2prompt.dev\">\u003Cb>Website\u003C\u002Fb>\u003C\u002Fa> •\n  \u003Ca href=\"https:\u002F\u002Fcode2prompt.dev\u002Fdocs\u002Fwelcome\u002F\">\u003Cb>Documentation\u003C\u002Fb>\u003C\u002Fa> •\n  \u003Ca href=\"https:\u002F\u002Fdiscord.com\u002Finvite\u002FZZyBbsHTwH\">\u003Cb>Discord\u003C\u002Fb>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cdiv align=\"center\">\n\n[![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fmufeedvh\u002Fcode2prompt.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt\u002Fblob\u002Fmaster\u002FLICENSE)\n[![Crates.io](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Fcode2prompt.svg?style=flat-square)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fcode2prompt)\n[![PyPI](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fcode2prompt-rs?style=flat-square&logo=pypi&logoColor=white)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fcode2prompt-rs\u002F)\n[![CI](https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt\u002Factions)\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1342336677905039451?style=flat-square&logo=discord&logoColor=white)](https:\u002F\u002Fdiscord.com\u002Finvite\u002FZZyBbsHTwH)\n[![Docs.rs](https:\u002F\u002Fdocs.rs\u002Fcode2prompt-core\u002Fbadge.svg?style=flat-square)](https:\u002F\u002Fdocs.rs\u002Fcode2prompt-core)\n[![Crates.io Downloads](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fd\u002Fcode2prompt.svg?style=flat-square)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fcode2prompt)\n[![GitHub Stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fmufeedvh\u002Fcode2prompt?style=social)](https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt)\n\n\u003C\u002Fdiv>\n\n---\n\n\u003Ch1 align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fcode2prompt.dev\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt\u002Fblob\u002Fmain\u002F.assets\u002Fdemo.gif?raw=true\" alt=\"code2prompt demo\">\u003C\u002Fa>\n\u003C\u002Fh1>\n\n![Flow Diagram](https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt\u002Fblob\u002Fmain\u002F.assets\u002Fflow_diagram.png?raw=true)\n\n**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.\n\n## ⚡ Quick Install\n\n### Cargo\n\n```bash\ncargo install code2prompt \n```\n\nTo enable optional Wayland support (e.g., for clipboard integration on Wayland-based systems), use the `wayland` feature flag:\n\n```bash\ncargo install --features wayland code2prompt\n```\n\n### Homebrew\n\n```bash\nbrew install code2prompt\n```\n\n### SDK with pip 🐍\n\n```bash\npip install code2prompt-rs\n```\n\n## 🚀 Quick Start\n\nOnce installed, generating a prompt from your codebase is as simple as pointing the tool to your directory.\n\n**Basic Usage**: Generate a prompt from the current directory and copy it to the clipboard.\n\n```sh\ncode2prompt .\n```\n\n**Save to file**:\n\n```sh\ncode2prompt path\u002Fto\u002Fproject --output-file prompt.txt\n```\n\n## 🌐 Ecosystem\n\nCode2Prompt is more than just a CLI tool. It is a complete ecosystem for codebase context.\n\n| 🧱 Core Library \u003Cbr>\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRust-FF6700?style=for-the-badge&logo=rust&logoColor=white\" alt=\"Rust Core Badge\"\u002F>| 💻 CLI Tool \u003Cbr>\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTerminal-2C3E50?style=for-the-badge&logo=gnu-bash&logoColor=white\" alt=\"CLI Badge\"\u002F> | 🐍 Python SDK \u003Cbr>\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython-3776AB?style=for-the-badge&logo=python&logoColor=white\" alt=\"Python SDK Badge\"\u002F> | 🤖 MCP Server \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAgentic%20Flow-7E57C2?style=for-the-badge&logo=server&logoColor=white\" alt=\"MCP Server Badge\"\u002F> |\n| :---: | :---: | :---: | :---: |\n| 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 codebase efficiently without bloating your context window. |\n\n## 📚 Documentation\n\nCheck our online [documentation](https:\u002F\u002Fcode2prompt.dev\u002Fdocs\u002Fwelcome\u002F) for detailed instructions\n\n## ✨ Features\n\nCode2Prompt transforms your entire codebase into a well-structured prompt for large language models. Key features include:\n\n- **Terminal User Interface (TUI)**: Interactive terminal interface for configuring and generating prompts\n- **Smart Filtering**: Include\u002Fexclude files using glob patterns and respect `.gitignore` rules\n- **Flexible Templating**: Customize prompts with Handlebars templates for different use cases\n- **Automatic Code Processing**: Convert codebases of any size into readable, formatted prompts\n- **Token Tracking**: Track token usage to stay within LLM context limits\n- **Smart File Reading**: Simplify reading various file formats for LLMs (CSV, Notebooks, JSONL, etc.)\n- **Git Integration**: Include diffs, logs, and branch comparisons in your prompts\n- **Blazing Fast**: Built in Rust for high performance and low resource usage\n\nStop manually copying files and formatting code for LLMs. Code2Prompt handles the tedious work so you can focus on getting insights and solutions from AI models.\n\n## Alternative Installation\n\nRefer to the [documentation](https:\u002F\u002Fcode2prompt.dev\u002Fdocs\u002Fhow_to\u002Finstall\u002F) for detailed installation instructions.\n\n### Binary releases\n\nDownload the latest binary for your OS from [Releases](https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt\u002Freleases).\n\n### Source build\n\nRequires:\n\n- [Git](https:\u002F\u002Fgit-scm.org\u002Fdownloads), [Rust](https:\u002F\u002Frust-lang.org\u002Ftools\u002Finstall) and `Cargo`.\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt.git\ncd code2prompt\u002F\ncargo install --path crates\u002Fcode2prompt\n```\n\n## ⭐ Star Gazing\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=mufeedvh\u002Fcode2prompt&type=Date)](https:\u002F\u002Fstar-history.com\u002F#mufeedvh\u002Fcode2prompt&Date)\n\n## 📜 License\n\nLicensed under the MIT License, see \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmufeedvh\u002Fcode2prompt\u002Fblob\u002Fmaster\u002FLICENSE\">LICENSE\u003C\u002Fa> for more information.\n\n## Liked the project?\n\nIf you liked the project and found it useful, please give it a :star: !\n\n## 👥 Contribution\n\nWays to contribute:\n\n- Suggest a feature\n- Report a bug\n- Fix something and open a pull request\n- Help me document the code\n- Spread the word\n","Code2Prompt 是一个命令行工具，用于将代码库转换为适用于大型语言模型的单个提示，并支持源码树、提示模板和令牌计数。该工具使用 Rust 语言开发，具有高效处理大量代码文件的能力，并且能够根据用户需求自定义生成的提示格式。它特别适合于需要将现有代码库作为上下文输入给 AI 系统（如 ChatGPT 或 Claude）以进行进一步分析或操作的场景。通过提供简洁易用的命令行接口以及多种安装方式（包括 Cargo、Homebrew 和 pip），Code2Prompt 使得开发者可以轻松地将其集成到现有的工作流程中。",2,"2026-06-11 03:04:10","top_language"]