ModelRefs / RepoBench Methodology and Evidence
RepoBench Methodology and Evidence
Repository-level code completion across long context.
Overview
How it is measured: Exact-match / edit-similarity across retrieval + completion.
What this benchmark measures
- repository-level code completion
- cross-file context retrieval
Relevant to:
- coding assistant selection
- repository context handling
Failure modes it exercises:
- completion failures when the needed context is in another file
Method and its limits
Three sub-tasks over real repositories: RepoBench-R for retrieving cross-file context, RepoBench-C for next-line prediction from cross-file and in-file context, and RepoBench-P for the combined pipeline.
- Coverage is Python and Java only, so other ecosystems are not represented.
- Next-line prediction is narrower than the multi-line, multi-file edits an assistant actually performs.
How to read this score
The three sub-tasks should be read separately: a strong pipeline score can come from retrieval quality rather than completion quality, and the benchmark is designed to let those be distinguished.
Benchmark gaming risk: Medium — Results depend on the retrieval component and context window supplied, so scaffolding rather than the model can dominate the pipeline result.
Dataset coverage
Python and Java, across the three registered sub-tasks. The date records first submission; the paper was revised in October 2023.
Benchmark Fit
Decision-support signal
Benchmark fit is relevant evidence for a specific use case. It does not prove a model is best. Interpret results with methodology, dataset, freshness, and real-task limitations.
Structured benchmark evidence is partial. Unknown freshness, contamination, or workload-transfer fields remain visible and constrain interpretation.
How well the evidence supports each fit criterion
- Use-case relevance Current support
- Capability match Current support
- Failure-risk coverage Current support
- Real-task similarity Established · high similarity
- Methodology quality Current support
- Dataset freshness/coverage Current support
- Interpretability Current support
- Source/evidence quality Current support
What this benchmark tests
Repository-level code completion across long context.
What it does not prove
A leaderboard position does not establish production reliability, workload fit, safety, cost, latency, or superiority outside this task and evaluation protocol.
Limitations
- Python and Java only.
- Next-line prediction is narrower than real assistant edits.
Freshness concerns
Primary source reviewed 2026-10-12. RepoBench is treated as an aging 2023 benchmark.
Structured benchmark evidence
- Dataset
- RepoBench — repository-level completion and retrieval tasks
- Dataset freshness
- aging (2023-06-05)
- Real-task similarity
- high. Established from the primary methodology: RepoBench evaluates repository-level auto-completion through three sub-tasks — retrieving relevant cross-file snippets, next-line prediction using cross-file and in-file context, and a combined pipeline. The paper's stated motivation is that existing benchmarks cover single-file tasks and miss multi-file programming, so this is markedly closer to assistant work than function-level synthesis.
- Workload-risk fit
- repository-aware code completion, cross-file context handling
- Contamination risk
- high. The tasks are drawn from public repositories, which are core training data for code models. No run-specific overlap audit is registered.
- Source evidence
- primary. The paper is a primary methodology source. No model scores are registered on this page.
Decisions this can support
- Compare assistants on multi-file context rather than isolated functions.
- Separate retrieval quality from completion quality.
Internal evaluation still required
- Test on your own repositories and languages; coverage here is Python and Java.
- Evaluate multi-line edits, which next-line prediction does not represent.
What this evidence does not cover
- No model scores are registered on this page, so it supports no comparison.
RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems — primary research · Liu, Xu, McAuley · reviewed 2026-10-12 — Supports the three sub-task structure, the repository-level multi-file motivation, and the Python and Java coverage; it does not support any model score, and no score is registered on this page.
RepoBench dataset and evaluation release — official · Liu et al. (RepoBench authors) · reviewed 2026-10-25 — The authors' release, matching the paper's title. It establishes the retrieval and completion task construction; it does not establish per-model results.
A fit score is intentionally withheld until the target use case and failure risks are supplied.
Predicts Performance For
Use-cases where scores on this benchmark are predictive, derived from the benchmark→capability→use-case graph. Higher weight = stronger signal.
- Coding Copilot 80%
Graph-derived signal only. Benchmark coverage of a use-case does not imply suitability for every task within that use-case.
How this benchmark is scored
| Category | coding |
|---|---|
| Maximum score | 100 % EM |
| Direction | Higher is better |
Primary source: https://arxiv.org/abs/2306.03091
Related benchmarks
- coding SWE-Bench Verified Resolve real GitHub issues end-to-end with passing test suite.
- coding HumanEval+ Function-level code synthesis with extended hidden tests.
- coding LiveCodeBench Fresh competitive programming problems with timestamped contamination guard.
- coding Codeforces ELO Competitive programming ELO equivalent for model submissions.
- coding SWE-Bench Multimodal Fix UI bugs that require screenshot understanding alongside code.
- coding SWE-Bench Lite 300-task subset of SWE-Bench for faster eval.
Continue your research
Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to RepoBench Methodology and Evidence.
Frequently asked questions
What does the RepoBench benchmark measure?
Repository-level code completion across long context.
What is the methodology?
Exact-match / edit-similarity across retrieval + completion.