Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Models
14 Jul · Yubo Wang, Jiarong Liang, Yuxuan Zhang +5 · arXiv:2607.12463
Coding agents must integrate external tool returns into ongoing reasoning - a capability that standard left-to-right pretraining on code exposes only in its forward direction. We observe that the action-observation-continuation loop of a coding agent is structurally isomorphic to a function call site, where a caller binds arguments, a callee returns a value computed elsewhere, and downstream code consumes that…