SWE-smith installs as an empty package and expects you to pick a dependency group
[NeurIPS 2025 D&B Spotlight] Scaling Data for SWE-agents
At a glance
- What is it?
- SWE-smith turns any GitHub repository into a training environment for SWE-agents: it builds a Docker image, synthesizes task instances, keeps the ones that break a test, and writes issue text for them. The published artifact is 52k task instances, 26k trajectories and 250 plus environment images, and the packaging itself carries a contradiction worth reading before you install it.
- Who is it for?
- SWE-smith is for teams that already train or evaluate SWE-agents and want task data from their own repositories rather than from public benchmarks. It is not a tool for running an agent on a repository you did not write, and the token it asks for is the reason to be careful: GITHUB_TOKEN needs repo scope so the toolkit can create mirror repositories in your organization, and mirrors of private code are copies of private code.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 6 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- SWE-bench/SWE-smith835 ★ · +62
| Repository | 2026-09-18 | 2026-11-22 |
|---|---|---|
| SWE-bench/SWE-smith | 773 | 835 |
62 Stars in the last 65 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Base dependencies are empty on purpose
The pyproject.toml declares no runtime dependencies at all:
# Base dependencies are empty to allow granular dependency groups for Modal images
dependencies = []The stated reason is Modal, since serverless images need to be assembled from exactly the pieces a job requires. The cost lands on the reader, who has to know which group to ask for. Four are defined. The all group is the full local development set and runs to roughly thirty packages, from astor, libcst and jinja2 through datasets, docker, ghapi, matplotlib and rich, the LLM clients litellm, openai, portkey-ai and sglang, and the tiktoken and sparklines pair. The docs group is mkdocs with mkdocs-material, mkdocs-glightbox, mkdocstrings and mike. The test group is pytest with pytest-cov. The validate group is described in a comment as the minimal set for remote validation, without sglang, litellm, openai or docker.
The classifier says OS Independent, the tip says Ubuntu only
The packaging metadata and the documentation disagree about where this runs. The classifiers include:
"Operating System :: OS Independent",alongside Python 3.10, Python 3.11 and MIT. The build environments section says something narrower: Docker is required to create execution environments, the project was developed and tested on Ubuntu 22.04.4 LTS, and there is no plan to support Windows or macOS.
A classifier is what package indexes filter on, so a reader searching for a cross-platform installer will find one that does not work. The narrower truth is in the tip box: a Linux host with Docker, an environment built around one distro release, and no stated support for the two platforms most Python developers write on. Treat OS Independent as untested rather than as a promise.
Four steps, and the third one is a filter
Turning a repository into a SWE-gym is a documented four-step sequence rather than a single command. First you create an execution environment, which is the Docker image the tasks run inside. Second you synthesize task instances against that environment. Third you keep only the tasks that break one or more unit tests. Fourth you generate issue text for the tasks that survived.
The third step is the load-bearing one and it is also the cheapest to underestimate. A synthesized bug that no test notices is not a training signal, so the unit tests you started with are the quality gate for everything downstream. Nothing in the sequence mentions a threshold beyond breaking at least one test, and nothing mentions deduplication, which means the shape of your test suite shapes the dataset more than the synthesizer does.
The registry API in the training example follows the same split: each task instance maps to a repository profile, and the profile is what hands back a container pointer with that task already initialized.
The training example is four lines and a TODO
The snippet offered for training is deliberately incomplete:
from swesmith.profiles import registry
from datasets import load_dataset
ds = load_dataset("SWE-bench/SWE-smith", split="train") # Loads all 52k task instances
for task in ds:
rp = registry.get_from_inst(task) # Get the RepoProfile for the task
container = rp.get_container(task) # Returns pointer to a Docker container with the task initializedWhat it shows is the interface rather than the recipe. The dataset loads from the Hugging Face hub as a single train split of 52k instances, registry.get_from_inst resolves the repository profile a given instance belongs to, and get_container returns a Docker container that already has that task set up. The body of the loop is a literal TODO comment. Anyone expecting a training script in this repository will not find one; the README points at a tutorial on the project site instead.
The token it asks for can create repositories in your org
The .env.example is short and its scopes are worth reading closely. GITHUB_TOKEN is described as used for GitHub API operations covering repository metadata, checking whether a mirror exists, and creating mirror repositories in your organization. The required scopes are public_repo for public repositories and repo for private ones, with the file spelling out that repo adds private repository access on top of everything public_repo allows.
So the workflow that turns any GitHub repository into a training environment includes writing new repositories into your account, and running that against a private codebase means a second copy of that code exists somewhere you have to remember to delete. There is a softer credential path beside it: GITHUB_USER_SSH_KEY is optional, only needed when your GitHub key sits somewhere unusual, and without it the toolkit falls back to the usual keys in your .ssh directory, including id_rsa, id_ecdsa and id_ed25519.
Nine tree-sitter grammars decide what can be broken
The full dependency group is where the implementation shows through. Ten tree-sitter grammars are pulled in, covering C, C++, C#, Go, Java, JavaScript, PHP, Ruby, Rust and TypeScript, with tree-sitter itself pinned at 0.25 or newer and tree-sitter-php at 0.23.11 or newer. Python is handled separately, through libcst and astor, which manipulate concrete syntax trees rather than text.
That list is the practical answer to which languages this toolkit can damage on purpose: the grammars define the set, and a repository in a language without one is not covered by the shipped dependencies. The rest of the group explains what else happens around a task. datasets and huggingface hub tooling handle the instance sets, unidiff and tiktoken handle patches and token counts, jinja2 renders prompts, sparklines and matplotlib draw token statistics, and sglang and litellm sit next to openai and portkey-ai as the paths for calling a model. matplotlib in a training toolkit is a sign that token budgets get charted.
52k instances, 26k trajectories, and 250 environment images
What is actually published is four separate artifacts. The task instance set holds 52k entries on Hugging Face. The trajectory set holds 26k SWE-agent trajectories, of which 5k are the ones the released model was trained on. The environment repository holds more than 250 environments, one Docker image per repository represented in the data. And the trained model, SWE-agent-LM-32B, reports 40.2% pass@1 on SWE-bench Verified, produced by fine-tuning Qwen 2.5 Coder through SWE-agent, which the README describes as a 32% jump. Reinforcement learning runs are covered too, with SkyRL cited for GRPO style training.
The repository itself has no GitHub releases, and the pyproject version is declared dynamic, so there is no tag to pin and the version string is resolved at build time. Documentation lives in the repository under docs with its own mkdocs.yml, while the guides the README links to sit on the project site. The paper is arXiv 2504.21798, accepted as a Spotlight in the NeurIPS 2025 Datasets and Benchmarks track, and contributions are directed to two named maintainers.
Editorial conclusion
SWE-smith is for teams that already train or evaluate SWE-agents and want task data from their own repositories rather than from public benchmarks. It is not a tool for running an agent on a repository you did not write, and the token it asks for is the reason to be careful: GITHUB_TOKEN needs repo scope so the toolkit can create mirror repositories in your organization, and mirrors of private code are copies of private code. Install it with the validate group if you are only checking environments remotely, since the full group drags in sglang, litellm, openai and the Modal client. Expect Linux only work, expect Docker on the host, and expect to filter tasks yourself: keeping instances that break at least one unit test is the documented step, not something the package guarantees.
Frequently asked questions
What does SWE-smith do with a GitHub repository?
It builds a Docker execution environment for the repository, synthesizes task instances such as file localization, program repair and SWE-bench style problems, keeps the tasks that break at least one unit test, and then generates issue text for them.
Which operating systems does SWE-smith support?
The documentation says Docker is required, that development and testing happened on Ubuntu 22.04.4 LTS, and that there is no plan to support Windows or macOS, even though the package classifiers list Operating System :: OS Independent.
Why does SWE-smith need a GitHub personal access token?
The token is used to query repository metadata, check whether a mirror exists, and create mirror repositories in your organization. The example file asks for public_repo scope for public repositories and repo for private ones, and offers GITHUB_USER_SSH_KEY as an optional alternative when your SSH key is not in the default location.
How do I install SWE-smith with the dependencies it needs?
The base dependency list is empty on purpose, so you pick a group: all for local development, docs for the mkdocs site, test for pytest and pytest-cov, or validate as the minimal set for remote validation without sglang, litellm, openai or docker. Python 3.10 or newer is required.
What data has the SWE-smith project published?
A dataset of 52k task instances, 26k SWE-agent trajectories of which 5k were used to train the released model, and a separate environments repository with more than 250 Docker images, one per repository represented in the data.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/swe-bench-swe-smith)Star history chart for your README
[](https://hysenlabs.com/projects/swe-bench-swe-smith)Was this useful?