The Physical Cost of Context: Quality-Constrained Resource Accounting for Coding Agents
26 Oct · Zhongming Yu, Yitong Ma, Hengjia Yu +4 · arXiv:2610.34763
Coding agents resend a growing context on every model call, and context policies are usually judged by the prompt tokens they save. Executed work also depends on call count and prefix reuse: a caching runtime prefills only the tokens after the longest cached prefix. A shorter prompt can therefore cost more if it rewrites cached history. Our quality-gated protocol splits executed prefill into logical prompt minus…