RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Recent large language models (LLMs) have shown strong performance on software engineering tasks, yet most existing benchmarks evaluate code reasoning at the function level, where all relevant information is localized. This setting fails to reflect real-world development, which requires reasoning across multiple files and complex dependency structures. We introduce RepoReasoner, a benchmark for evaluating repository-level code reasoning. It assesses two complementary abilities: Output Prediction, which measures fine-grained, stateful execution reasoning across files, and Call Chain Prediction, which evaluates high-level architectural dependency understanding under noisy context. Our benchmark is constructed through a multi-stage pipeline that leverages dynamic tracing of pytest executions to obtain ground-truth call chains, along with LLM-based I/O rewriting to reduce memorization effects. We evaluate seven state-of-the-art LLMs. Even under oracle context, the best-performing model achieves only 69.1% Pass@1 on Output Prediction, indicating that cross-file reasoning remains a major challenge. In Call Chain Prediction, models exhibit high precision but low recall, suggesting limited multi-hop dependency understanding. Furthermore, performance drops on rewritten data reveal partial reliance on memorization, and longer contexts do not consistently improve results due to noise. These findings highlight fundamental limitations in current LLMs' repository-level reasoning and motivate future work on structured architectural understanding and cross-file inference.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 44 of its 65 references that are in the map. First posted on arXiv 28 Jul 2026.
Builds on
44 of 65 references.
Closest ancestors · 7
Same direction, newest first
- 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks3 Jul
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning31 May
- 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checking18 Feb
- 2024CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs2 Oct
- 2024Qwen2.5-Coder Technical Report18 Sep
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?25 Mar
- 2024CodeMind: Evaluating Large Language Models for Code Reasoning15 Feb
Other references · 37
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2025Qwen3 Technical Reportcited by 8,195
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023ChatDev: Communicative Agents for Software Developmentcited by 893
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
- 2024Teaching Large Language Models to Reason with Reinforcement Learningcited by 158
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
25 more
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
- 2022When Language Model Meets Private Librarycited by 54
- 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
- 2018Retrieval-Based Neural Code Generationcited by 41
- 2024RepoQA: Evaluating Long Context Code Understandingcited by 35
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
- 2024Teaching Code LLMs to Use Autocompletion Tools in Repository-Level Code Generationcited by 30
- 2024Multiple-Choice Questions are Efficient and Robust LLM Evaluatorscited by 28
- 2023AceCoder: Utilizing Existing Code to Enhance Code Generationcited by 25
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
- 2023Tell Me a Story! Narrative-Driven XAI with Large Language Modelscited by 20
- 2025CoReQA: Uncovering Potentials of Language Models in Code Repository Question Answeringcited by 17
- 2023CodeApex: A Bilingual Programming Evaluation Benchmark for Large Language Modelscited by 15
- 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completioncited by 15
- 2024Top General Performance = Top Domain Performance? DomainCodeBench: A Multi-domain Code Generation Benchmarkcited by 13
- 2025LONGCODEU: Benchmarking Long-Context Language Models on Long Code Understandingcited by 13
- 2026RealSec-bench: A Benchmark for Evaluating Secure Code Generation in Real-World Repositoriescited by 13
- 2024CodeRepoQA: A Large-scale Benchmark for Software Engineering Question Answeringcited by 11
- 2024SpecEval: Evaluating Code Comprehension in Large Language Models via Program Specificationscited by 8
- 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issuescited by 6
- 2024ScratchEval: Are GPT-4o Smarter than My Child? Evaluating Large Multimodal Models with Visual Programming Challengescited by 4
- 2025SimpleDevQA: Benchmarking Large Language Models on Development Knowledge QAcited by 2
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Benchcited by 0
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluationcited by 0
- 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agentscited by 0
- 2026LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoningcited by 0
- 2026LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning29 Sep 2026
- 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agents3 Sep 2026
- 2026Efficient SWE Agent Benchmarking via Trajectory-Aware Evaluation1 Sep 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Bench27 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026CoRE: A Fine-Grained Code Reasoning Benchmark Beyond Output Prediction
- 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning
- 2026From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Level
- 2025A Tool for In-depth Analysis of Code Execution Reasoning of Large Language Models
- 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
- 2024On The Importance of Reasoning for Context Retrieval in Repository-Level Code Editing