mufeedvh

    mufeedvh/code2prompt

    A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.

    7.8K stars
    458 forks
    43 GitHub watchers
    Updated Nov 7, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    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.

    Excerpt from the mufeedvh/code2prompt README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Aug 11: +13

    +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

    mufeedvh/code2prompt compared with AI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    D4Vinci/Scrapling101.1K+6.3K756 days ago
    thedotmack/claude-mem115.8K+4.7K75today
    heygen-com/hyperframes82.3K+4.0K75today
    harry0703/MoneyPrinterTurbo142.0K+3.8K753 days ago
    github/spec-kit149.2K+2.6K75today
    mufeedvh/code2prompt7.8K—30330 days ago
    Category median115.8K+4.0K75—

    Discover Repositories

    Search across tracked repositories by name or description