Skip the Compressor: Coding Agents Fix More Issues When They Pick Whole Files

Xiaocong Yang, Rishit Chatterjee, Himanshu Udupi, Vikram Ramavarapu, ChengXiang Zhai

University of Illinois Urbana-Champaign

Published October 15, 2026 · on the feed October 19, 2026 · ▲ 4 · arXiv 2610.21073

The abstract

A coding agent works on repositories that can be far larger than its context window can hold. Prompt compressors and retrievers offer solutions to this problem, but patching an issue needs two things at once: the files that must change, and their code exactly as written, since the model must reproduce the lines it edits. Retrievers rank code by its similarity to the issue rather than by whether it must change, and compressors delete text to fit the budget. We show that at an equal token budget, an agent resolves more issues when the budget goes to choosing which files to show verbatim, as our simple selector CQ2-CARE does, than when it goes to pruning tokens or retrieving chunks. We fit every context to the same per-issue budget on 300 recent SWE-rebench issues and grade each patch with the benchmark's tests. With GPT-5.6 and Claude Opus 5, CQ2-CARE resolves 43.7% and 46.7% of the issues, 6.3 points more than the best of three compressors with either model, and 9.3 and 12.7 points more than the best of three retrievers. CQ2-CARE even resolves more issues than two methods trained for issue resolution, SweRank (by 0.7 and 1.7 points) and SWE-Pruner (by 2.0 and 7.3). Our analysis shows the defects of the baseline methods: retrievers often miss the files to edit, and compressors keep them but alter their text, so fewer patches apply. Exact-file selection needs no compression model and shows every line as the repository has it, so the model can quote the code it edits.

The Brief

2:48

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Skip the Compressor. Coding Agents Fix More Issues When They Pick Whole Files. By Xiaocong Yang and four others, from the University of Illinois Urbana-Champaign. Published on the fifteenth of October. Its code repository is worked out: about forty source files, with a readme and a licence.

A coding agent often works on a repository far bigger than its context window can hold, so something has to decide what the model gets to see. Prompt compressors and retrievers are the usual answers. The authors argue that patching an issue needs two things at the same time: the files that must change, and their code exactly as written, because the model has to reproduce the lines it edits. Retrievers rank code by how similar it is to the issue, not by whether it needs to change. Compressors delete text to fit the budget.

The claim follows from that. At an equal token budget, an agent resolves more issues when the budget is spent choosing which whole files to show verbatim than when it is spent pruning tokens or retrieving chunks. The authors' simple selector for doing this is called CQ2-CARE.

The test uses three hundred recent SWE-rebench issues. Every context is fitted to the same per-issue budget, and each patch is graded with the benchmark's own tests. With GPT-5.6, CQ2-CARE resolves forty-three point seven percent of the issues. With Claude Opus 5, it resolves forty-six point seven percent. With either model, that is six point three points more than the best of three compressors.

Against the best of three retrievers, the margins are wider: nine point three points with GPT-5.6, and twelve point seven points with Claude Opus 5. CQ2-CARE also resolves more issues than two methods trained specifically for issue resolution. It beats SweRank by zero point seven points with the first model and one point seven with the second, and SWE-Pruner by two points with the first and seven point three with the second.

The analysis locates where the baselines go wrong. Retrievers often miss the files that need editing in the first place. Compressors do keep those files, but they alter the text, so fewer of the resulting patches apply.

The setting is specific. The evidence comes from three hundred issues on one benchmark, two models, and an equal token budget per issue, with the comparison set made of three compressors, three retrievers, and two trained methods. Within that setting, the result is consistent across both models. The abstract does not report other budgets or other benchmarks, so how far the gap holds beyond this setup is left open here.

Fidelity of the text turns out to matter as much as relevance. A patch has to quote the code it changes, and exact-file selection shows every line as the repository has it, with no compression model involved at all. Under a fixed budget, spending tokens on whole files kept intact beat spending them on text that had been pruned, or on chunks ranked by similarity.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.