ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large Language Models (LLMs) have recently emerged as capable coding assistants that operate over large codebases through either agentic exploration or full-context generation. Existing benchmarks capture a broad range of coding capabilities, such as resolving GitHub issues, but none of them directly isolate and measure how effectively LLMs leverage repository-level context during code generation. To address this, we introduce ReCUBE, a benchmark in which LLMs reconstruct a masked file within a real-world repository, using all remaining source files, dependency specifications, and documentation as their only source of context. ReCUBE evaluates reconstructed code with usage-aware test cases that simulate both internal module logic and external cross-file integration, reflecting real-world software usage patterns. We further propose the Caller-Centric Exploration (CCE) toolkit, a set of dependency graph-based tools that can be integrated into agentic frameworks to guide agents toward the most relevant caller files during repository exploration. Experiments across eight models in four settings show that repository-level context utilization remains highly challenging even for state-of-the-art models, with GPT-5 achieving only 37.57% strict pass rate in the full-context setting. Agents augmented with our CCE toolkit consistently outperform all baselines across all evaluated models, with improvements of up to 7.56% in strict pass rate. We release our benchmark, code, and evaluation framework as open source for the NLP research community.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 28 of its 55 references that are in the map. First posted on arXiv 26 Mar 2026.
Builds on
28 of 55 references.
Closest ancestors · 4
Same direction, newest first
- 2025GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generation14 Apr
- 2025LocAgent: Graph-Guided LLM Agents for Code Localization12 Mar
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun
Other references · 24
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 233
- 2020IntelliCode Compose: Code Generation Using Transformercited by 227
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 171
12 more
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 140
- 2023Structured Chain-of-Thought Prompting for Code Generationcited by 138
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databasescited by 65
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2025LongCodeBench: Evaluating Coding LLMs at 1M Context Windowscited by 37
- 2024AlphaTrans: A Neuro-Symbolic Compositional Approach for Repository-Level Code Translation and Validationcited by 28
- 2025RPG: A Repository Planning Graph for Unified and Scalable Codebase Generationcited by 19
- 2025LoCoBench: A Benchmark for Long-Context Large Language Models in Complex Software Engineeringcited by 12
- 2025GRACE: Graph-Guided Repository-Aware Code Completion through Hierarchical Code Fusioncited by 4
- 2025XML Prompting as Grammar-Constrained Interaction: Fixed-Point Semantics, Convergence Guarantees, and Human-AI Protocolscited by 4
- 2025Understanding Chain-of-Thought Effectiveness in Code Generation: An Empirical and Information-Theoretic Analysiscited by 2
- 2024Human-Like Code Quality Evaluation through LLM-based Recursive Semantic Comprehensioncited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026FastContext: Training Efficient Repository Explorer for Coding Agents
- 2026RepoZero: Can LLMs Generate a Code Repository from Scratch?
- 2026E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch
- 2026TICoder: A Repository-Level Code Generation Framework with Test-Driven Planning and Implementation-Aware Reuse ↗
- 2026MRCoder: An Efficient Context Selecting Approach for Repository-Level Code Generation ↗
- 2026Large-scale Repository Engineering via Agent-Native Reusable Code Primitives
- 2024On The Importance of Reasoning for Context Retrieval in Repository-Level Code Editing
- 2025NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents