arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.20779cs.AIcs.CYcs.SE
收藏

SWE-chat:从真实用户中编码代理交互

SWE-chat: Coding Agent Interactions From Real Users in the Wild

Stanford University(斯坦福大学)

Joachim Baumann, Vishakh Padmakumar, Xiang Li, John Yang, Diyi Yang, Sanmi Koyejo

AI总结:

SWE-chat是首个大规模真实编码代理会话数据集,包含6000个会话,揭示了编码代理在真实场景中的使用模式和失败模式,发现代理生成的代码效率低下且存在更多安全漏洞。

摘要:

AI编码代理正在被大规模采用,但缺乏关于人们如何实际使用它们以及其输出在实践中有多有用的经验证据。我们提出了SWE-chat,这是首个大规模的真实编码代理会话数据集,收集自开源开发者。该数据集目前包含6000个会话,包含超过63,000个用户提示和355,000个代理工具调用。SWE-chat是一个活数据集;我们的收集管道会自动且持续地发现和处理来自公共仓库的会话。利用SWE-chat,我们提供了对真实世界编码代理使用和失败模式的初步经验描述。我们发现编码模式是双峰的:在41%的会话中,代理几乎编写所有提交的代码(

英文摘要:

AI coding agents are being adopted at scale, yet we lack empirical evidence on how people actually use them and how much of their output is useful in practice. We present SWE-chat, the first large-scale dataset of real coding agent sessions collected from open-source developers in the wild. The dataset currently contains almost 18,000 sessions, comprising more than 229,000 user prompts and 2 million agent tool calls. SWE-chat is a living dataset; our collection pipeline automatically and continually discovers and processes sessions from public repositories. Leveraging SWE-chat, we provide an initial empirical characterization of real-world coding agent usage and failure modes. We find that coding patterns are bimodal: in 41% of sessions, agents author virtually all committed code ("vibe coding"), while in 25%, humans write all code themselves. Despite rapidly improving capabilities, coding agents remain inefficient in natural settings. Only 59% of all agent-produced code survives into user commits, and agent-written code introduces more security vulnerabilities than code authored by humans. Furthermore, users push back against agent outputs - through corrections, failure reports, and interruptions - in 50% of all turns. By capturing complete interaction traces with human vs. agent code authorship attribution, SWE-chat provides an empirical foundation for moving beyond curated benchmarks towards an evidence-based understanding of how AI agents perform in real developer workflows.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑