{"adoption": {"forks": 436, "observed_at": "2026-08-28T04:10:02.052010+00:00", "stars": 7619}, "canonical_url": "https://ross.abutalabs.com/products/code2prompt", "card": {"archived": false, "artifact_type": "cli-tool", "description": "A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.", "domain": ["developer-tools", "large-language-models", "artificial-intelligence"], "enriched": true, "function": ["llm-inference", "prompt-engineering", "cli", "developer-tools", "mcp"], "health_score": 90, "homepage": "https://code2prompt.dev", "language": "Rust", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["mufeedvh/code2prompt"], "name": "mufeedvh/code2prompt", "platform": ["windows", "cli", "rust", "python"], "pushed_at": "2026-06-29T18:24:06+00:00", "repo": "mufeedvh/code2prompt", "stars": 7619, "tags": ["context-engineering", "codebase-to-prompt", "token-counting", "handlebars-templates", "git-integration", "sdk", "command-line", "linux", "macos"], "topics": ["ai", "chatgpt", "claude", "cli", "command-line", "command-line-tool", "gpt", "llm", "prompt", "prompt-engineering", "prompt-generator", "prompt-toolkit", "rust"], "urls": [], "use_cases": ["convert my codebase into a prompt for ChatGPT or Claude", "generate LLM context from a repository with a source tree", "count tokens before sending code to an LLM", "prepare code review prompts with git diffs", "build AI agents that ingest codebases programmatically", "filter which files go into an LLM prompt using glob patterns", "run an MCP server that exposes my codebase to an LLM"], "what_it_is": "Code2Prompt is a Rust-based CLI tool that converts an entire codebase into a single structured LLM prompt, including a source tree, file contents, token counts, and optional Git diffs. It also ships as a Python SDK and an MCP server, making it usable for manual prompting, AI agents, and automation.", "when_to_avoid": ["your codebase is too large for any LLM context window and you need semantic retrieval/RAG instead", "you want an IDE-integrated AI assistant rather than a standalone prompt generator", "you need to send code to LLM APIs directly rather than preparing prompt text"], "when_to_choose": ["you need to hand a whole codebase or directory to an LLM as context", "you want token counting and .gitignore-aware filtering to fit context windows", "you want templated prompts (Handlebars) and clipboard/file output from the terminal", "you need a code-ingestion SDK or MCP server for agent workflows"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/code2prompt", "repo": "mufeedvh/code2prompt", "role": "main", "score": 66}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:10:02.052010+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:36:49.259565+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "b51d247103ca1960e792c35d43a3c75ba9dc880540c66b11915e5ea96ef15847", "fetched_at": "2026-08-28T04:10:02.052010+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mufeedvh/code2prompt"}, {"content_hash": "4be77dbc646b27f974b4af19b2416bf2eb005bb08570f810db0a4c7798942c37", "fetched_at": "2026-08-29T08:32:00.924696+00:00", "kind": "homepage", "missing": false, "url": "https://code2prompt.dev"}, {"content_hash": "d4fdf7176b4929404a80caf98aa245c7c8066f4f4e9c2bb9c7baf5eaf271b395", "fetched_at": "2026-08-29T08:32:00.927416+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/welcome"}, {"content_hash": "2518bc9a99a739a39cd996d7d5cd84ebb71096ac082abfd3f23575df7b618e0b", "fetched_at": "2026-08-29T08:32:00.929379+00:00", "kind": "site_page", "missing": false, "url": "https://code2prompt.dev/docs/how_to/install"}, {"content_hash": "3e57d361c96f3d98949896cfcb8de5c2129f7cc5ee54e9cc1e8a26e454bf5126", "fetched_at": "2026-08-29T08:32:00.931642+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/code2prompt"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 90, "longevity": 64, "rhythm": 36}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 907, "days_push": 65, "days_rel": 265, "gap_med": 162, "n_releases_24m": 4}, "score": 66, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}