Paper commentary
Harvesting SWE Benchmarks from Wild Vibe Coding Sessions
SessionFarmer turns wild vibe coding sessions into reproducible software engineering tasks
- Problem Raw developer-agent logs are hard to turn into tasks, because recording units rarely match true task boundaries. A session boundary misses the whole task, since specs rarely arrive up front.
- Method SessionFarmer starts from wild sessions instead of given issues. It groups commits and confirmed sessions into goal-centred episodes, then builds a task for each.
- Results On the CropChat benchmark, kimi-k3 with Codex scores 39.3% Pass@1, the highest of twelve configurations.
Why raw session logs don't give clean tasks
Public benchmarks set the pattern of executable repository tasks, but they often differ from a team's own production setup. A team that wants to choose an agent or tune a prompt needs reproducible environments built from its own repositories. Earlier work built tasks from individual user requests or replayed multi-turn conversations through a user simulator.
Raw logs are hard to turn into tasks because recording units rarely align with true task boundaries. Across both benchmarks, 87.6% of tasks cite at least one user turn after the opening message. Developers rarely front-load a complete specification even within a single session, so a session boundary doesn't capture the whole task.
The second obstacle is that a commit checkpoint links to every agent session open in the workspace at commit time. A continuous stretch of commits may also interleave several distinct goals.
SessionFarmer addresses these obstacles by grouping temporally adjacent checkpoints and their shared sessions into candidate clusters. An LLM then verifies session relevance against the committed diffs and removes unrelated conversations. Prior replication-style builders such as SWE-bench assume the task boundary is given in advance by a linked issue or pull request.
SessionFarmer instead starts from wild sessions and decides which dialogue turns and commits belong to one coherent task.
Grouping sessions into goal-centred episodes
The core move is to treat a work episode, rather than a single conversation or a single commit, as the unit of a task. SessionFarmer first groups temporally adjacent checkpoints that share sessions into candidate work clusters. An LLM then checks each session against the committed diffs and removes the sessions that didn't drive the code.
Each episode carries a base checkpoint, a final checkpoint, the git diff between them as the gold patch, and its confirmed sessions. Because a checkpoint lists every session open at commit time, the telemetry alone can't define task boundaries.
Clusters form when commits land within 24 hours of each other and share at least one session. A session counts as confirmed only when the LLM judge can cite transcript events that directly or partially drove the code changes. Sessions that the judge doesn't confirm are dropped, and clusters with no confirmed session are discarded. Connected components are then recomputed using only links from confirmed sessions, so checkpoints bridged by a background chat separate into cleaner clusters.
Within a cluster, an LLM splits the checkpoints into non-overlapping episodes, each centred on one goal. Episodes need between 100 and 5,000 lines of non-test changes, and documentation-only or credential-dependent work is dropped.
The authors keep each confirmed transcript whole instead of clipping it to the base and final timestamps. Developers often discuss design plans before their first commit, so a clipped transcript would lose those constraints. To limit LLM non-determinism, the authors require agreement across repeated independent calls for both relevance filtering and boundary selection.
The paper doesn't report how many repeated calls it uses, so the agreement rule is described only at the level of the requirement.
Freezing the environment and authoring the task
Repository manifests miss the command-line tools developers run on their own machines during sessions, such as gh, mise and sqlite3. A deterministic mechanical check then keeps only executable names or requirement quotes that appear verbatim in the transcript, so hallucinated tool claims get discarded. The agent outputs a Dockerfile, which the authors model on prior agentic environment builders.
That Dockerfile must pass offline validation on fresh copies of the base and final trees with network access disabled. Once accepted, the environment becomes a frozen, hermetic container image shared by task authoring, test construction and agent evaluation.
Because the benchmark agent runs without a human, the statement must consolidate every requirement still in effect at the end of the episode. The Task Author derives requirements only from the developer's instructions and explicitly approved agent proposals. Authors don't let the gold patch shape the requirements; it only confirms which discussed behaviors were completed at the final checkpoint.
An independent LLM validator audits the draft for source fidelity, requirement completeness and implementation openness. A task gets at most 2 revisions, which means 3 submissions in total, before it is discarded.
Each task also gets rubrics, because passing unit tests doesn't guarantee a maintainer would merge the patch. The Task Author writes rubrics over Clarity, Design and Repository fit, weighted equally, once the statement is frozen. An independent LLM judge scores a candidate patch in 3 independent trials, giving each dimension an integer score from 0 to 2.
A score of 0 marks a material, merge-blocking defect, while 1 marks an acceptable, mergeable implementation. A patch passes QualityResolved when its median total score across the 3 trials is at least 3 and no dimension gets a 0 in more than 1 trial. The authors score the gold patch under the same protocol, and the task is discarded if the gold patch fails the gate.
Evaluated agents face the same quality gate, but they never see the rubrics.
Closed-loop test refinement
Session-derived repositories rarely ship tests for the new task, so SessionFarmer has the Test Author write a suite from scratch. Wild coding sessions leave behind 57.9% of gold patches that modify no test files at all. Uncalibrated LLM-written tests can produce false positives and false negatives, so the pipeline pairs initial synthesis with a two-stage refinement.
The Test Author works inside the frozen environment and uses the frozen task statement, the codebase and session context as inputs.
The Task Author builds mutants, each deliberately breaking exactly 1 requirement clause from the statement. Mutants act as negative controls that imitate incomplete or shortcut solutions. A candidate suite must pass the gold patch across 3 fresh runs. The Test Author stays blind to the mutant patches, so the tests check behavior rather than the exact lines a mutant changed.
A failing candidate returns to the Test Author with execution logs, for up to a budget of 3 versions.
The criteria check cannot catch every error, since a suite can still assert private helper names or file paths that exist only in the gold patch. The second stage runs a blind solver from scratch, using only the base repository, the frozen environment and the task statement. The Test Author compares its own semantic judgment of the solver's patch with the mechanical test verdict.
Tasks whose tests cannot satisfy every check within the revision budget are dropped. A submission that passes all scenarios in the refined suite achieves MechanicalResolved.
Benchmark construction uses the Pi harness for the multi-turn roles, including the Test Author and the solver. The Test Author and the solver run on gpt-5.6-sol in that harness.
How much of the conversation the statement needs
The statement needs more than the opening message, and the paper measures how much more. Across both benchmarks, 87.6% of tasks cite at least one user turn after the opening message.
The authors tested this with a controlled ablation that limits the evidence the Task Author sees. Each run used one of three evidence conditions: First message, First session, or Full episode. Each generated statement was audited against an independent reference requirement ledger built from the full episode and gold patch. On multi-session tasks, full coverage rose from 26% with the first message to 54% with the first session, and to 75% with the full episode.
On single-session tasks, full coverage rose from 49% with the first message to 78% with the full episode.
Later sessions do more than run a plan fixed in the first session. Adding new behaviors or outcomes accounts for 36.8% of role assignments, and modifying an earlier requirement for 27.6%. Clarifying a condition or constraint accounts for 18.4% of role assignments. Across these tasks, the share of gold-patch lines first written in later sessions tracks the share of requirements raised only there, with Spearman ρ = 0.69.
The authors check whether the audit itself is fair to the benchmark statements.
Did closed-loop refinement help the verdicts
We checked whether closed-loop refinement reduces wrong verdicts by having an independent judge, gpt-6-astra, label each patch's correctness. The audit covered 30 CropChat tasks where refinement revised the initial suite, replaying the 3 gpt-5.5 and 3 terra Codex rollouts per task. After excluding uncertain patches, the judge labelled 87 non-ambiguous rollouts per solver.
Without refinement, the initial LLM-written tests often over-constrained implementation details taken from the gold patch. That over-constraint produced a conditional false-negative rate (FNR) of 68.0% for terra and 80.9% for gpt-5.5. The cost is higher false acceptances, because relaxing rigid assertions raised conditional false-positive rates by 16.2 points for terra and 17.5 points for gpt-5.5.
Refinement traded these errors deliberately, since the large drop in false negatives outweighed the rise in false positives.
Balanced accuracy, which averages the true-negative and true-positive rates, rose from 61.9 to 70.8 for terra. For gpt-5.5, balanced accuracy rose from 53.3 to 60.5 after refinement. The refined suites therefore fall within the verification accuracy range of the SWE-Bench-Pro and DeepSWE reference suites.
Model and harness effects on CropChat
The authors ran twelve model–harness configurations on CropChat, with each task rolled out three times in a fresh container. Pass@1 ranges from 21.1% for glm-5.2 with Pi to 39.3% for kimi-k3 with Codex, which is the highest of the twelve configurations. kimi-k3 leads under every harness and outperforms the other three models by 9.6 to 12.4 percentage points in harness-averaged Pass@1.
The harness effect depends on the model, so the same harness choice doesn't move every model equally.
For gpt-5.5 and terra, Pass@1 varies by only 1.1 to 1.2 percentage points across harnesses.
Run-to-run stability is the second axis the authors measured, and it changes what a single number means. Of the task–configuration pairs on CropChat, 22.8% gave inconsistent verdicts across three runs. Another 16.2% resolved in all three runs, and 60.9% failed in all three. Requiring all three runs to succeed in Pass3 cuts the solve rate to 12.4% to 23.8%.
Execution time also varies between runs on the same task, with pooled within-task standard deviations of 2.2 to 4.8 minutes. A single-run Pass@1 average hides that spread, so the authors argue for reporting both multi-run potential and consistency. They didn't test whether the same spread holds for CropEnterprise, since their harness comparison there used terra only.
Developer audit on CropEnterprise
The authors asked the engineers who wrote the original commits to judge what SessionFarmer rebuilt from their own work. Four engineers took part, and they reviewed a random sample of 28 CropEnterprise tasks. Each task went to two engineers, which produced 56 reviews in total. Reviewers worked through the pipeline in order: episode boundaries, attributed sessions, task statement, and quality rubrics.
A review stopped early when an upstream boundary or session disagreement appeared, and that happened in 4 reviews.
Reviewers accepted the reconstructed episode boundaries in 94.6% of reviews. Both reviewers independently endorsed 89.3% of the sampled tasks, so agreement held across the pair.
The authors read these endorsements as evidence that the rubrics match enterprise engineering standards. The audit covers only CropEnterprise, the internal repository, so it says nothing about the public CropChat tasks.
Limits of the evidence
The evidence stops at a few boundaries, and the paper states some of them directly. CropEnterprise is used only for internal research and won't be released, so outsiders can't inspect its tasks. The CropEnterprise audit covers 28 sampled tasks, with two engineers reviewing each task across 56 reviews. After excluding three uncertain patches, the refinement audit keeps 87 labelled rollouts per solver.
Correctness labels come from one judge, gpt-6-astra, which follows the DeepSWE protocol. The comparison with SWE-Bench-Pro and DeepSWE uses 150 rollouts from 50 tasks each, which are reference numbers from other benchmarks. Each configuration ran three rollouts per task, so the Pass@3 and Pass3 figures rest on only three attempts. Pass@3 counts a task as solved if at least one of the three rollouts passes.
Pass3 counts a task only if all three rollouts pass.
Paper info
- Authors
- Ao Lu, Yuanhao Zeng, Shaocheng Lan, Sijie Xu, Jiacheng Bao, Kuang Yan, Heng Lin, Kan Ren
- Venue
- arXiv · Preprint
- First published
- 2026-11-2
- Added
- 2026-11-4
- Updated
- 2026-11-2
- Version
- v1
- arXiv
- 2611.02440
- Category
- cs.SE · cs.AI
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Development teams need reproducible tasks from their own repositories and workflows to evaluate coding agents. Conversational developer-agent collaboration ("vibe coding") produces abundant coding sessions and repository checkpoints, but requirements evolve across turns, unrelated conversations co-occur with commits, and engineering efforts can span multiple sessions. We present SessionFarmer, an automated framework that turns these records into self-contained, executable software engineering tasks. It analyzes dialogue and commit history to filter unrelated sessions and group multi-turn, potentially multi-session interactions into work episodes centered on one engineering goal. For each episode, it reconstructs a hermetic execution container, synthesizes a task statement from the full context, and authors repository-grounded engineering-quality rubrics and unit tests. Closed-loop test refinement uses requirement-breaking mutants and a blind solver to reduce false rejections of valid alternatives and false acceptances of incomplete solutions. We construct CropChat, an open benchmark of 242 tasks across 61 public repositories and 14 programming languages, and CropEnterprise from proprietary enterprise logs. In a CropEnterprise audit, the original developers endorse the vast majority of reconstructed episode boundaries, task statements, and quality rubrics. Full-episode context covers substantially more user requirements than single-turn or single-session inputs. Test refinement cuts false-rejection rates and raises balanced accuracy against reference patch labels by 7-9 percentage points across solvers. Across 12 model-harness configurations on CropChat, the strongest setup achieves 39.3% Pass@1, while harness choice shifts Pass@1 by up to 8.4 percentage points for the same model.
Quote from the paper
Ao Lu, Yuanhao Zeng, Shaocheng Lan, Sijie Xu, Jiacheng Bao, Kuang Yan, Heng Lin, Kan Ren (2026). Harvesting SWE Benchmarks from Wild Vibe Coding Sessions. arXiv:2611.02440v1. https://arxiv.org/abs/2611.02440v1
BibTeX
@misc{lu2026harvesting,
title = {{Harvesting SWE Benchmarks from Wild Vibe Coding Sessions}},
author = {Ao Lu and Yuanhao Zeng and Shaocheng Lan and Sijie Xu and Jiacheng Bao and Kuang Yan and Heng Lin and Kan Ren},
year = {2026},
eprint = {2611.02440},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.02440v1}
}