TL;DR
SessionFarmer is an automated framework that transforms messy, real-world "vibe coding" logs—conversational interactions between developers and AI—into high-quality, executable software engineering benchmarks. By grouping fragmented sessions into coherent "work episodes" and using closed-loop test refinement, it enables the creation of benchmarks like CropChat, which reflect how software is actually built in the wild.
What Problem Does This Paper Address?
Evaluating AI coding agents usually relies on static benchmarks like SWE-bench, which are often derived from GitHub issues and pull requests. However, modern development is increasingly shifting toward "vibe coding"—an interactive, conversational style of collaboration where requirements are often underspecified at the start and evolve over multiple turns or even multiple sessions.
Existing logs of these interactions are "noisy": a single commit might be linked to unrelated background chats, or a single engineering goal might be scattered across several days and different chat windows. This makes it difficult for teams to use their own internal data to evaluate how well an agent would perform on their specific codebase and unique engineering workflows.
Methods
The authors introduce SessionFarmer, an end-to-end pipeline designed to "harvest" these wild sessions into reproducible tasks. The process involves four key stages:
- Episode Reconstruction: It groups temporally adjacent code commits and chat sessions into "work clusters." An LLM then filters out unrelated conversations and partitions these clusters into "episodes" centered on a single engineering goal.
- Environment Building: Since interactive sessions often use tools not listed in standard manifest files (like
sqlite3or specific CLIs), SessionFarmer mines the session logs to identify these dependencies and builds a hermetic Docker container for execution. - Task Authoring: A "Task Author" agent synthesizes the entire conversation history into a self-contained task statement. It also generates engineering-quality rubrics to judge code clarity and design, not just functionality.
- Closed-Loop Test Refinement: To ensure the generated tests are reliable, SessionFarmer uses "mutants" (code variants that deliberately break one requirement) and a "blind solver." If the tests pass a broken mutant or fail a correct solution, they are automatically revised.
Datasets
The paper introduces two primary benchmarks:
- CropChat: An open benchmark containing 242 verified tasks across 61 public repositories and 14 programming languages (primarily TypeScript and Go). It is derived from the public SWE-Chat dataset.
- CropEnterprise: A proprietary benchmark of 56 tasks curated from internal enterprise development logs to validate the framework in a production environment.
Key Insights and Ideas
- Requirements Evolve: A major finding is that 87.6% of tasks rely on requirements that were added, clarified, or revised after the initial user prompt. This proves that benchmarks using only the "opening message" of a chat are fundamentally incomplete.
- The "Harness" Matters: The choice of agent harness (the interface the agent uses to interact with the repo) significantly impacts performance. For the same model, switching harnesses could shift the success rate (Pass@1) by up to 8.4 percentage points.
- Quality vs. Functionality: In the enterprise audit, the "quality gate" (rubrics for design and clarity) rejected 12.6% of patches that had already passed all functional unit tests. This highlights that "working code" isn't always "mergeable code" in professional settings.
- Multi-Session Tasks: About 14% of real-world engineering tasks span multiple chat sessions, a complexity often ignored by simpler benchmark extraction methods.
Key Results
- Benchmark Difficulty: Even the strongest model-harness configuration (Kimi-k3 using the Codex harness) only achieved a 39.3% Pass@1 on CropChat, showing that these real-world tasks remain highly challenging.
- Verification Accuracy: The closed-loop test refinement stage improved the balanced accuracy of the test suites by 7–9 percentage points, significantly reducing false rejections of valid code.
- Human Validation: In an audit of CropEnterprise, the original developers who wrote the code endorsed over 94% of the reconstructed episode boundaries, task statements, and quality rubrics.
Limitations and Future Work
The authors acknowledge that constructing these benchmarks is computationally expensive; building a single task requires a mean of 18.2 million input tokens due to the extensive multi-turn agentic workflows involved.
Future work includes using SessionFarmer to create training data for reinforcement learning, allowing agents to learn directly from the "trajectories" of real developers—including the moments where developers had to correct an agent's mistakes. They also suggest using these episodes to build "user simulators" that can mimic the way human requirements evolve during a coding session.
Summary updated