RepoEviAgent: Scalable Synthesis of Evidence-Grounded Repository-Level Question Answering Tasks

Aoqi Hu, Yueao XingarXiv 2026

TL;DR

Reading static code is one thing; spinning up a complex, multi-file codebase and executing it to figure out why it behaves a certain way is quite another. RepoEviAgent is an automated, multi-agent assembly line that mines millions of GitHub pull requests, builds live execution sandboxes across five programming languages, and generates deep, runtime-verified Q&A tasks. Not only does it expose surprising blind spots in frontier AI coding models via a new benchmark (RepoEviQA), it also generates synthetic training data that dramatically boosts smaller open-weights models.

What Problem Does This Paper Address?

If you’ve ever inherited a massive legacy codebase at 4:00 PM on a Friday, you know you don't understand it just by reading files like a novel—you poke it, run tests, check dependencies, and watch it execute. Yet, when we train or evaluate AI coding agents on codebase Question Answering (Q&A), we mostly treat code like static text, testing semantic retrieval rather than dynamic investigation.

Meanwhile, existing executable benchmarks (like SWE-bench) focus heavily on bug fixing using pass/fail unit tests—which don't translate to open-ended architectural or diagnostic questions—and are overwhelmingly stuck in the Python ecosystem. Furthermore, mining raw GitHub history is noisy: millions of pull requests (PRs) are just typo fixes or config tweaks. Setting up clean, reproducible execution environments across languages like C++ or Go manually is an exhausting bottleneck.

Comparison between manual data synthesis and RepoEviAgent

Methods

The authors replace human sweat with RepoEviAgent, a two-stage pipeline combining strict data curation with a role-specialized multi-agent system:

  1. Quality-Aware Candidate Mining (Stage 1): Starting with 8,477 popular GitHub repos and ~2.48 million merged PRs (from 2020–2025), the pipeline filters out superficial commits. It enforces structural gates (50–1,000 lines changed across $\le 50$ files, plus a non-empty test patch) and uses LLMs (DeepSeek V4 Flash and GLM 5.3) to align PRs with original issue reports and score them on behavioral clarity and engineering value.
  2. Sandbox Multi-Agent Synthesis (Stage 2): Qualified repos enter isolated Docker sandboxes built on language-level base images (Python, Go, TypeScript, C, and C++). Three specialized agents take over:
  3. Environment Builder Agent: Reads CI configs, installs dependencies, and runs tests. An independent deterministic validator double-checks that tests actually pass and no version-controlled files were secretly altered.
  4. QnA Synthesis Agent: Explores the live repo, traces cross-module calls, runs verification code to gather runtime evidence, and writes a complex Q&A pair alongside strict grading rubrics (must-have positive facts and disqualifying negative statements).
  5. Judge Agent: Evaluates reference answers against the rubrics to ensure task quality.
Overview of the automated SWE data synthesis pipeline

Finally, the authors generate Supervised Fine-Tuning (SFT) data via trajectory distillation: they let an expert model (GLM-5.3) solve verified tasks in up to 250 bash-interaction turns, keeping only trajectories that pass every single mandatory rubric as graded by Claude Opus 4.6.

Datasets

  • Synthesized Pool & SFT Data: RepoEviAgent generated 28,467 codebase Q&A instances, which were distilled into 128K- and 256K-token context SFT trajectory datasets.
  • RepoEviQA (New Benchmark): A curated, manually reviewed subset of 334 tasks across 168 repositories, 5 languages (Python, TypeScript, Go, C++, C), and 8 software engineering categories (e.g., System Architecture, Root Cause Diagnosis, Security, Concurrency). Unlike static Q&A benchmarks, solving RepoEviQA requires live shell execution and satisfies strict, all-or-nothing rubric verification.
  • SWE-Atlas-QnA: An existing repository Q&A benchmark (124 tasks total; 60-task subset used for fine-tuning evaluation) used to test whether training on RepoEviAgent’s synthetic data transfers to external benchmarks.

Key Insights and Ideas

  • Local reading is easy; system-level concurrency is brutal: Models are fairly comfortable explaining local APIs (63.0% average pass rate), but their reasoning collapses when tracking state transitions, error resilience (32.3%), and asynchronous concurrency patterns (15.0%—where three of five frontier models scored a flat 0.0%).
  • Verbosity $\neq$ Understanding: Writing a longer essay doesn't fool strict rubrics. GLM-5.3-Flash wrote answers 1.73x longer than GLM-5.3 (~2,553 vs. ~1,472 words), yet scored nearly 24 percentage points lower. Precision and code-grounded evidence beat walls of text.
  • Overall scores hide distinct "personalities": Two models can have nearly identical overall pass rates—like GLM-5.3-Flash (52.4%) and GPT-5.5 (51.5%)—while having completely opposite strengths across architecture vs. security, or Python vs. C++.

Key Results

Evaluating five frontier models inside a lightweight bash-only harness (mini-SWE-agent) on RepoEviQA revealed a massive 51.5 percentage point spread:

  • GLM-5.3 led overall at 76.35% (dominating C++ at 86.0% and TypeScript at 87.2%), followed by DeepSeek-V4.1-Flash (62.87%), GLM-5.3-Flash (52.40%), GPT-5.5 (51.50%), and Gemini-3.8-Flash (24.85%).
  • Across languages, models averaged 60.4% on TypeScript and 55.3% on Python, dropping to 43.0% on C.
  • Training Payoff: Fine-tuning open models on RepoEviAgent's distilled trajectories yielded dramatic leaps on SWE-Atlas-QnA. Qwen3.5-27B jumped from 18.3% to 53.3% (+35.0 points), and Qwen3.6-35B-A3B climbed from 20.0% to 38.3% (+18.3 points), surpassing strong reference models like Opus 4.7 (36.02%) and GPT-5.4 (36.30%).

Limitations and Future Work

The authors do not include a dedicated limitations section, though a few constraints are apparent from their design: some RepoEviQA categories have small sample sizes (e.g., only 8 tasks in Concurrency & async patterns and 20 tasks in C), and all evaluations rely on a single minimal bash scaffold (mini-SWE-agent) and a single LLM judge (Claude Opus 4.6). For future work, the authors position RepoEviAgent as a foundational, scalable pipeline to fuel ongoing research into training and evaluating next-generation coding agents across diverse software ecosystems.

Summary updated

Abstract

Real-world software engineering (SWE) tasks require agents to understand repository structures, cross-module dependencies, and runtime behaviors, posing significant challenges for constructing high-quality training and evaluation data. To address this, we propose RepoEviAgent, a scalable SWE data construction framework that integrates quality-aware data curation and role-specialized multi-agent task synthesis. Starting from 8,477 open-source repositories and approximately 2.48 million pull request records, we employ semantic alignment, complexity constraints, and multidimensional quality assessment to identify valuable SWE data. We further develop a sandbox-based multi-agent framework that integrates automated environment construction, execution validation, repository exploration, and evidence-grounded Q&A synthesis. Based on this framework, we construct RepoEviQA, a benchmark for Repository-Level Evidence-Grounded Question Answering, comprising 334 tasks across five programming languages and diverse SWE categories, with rigorous rubric-based evaluation. We evaluate five frontier coding models on RepoEviQA, revealing substantial performance differences across task categories and programming languages.
BibTeX
@misc{hu2026repoeviagent,
  author = {Aoqi Hu and Yueao Xing},
  title = {{RepoEviAgent: Scalable Synthesis of Evidence-Grounded Repository-Level Question Answering Tasks}},
  year = {2026},
  eprint = {2611.31873},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31873},
}
Figure