mlsanityData to 7 Oct 2026

RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models

arXiv 2607.25996 ↗First posted 28 Jul 2026cs.SEcited by 5

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

  1. 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks3 Jul
  2. 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning31 May
  3. 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checking18 Feb
  4. 2024CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs2 Oct
  5. 2024Qwen2.5-Coder Technical Report18 Sep
  6. 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?25 Mar
  7. 2024CodeMind: Evaluating Large Language Models for Code Reasoning15 Feb

Other references · 37

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2025Qwen3 Technical Reportcited by 8,195
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  5. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
  6. 2021Program Synthesis with Large Language Modelscited by 3,509
  7. 2023ChatDev: Communicative Agents for Software Developmentcited by 893
  8. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
  9. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
  10. 2024Teaching Large Language Models to Reason with Reinforcement Learningcited by 158
  11. 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
  12. 2021Retrieval Augmented Code Generation and Summarizationcited by 148
25 more
  1. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
  2. 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 55
  3. 2022When Language Model Meets Private Librarycited by 54
  4. 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
  5. 2018Retrieval-Based Neural Code Generationcited by 41
  6. 2024RepoQA: Evaluating Long Context Code Understandingcited by 35
  7. 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
  8. 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
  9. 2024Teaching Code LLMs to Use Autocompletion Tools in Repository-Level Code Generationcited by 30
  10. 2024Multiple-Choice Questions are Efficient and Robust LLM Evaluatorscited by 28
  11. 2023AceCoder: Utilizing Existing Code to Enhance Code Generationcited by 25
  12. 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
  13. 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 21
  14. 2023Tell Me a Story! Narrative-Driven XAI with Large Language Modelscited by 20
  15. 2025CoReQA: Uncovering Potentials of Language Models in Code Repository Question Answeringcited by 17
  16. 2023CodeApex: A Bilingual Programming Evaluation Benchmark for Large Language Modelscited by 15
  17. 2024RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completioncited by 15
  18. 2024Top General Performance = Top Domain Performance? DomainCodeBench: A Multi-domain Code Generation Benchmarkcited by 13
  19. 2025LONGCODEU: Benchmarking Long-Context Language Models on Long Code Understandingcited by 13
  20. 2026RealSec-bench: A Benchmark for Evaluating Secure Code Generation in Real-World Repositoriescited by 13
  21. 2024CodeRepoQA: A Large-scale Benchmark for Software Engineering Question Answeringcited by 11
  22. 2024SpecEval: Evaluating Code Comprehension in Large Language Models via Program Specificationscited by 8
  23. 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issuescited by 6
  24. 2024ScratchEval: Are GPT-4o Smarter than My Child? Evaluating Large Multimodal Models with Visual Programming Challengescited by 4
  25. 2025SimpleDevQA: Benchmarking Large Language Models on Development Knowledge QAcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026CoRE: A Fine-Grained Code Reasoning Benchmark Beyond Output Prediction
  2. 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning
  3. 2026From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Level
  4. 2025A Tool for In-depth Analysis of Code Execution Reasoning of Large Language Models
  5. 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation
  6. 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark
  7. 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
  8. 2024On The Importance of Reasoning for Context Retrieval in Repository-Level Code Editing