raphaelmansuy/code2prompt

Code2Prompt is a powerful command-line tool that simplifies the process of providing context to Large Language Models (LLMs) by generating a comprehensive Markdown file containing the content of your codebase. ⭐ If you find Code2Prompt useful, consider giving us a star on GitHub! It helps us reach more developers and improve the tool. ⭐

59
/ 100
Established

Here's a technical summary for the developer directory: Supports Jinja2-based templating with modular includes and input variables for dynamic prompt generation, enabling customized outputs for specific AI tasks. Features intelligent token counting to respect LLM limits, `.gitignore`-aware filtering with glob pattern support, and syntax-highlighting mappings for custom file extensions. Integrates with LLM CLI tools and GitHub Actions for automation, with clipboard output and line-number annotation capabilities for precise code referencing.

882 stars and 802 monthly downloads. No commits in the last 6 months. Available on PyPI.

Stale 6m
Maintenance 2 / 25
Adoption 17 / 25
Maturity 25 / 25
Community 15 / 25

How are scores calculated?

Stars

882

Forks

58

Language

Python

License

MIT

Last pushed

Jun 10, 2025

Monthly downloads

802

Commits (30d)

0

Dependencies

11

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/raphaelmansuy/code2prompt"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.