Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
17
23
repo
stringclasses
10 values
language
stringclasses
4 values
earlier_pr
int64
5.23k
62.8k
later_pr
int64
8.08k
65.3k
pr1_difficulty
stringclasses
3 values
difficulty
stringclasses
3 values
severity
stringclasses
3 values
failure_mode
stringclasses
2 values
pr1_task_type
stringclasses
3 values
security
bool
2 classes
docker_image
stringlengths
66
72
n_fail_to_pass
int64
1
66
n_anticipation
int64
1
12
n_pass_to_pass
int64
35
1.87k
image_gb
float64
0.51
1.4
aiohttp__7665-8078
aio-libs/aiohttp
python
7,665
8,078
medium
medium
major
silent
feature
true
docker.io/shaswatpatel123/foresight-swe:inst-aiohttp__7665-8078-pr1
2
6
218
0.53
django__21204-34570
django/django
python
21,204
34,570
hard
easy
minor
loud
bug
false
docker.io/shaswatpatel123/foresight-swe:inst-django__21204-34570-pr1
3
1
312
0.61
django__34429-35477
django/django
python
34,429
35,477
medium
easy
major
silent
feature
false
docker.io/shaswatpatel123/foresight-swe:inst-django__34429-35477-pr1
7
3
164
0.57
pandas__49324-49704
pandas-dev/pandas
python
49,324
49,704
easy
medium
minor
loud
bug
false
docker.io/shaswatpatel123/foresight-swe:inst-pandas__49324-49704-pr1
39
1
1,872
0.9
pandas__62843-65342
pandas-dev/pandas
python
62,843
65,342
medium
easy
minor
loud
mixed
false
docker.io/shaswatpatel123/foresight-swe:inst-pandas__62843-65342-pr1
6
2
752
0.79
prometheus__14513-14598
prometheus/prometheus
go
14,513
14,598
hard
hard
minor
loud
bug
false
docker.io/shaswatpatel123/foresight-swe:inst-prometheus__14513-14598-pr1
2
1
269
1.34
pydantic__10347-10358
pydantic/pydantic
python
10,347
10,358
easy
easy
minor
loud
bug
false
docker.io/shaswatpatel123/foresight-swe:inst-pydantic__10347-10358-pr1
1
1
44
0.68
sklearn__26016-26602
scikit-learn/scikit-learn
python
26,016
26,602
easy
easy
major
silent
feature
false
docker.io/shaswatpatel123/foresight-swe:inst-sklearn__26016-26602-pr1
6
1
57
0.68
svelte__10656-11578
sveltejs/svelte
javascript
10,656
11,578
hard
easy
minor
loud
feature
false
docker.io/shaswatpatel123/foresight-swe:inst-svelte__10656-11578-pr1
4
3
682
0.51
svelte__9826-10786
sveltejs/svelte
javascript
9,826
10,786
hard
medium
major
silent
feature
false
docker.io/shaswatpatel123/foresight-swe:inst-svelte__9826-10786-pr1
3
2
77
0.51
svelte__9962-11183
sveltejs/svelte
javascript
9,962
11,183
hard
hard
major
silent
bug
false
docker.io/shaswatpatel123/foresight-swe:inst-svelte__9962-11183-pr1
3
12
454
0.51
vite__18242-19661
vitejs/vite
typescript
18,242
19,661
medium
easy
major
silent
bug
false
docker.io/shaswatpatel123/foresight-swe:inst-vite__18242-19661-pr1
2
2
49
0.66
vuecore__12393-14545
vuejs/core
typescript
12,393
14,545
medium
easy
major
silent
bug
false
docker.io/shaswatpatel123/foresight-swe:inst-vuecore__12393-14545-pr1
1
2
35
0.62
xarray__5233-10268
pydata/xarray
python
5,233
10,268
hard
easy
major
silent
feature
false
docker.io/shaswatpatel123/foresight-swe:inst-xarray__5233-10268-pr1
66
1
221
0.65
prometheus__13583-14446
prometheus/prometheus
go
13,583
14,446
medium
medium
critical
silent
bug
false
docker.io/shaswatpatel123/foresight-swe:inst-prometheus__13583-14446-pr1
4
4
93
1.4

foresight-swe-mini

15 of the 212 tasks in Foresight-SWE, chosen to match the full benchmark's mix of languages, difficulty and defect types while keeping runs short.

Foresight-SWE asks whether a coding agent avoids a bug nobody told it about. Each task pairs a real pull request that introduced a defect (PR-1) with the later one that fixed it (PR-2). The agent gets only PR-1's task. Resolve rate counts PR-1's tests passing. Foresight resolve rate (FRR) also requires PR-2's held-out tests to pass. See the paper and code.

Read this first. Unlike the other mini benchmarks in this collection, this subset has not been checked against real per-task results, because upstream publishes only totals and per-model breakdowns. The accuracy figures below are simulated. The tasks have not been run through the upstream harness here yet, so a task may be swapped if it turns out to be broken or very slow. Any change will be noted on this card.

What it can tell you

One task is worth 6.7 points, and at leaderboard rates most models would pass 1 to 4 of the 15. Use it to spot large differences, or to compare two setups on the same tasks. Do not use it to rank close models or to estimate a full-benchmark score.

Simulated against the 11 models on the leaderboard:

tasks typical FRR error (points) pairs 5+ points apart in the right order pairs 10+ points apart in the right order
foresight-swe-mini (15) 6.8 74% 83%
random 10 8.8 64% 72%
random 15 6.9 73% 82%
random 20 6.0 78% 87%
random 30 4.7 84% 93%
random 60 3.0 94% 99%
random 100 2.0 98% 100%

The 15 do no better than a random 15 on these numbers. The published task labels explain only 4 to 13% of each model's pass or fail outcomes, so matching on them cannot do much for accuracy. What matching adds is a guaranteed mix and no very slow tasks. A subset chosen from real per-task results might do better; that needs data upstream has not released.

The simulation fits each model to Tables D.1 and D.2 of the paper, then adds a difficulty shared across models and noise per model. Those two additions are assumptions. Numbers are the middle of three runs with different shared-difficulty settings, which changed little.

The mix

foresight-swe-mini exact share of 15
Python / JavaScript / TypeScript / Go 8 / 3 / 2 / 2 8.1 / 3.4 / 2.0 / 1.5
PR-1 easy / medium / hard 3 / 6 / 6 3.3 / 5.4 / 6.2
PR-2 easy / medium / hard 9 / 4 / 2 8.8 / 3.7 / 2.5
Major / minor 9 / 6 9.1 / 5.9
Silent / loud 9 / 6 9.1 / 5.9
Bug / feature / mixed 8 / 6 / 1 7.9 / 6.2 / 0.8
Security 1 1.3

The 15 cover 10 of the 35 repositories, with at most 3 tasks from any one. Predicted FRR on the subset is within 0.6 points of the published score for all 11 models (data/leaderboard.csv). That only checks the mix, not real results.

How the 15 were chosen

Simulated annealing over the 158 tasks with at most 2,000 regression tests, 100 task tests, 20 held-out tests, a 60 KB patch and 3.5 GB of images. It minimises the difference from the full benchmark in the mix above, in each model's predicted scores and in task size, with a cap per repository. python build.py verified.jsonl reproduces the selection and every number here. Exact task IDs are in data/tasks.jsonl.

Running it

The tasks live upstream; this dataset only tells you which 15 to run. Build a task file:

from datasets import load_dataset
ids = set(load_dataset("LocalLLaMA/foresight-swe-mini", split="test")["instance_id"])
tasks = load_dataset("shaswat123/Foresight-SWE", split="test")
tasks.filter(lambda r: r["instance_id"] in ids).to_json("foresight_mini.jsonl")

Then set DATASET to that file in one of the upstream eval scripts. Each task needs one amd64 Docker image, about 11 GB in total. To compare with the leaderboard, keep the paper's budgets: 250 to 350 steps and $3 per task in mini-swe-agent.

Report resolve rate and FRR, and label results "foresight-swe-mini". Scores on the 15 are not Foresight-SWE scores.

Credit

All tasks and the benchmark design are by Patel, Liao, Henderson, He and Chen.

@misc{patel2026codingagentscatchbugs,
      title={Do Coding Agents Catch Their Own Bugs? (They Don't.)},
      author={Shaswat Patel and Michel Liao and Peter Henderson and He He and Valerie Chen},
      year={2026},
      eprint={2611.01181},
      archivePrefix={arXiv},
      primaryClass={cs.SE},
      url={https://arxiv.org/abs/2611.01181},
}
Downloads last month
29

Collection including LocalLLaMA/foresight-swe-mini

Paper for LocalLLaMA/foresight-swe-mini