head to head · open source

repomix vs code2prompt

repomix has 29,122 GitHub stars, 1,615 forks, 138 open issues and last shipped 2 days ago. code2prompt has 7,745 stars, 459 forks, 16 open issues and last shipped 4 days ago. repomix leads on adoption by 276% (29,122 vs 7,745 stars). repomix is written in TypeScript under MIT; code2prompt is written in Rust under MIT. repomix has attracted 6% as many forks as stars, code2prompt 6%. repomix was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 4 topic tags (ai, chatgpt, claude, gpt), so they are genuine substitutes rather than adjacent tools.

Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.

repomix ★ 29K code2prompt ★ 7.7K category AI & Machine Learning

← all 20902 open source comparisons

Side by side

repomix code2prompt
GitHub stars ★ 29K ★ 7.7K
License MIT MIT
Written in TypeScript Rust
Last push 2026-11-01 2026-10-30
Forks ⑂ 1.6K ⑂ 459
Self-hosting Yes Yes
Data ownership Your server Your server

pick repomix if

  • You weight community size — 29K stars and counting
  • You want the MIT license terms
  • Your stack matches TypeScript
  • You value the larger contributor base for long-term maintenance

full repomix profile →

pick code2prompt if

  • You want the code2prompt feature set and don't need the biggest community
  • You prefer the MIT license terms
  • Your stack matches Rust
  • You evaluated both and code2prompt fits your workflow better

full code2prompt profile →

About repomix

Special thanks to: Warp, built for coding with multiple AI agents Available for MacOS, Linux, & Windows CodeRabbit AI Code Reviews Cut code review time & bugs in half, instantly. Pack your codebase into AI friendly formats Use Repomix online! 👉 repomix.com Need discussion? Join us on Discord ! Share your experience and tips Stay updated on new features Get help with configuration and usage 📦 Repomix is a powerful tool that packs your entire repository into a single, AI friendly file. It is perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT…

read the full repomix overview →

About code2prompt

Convert your codebase into a single LLM prompt. Website • Documentation • Discord 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. ⚡ Quick Install Cargo To enable optional Wayland support (e.g., for clipboard integration on Wayland based systems), use the wayland feature flag: Homebrew SDK with pip 🐍 🚀 Quick Start Once installed, generating a prompt from your codebase is as…

read the full code2prompt overview →

More in AI & Machine Learning

Related comparisons

More AI Interaction & Interfaces projects

Compare either of these against the rest of the AI Interaction & Interfaces field.

Frequently asked questions

Is repomix or code2prompt more popular?

repomix has 29,122 GitHub stars and code2prompt has 7,745. repomix has the larger community by that measure.

Are repomix and code2prompt free?

Both are open source. repomix is licensed under MIT and code2prompt under MIT. Neither carries a licence fee.

What is the difference between repomix and code2prompt?

repomix is written in TypeScript and code2prompt in Rust. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.

Which should I choose, repomix or code2prompt?

Choose repomix if you want the larger community (29,122 stars) or its MIT licence terms. Choose code2prompt if its feature set, stack or MIT licence fits better. Both are self-hostable.