Metraipolis › archive › dc_0acd5c737ade

The Physical Cost of Context: Quality-Constrained Resource Accounting for Coding Agents — arXiv:2610.34763

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.34763
License (as archived)
CC0-1.0
Archived
2026-10-27T08:02:08.875Z
SHA-256 of the archived text
0c2440b8d24b3519cd134988bbdabdb5ec1e8db7754edbd92aea21ab95ab0170
Stable URL of this page
https://metraipolis.com/documento/dc_0acd5c737ade

How to cite

The Physical Cost of Context: Quality-Constrained Resource Accounting for Coding Agents — arXiv:2610.34763 — arXiv (en), https://arxiv.org/abs/2610.34763 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0acd5c737ade (Metraipolis archive dc_0acd5c737ade, sha256 0c2440b8d24b3519cd134988bbdabdb5ec1e8db7754edbd92aea21ab95ab0170)
BibTeX
@misc{dc0acd5c737ade,
  title = {The Physical Cost of Context: Quality-Constrained Resource Accounting for Coding Agents — arXiv:2610.34763},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.34763},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0acd5c737ade; sha256 0c2440b8d24b3519cd134988bbdabdb5ec1e8db7754edbd92aea21ab95ab0170},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.34763. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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 reused prefix and measures KV residency, time, and energy. On 450 localization cases derived from SWE-rebench V2, preloading ten retrieved blocks (Eager) and adding anchored history compaction (Compact) both pass a five-point non-inferiority gate. In a separate 900-cell study, Eager cuts model calls by 35.7% and the GPU-energy proxy by 33.2% against on-demand search (Grep); Compact saves nothing further. Enabling prefix caching leaves Eager's prompt volume similar (+8.3%; its 95% CI spans zero) but cuts its uncached prefill by 67.7%. Deleting history can turn a token saving into extra work. With mini-SWE-agent on 100 SWE-bench Verified instances, keeping only the last five observations (Mask-5) cuts Eager's prompt volume by 33.3% but loses 135.9k reusable tokens per task. Uncached prefill rises by 608.5%, the energy proxy by 125.6%, and the policy misses the quality gate. Policies thus save physical work by shortening the trajectory and can multiply it by editing reusable history.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2610.34763 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-27T07:55:30.936Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).