Hoa Kỳmufeedvh/code2prompt
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#2 Repository của tuần
#4 Repository của tuần
#7 Repository của tuần
🚀 code2prompt: Biến toàn bộ dự án thành một prompt duy nhất cho LLM
Chuyển đổi codebase thành prompt LLM có cấu trúc, hỗ trợ TUI, template và đếm token.
code2prompt là công cụ CLI mạnh bằng Rust, thiết kế để biến toàn bộ mã nguồn dự án thành một prompt duy nhất dành cho các mô hình ngôn ngữ lớn (LLM) như ChatGPT, Claude. Dự án hỗ trợ cả giao diện dòng lệnh và giao diện TUI tương tác, cùng thư viện lõi tốc độ cao và SDK Python.
✨ Điểm nổi bật
- Giao diện TUI tương tác: Cấu hình và tạo prompt ngay trong terminal một cách trực quan.
- Lọc file thông minh: Hỗ trợ glob pattern và tự động bỏ qua file theo
.gitignore. - Template linh hoạt: Tùy chỉnh prompt bằng Handlebars cho từng use-case khác nhau.
- Đếm token chính xác: Theo dõi số token sử dụng để tránh vượ quá giới hạn ngữ cảnh LLM.
- Tích hợp Git: Thêm diff, log và so sánh nhánh trực tiếp vào prompt.
- Hỗ trợ đa định dạng: Đọc hiểu các định dạng như CSV, Notebook, JSONL một cách tối ưu cho LLM.
- Tốc độ cực nhanh: Được viết bằng Rust, hiệu năng cao và tối ưu tài nguyên.
- Đa nền tảng: Cài đặt qua Cargo, Homebrew, pip hoặc tải binary trực tiếp.
💡 Vì sao đáng chú ý
Không giống các công cụ chỉ đơn thuần sao chép file, code2prompt cung cấp một hệ sinh thái hoàn chỉnh bao gồm thư viện lõi, CLI, SDK Python và MCP Server. Điều này giúp người dùng linh hoạt ứng dụng trong nhiều kịch bản như phát triển AI agent, tích hợp vào pipeline RAG hoặc sử dụng như một dịch vụ cục bộ.
#AI #LLM #Rust #CLI #PromptEngineering #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
a.k.a. Awesome ChatGPT Prompts This is a Dataset Repository mirror of prompts.chat — a social platform for AI prompts. 📢 Notice This Hugging Face dataset is a mirror. For the latest prompts, features, and community contributions, please visit: 🌐 Website: prompts.chat 📦 GitHub: github.com/f/awesome-chatgpt-prompts About prompts.chat is an open-source platform where users can share, discover, and collect AI prompts from the community. The project can… See the full description on the dataset page: https://huggingface.co/datasets/fka/prompts.chat.
21 Lessons, Get Started Building with Generative AI
why use many token when few token do trick. Skill + local proxy for coding agents: shorter answers, smaller tool output, every original recoverable.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.