跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2610.15093 (cs)
[提交于 2026年10月10日]

标题:TurnCost: Turns, Not Observations: Cache-Aware Loop Engineering for Coding Agents

作者:Pramod Kumar, Raj Kumar Pandey
查看论文《TurnCost: Turns, Not Observations: Cache-Aware Loop Engineering for Coding Agents》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:AI coding agents operate in iterative loops: they modify code, run tools, inspect the results, and decide what to do next. We call the design of this process loop engineering, which includes context management, model selection, compaction, and termination. Existing efficiency work mainly compresses tool observations or routes selected turns to cheaper models, but the practical opportunity for these optimizations remains unclear. We analyze 600 publicly released coding-agent trajectories spanning two agent scaffolds and two language models. Median observations contain only 118-286 tokens, while the large build logs commonly used to motivate compression occur near the ninety-ninth percentile. Moreover, 98.6% of input tokens are served from a prefix cache, so flat input pricing overestimates loop cost by roughly 7x on average under near-ideal caching. We derive and empirically validate a closed-form break-even condition for model delegation. Delegation increases cost in half of the evaluated settings, near the predicted boundary. More broadly, turn count explains 84% of the variance in log trajectory cost, compared with 4% for mean observation size; the most expensive trajectories have the most turns despite having the smallest observations. These associations suggest that observation-focused methods target a secondary cost factor, and identify unnecessary turns as the larger and largely unexamined opportunity, though we do not establish that turns can be removed while holding task success fixed. We release TurnCost, a tool for re-scoring trajectory corpora under alternative caching, pricing, compression, and routing policies.
主题: 软件工程 (cs.SE); 人工智能 (cs.AI); 新兴技术 (cs.ET); 机器学习 (cs.LG)
引用方式: arXiv:2610.15093 [cs.SE]
  (或者 arXiv:2610.15093v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2610.15093
相关 DOI: https://doi.org/10.1145/3843779.3844635

提交历史

来自:Raj Kumar Pandey
[v1] 2026年10月10日 星期六 18:03:24 UTC (129 KB)
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-10
切换浏览方式为:
cs
cs.AI
cs.ET
cs.LG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站