AST-level patching with edit-size review for repository repair agents
Repository repair agents can now be packaged around AST-level read and edit tools, with review focused on named code entities and patch size. CodeStruct reports that this interface lifts SWE-Bench Verified Pass@1 by 1.2 to 5.0 points for frontier models, and GPT-5-nano jumps from 19.6 to 40.4 as empty-patch failures fall from 46.6% to 7.2%. PRepair points to the same operational change on the training side: reward small correct edits, because pass rate alone hides over-editing. On HumanEvalFix, Qwen2.5-Coder-7B moves from 47.44 to 81.62 on fix_1@1 with only a 1.37-point pass@1 gain. For teams shipping internal code agents, the build is concrete: expose functions, classes, and methods as the editable unit; reject syntax-breaking edits at the tool layer; log edit distance per successful patch; and review agents on minimal accepted diffs, not only test success. The first users are repository maintenance teams where bad patches fail in formatting, touch too much unrelated code, or create long review cycles.