SWE-Crafter: Scaling Executable Multilingual Software Engineering Data with Meta-Skill Agents

Shukai Liu, Jian Yang, Bo Jiang, Junhang Cheng, Haowenwang, Xiao-Hui Li, Xianglong LiuNeurIPS 2026

TL;DR

Training AI coding agents requires real-world codebases where tests actually compile and run, yet nearly all existing training datasets are locked into Python because building runnable environments for other languages at scale is a logistical nightmare. SWE-Crafter solves this by using a single, unified agent framework equipped with plug-and-play "language skills" that teach it how to wrangle different ecosystems—from Rust to PHP. Using this pipeline, the authors built over 50,000 executable tasks across eight languages and trained a 40B-parameter open-weight model that rivals massive, closed-source frontier systems.

What Problem Does This Paper Address?

Teaching an AI to write a standalone sorting function is easy; teaching it to navigate a massive software repository, find a bug across five files, and fix it without breaking anything else is much harder. To train these "repository-level" agents, you cannot just feed them raw text—you need executable environments with a clear reward signal. Specifically, you need "fail-to-pass" validation: a Docker container where a test suite fails before the fix and passes right after.

Until now, automated pipelines for building these environments have mostly stuck to Python. Why? Because the broader software world is messy. Java uses Maven or Gradle; C++ relies on complex native toolchains and CMake; JavaScript has half a dozen competing package managers. Hand-coding separate environment-building pipelines for every language is brittle and exhausting, while letting an AI agent guess how to build every single repo from scratch wastes enormous compute repeating the same discovery steps.

Figure 1: Motivation and overview of SWE-CRAFTER. Existing language-specific construction pipelines are difficult to extend across heterogeneous language ecosystems, while SWE-CRAFTER keeps a shared agent framework and factors ecosystem-specific knowledge into configurable skills.

Methods

Instead of building eight different pipelines for eight languages, SWE-Crafter uses one language-agnostic engine and factors ecosystem-specific quirks into modular priors called skills.

Figure 2: Overview of SWE-CRAFTER. Raw Instance Collect: mine issue-linked pull requests from high-quality GitHub repositories and convert them into raw task instances with problem evidence, patches, and version labels. Skills-based Instance Generate: retrieve language skills to guide agents in building executable environments, generating test commands, and retaining verified fail-to-pass instances. Distillation: run a teacher model on verified instances, keep only test-passing trajectories, and use them to train student software-engineering models.

The pipeline operates in three stages:

  1. Raw Instance Collection (Standard): The system mines GitHub for merged pull requests linked to issues that include both code fixes and test updates, stripping out any repositories that overlap with evaluation benchmarks to prevent data leakage.
  2. Meta-Skill Evolution & Environment Synthesis (Novel): Before scaling up, an agent explores ~50 seed repositories per language and summarizes what it learns—common manifest files, build tools, test commands, and typical failure recoveries—into a compact "language skill." During large-scale generation, a construction agent (powered by Claude Code) grabs the relevant language skill as a cheat sheet, inspects the repo's local docs and CI files (which remain the ultimate source of truth), writes a Dockerfile, and verifies fail-to-pass test behavior. An LLM judge also checks that the test actually matches the problem description.
  3. Trajectory Distillation (Standard): A teacher model (MiniMax M2.5 running inside the OpenHands scaffold) attempts to solve these verified tasks. Using rejection sampling, failed attempts are thrown out, and only complete, test-passing step-by-step trajectories are kept to fine-tune smaller student models.

Datasets

  • SWE-Crafter Dataset (Newly Introduced): A massive multilingual training resource spanning eight language ecosystems (Python, Go, Java, Ruby, PHP, Rust, C/C++, and JS/TS). Unlike prior datasets that rely heavily on synthetic bugs or cover only a few dozen Python repos, SWE-Crafter contains 50,926 real-world validated instances across 9,296 repositories, paired with 68,851 test-passing distillation trajectories.
  • Evaluation Benchmarks: Models are evaluated on SWE-bench Multilingual (300 tasks across 9 languages and 42 repos) and SWE-bench Verified (500 human-validated Python tasks).

Key Insights and Ideas

  • Cross-language transfer is asymmetric—and sometimes negative: Fine-tuning an agent on just one language doesn't lift all boats. While C/C++ and Java transfer reasonably well to other languages, training exclusively on PHP or Ruby actually hurts performance on several other targets. You cannot treat code-editing traces as interchangeable; balanced multilingual mixtures matter.
  • More data makes agents cheaper, not just smarter: Usually, higher accuracy in agents comes from letting them search longer and burn more tokens. Here, scaling training data from 3K to 45K examples boosted pass rates while dropping average token usage per task by ~28–32%. More diverse data taught the models to localize bugs faster and know when to stop editing.
  • Ecosystems have wildly different "distillation taxes": Scripting languages like JS/TS and Ruby yielded test-passing teacher trajectories ~45–46% of the time. Meanwhile, C/C++ and Rust required roughly 50% more tool-call turns and tokens per trajectory due to native compilation latency and strict type/build constraints.

Key Results

The authors fine-tuned three open-weight student models (4B, 9B, and 40B parameters):

  • SWE-Crafter-40B achieved 61.0% on SWE-bench Multilingual (up from its base model's 30.0%) and 77.2% on SWE-bench Verified—outperforming massive open-weight models like DeepSeek V3.2 (671B) on Verified and approaching frontier closed systems like Claude Opus 4.5 (79.0%).
  • Even the tiny SWE-Crafter-4B hit 50.3% on SWE-bench Multilingual, beating several 30B–120B open-weight coding baselines.

Limitations and Future Work

While the main text does not include a standalone limitations section, the authors note several practical constraints in their experiments:

  • Noisy intermediate scaling: Scaling curves aren't strictly smooth—performance on SWE-bench Multilingual dipped slightly between 8K and 16K training examples before climbing again.
  • Ecosystem bottlenecks: Compiled languages with heavy toolchains (Go, Java, Rust, C/C++) suffer from much lower trajectory distillation yields (35.7%–40.8%) and higher compute costs, pointing to a clear need for stronger ecosystem-specific verifiers and repair heuristics in future work.

Summary updated

Abstract

Software-engineering agents are increasingly expected to solve realistic repository-level tasks, but their training remains constrained by the limited availability of executable supervision beyond Python-centric repositories. Building such data across programming languages is difficult: repositories use different build systems, dependency managers, runtime assumptions, test interfaces, and failure modes, so separate language-specific pipelines are costly to reproduce and extend. We introduce SWE-Crafter, a unified agent-based framework for constructing executable multilingual SWE instances. SWE-Crafter keeps candidate mining, environment synthesis, fail-to-pass validation, and trajectory distillation in a shared pipeline, while language-specific construction knowledge is supplied through extensible skills induced from repository-level experience. These skills guide repository exploration and test-command synthesis while preserving repository-local evidence from documentation, manifests, CI files, and execution feedback as the final source of truth. Applying SWE-Crafter to eight programming languages yields 50,926 validated instances from 9,296 repositories and 68,851 distilled test-passing trajectories. Supervised fine-tuning on this resource produces SWE-Crafter-40B, which achieves 61.0% on SWE-bench Multilingual and 77.2% on SWE-bench Verified, showing that skill-guided construction provides scalable multilingual supervision for repository-level SWE agents.
BibTeX
@inproceedings{liu2026swe,
  author = {Shukai Liu and Jian Yang and Bo Jiang and Junhang Cheng and Haowenwang and Xiao-Hui Li and Xianglong Liu},
  title = {{SWE-Crafter: Scaling Executable Multilingual Software Engineering Data with Meta-Skill Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4d6qyCWuBH},
}
Figure