Qirui Jin
Author directory2026
SWE-Edit: Rethinking Code Editing for Efficient SWE-Agent
Yikai Zhang | Jiaxin Pei | Kenan Li | Qirui Jin | Maoquan Wang | Jin Pan | Yu Kang | Shengyu Fu | Elsie Nallipogu | Junjie Hu | Yufan Huang | Zijian Jin
Findings of the Association for Computational Linguistics: EMNLP 2026
Yikai Zhang | Jiaxin Pei | Kenan Li | Qirui Jin | Maoquan Wang | Jin Pan | Yu Kang | Shengyu Fu | Elsie Nallipogu | Junjie Hu | Yufan Huang | Zijian Jin
Findings of the Association for Computational Linguistics: EMNLP 2026
Large language model agents have made strong progress on software engineering, yet current systems suffer from a context coupling problem: the standard code editing interface conflates code inspection, modification planning, and edit execution within a single context window, forcing agents to interleave exploratory viewing with strictly formatted edit generation. Irrelevant context accumulates and edit reliability degrades. We propose SWE-Edit, which decomposes the editing interface into two specialized subagents: a Viewer that extracts task-relevant code on demand, and an Editor that executes modifications from high-level natural language plans—letting the main agent focus on reasoning while delegating context-intensive operations to clean context windows. We further show that effective edit-format selection can be trained into a small model rather than requiring frontier-scale capacity: GRPO training on Qwen3-8B improves edit success by 12.5 pp and brings an 8B open-source editor to parity with GPT-5-nano on downstream SWE-Bench resolve rate, with the learned adaptive find-replace/whole-file-rewrite policy contributing primarily on the cost axis (-11.8% agent cost). To enable rapid editor iteration, we release PR-Edit, a lightweight editor-level evaluation that rank-orders the editor models we test consistently with their downstream SWE-Bench resolve rate. We release our code at https://github.com/microsoft/SWE-Edit.
ChainSWE: Benchmarking Coding Agents on Multi-Bug Software Maintenance
Qirui Jin | Lingching Tung | Kenan Li | Qiyang Shi | Yushi She | Huanzhong Jia | Harrison Zhao | Kejing Xia | Zhenbang Du | Jiaxin Pei | Zhenyu Zhang | Zhen Qi | Yuyan Duan | Wenke Lee | Zijian Jin
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Qirui Jin | Lingching Tung | Kenan Li | Qiyang Shi | Yushi She | Huanzhong Jia | Harrison Zhao | Kejing Xia | Zhenbang Du | Jiaxin Pei | Zhenyu Zhang | Zhen Qi | Yuyan Duan | Wenke Lee | Zijian Jin
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Language model (LM) agents are increasingly deployed to maintain codebases over extended periods, fixing streams of related defects while carrying context from one fix to the next. Yet existing software engineering (SWE) benchmarks evaluate models one bug at a time: the repository is reset, the codebase is re-read, and a single self-contained issue is graded in isolation. This setting collapses a continuous maintenance workflow into a series of independent sessions, ignoring the cumulative dependencies that make real-world bug fixing challenging. To bridge this gap, we introduce ChainSWE, the first benchmark for evaluating agents on sequential, dependent bug fixes within a shared codebase. We collect chronological chains of 304 issues across 54 Python projects, mined from six SWE-bench-family datasets. Our evaluation across a range of agents and models reveals a consistent performance drop by **up to 70%** as the chain length increases. Our data and code is available at [C-lister/ChainSWE](https://huggingface.co/datasets/C-lister/ChainSWE).