Name | swesmith JSON |
Version |
0.0.5
JSON |
| download |
home_page | None |
Summary | The official SWE-smith package - A toolkit for generating software engineering training data at scale. |
upload_time | 2025-07-09 19:41:33 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License
Copyright (c) 2024 John Yang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
nlp
benchmark
code
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<p align="center">
<a href="https://swesmith.com/">
<img src="docs/assets/banner.png" style="height: 10em" alt="Kawhi the SWE-smith" />
</a>
</p>
<br>
<div align="center">
<a href="https://www.python.org/">
<img alt="Build" src="https://img.shields.io/badge/Python-3.10+-1f425f.svg?color=purple">
</a>
<a href="https://copyright.princeton.edu/policy">
<img alt="License" src="https://img.shields.io/badge/License-MIT-blue">
</a>
<a href="https://badge.fury.io/py/swesmith">
<img src="https://badge.fury.io/py/swesmith.svg">
</a>
<a href="https://arxiv.org/abs/2504.21798">
<img src="https://img.shields.io/badge/arXiv-2504.21798-b31b1b.svg">
</a>
</div>
<hr />
SWE-smith is a toolkit for training software engineering (SWE) agents. With SWE-smith, you can:
* Create an *unlimited* number of [SWE-bench](https://github.com/SWE-bench/SWE-bench) style task instances for any Python repository.
* *Generate trajectories* of [SWE-agent](https://github.com/SWE-agent/SWE-agent) solving those task instances.
* *Train local LMs* on these trajectories to improve their software engineering capabilities ([SWE-agent-LM-32B](https://huggingface.co/SWE-bench/SWE-agent-LM-32B)).
## 🚀 Get Started
Check out the [documentation](https://swesmith.com/getting_started/) for a complete guide on how to use SWE-smith, including how to
* [Install](https://swesmith.com/getting_started/installation/) the repository locally or as a PyPI package.
* [Create Task Instances](https://swesmith.com/guides/create_instances/) for any Python repository with SWE-smith.
* Use your task instance to [train your own SWE-agents](https://swesmith.com/guides/train_swe_agent/)
## 🏎️ Quick Start
Install the repo:
```bash
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](https://huggingface.co/SWE-bench), including:
* [50k Python Task Instances](https://huggingface.co/datasets/SWE-bench/SWE-smith), created using SWE-smith.
* [SWE-agent-LM-32B](https://huggingface.co/SWE-bench/SWE-agent-LM-32B), trained using SWE-smith. Achieves **41.6%** pass@1 on [SWE-bench Verified](https://huggingface.co/datasets/SWE-bench/SWE-bench_Verified)!
* [5k Trajectories](https://huggingface.co/datasets/SWE-bench/SWE-smith-trajectories) that SWE-agent-LM-32B was trained on.
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](CONTRIBUTING.md) for more.
Contact Person: [John Yang](https://john-b-yang.github.io/), [Kilian Lieret](https://lieret.net)
(Email: [johnby@stanford.edu](mailto:johnby@stanford.edu))
## 🪪 License
MIT. Check `LICENSE` for more information.
## ✍️ Citation
```bibtex
@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},
}
```
## 📕 Our Other Projects:
<div align="center">
<a href="https://github.com/SWE-bench/SWE-bench"><img src="docs/assets/swebench_logo_text_below.svg" alt="SWE-bench" height="120px"></a>
<a href="https://github.com/SWE-agent/SWE-agent"><img src="docs/assets/sweagent_logo_text_below.svg" alt="SWE-agent" height="120px"></a>
<a href="https://github.com/SWE-agent/SWE-ReX"><img src="docs/assets/swerex_logo_text_below.svg" alt="SWE-ReX" height="120px"></a>
<a href="https://github.com/SWE-bench/sb-cli"><img src="docs/assets/sbcli_logo_text_below.svg" alt="sb-cli" height="120px"></a>
</div>
Raw data
{
"_id": null,
"home_page": null,
"name": "swesmith",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "nlp, benchmark, code",
"author": null,
"author_email": "John Yang <byjohnyang@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/8a/9f/fe6467583c356b88c87f4accafa68d949b30739e08edf51620c4bd7c1396/swesmith-0.0.5.tar.gz",
"platform": null,
"description": "<p align=\"center\">\n <a href=\"https://swesmith.com/\">\n <img src=\"docs/assets/banner.png\" style=\"height: 10em\" alt=\"Kawhi the SWE-smith\" />\n </a>\n</p>\n\n<br>\n\n<div align=\"center\">\n<a href=\"https://www.python.org/\">\n <img alt=\"Build\" src=\"https://img.shields.io/badge/Python-3.10+-1f425f.svg?color=purple\">\n</a>\n<a href=\"https://copyright.princeton.edu/policy\">\n <img alt=\"License\" src=\"https://img.shields.io/badge/License-MIT-blue\">\n</a>\n<a href=\"https://badge.fury.io/py/swesmith\">\n <img src=\"https://badge.fury.io/py/swesmith.svg\">\n</a>\n<a href=\"https://arxiv.org/abs/2504.21798\">\n <img src=\"https://img.shields.io/badge/arXiv-2504.21798-b31b1b.svg\">\n</a>\n</div>\n\n<hr />\n\nSWE-smith is a toolkit for training software engineering (SWE) agents. With SWE-smith, you can:\n* Create an *unlimited* number of [SWE-bench](https://github.com/SWE-bench/SWE-bench) style task instances for any Python repository.\n* *Generate trajectories* of [SWE-agent](https://github.com/SWE-agent/SWE-agent) solving those task instances.\n* *Train local LMs* on these trajectories to improve their software engineering capabilities ([SWE-agent-LM-32B](https://huggingface.co/SWE-bench/SWE-agent-LM-32B)).\n\n## \ud83d\ude80 Get Started\nCheck out the [documentation](https://swesmith.com/getting_started/) for a complete guide on how to use SWE-smith, including how to\n* [Install](https://swesmith.com/getting_started/installation/) the repository locally or as a PyPI package.\n* [Create Task Instances](https://swesmith.com/guides/create_instances/) for any Python repository with SWE-smith.\n* Use your task instance to [train your own SWE-agents](https://swesmith.com/guides/train_swe_agent/)\n\n## \ud83c\udfce\ufe0f Quick Start\nInstall the repo:\n```bash\ngit clone https://github.com/SWE-bench/SWE-smith\ncd SWE-smith\nconda create -n smith python=3.10;\nconda activate smith;\npip install -e .\n```\n\nThen, check out `scripts/cheatsheet.sh` for scripts to (1) create execution environments, (2) create task instances, and (3) train SWE-agents.\n\n> [!TIP]\n> SWE-smith requires Docker to create execution environments. SWE-smith was developed and tested on Ubuntu 22.04.4 LTS.\n> We do *not* plan on supporting Windows or MacOS.\n\n## \ud83d\udcbf Resources\nIn addition to this toolkit, we've also provided several artifacts on the [SWE-bench HuggingFace](https://huggingface.co/SWE-bench), including:\n* [50k Python Task Instances](https://huggingface.co/datasets/SWE-bench/SWE-smith), created using SWE-smith.\n* [SWE-agent-LM-32B](https://huggingface.co/SWE-bench/SWE-agent-LM-32B), trained using SWE-smith. Achieves **41.6%** pass@1 on [SWE-bench Verified](https://huggingface.co/datasets/SWE-bench/SWE-bench_Verified)!\n* [5k Trajectories](https://huggingface.co/datasets/SWE-bench/SWE-smith-trajectories) that SWE-agent-LM-32B was trained on.\n\nAnd there's more coming!\n\n## \ud83d\udcab Contributions\nExcited about SWE-smith? We're actively working on several follow ups, and love meaningful collaborations! What we're thinking about...\n* Make SWE-smith work for non-Python languages\n* New bug generation techniques\n* Train SWE-agents with more trajectories and new methods\n\nCheck out the [Contributing Guide](CONTRIBUTING.md) for more.\n\nContact Person: [John Yang](https://john-b-yang.github.io/), [Kilian Lieret](https://lieret.net)\n(Email: [johnby@stanford.edu](mailto:johnby@stanford.edu))\n\n## \ud83e\udeaa License\nMIT. Check `LICENSE` for more information.\n\n## \u270d\ufe0f Citation\n\n```bibtex\n@misc{yang2025swesmith,\n title={SWE-smith: Scaling Data for Software Engineering Agents}, \n 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},\n year={2025},\n eprint={2504.21798},\n archivePrefix={arXiv},\n primaryClass={cs.SE},\n url={https://arxiv.org/abs/2504.21798}, \n}\n```\n\n## \ud83d\udcd5 Our Other Projects:\n<div align=\"center\">\n <a href=\"https://github.com/SWE-bench/SWE-bench\"><img src=\"docs/assets/swebench_logo_text_below.svg\" alt=\"SWE-bench\" height=\"120px\"></a>\n \n <a href=\"https://github.com/SWE-agent/SWE-agent\"><img src=\"docs/assets/sweagent_logo_text_below.svg\" alt=\"SWE-agent\" height=\"120px\"></a>\n \n <a href=\"https://github.com/SWE-agent/SWE-ReX\"><img src=\"docs/assets/swerex_logo_text_below.svg\" alt=\"SWE-ReX\" height=\"120px\"></a>\n \n <a href=\"https://github.com/SWE-bench/sb-cli\"><img src=\"docs/assets/sbcli_logo_text_below.svg\" alt=\"sb-cli\" height=\"120px\"></a>\n</div>\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2024 John Yang\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.",
"summary": "The official SWE-smith package - A toolkit for generating software engineering training data at scale.",
"version": "0.0.5",
"project_urls": {
"Bug Reports": "https://github.com/SWE-bench/SWE-smith/issues",
"Documentation": "https://github.com/SWE-bench/SWE-smith",
"Source Code": "https://github.com/SWE-bench/SWE-smith",
"Website": "https://swesmith.com"
},
"split_keywords": [
"nlp",
" benchmark",
" code"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "09e32ef53ded1ef826b8ec3a974358c0ec1c26773d352a69f7947c281aca44db",
"md5": "d41b9d0a4d813d489ce5a6f6fbdfe4b1",
"sha256": "e1ba13afe152233ef335cad36e573b7dfbb663b0ab90da175f223ad845b428ea"
},
"downloads": -1,
"filename": "swesmith-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d41b9d0a4d813d489ce5a6f6fbdfe4b1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 142157,
"upload_time": "2025-07-09T19:41:31",
"upload_time_iso_8601": "2025-07-09T19:41:31.846357Z",
"url": "https://files.pythonhosted.org/packages/09/e3/2ef53ded1ef826b8ec3a974358c0ec1c26773d352a69f7947c281aca44db/swesmith-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8a9ffe6467583c356b88c87f4accafa68d949b30739e08edf51620c4bd7c1396",
"md5": "cd21d4bc1d172909bbf0dceace9d3f3c",
"sha256": "8cb252157fcb58874984723a23057a0b0bf7c14d141baa2eedd36363393537dd"
},
"downloads": -1,
"filename": "swesmith-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "cd21d4bc1d172909bbf0dceace9d3f3c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 106793,
"upload_time": "2025-07-09T19:41:33",
"upload_time_iso_8601": "2025-07-09T19:41:33.781662Z",
"url": "https://files.pythonhosted.org/packages/8a/9f/fe6467583c356b88c87f4accafa68d949b30739e08edf51620c4bd7c1396/swesmith-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-09 19:41:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SWE-bench",
"github_project": "SWE-smith",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "swesmith"
}