arXiv '26

Building a Unified Inline Code Editing Model for GitHub Copilot

We unify code completion, nearby edits, and long-distance edits in a single model that predicts anchored diff patches, enabling multiple edits per response.

Julia Gong · Benjamin Liggett · Shengjie Ma · Ulugbek Abdullaev · Zhehui Liao · Benjamin Steenhoek · Gaurav Mittal · Fuhui Fang · Satarupa Guha · Hang Zhao · Anand Mooga · Cheng Long · Benjamin Simmonds · Soojin Choi · Luciana Abud · Nathan Halstead · Alexandru Dima · Yu Hu · Elsie Nallipogu

We present a unified model for code completion, nearby edits, and long-distance edits using a sequence of anchored diff patches. The model can produce multiple edits in one response, allowing the client to cache later suggestions.

The paper describes the training, evaluation, and client design behind the model, including synthetic multi-edit supervision and reinforcement learning. Online experiments measure improvements in suggestion latency, output tokens, and dismissed suggestions.