CodeScout: 为软件代理提供上下文化的问题陈述增强
CodeScout: Contextual Problem Statement Enhancement for Software Agents
AI总结:
CodeScout通过轻量级预探索将模糊请求转化为完整问题陈述,提升软件代理性能,实验表明其在解决率上提升20%。
摘要:
当前AI驱动的代码辅助工具常因缺乏充分的任务上下文和需求规范而表现不佳。最近对软件工程代理的分析表明,对模糊请求的失败高度相关于长轨迹,包括过度探索或重复应用相同修复而无适当进化或测试,导致软件开发任务的次优结果。我们引入CodeScout,一种上下文查询细化方法,通过轻量级预探索将模糊用户请求系统性地转化为全面、可操作的问题陈述。我们的关键创新是证明在任务执行前的结构化分析可以补充现有代理能力,而无需修改其底层架构。CodeScout进行针对性上下文限定,开展多视角分析,考察潜在修复和探索机会,然后将这些洞察综合成增强的问题陈述,包含重现步骤、预期行为和针对性探索提示。这种预探索直接针对识别的失败模式,通过减少非收敛代理轨迹并用自然语言空间澄清用户意图。我们使用最先进的代理框架和语言模型在SWEBench-Verified上评估CodeScout,证明其在解决率上比默认基线方法提升20%,最多额外解决27个问题。我们的结果表明,通过上下文分析的系统查询细化代表了增强AI代码辅助能力的有前途方向。
英文摘要:
Current AI-powered code assistance tools often struggle with poorly-defined problem statements that lack sufficient task context and requirements specification. Recent analysis of software engineering agents reveals that failures on such underspecified requests are highly correlated with longer trajectories involving either over-exploration or repeated attempts at applying the same fix without proper evolution or testing, leading to suboptimal outcomes across software development tasks. We introduce CodeScout, a contextual query refinement approach that systematically converts underspecified user requests into comprehensive, actionable problem statements through lightweight pre-exploration of the target codebase. Our key innovation is demonstrating that structured analysis before task execution can supplement existing agentic capabilities without requiring any modifications to their underlying scaffolds. CodeScout performs targeted context scoping, conducts multi-perspective analysis examining potential fixes and exploration opportunities, then synthesizes these insights into enhanced problem statements with reproduction steps, expected behaviors, and targeted exploration hints. This pre-exploration directly addresses the identified failure patterns by reducing non-converging agent trajectories while clarifying user intent in natural language space. We evaluate CodeScout using state-of-the-art agentic scaffolds and language models on SWEBench-Verified, demonstrating a 20\% improvement in resolution rates with up to 27 additional issues resolved compared to the default baseline method. Our results suggest that systematic query refinement through contextual analysis represents a promising direction for enhancing AI code assistance capabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。