首页 时政热点 科技头条 智能AI 安全攻防 数码硬件 开发者生态 汽车 游戏 社会热点 开源推荐 医疗健康 归档 标签 关于

GitHub 热门项目:code2prompt

摘要

GitHub项目:code2prompt 仓库地址:https://github.com/mufeedvh/code2prompt Stars:7620 | 作者:mufeedvh 项目描述:A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and to...

code2prompt https mufeedvh github style com flat square img shields
2026-09-01 1 阅读 约6分钟阅读 GitHub Trending
分享:
字号:
GitHub 项目:code2prompt 仓库地址:https://github.com/mufeedvh/code2prompt 星级:7620 | 作者:mufeedvh 项目描述:一个 CLI 工具,可将您的代码库转换为具有源代码树、提示模板和令牌计数的单个 LLM 提示。 =================================================== 自述文件内容: Code2prompt

将您的代码库转换为单个 LLM 提示符。

网站文档不和谐

[![许可证](https://img.shields.io/github/license/mufeedvh/code2prompt.svg?style=flat-square)](https://github.com/mufeedvh/code2prompt/blob/master/LICENSE) [![Crates.io](https://img.shields.io/crates/v/code2prompt.svg?style=flat-square)](https://crates.io/crates/code2prompt) [![PyPI](https://img.shields.io/pypi/v/code2prompt-rs?style=flat-square&logo=pypi&logoColor=white)](https://pypi.org/project/code2prompt-rs/) [![CI](https://github.com/mufeedvh/code2prompt/actions/workflows/ci.yml/badge.svg?style=flat-square)](https://github.com/mufeedvh/code2prompt/actions) [![Discord](https://img.shields.io/discord/1342336677905039451?style=flat-square&logo=discord&logoColor=white)](https://discord.com/invite/ZZyBbsHTwH) [![Docs.rs](https://docs.rs/code2prompt-core/badge.svg?style=flat-square)](https://docs.rs/code2prompt-core) [![Crates.io 下载](https://img.shields.io/crates/d/code2prompt.svg?style=flat-square)](https://crates.io/crates/code2prompt) [![GitHub Stars](https://img.shields.io/github/stars/mufeedvh/code2prompt?style=social)](https://github.com/mufeedvh/code2prompt)
--- code2prompt 演示 ![流程图](https://github.com/mufeedvh/code2prompt/blob/main/.assets/flow_diagram.png?raw=true) **Code2Prompt** 是一个强大的上下文工程工具,旨在提取代码库并将其格式化为大型语言模型。无论您是手动复制 ChatGPT 的上下文、通过 Python 构建 AI 代理还是运行 MCP 服务器,Code2Prompt 都可以简化上下文准备过程。 ## ⚡ 快速安装 ### 货物 ````bash 货物安装代码2提示 ```` 要启用可选的 Wayland 支持(例如,用于基于 Wayland 的系统上的剪贴板集成),请使用 `wayland` 功能标志: ````bash 货物安装 --features wayland code2prompt ```` ### 自制 ````bash 酿造安装代码2提示 ```` ### 带 pip 的 SDK 🐍 ````bash pip install code2prompt-rs ```` ## 🚀 快速入门 安装后,从代码库生成提示就像将该工具指向您的目录一样简单。 **基本用法**​​:从当前目录生成提示并将其复制到剪贴板。 ````嘘 代码2提示。 ```` **保存到文件**: ````嘘 code2prompt路径/到/项目--输出文件提示.txt ```` ## 🌐 生态系统 Code2Prompt 不仅仅是一个 CLI 工具。这是一个完整的生态系统
这篇文章对您有帮助吗?

订阅66必读

每日精选科技资讯,直达你的邮箱

← 返回 开源推荐