File size: 9,589 Bytes
91895bb 7e70842 d6a86e4 7e70842 d6a86e4 bbd5084 d6a86e4 91895bb 9d01c3f 743a787 91895bb 743a787 9d01c3f 9e28cda cbb103c 743a787 57111ed 743a787 91895bb cee88eb 91895bb 743a787 91895bb 743a787 d6a86e4 743a787 9abd52c 57111ed 91895bb 743a787 91895bb d75f483 743a787 d75f483 91895bb 02dbac0 91895bb d75f483 02dbac0 743a787 02dbac0 743a787 91895bb 743a787 9abd52c 743a787 91895bb 743a787 91895bb 743a787 9abd52c cbb103c 02dbac0 743a787 57111ed 9abd52c 57111ed 743a787 91895bb 9e28cda 91895bb 743a787 9abd52c cbb103c 743a787 91895bb 9d01c3f 91895bb 02dbac0 91895bb 9974082 743a787 91895bb 743a787 02dbac0 743a787 02dbac0 743a787 91895bb 743a787 91895bb 743a787 02dbac0 743a787 02dbac0 743a787 02dbac0 743a787 91895bb 743a787 91895bb 743a787 9abd52c 02dbac0 743a787 91895bb d75f483 91895bb 02dbac0 91895bb 743a787 91895bb 743a787 02dbac0 743a787 02dbac0 91895bb 743a787 91895bb 743a787 02dbac0 743a787 02dbac0 743a787 02dbac0 743a787 9abd52c 743a787 91895bb 743a787 91895bb 57111ed 743a787 91895bb 743a787 91895bb d6a86e4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | ---
pretty_name: SWE-bench Science
language:
- en
tags:
- code
- software-engineering
- scientific-computing
- coding-agents
- benchmark
- long-horizon
- harbor
- pier
size_categories:
- n<1K
license: mit
configs:
- config_name: default
data_files:
- split: test
path: data/tasks.csv
features:
- name: task_id
dtype: string
- name: science_knowledge_ablation
dtype: bool
- name: title
dtype: string
- name: domain
dtype: string
- name: language
dtype: string
- name: repository_url
dtype: string
- name: base_commit
dtype: string
- name: source_license
dtype: string
- name: gpl_family
dtype: bool
- name: restricted_license
dtype: bool
- name: license_gate
dtype: string
- name: material_license
dtype: string
- name: material_license_source
dtype: string
- name: material_restricted
dtype: string
- name: materials_gate
dtype: string
- name: materials_manifest_sha256
dtype: string
- name: material_licenses
dtype: string
- name: materials_provenance
dtype: string
- name: restricted_reason
dtype: string
- name: environment_image
dtype: string
- name: verifier_image
dtype: string
- name: image_platform
dtype: string
- name: task_path
dtype: string
- name: status
dtype: string
---
# SWE-bench Science
SWE-bench Science evaluates coding agents on software-engineering tasks drawn from scientific-computing repositories. The release contains 119 tasks across 20 scientific domains, with isolated environments and separate programmatic verifiers.
- **GitHub release repository:** [OpenMOSS/SWE-bench-Science](https://github.com/OpenMOSS/SWE-bench-Science)
- **Runtime images:** [Docker Hub](https://hub.docker.com/u/kevinxulearning), pinned by immutable `linux/amd64` digests
- **Evaluation framework:** [Pier](https://github.com/datacurve-ai/pier), compatible with Harbor task format
## Dataset Summary
| Metric | Value |
| --- | ---: |
| Tasks | 119 |
| Scientific domains | 20 |
| Default selection | 96 unrestricted-license tasks |
| Restricted selection | 23 tasks |
| GPL/LGPL/AGPL-family tasks | 18 |
| Environment images | 119 Docker Hub images |
| Verifier images | 119 Docker Hub images |
| Image platform | `linux/amd64` |
The `science_knowledge_ablation` column is `true` for the 91-task science-knowledge
split used by the ablation experiment. Its release IDs are `002-082`, `084`, `086`,
`090`, `097-101`, `111`, and `114`; all other rows are `false`.
## Dataset Viewer And Files
The Dataset Viewer reads the canonical [`data/tasks.csv`](data/tasks.csv) table and generates its preview automatically. The release does not commit a duplicate Parquet export, so the CSV remains the single source of truth for the 119 task rows.
The repository also includes:
| Path | Purpose |
| --- | --- |
| `data/tasks.csv` | Human-readable task table |
| `data/statistics.md` | Generated release statistics |
| `manifests/tasks.jsonl` | Canonical machine-readable release manifest |
| `manifests/release_provenance.json` | Authoritative configuration and clean-verification provenance |
| `selections/` | Reproducible task selections |
| `tasks/task_NNN/` | Thin Harbor/Pier task bundles |
| `scripts/` | Materialization, provider, batch, and summary tools |
| `docs/run-batch.md` | Full provider and batch-runner reference |
The environment image contains the baseline source, public fixtures, dependencies, and compilers. The separate verifier image contains held-out tests and the grader. The dataset does not contain reference-answer patches, credentials, agent trajectories, or private verifier tests.
## Quick Start
The pinned `datacurve-pier==0.3.0` release requires Python 3.12 or newer.
~~~bash
python3.12 -m pip install "huggingface_hub[cli]"
hf auth login
hf download OpenMOSS-Team/SWE-bench-Science \
--repo-type dataset --local-dir swe-bench-science
cd swe-bench-science
uv tool install --python 3.12 "datacurve-pier==0.3.0"
docker login
~~~
Materialize the default selection:
~~~bash
python3 scripts/materialize.py \
--output tasks-selected --force
~~~
Materialize one task, a comma-separated list, or inclusive ranges:
~~~bash
python3 scripts/materialize.py \
--task-id 002,005-007 \
--output tasks-selected-small --force
~~~
Materialize the complete 91-task science-knowledge ablation split. It contains
restricted-license tasks, so the explicit license opt-in is required:
~~~bash
python3 scripts/materialize.py \
--task-id 002-082,084,086,090,097-101,111,114 \
--allow-restricted-licenses \
--output tasks-science-knowledge-ablation --force
~~~
Every materialization writes `selection.json` with the exact task IDs used for the run.
## Restricted Licenses
Twenty-three tasks are excluded from the default selection because they contain GPL/LGPL/AGPL-family code, academic non-commercial sources or materials, or restricted third-party data. Include them only after confirming that your use is permitted:
~~~bash
python3 scripts/materialize.py \
--allow-restricted-licenses \
--output tasks-selected-all --force
~~~
The GPL/LGPL/AGPL-family task IDs are `003, 020, 021, 023, 032, 057, 066, 074, 075, 082, 083, 084, 085, 096, 097, 098, 100, 118`. Tasks `019`, `026`, `035`, `101`, and `102` are restricted for other reasons. There is no `--allow-GPL` option. The selection flag controls which task bundles are materialized; it does not replace the upstream license obligations.
## Run An Evaluation
Docker Engine 28+ is required. `scripts/run_batch.py` applies a shared isolated
network policy to all harnesses: the agent can reach its model provider through
an allowlisted proxy, and the verifier has no network access. Clearing proxy
variables does not create direct internet access. See
[offline network isolation](docs/run-batch.md#offline-network-isolation).
Run an infrastructure smoke with no model:
~~~bash
pier run -p tasks-selected-small \
--agent nop --env docker \
--n-concurrent 1 --n-attempts 1 \
--no-force-build --no-delete --yes
~~~
Run a real agent by selecting a harness, model, and provider profile:
~~~bash
# Claude Code
pier run -p tasks-selected-small \
--agent claude-code --env docker \
--env-file ~/.config/swe-bench-science/claude.env \
--model anthropic/claude-opus-4-7 --n-concurrent 1
# mini-swe-agent
pier run -p tasks-selected-small \
--agent mini-swe-agent --env docker \
--env-file ~/.config/swe-bench-science/mini-swe-agent.env \
--model openai/gpt-5 --n-concurrent 1
~~~
For Codex gateway profiles, use the included wrapper:
~~~bash
python3 scripts/run_batch.py \
--path tasks-selected-small \
--agent codex \
--env-file ~/.config/swe-bench-science/codex.env \
--n-concurrent 2 --n-attempts 1 \
--jobs-dir jobs --job-name codex-small
~~~
For an approximately 120-second agent-stage smoke, add
`--agent-timeout-multiplier 0.0223`; for an approximately 30-second smoke, use
`--agent-timeout-multiplier 0.0055556`. Verifier and scientific-build timeouts
remain independent. The pinned `datacurve-pier==0.3.0` release requires Python
3.12 or newer.
## Provider Profiles
Create profiles outside the downloaded dataset:
~~~bash
mkdir -p ~/.config/swe-bench-science
cp profiles/codex.env.example ~/.config/swe-bench-science/codex.env
cp profiles/claude.env.example ~/.config/swe-bench-science/claude.env
cp profiles/mini-swe-agent.env.example ~/.config/swe-bench-science/mini-swe-agent.env
chmod 600 ~/.config/swe-bench-science/*.env
~~~
Codex profiles use `MODEL`, `OPENAI_API_KEY`, `CODEX_BASE_URL`, `CODEX_WIRE_API`, `CODEX_VERSION`, and `CODEX_REASONING_EFFORT`. Set `CODEX_WIRE_API=responses` for the OpenAI Responses API or `chat` for Chat Completions. Claude Code uses `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_BASE_URL`, and optional `ANTHROPIC_CUSTOM_HEADERS`. mini-swe-agent uses the provider variables expected by its selected model adapter.
Credentials are read at runtime. They are not stored in task metadata, Dockerfiles, image layers, or result summaries.
## Results
Pier writes one aggregate result and one trial directory per task and attempt:
~~~text
jobs/<job-name>/result.json
jobs/<job-name>/<task>__<trial>/verifier/reward.json
jobs/<job-name>/<task>__<trial>/verifier/ctrf.json
jobs/<job-name>/<task>__<trial>/verifier/test-stdout.txt
~~~
The wrapper additionally writes `jobs/summary.json` and `jobs/summary.csv`. For a direct Pier run, generate the same summaries with:
~~~bash
python3 scripts/summarize_results.py --jobs-dir jobs
~~~
Use `pier view jobs` to inspect trajectories.
See [`docs/run-batch.md`](docs/run-batch.md) for the complete option reference,
gateway/profile configuration, dry-run mode, retry and timeout controls, and
result paths.
## Licensing And Attribution
The dataset card, release metadata, and helper tools use the repository's MIT terms. Task source, papers, figures, fixtures, and other third-party materials retain their upstream licenses. The source-license field does not automatically license copied scientific materials; audited material notices and modification notes are retained in the relevant task bundles.
The dataset is independent of GitHub at runtime. After download, materialization and evaluation use the local task bundle and the Docker Hub image digests recorded in `task.toml` and `data/tasks.csv`.
|