Comparison
code2prompt vs repomix
Verdict
Pick code2prompt when code2prompt is primarily Rust; repomix is TypeScript; pick repomix when repomix is primarily TypeScript; code2prompt is Rust.
Markdown twin · code2prompt alternatives · repomix alternatives
GraphCanon updated Sep 20, 2026
6views this month
vs
Trust & integrity
| Signal | code2prompt | repomix |
|---|---|---|
| Maintenance | Very active (1d since push) As of Sep 20, 2026 · github_public_v1 | Very active (5d since push) As of Sep 18, 2026 · github_public_v1 |
| Provenance | Not a fork · Personal account As of Sep 20, 2026 · github_public_v1 | Not a fork · Personal account As of Sep 18, 2026 · github_public_v1 |
| OSV dependency advisories | No lockfile (source not queried) As of Jul 11, 2026 · osv@v1 | No published findings from this source as of 2026-09-18 As of Sep 18, 2026 · osv@v1 |
| deps.dev advisories | Not queried deps.dev@v1 | Not queried deps.dev@v1 |
| OpenSSF Scorecard | Not queried openssf-scorecard@v1 | Not queried openssf-scorecard@v1 |
Tagline
- code2prompt
- CLI tool to convert codebase into LLM prompt
- repomix
- Packs repository into AI-friendly files for LLMs and AI tools
Stars
- code2prompt
- 7.7k
- repomix
- 28k
Forks
- code2prompt
- 446
- repomix
- 1.5k
Open issues
- code2prompt
- 16
- repomix
- 138
Language
- code2prompt
- Rust
- repomix
- TypeScript
Adopt for
- code2prompt
- -
- repomix
- Repomix is a TypeScript tool that converts repositories into a single, AI-friendly file, ideal for feeding into various AI tools and LLMs.
Persona
- code2prompt
- -
- repomix
- -
Runtime
- code2prompt
- -
- repomix
- -
License
- code2prompt
- MIT
- repomix
- MIT
Last pushed
- code2prompt
- Sep 18, 2026
- repomix
- Sep 13, 2026
Categories
- code2prompt
- Developer Tools, LLM Frameworks
- repomix
- Developer Tools, LLM Frameworks
Trust and health
Days since push
- code2prompt
- 1d
- repomix
- 5d
Open issues (now)
- code2prompt
- 16
- repomix
- 138
Stars delta
- code2prompt
- +169 (30d)
- repomix
- +513 (30d)
Open issues delta
- code2prompt
- -4 (30d)
- repomix
- +6 (30d)
OSV dependency advisories
- code2prompt
- No lockfile (source not queried)
- repomix
- No published findings from this source as of 2026-09-18
Full report
- code2prompt
- Trust report
- repomix
- Trust report
Choose code2prompt if…
- code2prompt is primarily Rust; repomix is TypeScript.
- code2prompt operates as a self-hosted CLI tool, allowing for local data processing that is important for users with confidentiality requirements or those who wish to avoid cloud dependency.
- Pricing: The code2prompt tool is available under MIT license free of monetary charge. However, premium support or advanced features might incur costs if provided by the development team in future updates..
- Tags unique to code2prompt: cli, command-line-tool, gpt, llm.
- When you aim to structure and deliver your entire codebase into an LLM for comprehensive documentation or refactoring guidance.
When NOT to use code2prompt
- In situations requiring real-time interaction or analysis of codebases due to the static nature of its prompt generation process, as this might not cater to agile or evolving project requirements.
- If you are in need of a tool beyond simple CLI operation and desire an integrated development environment (IDE) plugin for more interactive and continuous assistance.
Choose repomix if…
- repomix is primarily TypeScript; code2prompt is Rust.
- Tags unique to repomix: anthropic, artificial-intelligence, chatbot, deepseek.
- repomix ships Docker support for self-hosted deployment.
- repomix ships an MCP server manifest.
- When you need to prepare your codebase for analysis by AI tools like Claude, ChatGPT, or DeepSeek, as Repomix packs repositories into a format these tools can easily process.
When NOT to use repomix
- If you are looking for a tool that only supports a specific AI platform, as Repomix is designed to be compatible with a wide range of AI tools and LLMs, which might not be necessary if you are focused
- When you do not need the additional plugins for slash commands or AI analysis, as Repomix comes with these features which might add unnecessary complexity if you only need basic repository packing.
- If you prefer a tool that does not use Docker for its operations, as Repomix provides Docker usage options that might be unnecessary if you are working in an environment where Docker is not available.
Explore
Sources
Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.
- GitHub stars (mufeedvh/code2prompt) · observed Sep 20, 2026
- GitHub forks (mufeedvh/code2prompt) · observed Sep 20, 2026
- Last push (mufeedvh/code2prompt) · observed Sep 18, 2026
- License file (MIT) · observed Sep 20, 2026
- Decision facts (enrichment) · observed Jul 17, 2026
- Trust scan (lockfile / OSV) · observed Jul 11, 2026
- GitHub stars (yamadashy/repomix) · observed Sep 20, 2026
- GitHub forks (yamadashy/repomix) · observed Sep 20, 2026
- Last push (yamadashy/repomix) · observed Sep 13, 2026
- License file (MIT) · observed Sep 20, 2026
- Decision facts (enrichment) · observed Sep 18, 2026
- Trust scan (lockfile / OSV) · observed Sep 18, 2026
GitHub stars on cards: code2prompt 7.7k · repomix 28k (synced Sep 20, 2026).
Common questions
- What is the difference between code2prompt and repomix?
- code2prompt: CLI tool to convert codebase into LLM prompt. repomix: Packs repository into AI-friendly files for LLMs and AI tools. See the comparison table for live GitHub stats and shared categories.
- When should I choose code2prompt over repomix?
- Choose code2prompt over repomix when code2prompt is primarily Rust; repomix is TypeScript; code2prompt operates as a self-hosted CLI tool, allowing for local data processing that is important for users with confidentiality requirements or those who wish to avoid cloud dependency; Pricing: The code2prompt tool is available under MIT license free of monetary charge. However, premium support or advanced features might incur costs if provided by the development team in future updates.; Tags unique to code2prompt: cli, command-line-tool, gpt, llm; When you aim to structure and deliver your entire codebase into an LLM for comprehensive documentation or refactoring guidance.
- When should I choose repomix over code2prompt?
- Choose repomix over code2prompt when repomix is primarily TypeScript; code2prompt is Rust; Tags unique to repomix: anthropic, artificial-intelligence, chatbot, deepseek; repomix ships Docker support for self-hosted deployment; repomix ships an MCP server manifest; When you need to prepare your codebase for analysis by AI tools like Claude, ChatGPT, or DeepSeek, as Repomix packs repositories into a format these tools can easily process.
- When should I avoid code2prompt?
- In situations requiring real-time interaction or analysis of codebases due to the static nature of its prompt generation process, as this might not cater to agile or evolving project requirements. If you are in need of a tool beyond simple CLI operation and desire an integrated development environment (IDE) plugin for more interactive and continuous assistance.
- When should I avoid repomix?
- If you are looking for a tool that only supports a specific AI platform, as Repomix is designed to be compatible with a wide range of AI tools and LLMs, which might not be necessary if you are focused When you do not need the additional plugins for slash commands or AI analysis, as Repomix comes with these features which might add unnecessary complexity if you only need basic repository packing. If you prefer a tool that does not use Docker for its operations, as Repomix provides Docker usage options that might be unnecessary if you are working in an environment where Docker is not available.
- Is code2prompt or repomix more popular on GitHub?
- repomix has more GitHub stars (28,394 vs 7,678). Stars measure visibility, not whether either tool fits your constraints.
- Are code2prompt and repomix open source?
- Yes - both are open-source projects on GitHub (code2prompt: MIT, repomix: MIT).
- Where can I find alternatives to code2prompt or repomix?
- GraphCanon lists graph-backed alternatives at code2prompt alternatives and repomix alternatives (code2prompt markdown twin, repomix markdown twin), ranked by typed relationship edges rather than popularity votes.
- Is there a machine-readable version of this comparison?
- Yes. The markdown twin at this comparison mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.
- Which is better maintained, code2prompt or repomix?
- code2prompt: Very active. repomix: Very active. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.
- Where are the full trust reports for code2prompt and repomix?
- GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: code2prompt trust report; repomix trust report.