From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Level
Jia Li, Yuxin Su, Michael R. Lyu
TL;DR
This paper tackles the challenge of evaluating repository-level reasoning in autonomous code agents, addressing the gap between isolated code reasoning and real-world software ecosystems. It introduces RepoReason, a white-box diagnostic benchmark that uses abductive assertion verification and an execution-driven mutation framework to regenerate ground-truth states while preventing memorization. A cognitive diagnostic framework with three metrics—$ESV$ (reading load), $MCL$ (simulation depth), and $DFI$ (integration width)—quantifies reasoning bottlenecks and reveals an aggregation deficit, with $DFI$ being the principal limiting factor for frontier models. Evaluations across diverse models on real-world Python repositories demonstrate context overload and long-horizon state-tracking challenges, offering granular insights to guide the next generation of agentic software engineering tools.
Abstract
As large language models (LLMs) evolve into autonomous agents, evaluating repository-level reasoning, the ability to maintain logical consistency across massive, real-world, interdependent file systems, has become critical. Current benchmarks typically fluctuate between isolated code snippets and black-box evaluations. We present RepoReason, a white-box diagnostic benchmark centered on abductive assertion verification. To eliminate memorization while preserving authentic logical depth, we implement an execution-driven mutation framework that utilizes the environment as a semantic oracle to regenerate ground-truth states. Furthermore, we establish a fine-grained diagnostic system using dynamic program slicing, quantifying reasoning via three orthogonal metrics: $ESV$ (reading load), $MCL$ (simulation depth), and $DFI$ (integration width). Comprehensive evaluations of frontier models (e.g., Claude-4.5-Sonnet, DeepSeek-v3.1-Terminus) reveal a prevalent aggregation deficit, where integration width serves as the primary cognitive bottleneck. Our findings provide granular white-box insights for optimizing the next generation of agentic software engineering.
