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.
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.