arXiv:2606.19613cs.SEcs.AI2026-06

测试编程智能体在100轮修改请求下的持续编码能力

StaminaBench: Stress-Testing Coding Agents over 100 Interaction Turns

论文配图:StaminaBench: Stress-Testing Coding Agents over 100 Interaction Turns
图 1 · 摘自论文原文
  • 通过100轮程序化变更请求,模拟真实长时间编程场景
  • 所有模型均在5-6轮内失败,暴露连续开发中的缺陷风险
  • 反馈机制和优秀框架可提升性能12倍,适合长期编程研究

我们提出StaminaBench,一个衡量编程智能体耐力的基准:能连续处理多少轮变更请求而不失败。不同于传统任务完成率指标,该基准更贴近真实长时间编程场景。在StaminaBench中,智能体需实现并迭代修改一个REST API服务器,经历可调节数量的程序化生成变更请求——实验中设为100轮,代码量最高达6,000行。测试完全由程序生成,不依赖大模型,确保可复现性;变更序列来自硬编码或大模型驱动采样器,均受限于结构化动作空间以保证合法性。智能体与服务运行在隔离环境,通过HTTP通信,实现全黑盒、语言无关的测试。我们在20个100轮场景下评估六种智能体框架搭配七种开源大模型,发现:(1) 所有模型在5-6轮内失败,证实无充分测试的连续编程易出错;(2) 反馈测试结果并允许重试可使成功轮数提升至12倍;(3) 优秀框架至关重要:强模型在最佳与最差框架间性能相差6倍,弱模型则无论框架均失败。我们开源该基准及生成任务,推动多轮编程智能体行为研究。基准代码与数据:github.com/amazon-science/StaminaBench。

原文摘要 · Abstract (English)

We introduce StaminaBench, a benchmark that measures the stamina of coding agents: how many consecutive interaction turns (change requests) they can handle before failing. Unlike the prevailing fraction-of-tasks-solved metric, this matches real vibe-coding where sessions run dozens or hundreds of turns. In StaminaBench, agents implement a REST API server and modify it across a tunable number of procedurally generated follow-up change requests - 100 in our experiments, resulting in codebases of up to 6,000 lines. Tests are generated fully programmatically without LLM involvement, ensuring reproducibility and reliability; change sequences are drawn from either a hardcoded or LLM-driven sampler, both constrained to a structured action space to ensure changes are valid. The agent and the server run in an isolated environment and communicate with the benchmark through HTTP, making testing fully black-box and language-agnostic. We evaluate six agent harnesses paired with seven open-source LLMs across 20 scenarios of 100 turns each and find that: (1) all the tested models fail within 5-6 turns, confirming that vibe-coding-style programming without thorough testing produces bugs; (2) passing test feedback back to the agent and allowing it to retry improves passed turn count by up to 12x; and (3) a good harness is required for strong performance: stronger models exhibit up to a 6x gap between their best and worst harness, while weaker models fail with any harness. We release the benchmark and the generated tasks to enable further research into multi-turn coding agent behavior. Benchmark code and data: github.com/amazon-science/StaminaBench.

编程智能体多轮交互基准测试

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。