mufeedvh/code2prompt
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
No releases in the last 90 days; the most recent was 330 days ago, with 36 contributors on GitHub.
Use Cases & Benefits
- Transforms entire codebases into structured prompts optimized for large language models using a CLI and SDK.
- Automates codebase context preparation with smart filtering, templating, token tracking, and Git integration for efficient LLM usage.
- Use for generating comprehensive LLM prompts from complex projects to improve AI code understanding and assistance.
- Use for integrating codebase context into AI agents or automation scripts via the Python SDK for enhanced code-aware workflows.
- Use for running a local MCP server to enable agentic applications to access and query your codebase without bloating LLM context windows.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
Convert your codebase into a single LLM prompt.
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.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+175 stars over 89 days across 8 snapshot days; best day +13 on Aug 11.
Forks
458+20
Open issues
20+0
Compared with peers in AI
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| D4Vinci/Scrapling | 101.1K | +6.3K | 75 | 6 days ago |
| thedotmack/claude-mem | 115.8K | +4.7K | 75 | today |
| heygen-com/hyperframes | 82.3K | +4.0K | 75 | today |
| harry0703/MoneyPrinterTurbo | 142.0K | +3.8K | 75 | 3 days ago |
| github/spec-kit | 149.2K | +2.6K | 75 | today |
| mufeedvh/code2prompt | 7.8K | — | 30 | 330 days ago |
| Category median | 115.8K | +4.0K | 75 | — |
Discover Repositories
Search across tracked repositories by name or description