{"data":{"slug":"mufeedvh-code2prompt","name":"code2prompt","tagline":"CLI tool to convert codebase into LLM prompt","github_url":"https://github.com/mufeedvh/code2prompt","owner":"mufeedvh","repo":"code2prompt","owner_avatar_url":"https://avatars.githubusercontent.com/u/26198477?v=4","primary_language":"Rust","stars":7509,"forks":429,"topics":["ai","chatgpt","claude","cli","command-line","command-line-tool","gpt","llm","prompt","prompt-engineering","prompt-generator","prompt-toolkit","rust"],"archived":false,"github_pushed_at":"2026-06-29T18:24:06+00:00","maintenance_label":"Active","url":"https://www.graphcanon.com/tools/mufeedvh-code2prompt","markdown_url":"https://www.graphcanon.com/tools/mufeedvh-code2prompt.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/mufeedvh-code2prompt","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=mufeedvh-code2prompt","description":"A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.","homepage_url":"https://code2prompt.dev","license":"MIT","open_issues":20,"watchers":40,"ai_summary":"mufeedvh/code2prompt is a CLI tool written in Rust that converts your entire codebase into a structured prompt for Large Language Models (LLM), including source tree details, supports prompt templating and token counting.","readme_excerpt":"## 🚀 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/to/project --output-file prompt.txt\n```\n\n---\n\n## Alternative Installation\n\nRefer to the [documentation](https://code2prompt.dev/docs/how_to/install/) for detailed installation instructions.\n\n---\n\n## 📜 License\n\nLicensed under the MIT License, see <a href=\"https://github.com/mufeedvh/code2prompt/blob/master/LICENSE\">LICENSE</a> for more information.","github_created_at":"2024-03-09T12:42:06+00:00","created_at":"2026-07-11T11:56:40.035108+00:00","updated_at":"2026-07-28T00:00:25.094645+00:00","categories":[{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"},{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"}],"tags":[{"slug":"ai","name":"ai"},{"slug":"chatgpt","name":"chatgpt"},{"slug":"claude","name":"claude"},{"slug":"cli","name":"cli"},{"slug":"command-line-tool","name":"command-line-tool"},{"slug":"gpt","name":"gpt"},{"slug":"llm","name":"llm"},{"slug":"prompt-engineering","name":"prompt-engineering"}],"trust":{"provenance":{"is_fork":false,"github_id":769564277,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-28T00:00:24.200Z","maintenance":{"label":"Active","score":82,"methodology":"github_public_v1","releases_90d":0,"days_since_push":28,"last_release_at":"2025-12-11T21:02:21Z"},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T11:56:41.208Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-07-28T00:00:24.649Z"},"languages":{"value":["rust"],"source":"github.language","observed_at":"2026-07-28T00:00:24.649Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-07-28T00:00:24.649Z"}},"decision_facts":{"hosting":{"model":"self_hosted","summary":"code2prompt operates as a self-hosted CLI tool, allowing for local data processing that is important for users with confidentiality requirements or those who wish to avoid cloud dependency."},"pricing":{"model":"freemium","summary":"The code2prompt tool is available under MIT license free of monetary charge. However, premium support or advanced features might incur costs if provided by the development team in future updates."},"requirements":null,"constraints":{"hosting_model":"self_hosted","pricing_model":"freemium"},"when_to_use":["When you aim to structure and deliver your entire codebase into an LLM for comprehensive documentation or refactoring guidance.","For scenarios where prompt engineering with Rust-based CLI tools is preferable, exploiting features like source tree details.","If a tool that integrates seamlessly with multiple popular large language models including Claude and ChatGPT through effective token management is required"],"when_not_to_use":["In situations requiring real-time interaction or analysis of codebases due to the static nature of its prompt generation process, as this might not cater to agile or evolving project requirements.","If you are in need of a tool beyond simple CLI operation and desire an integrated development environment (IDE) plugin for more interactive and continuous assistance."],"source":"enrich:decision_facts","observed_at":"2026-07-17T06:02:28.885Z"},"constraint_facets":{"hosting_model":"self_hosted","pricing_model":"freemium"},"decision_summary":[{"label":"Hosting","value":"self hosted - code2prompt operates as a self-hosted CLI tool, allowing for local data processing that is important for users with confidentiality requirements or those who wish to avoid cloud dependency."},{"label":"Pricing","value":"freemium - The code2prompt tool is available under MIT license free of monetary charge. However, premium support or advanced features might incur costs if provided by the development team in future updates."}]}}