Skip to main content

The official SWE-smith package - A toolkit for generating software engineering training data at scale.

Project description

Kawhi the SWE-smith



SWE-smith is a toolkit for training software engineering (SWE) agents. With SWE-smith, you can:

  • Create an unlimited number of SWE-bench style task instances for any Python repository.
  • Generate trajectories of SWE-agent solving those task instances.
  • Train local LMs on these trajectories to improve their software engineering capabilities (SWE-agent-LM-32B).

🚀 Get Started

Check out the documentation for a complete guide on how to use SWE-smith, including how to

🏎️ Quick Start

Install the repo:

git clone https://github.com/SWE-bench/SWE-smith
cd SWE-smith
conda create -n smith python=3.10;
conda activate smith;
pip install -e .

Then, check out scripts/cheatsheet.sh for scripts to (1) create execution environments, (2) create task instances, and (3) train SWE-agents.

[!TIP] SWE-smith requires Docker to create execution environments. SWE-smith was developed and tested on Ubuntu 22.04.4 LTS. We do not plan on supporting Windows or MacOS.

💿 Resources

In addition to this toolkit, we've also provided several artifacts on the SWE-bench HuggingFace, including:

And there's more coming!

💫 Contributions

Excited about SWE-smith? We're actively working on several follow ups, and love meaningful collaborations! What we're thinking about...

  • Make SWE-smith work for non-Python languages
  • New bug generation techniques
  • Train SWE-agents with more trajectories and new methods

Check out the Contributing Guide for more.

Contact Person: John Yang, Kilian Lieret (Email: johnby@stanford.edu)

🪪 License

MIT. Check LICENSE for more information.

✍️ Citation

@misc{yang2025swesmith,
  title={SWE-smith: Scaling Data for Software Engineering Agents}, 
  author={John Yang and Kilian Leret and Carlos E. Jimenez and Alexander Wettig and Kabir Khandpur and Yanzhe Zhang and Binyuan Hui and Ofir Press and Ludwig Schmidt and Diyi Yang},
  year={2025},
  eprint={2504.21798},
  archivePrefix={arXiv},
  primaryClass={cs.SE},
  url={https://arxiv.org/abs/2504.21798}, 
}

📕 Related Works

SWE-bench    SWE-agent    SWE-ReX    sb-cli

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swesmith-0.0.4.tar.gz (86.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swesmith-0.0.4-py3-none-any.whl (109.4 kB view details)

Uploaded Python 3

File details

Details for the file swesmith-0.0.4.tar.gz.

File metadata

  • Download URL: swesmith-0.0.4.tar.gz
  • Upload date:
  • Size: 86.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for swesmith-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ba07f229b714c24b0576d8a3f478972a6460deb40bf527df00ac5ea72b828a0c
MD5 bfcca2f9739a889f7499d0f134ebc2e3
BLAKE2b-256 d89760212013a2016ec15f941be1f88b8ae2d4bd9e8ffc6162a95099965c12ec

See more details on using hashes here.

File details

Details for the file swesmith-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: swesmith-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 109.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for swesmith-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 149d3fc54bcb0d3b3010121e7de4a13e5e6f31bee08be5918dea1f7b0a8dd5ef
MD5 3a916bf4cdedea1d8eb5a20060718694
BLAKE2b-256 d68b775fdd97e8033b4a9a82b8db765f271fbdd4dacb32f5ad3b764fb620fd41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page