---
title: "repobench vs code2prompt"
type: "comparison"
canonical_url: "https://www.graphcanon.com/compare/leolty-repobench-vs-mufeedvh-code2prompt"
tools: ["leolty-repobench", "mufeedvh-code2prompt"]
---

# repobench vs code2prompt

*GraphCanon updated Aug 5, 2026*

## Verdict

Pick repobench when repobench is primarily Python; code2prompt is Rust; pick code2prompt when code2prompt is primarily Rust; repobench is Python.

[repobench](https://arxiv.org/abs/2306.03091) reports 214 GitHub stars, 13 forks, and 12 open issues, last pushed Aug 16, 2024. [code2prompt](https://code2prompt.dev) has 7.5k stars, 429 forks, and 20 open issues, last pushed Jun 29, 2026. Figures are from public GitHub metadata via [repobench's repository](https://github.com/Leolty/repobench) and [code2prompt's repository](https://github.com/mufeedvh/code2prompt).

| | [repobench](/tools/leolty-repobench.md) | [code2prompt](/tools/mufeedvh-code2prompt.md) |
| --- | --- | --- |
| Tagline | Benchmarking Repository-Level Code Auto-Completion Systems | CLI tool to convert codebase into LLM prompt |
| Stars | 214 | 7,509 |
| Forks | 13 | 429 |
| Open issues | 12 | 20 |
| Language | Python | Rust |
| Adopt for | RepoBench assesses repository-level code auto-completion systems, offering benchmarks crucial for researchers and developers working on similar systems. | - |
| Persona | - | - |
| Runtime | - | - |
| License | CC-BY-4.0 | MIT |
| Categories | Developer Tools | Developer Tools, LLM Frameworks |

## Trust and health

_Sourced signals - not a safety guarantee. No winner column._

| | [repobench](/tools/leolty-repobench.md) | [code2prompt](/tools/mufeedvh-code2prompt.md) |
| --- | --- | --- |
| Maintenance | Dormant (18%) | Active (82%) |
| Days since push | 719d | 28d |
| Open issues (now) | 12 | 20 |
| Full report | [trust report](/tools/leolty-repobench/trust.md) | [trust report](/tools/mufeedvh-code2prompt/trust.md) |

## Decision facts: repobench

- **Adopt for:** RepoBench assesses repository-level code auto-completion systems, offering benchmarks crucial for researchers and developers working on similar systems.

## Decision facts: code2prompt

- **Hosting:** self hosted - 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:** freemium - 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.

## Choose when

### Choose repobench if…

- repobench is primarily Python; code2prompt is Rust.
- License: repobench is CC-BY-4.0, code2prompt is MIT.
- Tags unique to repobench: benchmarking, code-completion, iclr 2024.
- Use RepoBench if you are evaluating the performance of your own repository-level code completion system against established benchmarks.

### Choose code2prompt if…

- code2prompt is primarily Rust; repobench is Python.
- License: code2prompt is MIT, repobench is CC-BY-4.0.
- 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: ai, chatgpt, claude, cli.
- Also covers LLM Frameworks.
- When you aim to structure and deliver your entire codebase into an LLM for comprehensive documentation or refactoring guidance.

## When NOT to use repobench

- Do not use RepoBench if your focus is on line-level or function-level code completions as opposed to repository-wide assessments.
- Avoid RepoBench in scenarios where you require real-time analytics rather than benchmarking against static datasets and predefined criteria.

## 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.

## Common questions

### What is the difference between repobench and code2prompt?

repobench: Benchmarking Repository-Level Code Auto-Completion Systems. code2prompt: CLI tool to convert codebase into LLM prompt. See the comparison table for live GitHub stats and shared categories.

### When should I choose repobench over code2prompt?

Choose repobench over code2prompt when repobench is primarily Python; code2prompt is Rust; License: repobench is CC-BY-4.0, code2prompt is MIT; Tags unique to repobench: benchmarking, code-completion, iclr 2024; Use RepoBench if you are evaluating the performance of your own repository-level code completion system against established benchmarks.

### When should I choose code2prompt over repobench?

Choose code2prompt over repobench when code2prompt is primarily Rust; repobench is Python; License: code2prompt is MIT, repobench is CC-BY-4.0; 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: ai, chatgpt, claude, cli; Also covers LLM Frameworks; When you aim to structure and deliver your entire codebase into an LLM for comprehensive documentation or refactoring guidance.

### When should I avoid repobench?

Do not use RepoBench if your focus is on line-level or function-level code completions as opposed to repository-wide assessments. Avoid RepoBench in scenarios where you require real-time analytics rather than benchmarking against static datasets and predefined criteria.

### 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.

### Is repobench or code2prompt more popular on GitHub?

code2prompt has more GitHub stars (7,509 vs 214). Stars measure visibility, not whether either tool fits your constraints.

### Are repobench and code2prompt open source?

Yes - both are open-source projects on GitHub (repobench: CC-BY-4.0, code2prompt: MIT).

### Where can I find alternatives to repobench or code2prompt?

GraphCanon lists graph-backed alternatives at [repobench alternatives](/tools/leolty-repobench/alternatives) and [code2prompt alternatives](/tools/mufeedvh-code2prompt/alternatives) ([repobench markdown twin](/tools/leolty-repobench/alternatives.md), [code2prompt markdown twin](/tools/mufeedvh-code2prompt/alternatives.md)), 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](/compare/leolty-repobench-vs-mufeedvh-code2prompt.md) mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.

### Which is better maintained, repobench or code2prompt?

repobench: Dormant. code2prompt: 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 repobench and code2prompt?

GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: [repobench trust report](/tools/leolty-repobench/trust); [code2prompt trust report](/tools/mufeedvh-code2prompt/trust).

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/graph?tool=leolty-repobench`](/api/graphcanon/graph?tool=leolty-repobench)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
