Answers are grounded in this paper and cite their sources.
Automatic code-repair agents such as SWE-agent operate at the repository level, generating patches that touch multiple files and functions. This granularity increases token cost and complicates verification: a correct fix inside one function can be masked by unrelated changes. We formulate the scope control problem as separate from verification and propose MINIMAL-INTERVENTION REPAIR, a pipeline that isolates the faulty function through AST analysis, passes only that function to the language model, and verifies the candidate by executing tests before commit. The language model is treated as a black-box oracle. The architecture requires no fine-tuning and is compatible with any API. This is a position paper: we define the pipeline stages, pseudocode for localization and isolation, classes of functions that cannot be isolated, and an evaluation protocol on QuixBugs with ablations and a green-but-wrong patch metric.
No takes yet. Share an insight, caveat, or question.
Vladislav Tishkov (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: