The AI arena is free today

Open Superagent

RepoQA

Paper

Progress Over Time

Interactive timeline showing model performance evolution on RepoQA

State-of-the-art frontier
Open
Proprietary

RepoQA Leaderboard

2 models
ContextCostLicense
160B
24B
Notice missing or incorrect data?
About this benchmark

What is RepoQA?

RepoQA is a benchmark for evaluating long-context code understanding capabilities of Large Language Models through the Searching Needle Function (SNF) task, where LLMs must locate specific functions in code repositories using natural language descriptions. The benchmark contains 500 code search tasks spanning 50 repositories across 5 modern programming languages (Python, Java, TypeScript, C++, and Rust), tested on 26 general and code-specific LLMs to assess their ability to comprehend and navigate code repositories.

RepoQA is a text benchmark evaluating models on long context, reasoning, and code tasks. LLM Stats tracks 2 models on this benchmark, scored on a 0–1 scale. The current average is 0.8, with the leader at 0.8.

Compare leaders on the best AI for long context, best AI for reasoning and best AI for code leaderboards.

Current leaders

Phi-3.5-MoE-instruct from Microsoft currently leads the RepoQA leaderboard with a score of 0.850 across 2 evaluated AI models.

1Phi-3.5-MoE-instructMicrosoft85.0%
2Phi-3.5-mini-instructMicrosoft77.0%

Source paper

Title
RepoQA: Evaluating Long Context Code Understanding
Authors
Jiawei Liu, Jia Le Tian, Vijay Daita, Yuxiang Wei, and 4 others
Published
Abstract

Recent advances have been improving the context windows of Large Language Models (LLMs). To quantify the real long-context capabilities of LLMs, evaluators such as the popular Needle in a Haystack have been developed to test LLMs over a large chunk of raw texts. While effective, current evaluations overlook the insight of how LLMs work with long-context code, i.e., repositories. To this end, we initiate the RepoQA benchmark to evaluate LLMs on long-context code understanding. Traditional needle testers ask LLMs to directly retrieve the answer from the context without necessary deep understanding. In RepoQA, we built our initial task, namely Searching Needle Function (SNF), which exercises LLMs to search functions given their natural-language description, i.e., LLMs cannot find the desired function if they cannot understand the description and code. RepoQA is multilingual and comprehensive: it includes 500 code search tasks gathered from 50 popular repositories across 5 modern programming languages. By evaluating 26 general and code-specific LLMs on RepoQA, we show (i) there is still a small gap between the best open and proprietary models; (ii) different models are good at different languages; and (iii) models may understand code better without comments.

FAQ

Common questions about the RepoQA benchmark and leaderboard.

What is the RepoQA benchmark?

RepoQA is a benchmark for evaluating long-context code understanding capabilities of Large Language Models through the Searching Needle Function (SNF) task, where LLMs must locate specific functions in code repositories using natural language descriptions. The benchmark contains 500 code search tasks spanning 50 repositories across 5 modern programming languages (Python, Java, TypeScript, C++, and Rust), tested on 26 general and code-specific LLMs to assess their ability to comprehend and navigate code repositories.

What is the RepoQA leaderboard?

The RepoQA leaderboard ranks 2 AI models based on their performance on this benchmark. Currently, Phi-3.5-MoE-instruct by Microsoft leads with a score of 0.850. The average score across all models is 0.810.

What is the highest RepoQA score?

The highest RepoQA score is 0.850, achieved by Phi-3.5-MoE-instruct from Microsoft.

How many models are evaluated on RepoQA?

2 models have been evaluated on the RepoQA benchmark, with 0 verified results and 2 self-reported results.

Where can I find the RepoQA paper?

The RepoQA paper is available at https://arxiv.org/abs/2406.06025. The paper details the methodology, dataset construction, and evaluation criteria.

What categories does RepoQA cover?

RepoQA is categorized under long context, reasoning, and code. The benchmark evaluates text models with multilingual support.

What is the best open-source model on RepoQA?

Phi-3.5-MoE-instruct by Microsoft is the top-ranked open-source model on RepoQA, with a score of 0.850 (rank #1).

How recent are the RepoQA leaderboard results?

The RepoQA leaderboard was last updated in August 2026 and currently includes 2 evaluated models.