SWE-Explore
收藏资源简介:
SWE-Explore是由上海交通大学等机构联合构建的代码仓库探索基准数据集,旨在精细评估智能编码代理在解决软件问题时的代码探索能力。该数据集包含848个实例,覆盖10种编程语言和203个开源仓库,每个实例平均包含4.3个核心文件及1,578行代码,数据源自SWE-bench Verified、SWE-bench-Pro等公开资源,并通过成功代理轨迹自动提取行级真实标注。数据集通过隔离代码探索与修复过程,为评估检索方法、智能代理的上下文选择效率提供标准化测试平台,专注于解决代码定位、证据发现等软件工程中的关键挑战。
SWE-Explore is a code repository exploration benchmark dataset jointly constructed by Shanghai Jiao Tong University and other institutions, aiming to precisely evaluate the code exploration capabilities of intelligent coding AI Agents when solving software engineering problems. This dataset contains 848 instances, covering 10 programming languages and 203 open-source repositories. Each instance includes an average of 4.3 core files and 1,578 lines of code. The dataset is sourced from public resources such as SWE-bench Verified and SWE-bench-Pro, with line-level ground truth annotations automatically extracted from successful agent trajectories. By isolating the code exploration and repair processes, it provides a standardized testbed for evaluating retrieval methods and the context selection efficiency of intelligent AI Agents, focusing on addressing key challenges in software engineering including code localization and evidence discovery.
数据集名称:SWE-Explore-Bench
核心定位:一个基于轨迹的基准测试,用于评估编码代理在编辑代码之前探索、定位和排序仓库上下文的能力。给定一个真实问题和一个仓库快照,探索器需要返回一个按相关性排序的源文件和行范围列表。SWE-Explore 会根据从成功的修复轨迹中提取的行级真实标签,对这些区域进行评分。
发布信息:
- 论文:arXiv:2606.07297
- 数据集:Hugging Face - SWE-Explore-Bench/SWE-Explore-Bench
- 代码:GitHub - Qiushao-E/SWE-Explore-Bench
- 许可证:MIT License
设计动机:
- 现有的仓库级编码基准通常评估整个修复流程,仅提供最终的成功/失败信号,这掩盖了代理是否真正找到了正确的上下文。
- SWE-Explore 将探索阶段独立出来进行直接评估,专注于代理在生成补丁之前读取或返回的代码区域。
- 提供了基于轨迹的标签(核心上下文和可选上下文)、行级监督(评分文件、区域和排序的行预算)以及修复感知验证。
数据集规模与组成:
- 问题数量:848 个问题。
- 开源仓库数量:203 个。
- 编程语言:覆盖 10 种编程语言。
- 数据内容:每个实例包含问题描述、仓库快照元数据、行级核心和可选真实标签、读取步骤来源以及基准元数据。
基准数据格式:
- 数据集以 JSONL 格式提供。
- 每个实例包含以下关键字段:
instance_id:SWE 风格的问题标识符。repo_path/repo_dir:仓库路径信息。ground_truth:包含核心文件、核心区域、可选区域、修改文件和主文件。read_step_info:读取步骤来源,用于行细化。meta:实例级元数据。
评估指标:
precision(行级精确率)recall(行级召回率)f1_score(F1 分数)hit_file_rate(命中核心文件的比率)noise_file_rate(预测文件中非核心/可选文件的比率)hit_region_rate(命中核心区域的比率)noise_region_rate(预测区域中非核心/可选区域的比率)weighted_core_coverage(加权核心覆盖率)context_efficiency(上下文效率)recall_at_K/ndcg_at_K(排名感知指标)first_useful_hit(首次有用命中的归一化排名)
支持的探索器:
- 本地检索:
bm25,tfidf,potion,rag,embed,swerank - 简单基线:
oracle,random,simple_rule - 代理 CLI:
claude_code,cursor - 学术代理:
autocr,cosil,locagent,orcaloca,mini_swe_agent,awe_agent

- 1SWE-Explore: Benchmarking How Coding Agents Explore Repositories上海交通大学; 新疆大学; 伊利诺伊大学厄巴纳-香槟分校; 独立研究员; 香港中文大学 · 2026年



