{
 "schema_version": 1,
 "generated": "2026-11-09",
 "repo": "mufeedvh/code2prompt",
 "name": "code2prompt",
 "owner": "mufeedvh",
 "slug": "mufeedvh-code2prompt",
 "github": "https://github.com/mufeedvh/code2prompt",
 "what": "Code2Prompt is a Rust context engineering tool that turns a codebase into one well-structured prompt for large language models. It respects .gitignore, filters files with glob patterns, applies Handlebars templates, estimates token counts, can include git diffs, logs and branch comparisons, and offers a CLI with an interactive TUI, a Python SDK, an MCP server and an agent skill.",
 "why": "7.7k stars, talked about in 2 AI sources we track",
 "language": "Rust",
 "requirements": [
  "Cargo, Homebrew, or pip for the Python SDK; binaries are also on the releases page",
  "Git, Rust and Cargo only if you build from source",
  "Optional: the wayland feature flag for clipboard support on Wayland systems"
 ],
 "audience_note": "Developers who paste code into ChatGPT or Claude, or build agents and RAG pipelines that need codebase context.",
 "risk": "none",
 "section": "earlier",
 "weekly_rank": null,
 "category": "Software and DevOps",
 "url": "https://dedupedai.com/use-cases/mufeedvh-code2prompt/",
 "use_case_count": 3,
 "use_cases": [
  {
   "id": "mufeedvh-code2prompt--turn-a-repo-into-one-llm-prompt",
   "title": "Turn a whole repo into one prompt for an LLM",
   "best": true,
   "url": "https://dedupedai.com/use-cases/mufeedvh-code2prompt/turn-a-repo-into-one-llm-prompt/",
   "json": "https://dedupedai.com/use-cases/u/mufeedvh-code2prompt/turn-a-repo-into-one-llm-prompt.json"
  },
  {
   "id": "mufeedvh-code2prompt--give-your-coding-agent-scoped-context",
   "title": "Help your coding agent find the right files faster",
   "best": false,
   "url": "https://dedupedai.com/use-cases/mufeedvh-code2prompt/give-your-coding-agent-scoped-context/",
   "json": "https://dedupedai.com/use-cases/u/mufeedvh-code2prompt/give-your-coding-agent-scoped-context.json"
  },
  {
   "id": "mufeedvh-code2prompt--send-only-a-git-diff-for-review",
   "title": "Build a review prompt from your git changes",
   "best": false,
   "url": "https://dedupedai.com/use-cases/mufeedvh-code2prompt/send-only-a-git-diff-for-review/",
   "json": "https://dedupedai.com/use-cases/u/mufeedvh-code2prompt/send-only-a-git-diff-for-review.json"
  }
 ],
 "disclaimer": "Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk."
}
