推理努力而非工具访问保障代码生成Agent首次可靠性

Reasoning effort, not tool access, buys first-try reliability in agentic code generation: an observational study

精选理由

这篇研究发现,给编程Agent加测试工具不如直接提升推理能力——首次成功率能从28%冲到89%,成本只多一点点,别被花哨功能忽悠了。

AI 摘要

90次独立运行构建同一应用,基于14条标准(42分满分)评分。前沿模型接近满分,低成本本地模型仅24-37分。容器部署首次失败率44%,测试工具使成本增加42-68%但未改善功能分数。推理努力从High提升到xHigh,首次完美运行率从28%升至89%,纠正提示减少约5倍,成本仅增9-29%。设计提示将视觉质量从3.0提升至4.5(5分制),但未提升功能分数。

原文 · arXiv cs.AI

Reasoning effort, not tool access, buys first-try reliability in agentic code generation: an observational study

Agentic coding assistants are increasingly given extra capabilities, such as browser based testing tools and design oriented system prompts, on the assumption that more capability yields better software. This study tested that assumption directly. Ninety independent agent runs built the same application, a real time retrospective board, from one detailed specification, each scored on a fixed 14 criterion functional rubric (42 point maximum) and a visual quality review. The runs spanned several model generations, two agent harnesses, two reasoning effort levels, a testing tool, and two design oriented prompts. Capability tier dominated: frontier models clustered near the ceiling while a low cost local model fell to 24 to 37 points. A criterion level analysis revealed what run totals conceal. Container deployment was the dominant defect, failing first try in 44 percent of runs, with its failure rate shifting sharply across model generations while mean totals moved less than a point. The testing tool raised cost by 42 to 68 percent without improving functional score or reliability, even on interface visible criteria. Raising reasoning effort from High to xHigh lifted first try perfect runs from 28 percent to 89 percent and cut corrective prompts about five fold, for 9 to 29 percent more cost. A design oriented prompt raised visual quality, 4.5 versus 3.0 on a 5 point scale, without lifting function, and a one paragraph paraphrase of its directive reproduced the entire lift. The practical lesson is to match the fix to the failure: most first run failures came from weak reasoning, which a stronger model or more effort prevents, not from visible flaws a checking tool would catch.

推理努力而非工具访问保障代码生成Agent首次可靠性 · AI 热点