paper-with-me

Papers

RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbations

2026-05-25 · Hanyu Li, Yichi Zhang, Speed Zhu, Hang Su, Jun Zhu, Yinpeng Dong arxiv

Code agents are currently having skillful performance on repository-level software engineering benchmarks, but it remains unclear whether success on end-to-end tasks such as issue resolution truly reflects repository context reasoning, the ability to identify the task-relevant information across multiple files and reason over the relations among them. To investigate this question, we introduce RepoMirage, a two-stage evaluation suite built on SWE-Bench Verified that adopts perturbation as a diagnostic tool to increase the demand for context reasoning by transforming how the repository is exposed. First, RepoMirage-Perturb applies three types of semantics-preserving repository-level perturbations, revealing a clear performance drop when correct solving requires broader context access. RepoMirage-Extend further turns perturbation-targeted structural bottlenecks into explicit tasks beyond issue resolution, where the average performance declines from 66.8% in the original setting to 25.3%, indicating a significant deficiency in repository context reasoning. Further trajectory analysis reveals an exploration drift, where agents access broader repository context but fail to turn it into effective structure information. Motivated by this observation, we propose RepoAnchor, a structure-first prototype workflow that separates repository exploration from downstream problem solving, and show that explicit structural scaffolding yields notable gains. These results uncover an previously overlooked gap in repository context reasoning for code agents and suggest that stronger structure-aware methods are potential to improve them.

📄 PDF Abstract BibTeX arXiv:2605.26177

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

On The Importance of Reasoning for Context Retrieval in Repository-Level Code Editing

2024-06-06 · Alexander Kovrigin, Aleksandra Eliseeva, Yaroslav Zharov, Timofey Bryksin

Recent advancements in code-fluent Large Language Models (LLMs) enabled the research on repository-level code editing. In such tasks, the model navigates and modifies the entire codebase of a project according to request…

Retrieval

In Line with Context: Repository-Level Code Generation via Context Inlining

2026-01-01 · Chao Hu, Wenhao Zeng, Yuling Shi, Beijun Shen 외 arxiv

Repository-level code generation has attracted growing attention in recent years. Unlike function-level code generation, it requires the model to understand the entire repository, reasoning over complex dependencies acro…

Code Generation

Is BERT Blind? Exploring the Effect of Vision-and-Language Pretraining on Visual Language Understanding

2023-03-21 · CVPR 2023 1 · Morris Alper, Michael Fiman, Hadar Averbuch-Elor

Most humans use visual imagination to understand and reason about language, but models such as BERT reason about language using knowledge acquired during text-only pretraining. In this work, we investigate whether vision…

Knowledge ProbingLanguage ModellingNatural Language UnderstandingVisual Reasoning

ProjAgent: Procedural Similarity Retrieval for Repository-Level Code Generation

2026-07-09 · QiHong Chen, Aaron Imani, Iftekhar Ahmed arxiv

Repository-level code generation requires implementing target functions while accounting for complex cross-file dependencies and project-specific conventions. Existing retrieval methods predominantly rely on lexical, str…

Semantic SimilaritySemantic RetrievalCode Generation

RepoReviewer: A Local-First Multi-Agent Architecture for Repository-Level Code Review

2026-03-17 · Peng Zhang arxiv

Repository-level code review requires reasoning over project structure, repository context, and file-level implementation details. Existing automated review workflows often collapse these tasks into a single pass, which …