CoreCodeBench: A Configurable Multi-Scenario Repository-Level Benchmark

Lingyue Fu, Hao Guan, Bolun Zhang, Haowei Yuan, Yaoming Zhu, Jun Xu, Zongyu Wang, Lin Qiu, Xunliang Cai, Xuezhi Cao, Weiwen Liu, Weinan Zhang, Yong Yu · OpenReview

Abstract

As Large Language Models (LLMs) demonstrate increasingly sophisticated code processing capabilities, evaluating their performance on engineering-level code remains challenging. Existing repository-level benchmarks primarily focus on single scenarios, such as code generation or bug fixing, without adequately capturing the diversity and complexity of real-world software or project engineering workflows. Furthermore, these benchmarks suffer from limited controllability in question positioning and reliability issues in their generated test cases. To address these limitations, we present CorePipe, a fully automated pipeline that converts repositories into comprehensive test cases, and introduce CoreCodeBench, a configurable multi-scenario repository-level benchmark. To simulate real engineering scenarios, CorePipe generates three types of atomic questions (Development, BugFix, and Test-Driven Development) specifically targeting core code segments. These atomic questions are further combined into three types of composite questions, with difficulty levels flexibly adjusted through hyperparameter tuning. CoreCodeBench provides a comprehensive and extensive repository-level benchmark to investigate the applicability of LLMs in real-world engineering projects. Experiments with 16 LLMs across diverse scenarios reveal varying capabilities and offer multi-dimensional insights into LLM performance in engineering contexts.

Introduction: The Need for Decoupled Evaluation

Evaluating Large Language Models (LLMs) for software engineering has hit a wall. Traditional benchmarks often focus on isolated functions or provide a monolithic "pass rate" that obscures specific strengths and weaknesses. These approaches suffer from "entangled capabilities," where a single score fails to distinguish between generation, debugging, and constraint-following skills. Furthermore, static benchmarks are prone to data contamination and performance saturation as models evolve.

CoreCodeBench overview and model performance across different task types.

To address these issues, we introduce CoreCodeBench, a configurable repository-level benchmark that decouples code intelligence into three cognitive dimensions: Development (Dev), BugFix, and Test-Driven Development (TDD).

The COREPIPE Framework

The foundation of CoreCodeBench is COREPIPE, an automated pipeline designed to transform real-world Python repositories into a suite of 1,524 tasks. The process involves three main steps:

  1. Context Extraction: COREPIPE constructs a "Function Call Tree" from the repository, mapping how functions interact and identifying "core" logic blocks essential for passing unit tests.
  2. Atomic Task Generation: It isolates functions to create three task versions:
  3. Development (Dev): Reconstructing code from natural language descriptions.
  4. BugFix: Fixing realistic, human-like bugs designed by a cascaded LLM approach (e.g., GPT-4o designing a logic error and Qwen implementing it).
  5. TDD: Implementing code based solely on unit test specifications.
  6. Composite Task Scaling: Atomic tasks are aggregated into subgraphs to simulate complex engineering workflows. Difficulty is controlled by adjusting hyperparameters like Dependency Depth (call chain length) and Task Quantity (number of simultaneous edits).
The three-step COREPIPE pipeline for context extraction and task generation.

Experimental Results and Insights

Experiments with state-of-the-art models, including Gemini-3-Pro and Claude-4.5, reveal significant gaps in current LLM capabilities when moving beyond simple code generation.

Capability Misalignment

A model's proficiency in writing new code (Dev) does not guarantee success in debugging (BugFix). For instance, the model Kimi-K2 excels at pure Development but sees a massive 35% drop in performance on BugFix or TDD tasks. Low Intersection-over-Union (IoU) scores between task types suggest that models often solve a problem in one format but fail the exact same logic in another, indicating a fragmented "mental model" of code execution.

The "Composite" Wall and Linearity Trap

While models perform well on atomic tasks, they struggle immensely with composite tasks. In the Multi-BugFix category, every model tested failed to solve a single instance (0% AC@1). Furthermore, LLMs often fall into a "linearity trap," implementing functions in the order they appear in the prompt rather than following logical dependency order.

Data Quality and Controllability

CoreCodeBench achieves a 78.55% validity yield, significantly higher than the retention rates of benchmarks like SWE-bench. Its configurable nature—allowing adjustments to mask length and dependency depth—provides a sustainable way to test future, more powerful LLMs without hitting performance saturation.

Conclusion

CoreCodeBench offers a multi-dimensional lens for evaluating LLMs in real-world software engineering scenarios. By decoupling capabilities and offering controllable difficulty, it exposes the logic-syntax gaps and reasoning limitations in current models. Future work will expand the benchmark to other programming languages and explore automated test generation to scale across more repositories.

Summary updated

BibTeX
@misc{fu2025corecodebench,
  author = {Lingyue Fu and Hao Guan and Bolun Zhang and Haowei Yuan and Yaoming Zhu and Jun Xu and Zongyu Wang and Lin Qiu and Xunliang Cai and Xuezhi Cao and Weiwen Liu and Weinan Zhang and Yong Yu},
  title = {{CoreCodeBench: A Configurable Multi-Scenario Repository-Level Benchmark}},
  year = {2025},
  eprint = {2507.05281},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.05281},
}
Figure